]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
e6a5069ae946d4e154339acfd6c2064303e12428
[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 fi
5454
5455
5456
5457     if test "${ac_cv_header_term_h+set}" = set; then
5458   echo "$as_me:$LINENO: checking for term.h" >&5
5459 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5460 if test "${ac_cv_header_term_h+set}" = set; then
5461   echo $ECHO_N "(cached) $ECHO_C" >&6
5462 fi
5463 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5464 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5465 else
5466   # Is the header compilable?
5467 echo "$as_me:$LINENO: checking term.h usability" >&5
5468 echo $ECHO_N "checking term.h usability... $ECHO_C" >&6
5469 cat >conftest.$ac_ext <<_ACEOF
5470 #line $LINENO "configure"
5471 /* confdefs.h.  */
5472 _ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h.  */
5476 $ac_includes_default
5477 #include <term.h>
5478 _ACEOF
5479 rm -f conftest.$ac_objext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481   (eval $ac_compile) 2>&5
5482   ac_status=$?
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); } &&
5485          { ac_try='test -s conftest.$ac_objext'
5486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487   (eval $ac_try) 2>&5
5488   ac_status=$?
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); }; }; then
5491   ac_header_compiler=yes
5492 else
5493   echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496 ac_header_compiler=no
5497 fi
5498 rm -f conftest.$ac_objext conftest.$ac_ext
5499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5500 echo "${ECHO_T}$ac_header_compiler" >&6
5501
5502 # Is the header present?
5503 echo "$as_me:$LINENO: checking term.h presence" >&5
5504 echo $ECHO_N "checking term.h presence... $ECHO_C" >&6
5505 cat >conftest.$ac_ext <<_ACEOF
5506 #line $LINENO "configure"
5507 /* confdefs.h.  */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h.  */
5512 #include <term.h>
5513 _ACEOF
5514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5515   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5516   ac_status=$?
5517   grep -v '^ *+' conftest.er1 >conftest.err
5518   rm -f conftest.er1
5519   cat conftest.err >&5
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); } >/dev/null; then
5522   if test -s conftest.err; then
5523     ac_cpp_err=$ac_c_preproc_warn_flag
5524   else
5525     ac_cpp_err=
5526   fi
5527 else
5528   ac_cpp_err=yes
5529 fi
5530 if test -z "$ac_cpp_err"; then
5531   ac_header_preproc=yes
5532 else
5533   echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5535
5536   ac_header_preproc=no
5537 fi
5538 rm -f conftest.err conftest.$ac_ext
5539 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5540 echo "${ECHO_T}$ac_header_preproc" >&6
5541
5542 # So?  What about this header?
5543 case $ac_header_compiler:$ac_header_preproc in
5544   yes:no )
5545     { echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
5546 echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5547     { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
5548 echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
5549     (
5550       cat <<\_ASBOX
5551 ## ------------------------------------ ##
5552 ## Report this to bug-autoconf@gnu.org. ##
5553 ## ------------------------------------ ##
5554 _ASBOX
5555     ) |
5556       sed "s/^/$as_me: WARNING:     /" >&2
5557     ;;
5558   no:yes )
5559     { echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
5560 echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
5561     { echo "$as_me:$LINENO: WARNING: term.h: check for missing prerequisite headers?" >&5
5562 echo "$as_me: WARNING: term.h: check for missing prerequisite headers?" >&2;}
5563     { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
5564 echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
5565     (
5566       cat <<\_ASBOX
5567 ## ------------------------------------ ##
5568 ## Report this to bug-autoconf@gnu.org. ##
5569 ## ------------------------------------ ##
5570 _ASBOX
5571     ) |
5572       sed "s/^/$as_me: WARNING:     /" >&2
5573     ;;
5574 esac
5575 echo "$as_me:$LINENO: checking for term.h" >&5
5576 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5577 if test "${ac_cv_header_term_h+set}" = set; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580   ac_cv_header_term_h=$ac_header_preproc
5581 fi
5582 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5583 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5584
5585 fi
5586 if test $ac_cv_header_term_h = yes; then
5587    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5588 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5589 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5590   echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592   ac_check_lib_save_LIBS=$LIBS
5593 LIBS="-lcurses  $LIBS"
5594 cat >conftest.$ac_ext <<_ACEOF
5595 #line $LINENO "configure"
5596 /* confdefs.h.  */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h.  */
5601
5602 /* Override any gcc2 internal prototype to avoid an error.  */
5603 #ifdef __cplusplus
5604 extern "C"
5605 #endif
5606 /* We use char because int might match the return type of a gcc2
5607    builtin and then its argument prototype would still apply.  */
5608 char tgetent ();
5609 int
5610 main ()
5611 {
5612 tgetent ();
5613   ;
5614   return 0;
5615 }
5616 _ACEOF
5617 rm -f conftest.$ac_objext conftest$ac_exeext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5619   (eval $ac_link) 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); } &&
5623          { ac_try='test -s conftest$ac_exeext'
5624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625   (eval $ac_try) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); }; }; then
5629   ac_cv_lib_curses_tgetent=yes
5630 else
5631   echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5633
5634 ac_cv_lib_curses_tgetent=no
5635 fi
5636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5637 LIBS=$ac_check_lib_save_LIBS
5638 fi
5639 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5640 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5641 if test $ac_cv_lib_curses_tgetent = yes; then
5642    CONS_LIBS="-lcurses"
5643           CONS_OBJ="conio.o"
5644           CONS_SRC="conio.c"
5645           got_conio="yes"
5646           support_readline=no
5647
5648 cat >>confdefs.h <<\_ACEOF
5649 #define HAVE_CONIO 1
5650 _ACEOF
5651
5652
5653 fi
5654
5655
5656 fi
5657
5658
5659 fi
5660
5661
5662 # ---------------------------------------------------
5663 # Check for readline support/directory (default off)
5664 # ---------------------------------------------------
5665 # this allows you to turn it completely off
5666 # Check whether --enable-readline or --disable-readline was given.
5667 if test "${enable_readline+set}" = set; then
5668   enableval="$enable_readline"
5669   if test x$enableval = xno; then
5670     support_readline=no
5671   fi
5672 fi;
5673
5674 got_readline="no"
5675 READLINE_SRC=
5676 if test x$support_readline = xyes; then
5677
5678 # Check whether --with-readline or --without-readline was given.
5679 if test "${with_readline+set}" = set; then
5680   withval="$with_readline"
5681
5682         case "$with_readline" in
5683         no) : ;;
5684         yes|*)
5685           if test "$with_readline" != "yes"; then
5686             CONS_INC="-I${with_readline}"
5687             CONS_LDFLAGS="-L$with_readline"
5688           else
5689              with_readline="/usr/include/readline"
5690           fi
5691           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5693   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5694 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5696   echo $ECHO_N "(cached) $ECHO_C" >&6
5697 fi
5698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5700 else
5701   # Is the header compilable?
5702 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5703 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5704 cat >conftest.$ac_ext <<_ACEOF
5705 #line $LINENO "configure"
5706 /* confdefs.h.  */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h.  */
5711 $ac_includes_default
5712 #include <${with_readline}/readline.h>
5713 _ACEOF
5714 rm -f conftest.$ac_objext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716   (eval $ac_compile) 2>&5
5717   ac_status=$?
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); } &&
5720          { ac_try='test -s conftest.$ac_objext'
5721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722   (eval $ac_try) 2>&5
5723   ac_status=$?
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); }; }; then
5726   ac_header_compiler=yes
5727 else
5728   echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731 ac_header_compiler=no
5732 fi
5733 rm -f conftest.$ac_objext conftest.$ac_ext
5734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5735 echo "${ECHO_T}$ac_header_compiler" >&6
5736
5737 # Is the header present?
5738 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5739 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5740 cat >conftest.$ac_ext <<_ACEOF
5741 #line $LINENO "configure"
5742 /* confdefs.h.  */
5743 _ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h.  */
5747 #include <${with_readline}/readline.h>
5748 _ACEOF
5749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5750   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5751   ac_status=$?
5752   grep -v '^ *+' conftest.er1 >conftest.err
5753   rm -f conftest.er1
5754   cat conftest.err >&5
5755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); } >/dev/null; then
5757   if test -s conftest.err; then
5758     ac_cpp_err=$ac_c_preproc_warn_flag
5759   else
5760     ac_cpp_err=
5761   fi
5762 else
5763   ac_cpp_err=yes
5764 fi
5765 if test -z "$ac_cpp_err"; then
5766   ac_header_preproc=yes
5767 else
5768   echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5770
5771   ac_header_preproc=no
5772 fi
5773 rm -f conftest.err conftest.$ac_ext
5774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5775 echo "${ECHO_T}$ac_header_preproc" >&6
5776
5777 # So?  What about this header?
5778 case $ac_header_compiler:$ac_header_preproc in
5779   yes:no )
5780     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5781 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5782     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5783 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5784     (
5785       cat <<\_ASBOX
5786 ## ------------------------------------ ##
5787 ## Report this to bug-autoconf@gnu.org. ##
5788 ## ------------------------------------ ##
5789 _ASBOX
5790     ) |
5791       sed "s/^/$as_me: WARNING:     /" >&2
5792     ;;
5793   no:yes )
5794     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5795 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5796     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5797 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5798     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5799 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5800     (
5801       cat <<\_ASBOX
5802 ## ------------------------------------ ##
5803 ## Report this to bug-autoconf@gnu.org. ##
5804 ## ------------------------------------ ##
5805 _ASBOX
5806     ) |
5807       sed "s/^/$as_me: WARNING:     /" >&2
5808     ;;
5809 esac
5810 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5811 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5813   echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815   eval "$as_ac_Header=$ac_header_preproc"
5816 fi
5817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5819
5820 fi
5821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5822    cat >>confdefs.h <<\_ACEOF
5823 #define HAVE_READLINE 1
5824 _ACEOF
5825
5826                CONS_LIBS="-lreadline -ltermcap"
5827                got_readline="yes"
5828
5829 else
5830    echo " "
5831                echo "readline.h not found. readline turned off ..."
5832                echo " "
5833
5834
5835 fi
5836
5837
5838           ;;
5839         esac
5840
5841 else
5842
5843        # check for standard readline library
5844        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5845   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5846 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5847 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 fi
5850 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5851 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5852 else
5853   # Is the header compilable?
5854 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5855 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5856 cat >conftest.$ac_ext <<_ACEOF
5857 #line $LINENO "configure"
5858 /* confdefs.h.  */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h.  */
5863 $ac_includes_default
5864 #include </usr/include/readline/readline.h>
5865 _ACEOF
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868   (eval $ac_compile) 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); } &&
5872          { ac_try='test -s conftest.$ac_objext'
5873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874   (eval $ac_try) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }; }; then
5878   ac_header_compiler=yes
5879 else
5880   echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5882
5883 ac_header_compiler=no
5884 fi
5885 rm -f conftest.$ac_objext conftest.$ac_ext
5886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5887 echo "${ECHO_T}$ac_header_compiler" >&6
5888
5889 # Is the header present?
5890 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5891 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5892 cat >conftest.$ac_ext <<_ACEOF
5893 #line $LINENO "configure"
5894 /* confdefs.h.  */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h.  */
5899 #include </usr/include/readline/readline.h>
5900 _ACEOF
5901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5902   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5903   ac_status=$?
5904   grep -v '^ *+' conftest.er1 >conftest.err
5905   rm -f conftest.er1
5906   cat conftest.err >&5
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } >/dev/null; then
5909   if test -s conftest.err; then
5910     ac_cpp_err=$ac_c_preproc_warn_flag
5911   else
5912     ac_cpp_err=
5913   fi
5914 else
5915   ac_cpp_err=yes
5916 fi
5917 if test -z "$ac_cpp_err"; then
5918   ac_header_preproc=yes
5919 else
5920   echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5922
5923   ac_header_preproc=no
5924 fi
5925 rm -f conftest.err conftest.$ac_ext
5926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5927 echo "${ECHO_T}$ac_header_preproc" >&6
5928
5929 # So?  What about this header?
5930 case $ac_header_compiler:$ac_header_preproc in
5931   yes:no )
5932     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5933 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5934     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5935 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5936     (
5937       cat <<\_ASBOX
5938 ## ------------------------------------ ##
5939 ## Report this to bug-autoconf@gnu.org. ##
5940 ## ------------------------------------ ##
5941 _ASBOX
5942     ) |
5943       sed "s/^/$as_me: WARNING:     /" >&2
5944     ;;
5945   no:yes )
5946     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5947 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5948     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5949 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5950     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5951 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5952     (
5953       cat <<\_ASBOX
5954 ## ------------------------------------ ##
5955 ## Report this to bug-autoconf@gnu.org. ##
5956 ## ------------------------------------ ##
5957 _ASBOX
5958     ) |
5959       sed "s/^/$as_me: WARNING:     /" >&2
5960     ;;
5961 esac
5962 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5963 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5964 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5965   echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5968 fi
5969 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5970 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5971
5972 fi
5973 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5974    cat >>confdefs.h <<\_ACEOF
5975 #define HAVE_READLINE 1
5976 _ACEOF
5977
5978            got_readline="yes"
5979            CONS_INC="-I/usr/include/readline"
5980            CONS_LIBS="-lreadline -ltermcap"
5981
5982 else
5983
5984            # Did not find standard library, so try Bacula's default
5985             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5987   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5988 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 fi
5992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5994 else
5995   # Is the header compilable?
5996 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5997 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5998 cat >conftest.$ac_ext <<_ACEOF
5999 #line $LINENO "configure"
6000 /* confdefs.h.  */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h.  */
6005 $ac_includes_default
6006 #include <${TOP_DIR}/depkgs/readline/readline.h>
6007 _ACEOF
6008 rm -f conftest.$ac_objext
6009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6010   (eval $ac_compile) 2>&5
6011   ac_status=$?
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); } &&
6014          { ac_try='test -s conftest.$ac_objext'
6015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016   (eval $ac_try) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); }; }; then
6020   ac_header_compiler=yes
6021 else
6022   echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
6025 ac_header_compiler=no
6026 fi
6027 rm -f conftest.$ac_objext conftest.$ac_ext
6028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6029 echo "${ECHO_T}$ac_header_compiler" >&6
6030
6031 # Is the header present?
6032 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6033 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6034 cat >conftest.$ac_ext <<_ACEOF
6035 #line $LINENO "configure"
6036 /* confdefs.h.  */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h.  */
6041 #include <${TOP_DIR}/depkgs/readline/readline.h>
6042 _ACEOF
6043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6045   ac_status=$?
6046   grep -v '^ *+' conftest.er1 >conftest.err
6047   rm -f conftest.er1
6048   cat conftest.err >&5
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); } >/dev/null; then
6051   if test -s conftest.err; then
6052     ac_cpp_err=$ac_c_preproc_warn_flag
6053   else
6054     ac_cpp_err=
6055   fi
6056 else
6057   ac_cpp_err=yes
6058 fi
6059 if test -z "$ac_cpp_err"; then
6060   ac_header_preproc=yes
6061 else
6062   echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065   ac_header_preproc=no
6066 fi
6067 rm -f conftest.err conftest.$ac_ext
6068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6069 echo "${ECHO_T}$ac_header_preproc" >&6
6070
6071 # So?  What about this header?
6072 case $ac_header_compiler:$ac_header_preproc in
6073   yes:no )
6074     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6075 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6076     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6077 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6078     (
6079       cat <<\_ASBOX
6080 ## ------------------------------------ ##
6081 ## Report this to bug-autoconf@gnu.org. ##
6082 ## ------------------------------------ ##
6083 _ASBOX
6084     ) |
6085       sed "s/^/$as_me: WARNING:     /" >&2
6086     ;;
6087   no:yes )
6088     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6089 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6090     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6091 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6092     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6093 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6094     (
6095       cat <<\_ASBOX
6096 ## ------------------------------------ ##
6097 ## Report this to bug-autoconf@gnu.org. ##
6098 ## ------------------------------------ ##
6099 _ASBOX
6100     ) |
6101       sed "s/^/$as_me: WARNING:     /" >&2
6102     ;;
6103 esac
6104 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6105 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   eval "$as_ac_Header=$ac_header_preproc"
6110 fi
6111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6113
6114 fi
6115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6116    cat >>confdefs.h <<\_ACEOF
6117 #define HAVE_READLINE 1
6118 _ACEOF
6119
6120                  got_readline="yes"
6121                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6122                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6123                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6124                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6125
6126 else
6127    echo " "
6128                 echo "readline.h not found. readline turned off ..."
6129                 echo " "
6130
6131
6132 fi
6133
6134
6135
6136
6137 fi
6138
6139
6140
6141
6142 fi;
6143 fi
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 # Minimal stuff for readline Makefile configuration
6155 MAKE_SHELL=/bin/sh
6156
6157 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6158 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6159 if test "${ac_cv_header_stat_broken+set}" = set; then
6160   echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162   cat >conftest.$ac_ext <<_ACEOF
6163 #line $LINENO "configure"
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169 #include <sys/types.h>
6170 #include <sys/stat.h>
6171
6172 #if defined(S_ISBLK) && defined(S_IFDIR)
6173 # if S_ISBLK (S_IFDIR)
6174 You lose.
6175 # endif
6176 #endif
6177
6178 #if defined(S_ISBLK) && defined(S_IFCHR)
6179 # if S_ISBLK (S_IFCHR)
6180 You lose.
6181 # endif
6182 #endif
6183
6184 #if defined(S_ISLNK) && defined(S_IFREG)
6185 # if S_ISLNK (S_IFREG)
6186 You lose.
6187 # endif
6188 #endif
6189
6190 #if defined(S_ISSOCK) && defined(S_IFREG)
6191 # if S_ISSOCK (S_IFREG)
6192 You lose.
6193 # endif
6194 #endif
6195
6196 _ACEOF
6197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6198   $EGREP "You lose" >/dev/null 2>&1; then
6199   ac_cv_header_stat_broken=yes
6200 else
6201   ac_cv_header_stat_broken=no
6202 fi
6203 rm -f conftest*
6204
6205 fi
6206 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6207 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6208 if test $ac_cv_header_stat_broken = yes; then
6209
6210 cat >>confdefs.h <<\_ACEOF
6211 #define STAT_MACROS_BROKEN 1
6212 _ACEOF
6213
6214 fi
6215
6216
6217
6218
6219
6220
6221 ac_header_dirent=no
6222 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6223   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6224 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6225 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6227   echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229   cat >conftest.$ac_ext <<_ACEOF
6230 #line $LINENO "configure"
6231 /* confdefs.h.  */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h.  */
6236 #include <sys/types.h>
6237 #include <$ac_hdr>
6238
6239 int
6240 main ()
6241 {
6242 if ((DIR *) 0)
6243 return 0;
6244   ;
6245   return 0;
6246 }
6247 _ACEOF
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250   (eval $ac_compile) 2>&5
6251   ac_status=$?
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); } &&
6254          { ac_try='test -s conftest.$ac_objext'
6255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256   (eval $ac_try) 2>&5
6257   ac_status=$?
6258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259   (exit $ac_status); }; }; then
6260   eval "$as_ac_Header=yes"
6261 else
6262   echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6264
6265 eval "$as_ac_Header=no"
6266 fi
6267 rm -f conftest.$ac_objext conftest.$ac_ext
6268 fi
6269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6272   cat >>confdefs.h <<_ACEOF
6273 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6274 _ACEOF
6275
6276 ac_header_dirent=$ac_hdr; break
6277 fi
6278
6279 done
6280 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6281 if test $ac_header_dirent = dirent.h; then
6282   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6283 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6284 if test "${ac_cv_search_opendir+set}" = set; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   ac_func_search_save_LIBS=$LIBS
6288 ac_cv_search_opendir=no
6289 cat >conftest.$ac_ext <<_ACEOF
6290 #line $LINENO "configure"
6291 /* confdefs.h.  */
6292 _ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h.  */
6296
6297 /* Override any gcc2 internal prototype to avoid an error.  */
6298 #ifdef __cplusplus
6299 extern "C"
6300 #endif
6301 /* We use char because int might match the return type of a gcc2
6302    builtin and then its argument prototype would still apply.  */
6303 char opendir ();
6304 int
6305 main ()
6306 {
6307 opendir ();
6308   ;
6309   return 0;
6310 }
6311 _ACEOF
6312 rm -f conftest.$ac_objext conftest$ac_exeext
6313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6314   (eval $ac_link) 2>&5
6315   ac_status=$?
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); } &&
6318          { ac_try='test -s conftest$ac_exeext'
6319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320   (eval $ac_try) 2>&5
6321   ac_status=$?
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); }; }; then
6324   ac_cv_search_opendir="none required"
6325 else
6326   echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6328
6329 fi
6330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6331 if test "$ac_cv_search_opendir" = no; then
6332   for ac_lib in dir; do
6333     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6334     cat >conftest.$ac_ext <<_ACEOF
6335 #line $LINENO "configure"
6336 /* confdefs.h.  */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h.  */
6341
6342 /* Override any gcc2 internal prototype to avoid an error.  */
6343 #ifdef __cplusplus
6344 extern "C"
6345 #endif
6346 /* We use char because int might match the return type of a gcc2
6347    builtin and then its argument prototype would still apply.  */
6348 char opendir ();
6349 int
6350 main ()
6351 {
6352 opendir ();
6353   ;
6354   return 0;
6355 }
6356 _ACEOF
6357 rm -f conftest.$ac_objext conftest$ac_exeext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6359   (eval $ac_link) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); } &&
6363          { ac_try='test -s conftest$ac_exeext'
6364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365   (eval $ac_try) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }; }; then
6369   ac_cv_search_opendir="-l$ac_lib"
6370 break
6371 else
6372   echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375 fi
6376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6377   done
6378 fi
6379 LIBS=$ac_func_search_save_LIBS
6380 fi
6381 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6382 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6383 if test "$ac_cv_search_opendir" != no; then
6384   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6385
6386 fi
6387
6388 else
6389   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6390 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6391 if test "${ac_cv_search_opendir+set}" = set; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   ac_func_search_save_LIBS=$LIBS
6395 ac_cv_search_opendir=no
6396 cat >conftest.$ac_ext <<_ACEOF
6397 #line $LINENO "configure"
6398 /* confdefs.h.  */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h.  */
6403
6404 /* Override any gcc2 internal prototype to avoid an error.  */
6405 #ifdef __cplusplus
6406 extern "C"
6407 #endif
6408 /* We use char because int might match the return type of a gcc2
6409    builtin and then its argument prototype would still apply.  */
6410 char opendir ();
6411 int
6412 main ()
6413 {
6414 opendir ();
6415   ;
6416   return 0;
6417 }
6418 _ACEOF
6419 rm -f conftest.$ac_objext conftest$ac_exeext
6420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6421   (eval $ac_link) 2>&5
6422   ac_status=$?
6423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424   (exit $ac_status); } &&
6425          { ac_try='test -s conftest$ac_exeext'
6426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427   (eval $ac_try) 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); }; }; then
6431   ac_cv_search_opendir="none required"
6432 else
6433   echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6435
6436 fi
6437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6438 if test "$ac_cv_search_opendir" = no; then
6439   for ac_lib in x; do
6440     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6441     cat >conftest.$ac_ext <<_ACEOF
6442 #line $LINENO "configure"
6443 /* confdefs.h.  */
6444 _ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h.  */
6448
6449 /* Override any gcc2 internal prototype to avoid an error.  */
6450 #ifdef __cplusplus
6451 extern "C"
6452 #endif
6453 /* We use char because int might match the return type of a gcc2
6454    builtin and then its argument prototype would still apply.  */
6455 char opendir ();
6456 int
6457 main ()
6458 {
6459 opendir ();
6460   ;
6461   return 0;
6462 }
6463 _ACEOF
6464 rm -f conftest.$ac_objext conftest$ac_exeext
6465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6466   (eval $ac_link) 2>&5
6467   ac_status=$?
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); } &&
6470          { ac_try='test -s conftest$ac_exeext'
6471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472   (eval $ac_try) 2>&5
6473   ac_status=$?
6474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475   (exit $ac_status); }; }; then
6476   ac_cv_search_opendir="-l$ac_lib"
6477 break
6478 else
6479   echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482 fi
6483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6484   done
6485 fi
6486 LIBS=$ac_func_search_save_LIBS
6487 fi
6488 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6489 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6490 if test "$ac_cv_search_opendir" != no; then
6491   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6492
6493 fi
6494
6495 fi
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6506 do
6507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6508 echo "$as_me:$LINENO: checking for $ac_func" >&5
6509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6510 if eval "test \"\${$as_ac_var+set}\" = set"; then
6511   echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513   cat >conftest.$ac_ext <<_ACEOF
6514 #line $LINENO "configure"
6515 /* confdefs.h.  */
6516 _ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h.  */
6520 /* System header to define __stub macros and hopefully few prototypes,
6521     which can conflict with char $ac_func (); below.
6522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6523     <limits.h> exists even on freestanding compilers.  */
6524 #ifdef __STDC__
6525 # include <limits.h>
6526 #else
6527 # include <assert.h>
6528 #endif
6529 /* Override any gcc2 internal prototype to avoid an error.  */
6530 #ifdef __cplusplus
6531 extern "C"
6532 {
6533 #endif
6534 /* We use char because int might match the return type of a gcc2
6535    builtin and then its argument prototype would still apply.  */
6536 char $ac_func ();
6537 /* The GNU C library defines this for functions which it implements
6538     to always fail with ENOSYS.  Some functions are actually named
6539     something starting with __ and the normal name is an alias.  */
6540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6541 choke me
6542 #else
6543 char (*f) () = $ac_func;
6544 #endif
6545 #ifdef __cplusplus
6546 }
6547 #endif
6548
6549 int
6550 main ()
6551 {
6552 return f != $ac_func;
6553   ;
6554   return 0;
6555 }
6556 _ACEOF
6557 rm -f conftest.$ac_objext conftest$ac_exeext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559   (eval $ac_link) 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); } &&
6563          { ac_try='test -s conftest$ac_exeext'
6564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565   (eval $ac_try) 2>&5
6566   ac_status=$?
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); }; }; then
6569   eval "$as_ac_var=yes"
6570 else
6571   echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6573
6574 eval "$as_ac_var=no"
6575 fi
6576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6577 fi
6578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6580 if test `eval echo '${'$as_ac_var'}'` = yes; then
6581   cat >>confdefs.h <<_ACEOF
6582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6583 _ACEOF
6584
6585 fi
6586 done
6587
6588
6589
6590 for ac_func in nanosleep nl_langinfo
6591 do
6592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6593 echo "$as_me:$LINENO: checking for $ac_func" >&5
6594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6595 if eval "test \"\${$as_ac_var+set}\" = set"; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   cat >conftest.$ac_ext <<_ACEOF
6599 #line $LINENO "configure"
6600 /* confdefs.h.  */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h.  */
6605 /* System header to define __stub macros and hopefully few prototypes,
6606     which can conflict with char $ac_func (); below.
6607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6608     <limits.h> exists even on freestanding compilers.  */
6609 #ifdef __STDC__
6610 # include <limits.h>
6611 #else
6612 # include <assert.h>
6613 #endif
6614 /* Override any gcc2 internal prototype to avoid an error.  */
6615 #ifdef __cplusplus
6616 extern "C"
6617 {
6618 #endif
6619 /* We use char because int might match the return type of a gcc2
6620    builtin and then its argument prototype would still apply.  */
6621 char $ac_func ();
6622 /* The GNU C library defines this for functions which it implements
6623     to always fail with ENOSYS.  Some functions are actually named
6624     something starting with __ and the normal name is an alias.  */
6625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6626 choke me
6627 #else
6628 char (*f) () = $ac_func;
6629 #endif
6630 #ifdef __cplusplus
6631 }
6632 #endif
6633
6634 int
6635 main ()
6636 {
6637 return f != $ac_func;
6638   ;
6639   return 0;
6640 }
6641 _ACEOF
6642 rm -f conftest.$ac_objext conftest$ac_exeext
6643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6644   (eval $ac_link) 2>&5
6645   ac_status=$?
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); } &&
6648          { ac_try='test -s conftest$ac_exeext'
6649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650   (eval $ac_try) 2>&5
6651   ac_status=$?
6652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653   (exit $ac_status); }; }; then
6654   eval "$as_ac_var=yes"
6655 else
6656   echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6658
6659 eval "$as_ac_var=no"
6660 fi
6661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6662 fi
6663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6665 if test `eval echo '${'$as_ac_var'}'` = yes; then
6666   cat >>confdefs.h <<_ACEOF
6667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6668 _ACEOF
6669
6670 fi
6671 done
6672
6673
6674 for ac_header in varargs.h
6675 do
6676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6678   echo "$as_me:$LINENO: checking for $ac_header" >&5
6679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6681   echo $ECHO_N "(cached) $ECHO_C" >&6
6682 fi
6683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6685 else
6686   # Is the header compilable?
6687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6689 cat >conftest.$ac_ext <<_ACEOF
6690 #line $LINENO "configure"
6691 /* confdefs.h.  */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h.  */
6696 $ac_includes_default
6697 #include <$ac_header>
6698 _ACEOF
6699 rm -f conftest.$ac_objext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6701   (eval $ac_compile) 2>&5
6702   ac_status=$?
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); } &&
6705          { ac_try='test -s conftest.$ac_objext'
6706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707   (eval $ac_try) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); }; }; then
6711   ac_header_compiler=yes
6712 else
6713   echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6715
6716 ac_header_compiler=no
6717 fi
6718 rm -f conftest.$ac_objext conftest.$ac_ext
6719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6720 echo "${ECHO_T}$ac_header_compiler" >&6
6721
6722 # Is the header present?
6723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6725 cat >conftest.$ac_ext <<_ACEOF
6726 #line $LINENO "configure"
6727 /* confdefs.h.  */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h.  */
6732 #include <$ac_header>
6733 _ACEOF
6734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6735   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6736   ac_status=$?
6737   grep -v '^ *+' conftest.er1 >conftest.err
6738   rm -f conftest.er1
6739   cat conftest.err >&5
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); } >/dev/null; then
6742   if test -s conftest.err; then
6743     ac_cpp_err=$ac_c_preproc_warn_flag
6744   else
6745     ac_cpp_err=
6746   fi
6747 else
6748   ac_cpp_err=yes
6749 fi
6750 if test -z "$ac_cpp_err"; then
6751   ac_header_preproc=yes
6752 else
6753   echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6755
6756   ac_header_preproc=no
6757 fi
6758 rm -f conftest.err conftest.$ac_ext
6759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6760 echo "${ECHO_T}$ac_header_preproc" >&6
6761
6762 # So?  What about this header?
6763 case $ac_header_compiler:$ac_header_preproc in
6764   yes:no )
6765     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6769     (
6770       cat <<\_ASBOX
6771 ## ------------------------------------ ##
6772 ## Report this to bug-autoconf@gnu.org. ##
6773 ## ------------------------------------ ##
6774 _ASBOX
6775     ) |
6776       sed "s/^/$as_me: WARNING:     /" >&2
6777     ;;
6778   no:yes )
6779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6781     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6785     (
6786       cat <<\_ASBOX
6787 ## ------------------------------------ ##
6788 ## Report this to bug-autoconf@gnu.org. ##
6789 ## ------------------------------------ ##
6790 _ASBOX
6791     ) |
6792       sed "s/^/$as_me: WARNING:     /" >&2
6793     ;;
6794 esac
6795 echo "$as_me:$LINENO: checking for $ac_header" >&5
6796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   eval "$as_ac_Header=$ac_header_preproc"
6801 fi
6802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6804
6805 fi
6806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6807   cat >>confdefs.h <<_ACEOF
6808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6809 _ACEOF
6810
6811 fi
6812
6813 done
6814
6815
6816 # End of readline/conio stuff
6817 # -----------------------------------------------------------------------
6818
6819 # -------------------------------------------
6820 # check for cdrecord writer location
6821 # get scsibus,target,lun
6822 # -------------------------------------------
6823 CDSTL="3,0,0"
6824 if test ! x$CDRECORD = x ; then
6825    CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
6826    if test x${CDSTL} = x ; then
6827       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
6828    fi
6829    if test x${CDSTL} = x ; then
6830       CDSTL="3,0,0"
6831    fi
6832 fi
6833
6834
6835
6836 # ---------------------------------------------------
6837 # Check for GMP support/directory
6838 # ---------------------------------------------------
6839 #GMP_SRC=
6840 #local_gmp="no"
6841 #AC_ARG_WITH(gmp,
6842 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6843 #  [
6844 #     case "$with_gmp" in
6845 #     no) : ;;
6846 #     yes|*)
6847 #       if test "$with_gmp" != "yes"; then
6848 #         GMP_INC="-I$with_gmp"
6849 #         GMP_LIBS="-lgmp"
6850 #         GMP_LDFLAGS="-L$with_gmp"
6851 #       else
6852 #          with_gmp="/usr/include"
6853 #       fi
6854 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6855 #          [ AC_MSG_RESULT(yes)
6856 #            AC_DEFINE(HAVE_GMP)
6857 #            GMP_LIBS="-lgmp"
6858 #            got_gmp="yes"
6859 #          ],
6860 #          [ AC_MSG_ERROR([*** gmp library missing])
6861 #          ]
6862 #       )
6863 #       ;;
6864 #     esac
6865 #  ],[
6866 #    # check for standard gmp library
6867 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6868 #    [ AC_MSG_RESULT(yes)
6869 #      AC_DEFINE(HAVE_GMP)
6870 #      got_gmp="yes"
6871 #      GMP_INC=
6872 #      GMP_LIBS="-lgmp"
6873 #    ], [
6874 #      # Did not find standard library, so use our own
6875 #      AC_MSG_RESULT(yes)
6876 #      AC_DEFINE(HAVE_GMP)
6877 #      got_gmp="yes"
6878 #      local_gmp="yes"
6879 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6880 #      GMP_LIBS="-lgmp"
6881 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6882 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6883 #    ])
6884 #  ]
6885 #)
6886 #AC_SUBST(GMP_INC)
6887 #AC_SUBST(GMP_LIBS)
6888 #AC_SUBST(GMP_LDFLAGS)
6889 #AC_SUBST(GMP_SRC)
6890
6891 # End of GMP stuff
6892 # -----------------------------------------------------------------------
6893
6894
6895 # ---------------------------------------------------
6896 # Check for CWEB support/directory
6897 # ---------------------------------------------------
6898 #CWEB_SRC=
6899 #CWEB=/bin
6900 #local_cweb="no"
6901 #AC_ARG_WITH(cweb,
6902 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6903 #  [
6904 #     case "$with_cweb" in
6905 #     no) : ;;
6906 #     yes|*)
6907 #       if test "$with_cweb" != "yes"; then
6908 #         CWEB_INC="-I$with_cweb"
6909 #         CWEB_LIBS="-lcweb"
6910 #         CWEB_LDFLAGS="-L$with_cweb"
6911 #       else
6912 #          with_cweb="/usr/include"
6913 #       fi
6914 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6915 #          [ AC_MSG_RESULT(yes)
6916 #            AC_DEFINE(HAVE_CWEB)
6917 #            CWEB_LIBS="-lcweb"
6918 #            got_cweb="yes"
6919 #          ],
6920 #          [ AC_MSG_ERROR([*** cweb library missing])
6921 #          ]
6922 #       )
6923 #       ;;
6924 #     esac
6925 #  ],[
6926 #    # check for standard cweb library
6927 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6928 #    [ AC_MSG_RESULT(yes)
6929 #      AC_DEFINE(HAVE_CWEB)
6930 #      got_cweb="yes"
6931 #      CWEB_INC=
6932 #      CWEB_LIBS="-lcweb"
6933 #    ], [
6934 #      # Did not find starndard library, so use our own
6935 #      AC_MSG_RESULT(yes)
6936 #      AC_DEFINE(HAVE_CWEB)
6937 #      got_cweb="yes"
6938 #      local_cweb="yes"
6939 #      CWEB=${TOP_DIR}/depkgs/cweb
6940 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6941 #      CWEB_LIBS="-lcweb"
6942 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6943 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6944 #    ])
6945 #  ]
6946 #)
6947 #AC_SUBST(CWEB)
6948 #AC_SUBST(CWEB_INC)
6949 #AC_SUBST(CWEB_LIBS)
6950 #AC_SUBST(CWEB_LDFLAGS)
6951 #AC_SUBST(CWEB_SRC)
6952
6953 # End of CWEB stuff
6954 # -----------------------------------------------------------------------
6955
6956
6957
6958 # -----------------------------------------------------------
6959 # Check whether user wants TCP wrappers support (default off)
6960 # -----------------------------------------------------------
6961 TCPW_MSG="no"
6962
6963 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6964 if test "${with_tcp_wrappers+set}" = set; then
6965   withval="$with_tcp_wrappers"
6966
6967     if test "x$withval" != "xno" ; then
6968        saved_LIBS="$LIBS"
6969        LIBS="$saved_LIBS -lwrap"
6970        echo "$as_me:$LINENO: checking for libwrap" >&5
6971 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6972        cat >conftest.$ac_ext <<_ACEOF
6973 #line $LINENO "configure"
6974 /* confdefs.h.  */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h.  */
6979  #include <tcpd.h>
6980              int deny_severity = 0;
6981              int allow_severity = 0;
6982              struct request_info *req;
6983 int
6984 main ()
6985 {
6986  hosts_access(req);
6987   ;
6988   return 0;
6989 }
6990 _ACEOF
6991 rm -f conftest.$ac_objext conftest$ac_exeext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6993   (eval $ac_link) 2>&5
6994   ac_status=$?
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); } &&
6997          { ac_try='test -s conftest$ac_exeext'
6998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999   (eval $ac_try) 2>&5
7000   ac_status=$?
7001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002   (exit $ac_status); }; }; then
7003
7004             echo "$as_me:$LINENO: result: yes" >&5
7005 echo "${ECHO_T}yes" >&6
7006             cat >>confdefs.h <<\_ACEOF
7007 #define HAVE_LIBWRAP 1
7008 _ACEOF
7009
7010             TCPW_MSG="yes"
7011
7012 else
7013   echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7015
7016
7017             LIBS="$saved_LIBS -lwrap -lnsl"
7018             cat >conftest.$ac_ext <<_ACEOF
7019 #line $LINENO "configure"
7020 /* confdefs.h.  */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h.  */
7025  #include <tcpd.h>
7026                  int deny_severity = 0;
7027                  int allow_severity = 0;
7028                  struct request_info *req;
7029 int
7030 main ()
7031 {
7032  hosts_access(req);
7033   ;
7034   return 0;
7035 }
7036 _ACEOF
7037 rm -f conftest.$ac_objext conftest$ac_exeext
7038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7039   (eval $ac_link) 2>&5
7040   ac_status=$?
7041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042   (exit $ac_status); } &&
7043          { ac_try='test -s conftest$ac_exeext'
7044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045   (eval $ac_try) 2>&5
7046   ac_status=$?
7047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048   (exit $ac_status); }; }; then
7049
7050                  echo "$as_me:$LINENO: result: yes" >&5
7051 echo "${ECHO_T}yes" >&6
7052                  cat >>confdefs.h <<\_ACEOF
7053 #define HAVE_LIBWRAP 1
7054 _ACEOF
7055
7056                  TCPW_MSG="yes"
7057
7058 else
7059   echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7061
7062 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7063 echo "$as_me: error: *** libwrap missing" >&2;}
7064    { (exit 1); exit 1; }; }
7065
7066 fi
7067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7068
7069 fi
7070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7071     fi
7072
7073
7074 fi;
7075
7076 # ------------------------------------------
7077 # Where to place working dir
7078 # ------------------------------------------
7079 working_dir=`eval echo ${prefix}/var/bacula/working`
7080
7081 # Check whether --with-working-dir or --without-working-dir was given.
7082 if test "${with_working_dir+set}" = set; then
7083   withval="$with_working_dir"
7084
7085        if test "x$withval" != "xno" ; then
7086               working_dir=$withval
7087        fi
7088
7089
7090 fi;
7091
7092
7093
7094
7095 # ------------------------------------------
7096 # Where to place scriptdir (script files)
7097 # ------------------------------------------
7098 scriptdir=`eval echo ${sysconfdir}`
7099
7100 # Check whether --with-scriptdir or --without-scriptdir was given.
7101 if test "${with_scriptdir+set}" = set; then
7102   withval="$with_scriptdir"
7103
7104        if test "x$withval" != "xno" ; then
7105               scriptdir=$withval
7106        fi
7107
7108
7109 fi;
7110
7111
7112
7113
7114 # ------------------------------------------
7115 # Where to send dump email
7116 # ------------------------------------------
7117 dump_email=root@localhost
7118
7119 # Check whether --with-dump-email or --without-dump-email was given.
7120 if test "${with_dump_email+set}" = set; then
7121   withval="$with_dump_email"
7122
7123        if test "x$withval" != "xno" ; then
7124               dump_email=$withval
7125        fi
7126
7127
7128 fi;
7129
7130
7131
7132 # ------------------------------------------
7133 # Where to send job email
7134 # ------------------------------------------
7135 job_email=root@localhost
7136
7137 # Check whether --with-job-email or --without-job-email was given.
7138 if test "${with_job_email+set}" = set; then
7139   withval="$with_job_email"
7140
7141        if test "x$withval" != "xno" ; then
7142               job_email=$withval
7143        fi
7144
7145
7146 fi;
7147
7148
7149
7150 # ------------------------------------------
7151 # Where to find smtp host
7152 # ------------------------------------------
7153 smtp_host=localhost
7154
7155 # Check whether --with-smtp_host or --without-smtp_host was given.
7156 if test "${with_smtp_host+set}" = set; then
7157   withval="$with_smtp_host"
7158
7159        if test "x$withval" != "xno" ; then
7160               smtp_host=$withval
7161        fi
7162
7163
7164 fi;
7165
7166
7167
7168
7169 # ------------------------------------
7170 # Where to place pid files
7171 # ------------------------------------
7172 piddir=/var/run
7173
7174 # Check whether --with-pid-dir or --without-pid-dir was given.
7175 if test "${with_pid_dir+set}" = set; then
7176   withval="$with_pid_dir"
7177
7178         if test "x$withval" != "xno" ; then
7179             piddir=$withval
7180         fi
7181
7182
7183 fi;
7184
7185 cat >>confdefs.h <<_ACEOF
7186 #define _PATH_BACULA_PIDDIR "$piddir"
7187 _ACEOF
7188
7189
7190
7191
7192 # ------------------------------------
7193 # Where to place subsys "lock file"
7194 # ------------------------------------
7195 subsysdir=/var/run/subsys
7196
7197 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7198 if test "${with_subsys_dir+set}" = set; then
7199   withval="$with_subsys_dir"
7200
7201         if test "x$withval" != "xno" ; then
7202             subsysdir=$withval
7203         fi
7204
7205
7206 fi;
7207
7208
7209
7210
7211
7212 # ------------------------------------
7213 # Where to start assigning ports
7214 # ------------------------------------
7215 baseport=9101
7216
7217 # Check whether --with-baseport or --without-baseport was given.
7218 if test "${with_baseport+set}" = set; then
7219   withval="$with_baseport"
7220
7221         if test "x$withval" != "xno" ; then
7222              baseport=$withval
7223         fi
7224
7225
7226 fi;
7227
7228
7229 dir_port=`expr $baseport`
7230 fd_port=`expr $baseport + 1`
7231 sd_port=`expr $fd_port + 1`
7232
7233
7234
7235
7236
7237
7238 # ------------------------------------------
7239 # Generate passwords
7240 # ------------------------------------------
7241 dir_password=
7242
7243 # Check whether --with-dir-password or --without-dir-password was given.
7244 if test "${with_dir_password+set}" = set; then
7245   withval="$with_dir_password"
7246
7247        if test "x$withval" != "xno" ; then
7248            dir_password=$withval
7249        fi
7250
7251
7252 fi;
7253
7254 if test "x$dir_password" = "x" ; then
7255    if test "x$OPENSSL" = "xnone" ; then
7256 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7257       key=`autoconf/randpass 33`
7258    else
7259       key=`openssl rand -base64 33`
7260    fi
7261    dir_password=$key
7262 fi
7263
7264 fd_password=
7265
7266 # Check whether --with-fd-password or --without-fd-password was given.
7267 if test "${with_fd_password+set}" = set; then
7268   withval="$with_fd_password"
7269
7270        if test "x$withval" != "xno" ; then
7271            fd_password=$withval
7272        fi
7273
7274
7275 fi;
7276
7277 if test "x$fd_password" = "x" ; then
7278    if test "x$OPENSSL" = "xnone" ; then
7279 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7280       key=`autoconf/randpass 37`
7281    else
7282       key=`openssl rand -base64 33`
7283    fi
7284    fd_password=$key
7285 fi
7286
7287 sd_password=
7288
7289 # Check whether --with-sd-password or --without-sd-password was given.
7290 if test "${with_sd_password+set}" = set; then
7291   withval="$with_sd_password"
7292
7293        if test "x$withval" != "xno" ; then
7294            sd_password=$withval
7295        fi
7296
7297
7298 fi;
7299
7300 if test "x$sd_password" = "x" ; then
7301    if test "x$OPENSSL" = "xnone" ; then
7302 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7303       key=`autoconf/randpass 41`
7304    else
7305       key=`openssl rand -base64 33`
7306    fi
7307    sd_password=$key
7308 fi
7309
7310 mon_dir_password=
7311
7312 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7313 if test "${with_mon_dir_password+set}" = set; then
7314   withval="$with_mon_dir_password"
7315
7316        if test "x$withval" != "xno" ; then
7317            mon_dir_password=$withval
7318        fi
7319
7320
7321 fi;
7322
7323 if test "x$mon_dir_password" = "x" ; then
7324    if test "x$OPENSSL" = "xnone" ; then
7325 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7326       key=`autoconf/randpass 33`
7327    else
7328       key=`openssl rand -base64 33`
7329    fi
7330    mon_dir_password=$key
7331 fi
7332
7333 mon_fd_password=
7334
7335 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7336 if test "${with_mon_fd_password+set}" = set; then
7337   withval="$with_mon_fd_password"
7338
7339        if test "x$withval" != "xno" ; then
7340            mon_fd_password=$withval
7341        fi
7342
7343
7344 fi;
7345
7346 if test "x$mon_fd_password" = "x" ; then
7347    if test "x$OPENSSL" = "xnone" ; then
7348 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7349       key=`autoconf/randpass 37`
7350    else
7351       key=`openssl rand -base64 33`
7352    fi
7353    mon_fd_password=$key
7354 fi
7355
7356 mon_sd_password=
7357
7358 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7359 if test "${with_mon_sd_password+set}" = set; then
7360   withval="$with_mon_sd_password"
7361
7362        if test "x$withval" != "xno" ; then
7363            mon_sd_password=$withval
7364        fi
7365
7366
7367 fi;
7368
7369 if test "x$mon_sd_password" = "x" ; then
7370    if test "x$OPENSSL" = "xnone" ; then
7371 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7372       key=`autoconf/randpass 41`
7373    else
7374       key=`openssl rand -base64 33`
7375    fi
7376    mon_sd_password=$key
7377 fi
7378
7379
7380
7381
7382
7383
7384
7385
7386 #
7387 # Handle users and groups for each daemon
7388 #
7389 dir_user=
7390
7391 # Check whether --with-dir_user or --without-dir_user was given.
7392 if test "${with_dir_user+set}" = set; then
7393   withval="$with_dir_user"
7394
7395         if test "x$withval" != "x" ; then
7396              dir_user=$withval
7397         fi
7398
7399
7400 fi;
7401
7402 dir_group=
7403
7404 # Check whether --with-dir_group or --without-dir_group was given.
7405 if test "${with_dir_group+set}" = set; then
7406   withval="$with_dir_group"
7407
7408         if test "x$withval" != "x" ; then
7409              dir_group=$withval
7410         fi
7411
7412
7413 fi;
7414
7415 sd_user=
7416
7417 # Check whether --with-sd_user or --without-sd_user was given.
7418 if test "${with_sd_user+set}" = set; then
7419   withval="$with_sd_user"
7420
7421         if test "x$withval" != "x" ; then
7422              sd_user=$withval
7423         fi
7424
7425
7426 fi;
7427
7428 sd_group=
7429
7430 # Check whether --with-sd_group or --without-sd_group was given.
7431 if test "${with_sd_group+set}" = set; then
7432   withval="$with_sd_group"
7433
7434         if test "x$withval" != "x" ; then
7435              sd_group=$withval
7436         fi
7437
7438
7439 fi;
7440
7441 fd_user=
7442
7443 # Check whether --with-fd_user or --without-fd_user was given.
7444 if test "${with_fd_user+set}" = set; then
7445   withval="$with_fd_user"
7446
7447         if test "x$withval" != "x" ; then
7448              fd_user=$withval
7449         fi
7450
7451
7452 fi;
7453
7454 fd_group=
7455
7456 # Check whether --with-fd_group or --without-fd_group was given.
7457 if test "${with_fd_group+set}" = set; then
7458   withval="$with_fd_group"
7459
7460         if test "x$withval" != "x" ; then
7461              fd_group=$withval
7462         fi
7463
7464
7465 fi;
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477 #
7478 # allow setting default executable permissions
7479 #
7480 SBINPERM=0754
7481
7482 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7483 if test "${with_sbin_perm+set}" = set; then
7484   withval="$with_sbin_perm"
7485
7486         if test "x$withval" != "x" ; then
7487             SBINPERM=$withval
7488         fi
7489
7490
7491 fi;
7492
7493
7494
7495 # ------------------------------------------------
7496 # Bacula check for various SQL database engines
7497 # ------------------------------------------------
7498
7499 db_found=no
7500 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7501 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7502
7503 # Check whether --with-postgresql or --without-postgresql was given.
7504 if test "${with_postgresql+set}" = set; then
7505   withval="$with_postgresql"
7506
7507   if test "$withval" != "no"; then
7508       if test "$db_found" = "yes"; then
7509           echo "$as_me:$LINENO: result: error" >&5
7510 echo "${ECHO_T}error" >&6
7511           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7512 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7513    { (exit 1); exit 1; }; };
7514       fi
7515       if test "$withval" = "yes"; then
7516           if test -f /usr/local/include/libpq-fe.h; then
7517               POSTGRESQL_INCDIR=/usr/local/include
7518               POSTGRESQL_LIBDIR=/usr/local/lib
7519               POSTGRESQL_BINDIR=/usr/local/bin
7520           elif test -f /usr/include/libpq-fe.h; then
7521               POSTGRESQL_INCDIR=/usr/include
7522               POSTGRESQL_LIBDIR=/usr/lib
7523               POSTGRESQL_BINDIR=/usr/bin
7524           elif test -f /usr/include/pgsql/libpq-fe.h; then
7525               POSTGRESQL_INCDIR=/usr/include/pgsql
7526               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7527               POSTGRESQL_BINDIR=/usr/bin
7528           elif test -f /usr/include/postgresql/libpq-fe.h; then
7529               POSTGRESQL_INCDIR=/usr/include/postgresql
7530               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7531               POSTGRESQL_BINDIR=/usr/bin
7532           else
7533               echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6
7535               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7536 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7537    { (exit 1); exit 1; }; }
7538           fi
7539       elif test -f $withval/include/libpq-fe.h; then
7540           POSTGRESQL_INCDIR=$withval/include
7541           POSTGRESQL_LIBDIR=$withval/lib
7542           POSTGRESQL_BINDIR=$withval/bin
7543       else
7544           echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6
7546           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7547 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7548    { (exit 1); exit 1; }; }
7549       fi
7550       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7551       echo "$as_me:$LINENO: checking for crypt" >&5
7552 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7553 if test "${ac_cv_func_crypt+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556   cat >conftest.$ac_ext <<_ACEOF
7557 #line $LINENO "configure"
7558 /* confdefs.h.  */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h.  */
7563 /* System header to define __stub macros and hopefully few prototypes,
7564     which can conflict with char crypt (); below.
7565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7566     <limits.h> exists even on freestanding compilers.  */
7567 #ifdef __STDC__
7568 # include <limits.h>
7569 #else
7570 # include <assert.h>
7571 #endif
7572 /* Override any gcc2 internal prototype to avoid an error.  */
7573 #ifdef __cplusplus
7574 extern "C"
7575 {
7576 #endif
7577 /* We use char because int might match the return type of a gcc2
7578    builtin and then its argument prototype would still apply.  */
7579 char crypt ();
7580 /* The GNU C library defines this for functions which it implements
7581     to always fail with ENOSYS.  Some functions are actually named
7582     something starting with __ and the normal name is an alias.  */
7583 #if defined (__stub_crypt) || defined (__stub___crypt)
7584 choke me
7585 #else
7586 char (*f) () = crypt;
7587 #endif
7588 #ifdef __cplusplus
7589 }
7590 #endif
7591
7592 int
7593 main ()
7594 {
7595 return f != crypt;
7596   ;
7597   return 0;
7598 }
7599 _ACEOF
7600 rm -f conftest.$ac_objext conftest$ac_exeext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7602   (eval $ac_link) 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); } &&
7606          { ac_try='test -s conftest$ac_exeext'
7607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608   (eval $ac_try) 2>&5
7609   ac_status=$?
7610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611   (exit $ac_status); }; }; then
7612   ac_cv_func_crypt=yes
7613 else
7614   echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7616
7617 ac_cv_func_crypt=no
7618 fi
7619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7620 fi
7621 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7622 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7623 if test $ac_cv_func_crypt = yes; then
7624   :
7625 else
7626   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7627 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7628 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   ac_check_lib_save_LIBS=$LIBS
7632 LIBS="-lcrypt  $LIBS"
7633 cat >conftest.$ac_ext <<_ACEOF
7634 #line $LINENO "configure"
7635 /* confdefs.h.  */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h.  */
7640
7641 /* Override any gcc2 internal prototype to avoid an error.  */
7642 #ifdef __cplusplus
7643 extern "C"
7644 #endif
7645 /* We use char because int might match the return type of a gcc2
7646    builtin and then its argument prototype would still apply.  */
7647 char crypt ();
7648 int
7649 main ()
7650 {
7651 crypt ();
7652   ;
7653   return 0;
7654 }
7655 _ACEOF
7656 rm -f conftest.$ac_objext conftest$ac_exeext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658   (eval $ac_link) 2>&5
7659   ac_status=$?
7660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661   (exit $ac_status); } &&
7662          { ac_try='test -s conftest$ac_exeext'
7663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664   (eval $ac_try) 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); }; }; then
7668   ac_cv_lib_crypt_crypt=yes
7669 else
7670   echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7672
7673 ac_cv_lib_crypt_crypt=no
7674 fi
7675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7676 LIBS=$ac_check_lib_save_LIBS
7677 fi
7678 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7679 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7680 if test $ac_cv_lib_crypt_crypt = yes; then
7681   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7682 fi
7683
7684 fi
7685
7686       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7687       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7688       SQL_BINDIR=$POSTGRESQL_BINDIR
7689       cat >>confdefs.h <<\_ACEOF
7690 #define HAVE_POSTGRESQL 1
7691 _ACEOF
7692
7693       echo "$as_me:$LINENO: result: yes" >&5
7694 echo "${ECHO_T}yes" >&6
7695       db_found=yes
7696       support_postgresql=yes
7697       db_name=PostgreSQL
7698       DB_NAME=postgresql
7699   else
7700       echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6
7702   fi
7703
7704 else
7705
7706   echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6
7708
7709 fi;
7710
7711
7712
7713
7714
7715
7716
7717 db_found=no
7718 echo "$as_me:$LINENO: checking for MySQL support" >&5
7719 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7720
7721 # Check whether --with-mysql or --without-mysql was given.
7722 if test "${with_mysql+set}" = set; then
7723   withval="$with_mysql"
7724
7725   if test "$withval" != "no"; then
7726         if test "$withval" = "yes"; then
7727                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7728                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7729                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7730                         MYSQL_BINDIR=/usr/local/mysql/bin
7731                 elif test -f /usr/include/mysql/mysql.h; then
7732                         MYSQL_INCDIR=/usr/include/mysql
7733                         MYSQL_LIBDIR=/usr/lib/mysql
7734                         MYSQL_BINDIR=/usr/bin
7735                 elif test -f /usr/include/mysql.h; then
7736                         MYSQL_INCDIR=/usr/include
7737                         MYSQL_LIBDIR=/usr/lib
7738                         MYSQL_BINDIR=/usr/bin
7739                 elif test -f /usr/local/include/mysql/mysql.h; then
7740                         MYSQL_INCDIR=/usr/local/include/mysql
7741                         MYSQL_LIBDIR=/usr/local/lib/mysql
7742                         MYSQL_BINDIR=/usr/local/bin
7743                 elif test -f /usr/local/include/mysql.h; then
7744                         MYSQL_INCDIR=/usr/local/include
7745                         MYSQL_LIBDIR=/usr/local/lib
7746                         MYSQL_BINDIR=/usr/local/bin
7747                 else
7748                    echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6
7750                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7751 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7752    { (exit 1); exit 1; }; }
7753                 fi
7754         else
7755                 if test -f $withval/include/mysql/mysql.h; then
7756                         MYSQL_INCDIR=$withval/include/mysql
7757                         MYSQL_LIBDIR=$withval/lib/mysql
7758                         MYSQL_BINDIR=$withval/bin
7759                 elif test -f $withval/include/mysql.h; then
7760                         MYSQL_INCDIR=$withval/include
7761                         MYSQL_LIBDIR=$withval/lib
7762                         MYSQL_BINDIR=$withval/bin
7763                 else
7764                    echo "$as_me:$LINENO: result: no" >&5
7765 echo "${ECHO_T}no" >&6
7766                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7767 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7768    { (exit 1); exit 1; }; }
7769                 fi
7770         fi
7771     SQL_INCLUDE=-I$MYSQL_INCDIR
7772     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7773        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7774        cat >>confdefs.h <<\_ACEOF
7775 #define HAVE_THREAD_SAFE_MYSQL 1
7776 _ACEOF
7777
7778     else
7779        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7780     fi
7781     SQL_BINDIR=$MYSQL_BINDIR
7782
7783     cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_MYSQL 1
7785 _ACEOF
7786
7787     echo "$as_me:$LINENO: result: yes" >&5
7788 echo "${ECHO_T}yes" >&6
7789     db_found=yes
7790     support_mysql=yes
7791     db_name=MySQL
7792     DB_NAME=mysql
7793
7794   else
7795         echo "$as_me:$LINENO: result: no" >&5
7796 echo "${ECHO_T}no" >&6
7797   fi
7798
7799
7800 fi;
7801
7802
7803 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7804 if test "${with_embedded_mysql+set}" = set; then
7805   withval="$with_embedded_mysql"
7806
7807   if test "$withval" != "no"; then
7808         if test "$withval" = "yes"; then
7809                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7810                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7811                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7812                         MYSQL_BINDIR=/usr/local/mysql/bin
7813                 elif test -f /usr/include/mysql/mysql.h; then
7814                         MYSQL_INCDIR=/usr/include/mysql
7815                         MYSQL_LIBDIR=/usr/lib/mysql
7816                         MYSQL_BINDIR=/usr/bin
7817                 elif test -f /usr/include/mysql.h; then
7818                         MYSQL_INCDIR=/usr/include
7819                         MYSQL_LIBDIR=/usr/lib
7820                         MYSQL_BINDIR=/usr/bin
7821                 elif test -f /usr/local/include/mysql/mysql.h; then
7822                         MYSQL_INCDIR=/usr/local/include/mysql
7823                         MYSQL_LIBDIR=/usr/local/lib/mysql
7824                         MYSQL_BINDIR=/usr/local/bin
7825                 elif test -f /usr/local/include/mysql.h; then
7826                         MYSQL_INCDIR=/usr/local/include
7827                         MYSQL_LIBDIR=/usr/local/lib
7828                         MYSQL_BINDIR=/usr/local/bin
7829                 else
7830                    echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6
7832                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7833 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7834    { (exit 1); exit 1; }; }
7835                 fi
7836         else
7837                 if test -f $withval/include/mysql/mysql.h; then
7838                         MYSQL_INCDIR=$withval/include/mysql
7839                         MYSQL_LIBDIR=$withval/lib/mysql
7840                         MYSQL_BINDIR=$withval/bin
7841                 elif test -f $withval/include/mysql.h; then
7842                         MYSQL_INCDIR=$withval/include
7843                         MYSQL_LIBDIR=$withval/lib
7844                         MYSQL_BINDIR=$withval/bin
7845                 else
7846                    echo "$as_me:$LINENO: result: no" >&5
7847 echo "${ECHO_T}no" >&6
7848                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7849 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7850    { (exit 1); exit 1; }; }
7851                 fi
7852         fi
7853     SQL_INCLUDE=-I$MYSQL_INCDIR
7854     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7855     SQL_BINDIR=$MYSQL_BINDIR
7856
7857     cat >>confdefs.h <<\_ACEOF
7858 #define HAVE_MYSQL 1
7859 _ACEOF
7860
7861     cat >>confdefs.h <<\_ACEOF
7862 #define HAVE_EMBEDDED_MYSQL 1
7863 _ACEOF
7864
7865     echo "$as_me:$LINENO: result: yes" >&5
7866 echo "${ECHO_T}yes" >&6
7867     db_found=yes
7868     support_mysql=yes
7869     db_name=MySQL
7870     DB_NAME=mysql
7871
7872   else
7873         echo "$as_me:$LINENO: result: no" >&5
7874 echo "${ECHO_T}no" >&6
7875   fi
7876
7877
7878 fi;
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888 db_found=no
7889 echo "$as_me:$LINENO: checking for SQLite support" >&5
7890 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7891
7892 # Check whether --with-sqlite or --without-sqlite was given.
7893 if test "${with_sqlite+set}" = set; then
7894   withval="$with_sqlite"
7895
7896   if test "$withval" != "no"; then
7897      if test "$withval" = "yes"; then
7898         if test -f /usr/local/include/sqlite.h; then
7899            SQLITE_INCDIR=/usr/local/include
7900            SQLITE_LIBDIR=/usr/local/lib
7901            SQLITE_BINDIR=/usr/local/bin
7902         elif test -f /usr/include/sqlite.h; then
7903            SQLITE_INCDIR=/usr/include
7904            SQLITE_LIBDIR=/usr/lib
7905            SQLITE_BINDIR=/usr/bin
7906         elif test -f $prefix/include/sqlite.h; then
7907            SQLITE_INCDIR=$prefix/include
7908            SQLITE_LIBDIR=$prefix/lib
7909            SQLITE_BINDIR=$prefix/bin
7910         else
7911            echo "$as_me:$LINENO: result: no" >&5
7912 echo "${ECHO_T}no" >&6
7913            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7914 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7915    { (exit 1); exit 1; }; }
7916         fi
7917      else
7918         if test -f $withval/sqlite.h; then
7919            SQLITE_INCDIR=$withval
7920            SQLITE_LIBDIR=$withval
7921            SQLITE_BINDIR=$withval
7922         elif test -f $withval/include/sqlite.h; then
7923            SQLITE_INCDIR=$withval/include
7924            SQLITE_LIBDIR=$withval/lib
7925            SQLITE_BINDIR=$withval/bin
7926         else
7927            echo "$as_me:$LINENO: result: no" >&5
7928 echo "${ECHO_T}no" >&6
7929            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7930 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7931    { (exit 1); exit 1; }; }
7932         fi
7933      fi
7934      SQL_INCLUDE=-I$SQLITE_INCDIR
7935      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7936      SQL_BINDIR=$SQLITE_BINDIR
7937
7938      cat >>confdefs.h <<\_ACEOF
7939 #define HAVE_SQLITE 1
7940 _ACEOF
7941
7942      echo "$as_me:$LINENO: result: yes" >&5
7943 echo "${ECHO_T}yes" >&6
7944      db_found=yes
7945      support_sqlite=yes
7946      db_name=SQLite
7947      DB_NAME=sqlite
7948
7949   else
7950      echo "$as_me:$LINENO: result: no" >&5
7951 echo "${ECHO_T}no" >&6
7952   fi
7953
7954 else
7955
7956   echo "$as_me:$LINENO: result: no" >&5
7957 echo "${ECHO_T}no" >&6
7958
7959 fi;
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969 cat >>confdefs.h <<\_ACEOF
7970 #define PROTOTYPES 1
7971 _ACEOF
7972
7973
7974 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7975     if test -z "$CCOPTS"; then
7976         CCOPTS='-g -O2 -Wall'
7977     fi
7978     CFLAGS="$CCOPTS"
7979 fi
7980
7981
7982
7983
7984 largefile_support="no"
7985
7986    # Check whether --enable-largefile or --disable-largefile was given.
7987 if test "${enable_largefile+set}" = set; then
7988   enableval="$enable_largefile"
7989
7990 fi;
7991    if test "$enable_largefile" != no; then
7992      if test -n "$ac_tool_prefix"; then
7993   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7994 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7995 echo "$as_me:$LINENO: checking for $ac_word" >&5
7996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7997 if test "${ac_cv_prog_GETCONF+set}" = set; then
7998   echo $ECHO_N "(cached) $ECHO_C" >&6
7999 else
8000   if test -n "$GETCONF"; then
8001   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8002 else
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004 for as_dir in $PATH
8005 do
8006   IFS=$as_save_IFS
8007   test -z "$as_dir" && as_dir=.
8008   for ac_exec_ext in '' $ac_executable_extensions; do
8009   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8010     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8012     break 2
8013   fi
8014 done
8015 done
8016
8017 fi
8018 fi
8019 GETCONF=$ac_cv_prog_GETCONF
8020 if test -n "$GETCONF"; then
8021   echo "$as_me:$LINENO: result: $GETCONF" >&5
8022 echo "${ECHO_T}$GETCONF" >&6
8023 else
8024   echo "$as_me:$LINENO: result: no" >&5
8025 echo "${ECHO_T}no" >&6
8026 fi
8027
8028 fi
8029 if test -z "$ac_cv_prog_GETCONF"; then
8030   ac_ct_GETCONF=$GETCONF
8031   # Extract the first word of "getconf", so it can be a program name with args.
8032 set dummy getconf; ac_word=$2
8033 echo "$as_me:$LINENO: checking for $ac_word" >&5
8034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8035 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8036   echo $ECHO_N "(cached) $ECHO_C" >&6
8037 else
8038   if test -n "$ac_ct_GETCONF"; then
8039   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8040 else
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8043 do
8044   IFS=$as_save_IFS
8045   test -z "$as_dir" && as_dir=.
8046   for ac_exec_ext in '' $ac_executable_extensions; do
8047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048     ac_cv_prog_ac_ct_GETCONF="getconf"
8049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8050     break 2
8051   fi
8052 done
8053 done
8054
8055 fi
8056 fi
8057 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8058 if test -n "$ac_ct_GETCONF"; then
8059   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8060 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8061 else
8062   echo "$as_me:$LINENO: result: no" >&5
8063 echo "${ECHO_T}no" >&6
8064 fi
8065
8066   GETCONF=$ac_ct_GETCONF
8067 else
8068   GETCONF="$ac_cv_prog_GETCONF"
8069 fi
8070
8071      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8072 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8073 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8074   echo $ECHO_N "(cached) $ECHO_C" >&6
8075 else
8076   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8077         ac_cv_sys_largefile_CFLAGS=no
8078         case "$host_os" in
8079            # IRIX 6.2 and later require cc -n32.
8080            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8081              if test "$GCC" != yes; then
8082                ac_cv_sys_largefile_CFLAGS=-n32
8083              fi
8084              ac_save_CC="$CC"
8085              CC="$CC $ac_cv_sys_largefile_CFLAGS"
8086              cat >conftest.$ac_ext <<_ACEOF
8087 #line $LINENO "configure"
8088 /* confdefs.h.  */
8089 _ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h.  */
8093
8094 int
8095 main ()
8096 {
8097
8098   ;
8099   return 0;
8100 }
8101 _ACEOF
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104   (eval $ac_link) 2>&5
8105   ac_status=$?
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); } &&
8108          { ac_try='test -s conftest$ac_exeext'
8109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110   (eval $ac_try) 2>&5
8111   ac_status=$?
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); }; }; then
8114   :
8115 else
8116   echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8118
8119 ac_cv_sys_largefile_CFLAGS=no
8120 fi
8121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8122              CC="$ac_save_CC"
8123            esac
8124       }
8125 fi
8126 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8127 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8128      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8129 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8130 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8131   echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8134         ac_cv_sys_largefile_LDFLAGS=no
8135
8136       }
8137 fi
8138 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8139 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8140      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8141 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8142 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8143   echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8146         ac_cv_sys_largefile_LIBS=no
8147
8148       }
8149 fi
8150 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8151 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8152
8153      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8154        case "$ac_flag" in
8155        no) ;;
8156        -D_FILE_OFFSET_BITS=*) ;;
8157        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8158        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8159        -D?* | -I?*)
8160          case "$ac_flag" in
8161    no) ;;
8162    ?*)
8163      case "$CPPFLAGS" in
8164      '') CPPFLAGS="$ac_flag" ;;
8165      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8166      esac ;;
8167    esac ;;
8168        *)
8169          case "$ac_flag" in
8170    no) ;;
8171    ?*)
8172      case "$CFLAGS" in
8173      '') CFLAGS="$ac_flag" ;;
8174      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8175      esac ;;
8176    esac ;;
8177        esac
8178      done
8179      case "$ac_cv_sys_largefile_LDFLAGS" in
8180    no) ;;
8181    ?*)
8182      case "$LDFLAGS" in
8183      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8184      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8185      esac ;;
8186    esac
8187      case "$ac_cv_sys_largefile_LIBS" in
8188    no) ;;
8189    ?*)
8190      case "$LIBS" in
8191      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8192      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8193      esac ;;
8194    esac
8195      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8196 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8197 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8198   echo $ECHO_N "(cached) $ECHO_C" >&6
8199 else
8200   ac_cv_sys_file_offset_bits=no
8201       case "$host_os" in
8202         # HP-UX 10.20 and later
8203         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8204           ac_cv_sys_file_offset_bits=64 ;;
8205         esac
8206       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8207         case "$ac_flag" in
8208         -D_FILE_OFFSET_BITS)
8209           ac_cv_sys_file_offset_bits=1 ;;
8210         -D_FILE_OFFSET_BITS=*)
8211           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8212         esac
8213       done
8214
8215 fi
8216 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8217 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8218    if test "$ac_cv_sys_file_offset_bits" != no; then
8219
8220 cat >>confdefs.h <<_ACEOF
8221 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8222 _ACEOF
8223
8224    fi
8225      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8226 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8227 if test "${ac_cv_sys_largefile_source+set}" = set; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   ac_cv_sys_largefile_source=no
8231       case "$host_os" in
8232         # HP-UX 10.20 and later
8233         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8234           ac_cv_sys_largefile_source=1 ;;
8235         esac
8236       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8237         case "$ac_flag" in
8238         -D_LARGEFILE_SOURCE)
8239           ac_cv_sys_largefile_source=1 ;;
8240         -D_LARGEFILE_SOURCE=*)
8241           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8242         esac
8243       done
8244
8245 fi
8246 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8247 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8248    if test "$ac_cv_sys_largefile_source" != no; then
8249
8250 cat >>confdefs.h <<_ACEOF
8251 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8252 _ACEOF
8253
8254    fi
8255      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8256 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8257 if test "${ac_cv_sys_large_files+set}" = set; then
8258   echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260   ac_cv_sys_large_files=no
8261       case "$host_os" in
8262         # AIX 4.2 and later
8263         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
8264           ac_cv_sys_large_files=1 ;;
8265         esac
8266       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8267         case "$ac_flag" in
8268         -D_LARGE_FILES)
8269           ac_cv_sys_large_files=1 ;;
8270         -D_LARGE_FILES=*)
8271           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8272         esac
8273       done
8274
8275 fi
8276 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8277 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8278    if test "$ac_cv_sys_large_files" != no; then
8279
8280 cat >>confdefs.h <<_ACEOF
8281 #define _LARGE_FILES $ac_cv_sys_large_files
8282 _ACEOF
8283
8284    fi
8285    fi
8286
8287
8288
8289 echo "$as_me:$LINENO: checking for X" >&5
8290 echo $ECHO_N "checking for X... $ECHO_C" >&6
8291
8292
8293 # Check whether --with-x or --without-x was given.
8294 if test "${with_x+set}" = set; then
8295   withval="$with_x"
8296
8297 fi;
8298 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8299 if test "x$with_x" = xno; then
8300   # The user explicitly disabled X.
8301   have_x=disabled
8302 else
8303   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8304     # Both variables are already set.
8305     have_x=yes
8306   else
8307     if test "${ac_cv_have_x+set}" = set; then
8308   echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310   # One or both of the vars are not set, and there is no cached value.
8311 ac_x_includes=no ac_x_libraries=no
8312 rm -fr conftest.dir
8313 if mkdir conftest.dir; then
8314   cd conftest.dir
8315   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8316   cat >Imakefile <<'_ACEOF'
8317 acfindx:
8318         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8319 _ACEOF
8320   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8321     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8322     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8323     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8324     for ac_extension in a so sl; do
8325       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8326          test -f $ac_im_libdir/libX11.$ac_extension; then
8327         ac_im_usrlibdir=$ac_im_libdir; break
8328       fi
8329     done
8330     # Screen out bogus values from the imake configuration.  They are
8331     # bogus both because they are the default anyway, and because
8332     # using them would break gcc on systems where it needs fixed includes.
8333     case $ac_im_incroot in
8334         /usr/include) ;;
8335         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8336     esac
8337     case $ac_im_usrlibdir in
8338         /usr/lib | /lib) ;;
8339         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8340     esac
8341   fi
8342   cd ..
8343   rm -fr conftest.dir
8344 fi
8345
8346 # Standard set of common directories for X headers.
8347 # Check X11 before X11Rn because it is often a symlink to the current release.
8348 ac_x_header_dirs='
8349 /usr/X11/include
8350 /usr/X11R6/include
8351 /usr/X11R5/include
8352 /usr/X11R4/include
8353
8354 /usr/include/X11
8355 /usr/include/X11R6
8356 /usr/include/X11R5
8357 /usr/include/X11R4
8358
8359 /usr/local/X11/include
8360 /usr/local/X11R6/include
8361 /usr/local/X11R5/include
8362 /usr/local/X11R4/include
8363
8364 /usr/local/include/X11
8365 /usr/local/include/X11R6
8366 /usr/local/include/X11R5
8367 /usr/local/include/X11R4
8368
8369 /usr/X386/include
8370 /usr/x386/include
8371 /usr/XFree86/include/X11
8372
8373 /usr/include
8374 /usr/local/include
8375 /usr/unsupported/include
8376 /usr/athena/include
8377 /usr/local/x11r5/include
8378 /usr/lpp/Xamples/include
8379
8380 /usr/openwin/include
8381 /usr/openwin/share/include'
8382
8383 if test "$ac_x_includes" = no; then
8384   # Guess where to find include files, by looking for Intrinsic.h.
8385   # First, try using that file with no special directory specified.
8386   cat >conftest.$ac_ext <<_ACEOF
8387 #line $LINENO "configure"
8388 /* confdefs.h.  */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h.  */
8393 #include <X11/Intrinsic.h>
8394 _ACEOF
8395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8396   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8397   ac_status=$?
8398   grep -v '^ *+' conftest.er1 >conftest.err
8399   rm -f conftest.er1
8400   cat conftest.err >&5
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); } >/dev/null; then
8403   if test -s conftest.err; then
8404     ac_cpp_err=$ac_c_preproc_warn_flag
8405   else
8406     ac_cpp_err=
8407   fi
8408 else
8409   ac_cpp_err=yes
8410 fi
8411 if test -z "$ac_cpp_err"; then
8412   # We can compile using X headers with no special include directory.
8413 ac_x_includes=
8414 else
8415   echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8417
8418   for ac_dir in $ac_x_header_dirs; do
8419   if test -r "$ac_dir/X11/Intrinsic.h"; then
8420     ac_x_includes=$ac_dir
8421     break
8422   fi
8423 done
8424 fi
8425 rm -f conftest.err conftest.$ac_ext
8426 fi # $ac_x_includes = no
8427
8428 if test "$ac_x_libraries" = no; then
8429   # Check for the libraries.
8430   # See if we find them without any special options.
8431   # Don't add to $LIBS permanently.
8432   ac_save_LIBS=$LIBS
8433   LIBS="-lXt $LIBS"
8434   cat >conftest.$ac_ext <<_ACEOF
8435 #line $LINENO "configure"
8436 /* confdefs.h.  */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h.  */
8441 #include <X11/Intrinsic.h>
8442 int
8443 main ()
8444 {
8445 XtMalloc (0)
8446   ;
8447   return 0;
8448 }
8449 _ACEOF
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8452   (eval $ac_link) 2>&5
8453   ac_status=$?
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); } &&
8456          { ac_try='test -s conftest$ac_exeext'
8457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458   (eval $ac_try) 2>&5
8459   ac_status=$?
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); }; }; then
8462   LIBS=$ac_save_LIBS
8463 # We can link X programs with no special library path.
8464 ac_x_libraries=
8465 else
8466   echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 LIBS=$ac_save_LIBS
8470 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8471 do
8472   # Don't even attempt the hair of trying to link an X program!
8473   for ac_extension in a so sl; do
8474     if test -r $ac_dir/libXt.$ac_extension; then
8475       ac_x_libraries=$ac_dir
8476       break 2
8477     fi
8478   done
8479 done
8480 fi
8481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8482 fi # $ac_x_libraries = no
8483
8484 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8485   # Didn't find X anywhere.  Cache the known absence of X.
8486   ac_cv_have_x="have_x=no"
8487 else
8488   # Record where we found X for the cache.
8489   ac_cv_have_x="have_x=yes \
8490                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8491 fi
8492 fi
8493
8494   fi
8495   eval "$ac_cv_have_x"
8496 fi # $with_x != no
8497
8498 if test "$have_x" != yes; then
8499   echo "$as_me:$LINENO: result: $have_x" >&5
8500 echo "${ECHO_T}$have_x" >&6
8501   no_x=yes
8502 else
8503   # If each of the values was on the command line, it overrides each guess.
8504   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8505   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8506   # Update the cache value to reflect the command line values.
8507   ac_cv_have_x="have_x=yes \
8508                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8509   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8510 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8511 fi
8512
8513 if test "$no_x" = yes; then
8514   # Not all programs may use this symbol, but it does not hurt to define it.
8515
8516 cat >>confdefs.h <<\_ACEOF
8517 #define X_DISPLAY_MISSING 1
8518 _ACEOF
8519
8520   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8521 else
8522   if test -n "$x_includes"; then
8523     X_CFLAGS="$X_CFLAGS -I$x_includes"
8524   fi
8525
8526   # It would also be nice to do this for all -L options, not just this one.
8527   if test -n "$x_libraries"; then
8528     X_LIBS="$X_LIBS -L$x_libraries"
8529     # For Solaris; some versions of Sun CC require a space after -R and
8530     # others require no space.  Words are not sufficient . . . .
8531     case `(uname -sr) 2>/dev/null` in
8532     "SunOS 5"*)
8533       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8534 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8535       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8536       cat >conftest.$ac_ext <<_ACEOF
8537 #line $LINENO "configure"
8538 /* confdefs.h.  */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h.  */
8543
8544 int
8545 main ()
8546 {
8547
8548   ;
8549   return 0;
8550 }
8551 _ACEOF
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554   (eval $ac_link) 2>&5
8555   ac_status=$?
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); } &&
8558          { ac_try='test -s conftest$ac_exeext'
8559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560   (eval $ac_try) 2>&5
8561   ac_status=$?
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }; }; then
8564   ac_R_nospace=yes
8565 else
8566   echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8568
8569 ac_R_nospace=no
8570 fi
8571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8572       if test $ac_R_nospace = yes; then
8573         echo "$as_me:$LINENO: result: no" >&5
8574 echo "${ECHO_T}no" >&6
8575         X_LIBS="$X_LIBS -R$x_libraries"
8576       else
8577         LIBS="$ac_xsave_LIBS -R $x_libraries"
8578         cat >conftest.$ac_ext <<_ACEOF
8579 #line $LINENO "configure"
8580 /* confdefs.h.  */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h.  */
8585
8586 int
8587 main ()
8588 {
8589
8590   ;
8591   return 0;
8592 }
8593 _ACEOF
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596   (eval $ac_link) 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); } &&
8600          { ac_try='test -s conftest$ac_exeext'
8601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602   (eval $ac_try) 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); }; }; then
8606   ac_R_space=yes
8607 else
8608   echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8610
8611 ac_R_space=no
8612 fi
8613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8614         if test $ac_R_space = yes; then
8615           echo "$as_me:$LINENO: result: yes" >&5
8616 echo "${ECHO_T}yes" >&6
8617           X_LIBS="$X_LIBS -R $x_libraries"
8618         else
8619           echo "$as_me:$LINENO: result: neither works" >&5
8620 echo "${ECHO_T}neither works" >&6
8621         fi
8622       fi
8623       LIBS=$ac_xsave_LIBS
8624     esac
8625   fi
8626
8627   # Check for system-dependent libraries X programs must link with.
8628   # Do this before checking for the system-independent R6 libraries
8629   # (-lICE), since we may need -lsocket or whatever for X linking.
8630
8631   if test "$ISC" = yes; then
8632     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8633   else
8634     # Martyn Johnson says this is needed for Ultrix, if the X
8635     # libraries were built with DECnet support.  And Karl Berry says
8636     # the Alpha needs dnet_stub (dnet does not exist).
8637     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8638     cat >conftest.$ac_ext <<_ACEOF
8639 #line $LINENO "configure"
8640 /* confdefs.h.  */
8641 _ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h.  */
8645
8646 /* Override any gcc2 internal prototype to avoid an error.  */
8647 #ifdef __cplusplus
8648 extern "C"
8649 #endif
8650 /* We use char because int might match the return type of a gcc2
8651    builtin and then its argument prototype would still apply.  */
8652 char XOpenDisplay ();
8653 int
8654 main ()
8655 {
8656 XOpenDisplay ();
8657   ;
8658   return 0;
8659 }
8660 _ACEOF
8661 rm -f conftest.$ac_objext conftest$ac_exeext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663   (eval $ac_link) 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); } &&
8667          { ac_try='test -s conftest$ac_exeext'
8668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669   (eval $ac_try) 2>&5
8670   ac_status=$?
8671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672   (exit $ac_status); }; }; then
8673   :
8674 else
8675   echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8677
8678 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8679 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8680 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8681   echo $ECHO_N "(cached) $ECHO_C" >&6
8682 else
8683   ac_check_lib_save_LIBS=$LIBS
8684 LIBS="-ldnet  $LIBS"
8685 cat >conftest.$ac_ext <<_ACEOF
8686 #line $LINENO "configure"
8687 /* confdefs.h.  */
8688 _ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h.  */
8692
8693 /* Override any gcc2 internal prototype to avoid an error.  */
8694 #ifdef __cplusplus
8695 extern "C"
8696 #endif
8697 /* We use char because int might match the return type of a gcc2
8698    builtin and then its argument prototype would still apply.  */
8699 char dnet_ntoa ();
8700 int
8701 main ()
8702 {
8703 dnet_ntoa ();
8704   ;
8705   return 0;
8706 }
8707 _ACEOF
8708 rm -f conftest.$ac_objext conftest$ac_exeext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710   (eval $ac_link) 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); } &&
8714          { ac_try='test -s conftest$ac_exeext'
8715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716   (eval $ac_try) 2>&5
8717   ac_status=$?
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); }; }; then
8720   ac_cv_lib_dnet_dnet_ntoa=yes
8721 else
8722   echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8724
8725 ac_cv_lib_dnet_dnet_ntoa=no
8726 fi
8727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8728 LIBS=$ac_check_lib_save_LIBS
8729 fi
8730 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8731 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8732 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8733   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8734 fi
8735
8736     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8737       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8738 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8739 if test "${ac_cv_lib_dnet_stub_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_stub  $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_stub_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_stub_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_stub_dnet_ntoa" >&5
8790 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8791 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8792   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8793 fi
8794
8795     fi
8796 fi
8797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8798     LIBS="$ac_xsave_LIBS"
8799
8800     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8801     # to get the SysV transport functions.
8802     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8803     # needs -lnsl.
8804     # The nsl library prevents programs from opening the X display
8805     # on Irix 5.2, according to T.E. Dickey.
8806     # The functions gethostbyname, getservbyname, and inet_addr are
8807     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8808     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8809 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8810 if test "${ac_cv_func_gethostbyname+set}" = set; then
8811   echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813   cat >conftest.$ac_ext <<_ACEOF
8814 #line $LINENO "configure"
8815 /* confdefs.h.  */
8816 _ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h.  */
8820 /* System header to define __stub macros and hopefully few prototypes,
8821     which can conflict with char gethostbyname (); below.
8822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8823     <limits.h> exists even on freestanding compilers.  */
8824 #ifdef __STDC__
8825 # include <limits.h>
8826 #else
8827 # include <assert.h>
8828 #endif
8829 /* Override any gcc2 internal prototype to avoid an error.  */
8830 #ifdef __cplusplus
8831 extern "C"
8832 {
8833 #endif
8834 /* We use char because int might match the return type of a gcc2
8835    builtin and then its argument prototype would still apply.  */
8836 char gethostbyname ();
8837 /* The GNU C library defines this for functions which it implements
8838     to always fail with ENOSYS.  Some functions are actually named
8839     something starting with __ and the normal name is an alias.  */
8840 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8841 choke me
8842 #else
8843 char (*f) () = gethostbyname;
8844 #endif
8845 #ifdef __cplusplus
8846 }
8847 #endif
8848
8849 int
8850 main ()
8851 {
8852 return f != gethostbyname;
8853   ;
8854   return 0;
8855 }
8856 _ACEOF
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859   (eval $ac_link) 2>&5
8860   ac_status=$?
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); } &&
8863          { ac_try='test -s conftest$ac_exeext'
8864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865   (eval $ac_try) 2>&5
8866   ac_status=$?
8867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); }; }; then
8869   ac_cv_func_gethostbyname=yes
8870 else
8871   echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874 ac_cv_func_gethostbyname=no
8875 fi
8876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8877 fi
8878 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8879 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8880
8881     if test $ac_cv_func_gethostbyname = no; then
8882       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8883 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8884 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8885   echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887   ac_check_lib_save_LIBS=$LIBS
8888 LIBS="-lnsl  $LIBS"
8889 cat >conftest.$ac_ext <<_ACEOF
8890 #line $LINENO "configure"
8891 /* confdefs.h.  */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h.  */
8896
8897 /* Override any gcc2 internal prototype to avoid an error.  */
8898 #ifdef __cplusplus
8899 extern "C"
8900 #endif
8901 /* We use char because int might match the return type of a gcc2
8902    builtin and then its argument prototype would still apply.  */
8903 char gethostbyname ();
8904 int
8905 main ()
8906 {
8907 gethostbyname ();
8908   ;
8909   return 0;
8910 }
8911 _ACEOF
8912 rm -f conftest.$ac_objext conftest$ac_exeext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8914   (eval $ac_link) 2>&5
8915   ac_status=$?
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); } &&
8918          { ac_try='test -s conftest$ac_exeext'
8919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920   (eval $ac_try) 2>&5
8921   ac_status=$?
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); }; }; then
8924   ac_cv_lib_nsl_gethostbyname=yes
8925 else
8926   echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929 ac_cv_lib_nsl_gethostbyname=no
8930 fi
8931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8932 LIBS=$ac_check_lib_save_LIBS
8933 fi
8934 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8935 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8936 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8937   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8938 fi
8939
8940       if test $ac_cv_lib_nsl_gethostbyname = no; then
8941         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8942 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8943 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8944   echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946   ac_check_lib_save_LIBS=$LIBS
8947 LIBS="-lbsd  $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_bsd_gethostbyname=yes
8984 else
8985   echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8987
8988 ac_cv_lib_bsd_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_bsd_gethostbyname" >&5
8994 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8995 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8996   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8997 fi
8998
8999       fi
9000     fi
9001
9002     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9003     # socket/setsockopt and other routines are undefined under SCO ODT
9004     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9005     # on later versions), says Simon Leinen: it contains gethostby*
9006     # variants that don't use the name server (or something).  -lsocket
9007     # must be given before -lnsl if both are needed.  We assume that
9008     # if connect needs -lnsl, so does gethostbyname.
9009     echo "$as_me:$LINENO: checking for connect" >&5
9010 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9011 if test "${ac_cv_func_connect+set}" = set; then
9012   echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014   cat >conftest.$ac_ext <<_ACEOF
9015 #line $LINENO "configure"
9016 /* confdefs.h.  */
9017 _ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h.  */
9021 /* System header to define __stub macros and hopefully few prototypes,
9022     which can conflict with char connect (); below.
9023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9024     <limits.h> exists even on freestanding compilers.  */
9025 #ifdef __STDC__
9026 # include <limits.h>
9027 #else
9028 # include <assert.h>
9029 #endif
9030 /* Override any gcc2 internal prototype to avoid an error.  */
9031 #ifdef __cplusplus
9032 extern "C"
9033 {
9034 #endif
9035 /* We use char because int might match the return type of a gcc2
9036    builtin and then its argument prototype would still apply.  */
9037 char connect ();
9038 /* The GNU C library defines this for functions which it implements
9039     to always fail with ENOSYS.  Some functions are actually named
9040     something starting with __ and the normal name is an alias.  */
9041 #if defined (__stub_connect) || defined (__stub___connect)
9042 choke me
9043 #else
9044 char (*f) () = connect;
9045 #endif
9046 #ifdef __cplusplus
9047 }
9048 #endif
9049
9050 int
9051 main ()
9052 {
9053 return f != connect;
9054   ;
9055   return 0;
9056 }
9057 _ACEOF
9058 rm -f conftest.$ac_objext conftest$ac_exeext
9059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9060   (eval $ac_link) 2>&5
9061   ac_status=$?
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); } &&
9064          { ac_try='test -s conftest$ac_exeext'
9065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066   (eval $ac_try) 2>&5
9067   ac_status=$?
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); }; }; then
9070   ac_cv_func_connect=yes
9071 else
9072   echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075 ac_cv_func_connect=no
9076 fi
9077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9078 fi
9079 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9080 echo "${ECHO_T}$ac_cv_func_connect" >&6
9081
9082     if test $ac_cv_func_connect = no; then
9083       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9084 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9085 if test "${ac_cv_lib_socket_connect+set}" = set; then
9086   echo $ECHO_N "(cached) $ECHO_C" >&6
9087 else
9088   ac_check_lib_save_LIBS=$LIBS
9089 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9090 cat >conftest.$ac_ext <<_ACEOF
9091 #line $LINENO "configure"
9092 /* confdefs.h.  */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h.  */
9097
9098 /* Override any gcc2 internal prototype to avoid an error.  */
9099 #ifdef __cplusplus
9100 extern "C"
9101 #endif
9102 /* We use char because int might match the return type of a gcc2
9103    builtin and then its argument prototype would still apply.  */
9104 char connect ();
9105 int
9106 main ()
9107 {
9108 connect ();
9109   ;
9110   return 0;
9111 }
9112 _ACEOF
9113 rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9115   (eval $ac_link) 2>&5
9116   ac_status=$?
9117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118   (exit $ac_status); } &&
9119          { ac_try='test -s conftest$ac_exeext'
9120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121   (eval $ac_try) 2>&5
9122   ac_status=$?
9123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124   (exit $ac_status); }; }; then
9125   ac_cv_lib_socket_connect=yes
9126 else
9127   echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9129
9130 ac_cv_lib_socket_connect=no
9131 fi
9132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9133 LIBS=$ac_check_lib_save_LIBS
9134 fi
9135 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9136 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9137 if test $ac_cv_lib_socket_connect = yes; then
9138   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9139 fi
9140
9141     fi
9142
9143     # Guillermo Gomez says -lposix is necessary on A/UX.
9144     echo "$as_me:$LINENO: checking for remove" >&5
9145 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9146 if test "${ac_cv_func_remove+set}" = set; then
9147   echo $ECHO_N "(cached) $ECHO_C" >&6
9148 else
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 /* System header to define __stub macros and hopefully few prototypes,
9157     which can conflict with char remove (); below.
9158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9159     <limits.h> exists even on freestanding compilers.  */
9160 #ifdef __STDC__
9161 # include <limits.h>
9162 #else
9163 # include <assert.h>
9164 #endif
9165 /* Override any gcc2 internal prototype to avoid an error.  */
9166 #ifdef __cplusplus
9167 extern "C"
9168 {
9169 #endif
9170 /* We use char because int might match the return type of a gcc2
9171    builtin and then its argument prototype would still apply.  */
9172 char remove ();
9173 /* The GNU C library defines this for functions which it implements
9174     to always fail with ENOSYS.  Some functions are actually named
9175     something starting with __ and the normal name is an alias.  */
9176 #if defined (__stub_remove) || defined (__stub___remove)
9177 choke me
9178 #else
9179 char (*f) () = remove;
9180 #endif
9181 #ifdef __cplusplus
9182 }
9183 #endif
9184
9185 int
9186 main ()
9187 {
9188 return f != remove;
9189   ;
9190   return 0;
9191 }
9192 _ACEOF
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195   (eval $ac_link) 2>&5
9196   ac_status=$?
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); } &&
9199          { ac_try='test -s conftest$ac_exeext'
9200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201   (eval $ac_try) 2>&5
9202   ac_status=$?
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   (exit $ac_status); }; }; then
9205   ac_cv_func_remove=yes
9206 else
9207   echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9209
9210 ac_cv_func_remove=no
9211 fi
9212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9213 fi
9214 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9215 echo "${ECHO_T}$ac_cv_func_remove" >&6
9216
9217     if test $ac_cv_func_remove = no; then
9218       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9219 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9220 if test "${ac_cv_lib_posix_remove+set}" = set; then
9221   echo $ECHO_N "(cached) $ECHO_C" >&6
9222 else
9223   ac_check_lib_save_LIBS=$LIBS
9224 LIBS="-lposix  $LIBS"
9225 cat >conftest.$ac_ext <<_ACEOF
9226 #line $LINENO "configure"
9227 /* confdefs.h.  */
9228 _ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h.  */
9232
9233 /* Override any gcc2 internal prototype to avoid an error.  */
9234 #ifdef __cplusplus
9235 extern "C"
9236 #endif
9237 /* We use char because int might match the return type of a gcc2
9238    builtin and then its argument prototype would still apply.  */
9239 char remove ();
9240 int
9241 main ()
9242 {
9243 remove ();
9244   ;
9245   return 0;
9246 }
9247 _ACEOF
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250   (eval $ac_link) 2>&5
9251   ac_status=$?
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); } &&
9254          { ac_try='test -s conftest$ac_exeext'
9255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256   (eval $ac_try) 2>&5
9257   ac_status=$?
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); }; }; then
9260   ac_cv_lib_posix_remove=yes
9261 else
9262   echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9264
9265 ac_cv_lib_posix_remove=no
9266 fi
9267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9268 LIBS=$ac_check_lib_save_LIBS
9269 fi
9270 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9271 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9272 if test $ac_cv_lib_posix_remove = yes; then
9273   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9274 fi
9275
9276     fi
9277
9278     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9279     echo "$as_me:$LINENO: checking for shmat" >&5
9280 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9281 if test "${ac_cv_func_shmat+set}" = set; then
9282   echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
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 /* System header to define __stub macros and hopefully few prototypes,
9292     which can conflict with char shmat (); below.
9293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9294     <limits.h> exists even on freestanding compilers.  */
9295 #ifdef __STDC__
9296 # include <limits.h>
9297 #else
9298 # include <assert.h>
9299 #endif
9300 /* Override any gcc2 internal prototype to avoid an error.  */
9301 #ifdef __cplusplus
9302 extern "C"
9303 {
9304 #endif
9305 /* We use char because int might match the return type of a gcc2
9306    builtin and then its argument prototype would still apply.  */
9307 char shmat ();
9308 /* The GNU C library defines this for functions which it implements
9309     to always fail with ENOSYS.  Some functions are actually named
9310     something starting with __ and the normal name is an alias.  */
9311 #if defined (__stub_shmat) || defined (__stub___shmat)
9312 choke me
9313 #else
9314 char (*f) () = shmat;
9315 #endif
9316 #ifdef __cplusplus
9317 }
9318 #endif
9319
9320 int
9321 main ()
9322 {
9323 return f != shmat;
9324   ;
9325   return 0;
9326 }
9327 _ACEOF
9328 rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330   (eval $ac_link) 2>&5
9331   ac_status=$?
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); } &&
9334          { ac_try='test -s conftest$ac_exeext'
9335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336   (eval $ac_try) 2>&5
9337   ac_status=$?
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); }; }; then
9340   ac_cv_func_shmat=yes
9341 else
9342   echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9344
9345 ac_cv_func_shmat=no
9346 fi
9347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9348 fi
9349 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9350 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9351
9352     if test $ac_cv_func_shmat = no; then
9353       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9354 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9355 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9356   echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358   ac_check_lib_save_LIBS=$LIBS
9359 LIBS="-lipc  $LIBS"
9360 cat >conftest.$ac_ext <<_ACEOF
9361 #line $LINENO "configure"
9362 /* confdefs.h.  */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h.  */
9367
9368 /* Override any gcc2 internal prototype to avoid an error.  */
9369 #ifdef __cplusplus
9370 extern "C"
9371 #endif
9372 /* We use char because int might match the return type of a gcc2
9373    builtin and then its argument prototype would still apply.  */
9374 char shmat ();
9375 int
9376 main ()
9377 {
9378 shmat ();
9379   ;
9380   return 0;
9381 }
9382 _ACEOF
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385   (eval $ac_link) 2>&5
9386   ac_status=$?
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   (exit $ac_status); } &&
9389          { ac_try='test -s conftest$ac_exeext'
9390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391   (eval $ac_try) 2>&5
9392   ac_status=$?
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); }; }; then
9395   ac_cv_lib_ipc_shmat=yes
9396 else
9397   echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400 ac_cv_lib_ipc_shmat=no
9401 fi
9402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9403 LIBS=$ac_check_lib_save_LIBS
9404 fi
9405 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9406 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9407 if test $ac_cv_lib_ipc_shmat = yes; then
9408   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9409 fi
9410
9411     fi
9412   fi
9413
9414   # Check for libraries that X11R6 Xt/Xaw programs need.
9415   ac_save_LDFLAGS=$LDFLAGS
9416   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9417   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9418   # check for ICE first), but we must link in the order -lSM -lICE or
9419   # we get undefined symbols.  So assume we have SM if we have ICE.
9420   # These have to be linked with before -lX11, unlike the other
9421   # libraries we check for below, so use a different variable.
9422   # John Interrante, Karl Berry
9423   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9424 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9425 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9426   echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428   ac_check_lib_save_LIBS=$LIBS
9429 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9430 cat >conftest.$ac_ext <<_ACEOF
9431 #line $LINENO "configure"
9432 /* confdefs.h.  */
9433 _ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h.  */
9437
9438 /* Override any gcc2 internal prototype to avoid an error.  */
9439 #ifdef __cplusplus
9440 extern "C"
9441 #endif
9442 /* We use char because int might match the return type of a gcc2
9443    builtin and then its argument prototype would still apply.  */
9444 char IceConnectionNumber ();
9445 int
9446 main ()
9447 {
9448 IceConnectionNumber ();
9449   ;
9450   return 0;
9451 }
9452 _ACEOF
9453 rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9455   (eval $ac_link) 2>&5
9456   ac_status=$?
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); } &&
9459          { ac_try='test -s conftest$ac_exeext'
9460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461   (eval $ac_try) 2>&5
9462   ac_status=$?
9463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464   (exit $ac_status); }; }; then
9465   ac_cv_lib_ICE_IceConnectionNumber=yes
9466 else
9467   echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9469
9470 ac_cv_lib_ICE_IceConnectionNumber=no
9471 fi
9472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9473 LIBS=$ac_check_lib_save_LIBS
9474 fi
9475 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9476 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9477 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9478   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9479 fi
9480
9481   LDFLAGS=$ac_save_LDFLAGS
9482
9483 fi
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513 for ac_header in \
9514         assert.h \
9515         fcntl.h \
9516         grp.h \
9517         pwd.h \
9518         libc.h \
9519         limits.h \
9520         stdarg.h \
9521         stdlib.h \
9522         stdint.h \
9523         string.h \
9524         termios.h \
9525         termcap.h \
9526         term.h \
9527         unistd.h \
9528         sys/bitypes.h \
9529         sys/byteorder.h \
9530         sys/ioctl.h \
9531         sys/select.h \
9532         sys/sockio.h \
9533         sys/time.h \
9534         sys/socket.h \
9535         arpa/nameser.h \
9536         resolv.h \
9537         mtio.h \
9538         sys/mtio.h \
9539         sys/tape.h \
9540         regex.h \
9541
9542 do
9543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9545   echo "$as_me:$LINENO: checking for $ac_header" >&5
9546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9548   echo $ECHO_N "(cached) $ECHO_C" >&6
9549 fi
9550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9552 else
9553   # Is the header compilable?
9554 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9556 cat >conftest.$ac_ext <<_ACEOF
9557 #line $LINENO "configure"
9558 /* confdefs.h.  */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h.  */
9563 $ac_includes_default
9564 #include <$ac_header>
9565 _ACEOF
9566 rm -f conftest.$ac_objext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9568   (eval $ac_compile) 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); } &&
9572          { ac_try='test -s conftest.$ac_objext'
9573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574   (eval $ac_try) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); }; }; then
9578   ac_header_compiler=yes
9579 else
9580   echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9582
9583 ac_header_compiler=no
9584 fi
9585 rm -f conftest.$ac_objext conftest.$ac_ext
9586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9587 echo "${ECHO_T}$ac_header_compiler" >&6
9588
9589 # Is the header present?
9590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9592 cat >conftest.$ac_ext <<_ACEOF
9593 #line $LINENO "configure"
9594 /* confdefs.h.  */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h.  */
9599 #include <$ac_header>
9600 _ACEOF
9601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9602   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9603   ac_status=$?
9604   grep -v '^ *+' conftest.er1 >conftest.err
9605   rm -f conftest.er1
9606   cat conftest.err >&5
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); } >/dev/null; then
9609   if test -s conftest.err; then
9610     ac_cpp_err=$ac_c_preproc_warn_flag
9611   else
9612     ac_cpp_err=
9613   fi
9614 else
9615   ac_cpp_err=yes
9616 fi
9617 if test -z "$ac_cpp_err"; then
9618   ac_header_preproc=yes
9619 else
9620   echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9622
9623   ac_header_preproc=no
9624 fi
9625 rm -f conftest.err conftest.$ac_ext
9626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9627 echo "${ECHO_T}$ac_header_preproc" >&6
9628
9629 # So?  What about this header?
9630 case $ac_header_compiler:$ac_header_preproc in
9631   yes:no )
9632     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9636     (
9637       cat <<\_ASBOX
9638 ## ------------------------------------ ##
9639 ## Report this to bug-autoconf@gnu.org. ##
9640 ## ------------------------------------ ##
9641 _ASBOX
9642     ) |
9643       sed "s/^/$as_me: WARNING:     /" >&2
9644     ;;
9645   no:yes )
9646     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9648     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9652     (
9653       cat <<\_ASBOX
9654 ## ------------------------------------ ##
9655 ## Report this to bug-autoconf@gnu.org. ##
9656 ## ------------------------------------ ##
9657 _ASBOX
9658     ) |
9659       sed "s/^/$as_me: WARNING:     /" >&2
9660     ;;
9661 esac
9662 echo "$as_me:$LINENO: checking for $ac_header" >&5
9663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9665   echo $ECHO_N "(cached) $ECHO_C" >&6
9666 else
9667   eval "$as_ac_Header=$ac_header_preproc"
9668 fi
9669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9671
9672 fi
9673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9674   cat >>confdefs.h <<_ACEOF
9675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9676 _ACEOF
9677
9678 fi
9679
9680 done
9681
9682 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9683 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9684 if test "${ac_cv_header_stdc+set}" = set; then
9685   echo $ECHO_N "(cached) $ECHO_C" >&6
9686 else
9687   cat >conftest.$ac_ext <<_ACEOF
9688 #line $LINENO "configure"
9689 /* confdefs.h.  */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h.  */
9694 #include <stdlib.h>
9695 #include <stdarg.h>
9696 #include <string.h>
9697 #include <float.h>
9698
9699 int
9700 main ()
9701 {
9702
9703   ;
9704   return 0;
9705 }
9706 _ACEOF
9707 rm -f conftest.$ac_objext
9708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9709   (eval $ac_compile) 2>&5
9710   ac_status=$?
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); } &&
9713          { ac_try='test -s conftest.$ac_objext'
9714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715   (eval $ac_try) 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); }; }; then
9719   ac_cv_header_stdc=yes
9720 else
9721   echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9723
9724 ac_cv_header_stdc=no
9725 fi
9726 rm -f conftest.$ac_objext conftest.$ac_ext
9727
9728 if test $ac_cv_header_stdc = yes; then
9729   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9730   cat >conftest.$ac_ext <<_ACEOF
9731 #line $LINENO "configure"
9732 /* confdefs.h.  */
9733 _ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h.  */
9737 #include <string.h>
9738
9739 _ACEOF
9740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9741   $EGREP "memchr" >/dev/null 2>&1; then
9742   :
9743 else
9744   ac_cv_header_stdc=no
9745 fi
9746 rm -f conftest*
9747
9748 fi
9749
9750 if test $ac_cv_header_stdc = yes; then
9751   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9752   cat >conftest.$ac_ext <<_ACEOF
9753 #line $LINENO "configure"
9754 /* confdefs.h.  */
9755 _ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h.  */
9759 #include <stdlib.h>
9760
9761 _ACEOF
9762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9763   $EGREP "free" >/dev/null 2>&1; then
9764   :
9765 else
9766   ac_cv_header_stdc=no
9767 fi
9768 rm -f conftest*
9769
9770 fi
9771
9772 if test $ac_cv_header_stdc = yes; then
9773   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9774   if test "$cross_compiling" = yes; then
9775   :
9776 else
9777   cat >conftest.$ac_ext <<_ACEOF
9778 #line $LINENO "configure"
9779 /* confdefs.h.  */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h.  */
9784 #include <ctype.h>
9785 #if ((' ' & 0x0FF) == 0x020)
9786 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9787 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9788 #else
9789 # define ISLOWER(c) \
9790                    (('a' <= (c) && (c) <= 'i') \
9791                      || ('j' <= (c) && (c) <= 'r') \
9792                      || ('s' <= (c) && (c) <= 'z'))
9793 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9794 #endif
9795
9796 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9797 int
9798 main ()
9799 {
9800   int i;
9801   for (i = 0; i < 256; i++)
9802     if (XOR (islower (i), ISLOWER (i))
9803         || toupper (i) != TOUPPER (i))
9804       exit(2);
9805   exit (0);
9806 }
9807 _ACEOF
9808 rm -f conftest$ac_exeext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810   (eval $ac_link) 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815   (eval $ac_try) 2>&5
9816   ac_status=$?
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); }; }; then
9819   :
9820 else
9821   echo "$as_me: program exited with status $ac_status" >&5
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825 ( exit $ac_status )
9826 ac_cv_header_stdc=no
9827 fi
9828 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9829 fi
9830 fi
9831 fi
9832 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9833 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9834 if test $ac_cv_header_stdc = yes; then
9835
9836 cat >>confdefs.h <<\_ACEOF
9837 #define STDC_HEADERS 1
9838 _ACEOF
9839
9840 fi
9841
9842 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9843 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9844 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9845   echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847   cat >conftest.$ac_ext <<_ACEOF
9848 #line $LINENO "configure"
9849 /* confdefs.h.  */
9850 _ACEOF
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h.  */
9854 #include <sys/types.h>
9855 int
9856 main ()
9857 {
9858 return makedev(0, 0);
9859   ;
9860   return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9865   (eval $ac_link) 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); } &&
9869          { ac_try='test -s conftest$ac_exeext'
9870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871   (eval $ac_try) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; }; then
9875   ac_cv_header_sys_types_h_makedev=yes
9876 else
9877   echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880 ac_cv_header_sys_types_h_makedev=no
9881 fi
9882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9883
9884 fi
9885 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9886 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9887
9888 if test $ac_cv_header_sys_types_h_makedev = no; then
9889 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9890   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9891 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9892 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9893   echo $ECHO_N "(cached) $ECHO_C" >&6
9894 fi
9895 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9896 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9897 else
9898   # Is the header compilable?
9899 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9900 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9901 cat >conftest.$ac_ext <<_ACEOF
9902 #line $LINENO "configure"
9903 /* confdefs.h.  */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h.  */
9908 $ac_includes_default
9909 #include <sys/mkdev.h>
9910 _ACEOF
9911 rm -f conftest.$ac_objext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9913   (eval $ac_compile) 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); } &&
9917          { ac_try='test -s conftest.$ac_objext'
9918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919   (eval $ac_try) 2>&5
9920   ac_status=$?
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); }; }; then
9923   ac_header_compiler=yes
9924 else
9925   echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9927
9928 ac_header_compiler=no
9929 fi
9930 rm -f conftest.$ac_objext conftest.$ac_ext
9931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9932 echo "${ECHO_T}$ac_header_compiler" >&6
9933
9934 # Is the header present?
9935 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9936 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9937 cat >conftest.$ac_ext <<_ACEOF
9938 #line $LINENO "configure"
9939 /* confdefs.h.  */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h.  */
9944 #include <sys/mkdev.h>
9945 _ACEOF
9946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9948   ac_status=$?
9949   grep -v '^ *+' conftest.er1 >conftest.err
9950   rm -f conftest.er1
9951   cat conftest.err >&5
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } >/dev/null; then
9954   if test -s conftest.err; then
9955     ac_cpp_err=$ac_c_preproc_warn_flag
9956   else
9957     ac_cpp_err=
9958   fi
9959 else
9960   ac_cpp_err=yes
9961 fi
9962 if test -z "$ac_cpp_err"; then
9963   ac_header_preproc=yes
9964 else
9965   echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9967
9968   ac_header_preproc=no
9969 fi
9970 rm -f conftest.err conftest.$ac_ext
9971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9972 echo "${ECHO_T}$ac_header_preproc" >&6
9973
9974 # So?  What about this header?
9975 case $ac_header_compiler:$ac_header_preproc in
9976   yes:no )
9977     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9978 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9979     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9980 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9981     (
9982       cat <<\_ASBOX
9983 ## ------------------------------------ ##
9984 ## Report this to bug-autoconf@gnu.org. ##
9985 ## ------------------------------------ ##
9986 _ASBOX
9987     ) |
9988       sed "s/^/$as_me: WARNING:     /" >&2
9989     ;;
9990   no:yes )
9991     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9992 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9993     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9994 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9995     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9996 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9997     (
9998       cat <<\_ASBOX
9999 ## ------------------------------------ ##
10000 ## Report this to bug-autoconf@gnu.org. ##
10001 ## ------------------------------------ ##
10002 _ASBOX
10003     ) |
10004       sed "s/^/$as_me: WARNING:     /" >&2
10005     ;;
10006 esac
10007 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10008 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10009 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10010   echo $ECHO_N "(cached) $ECHO_C" >&6
10011 else
10012   ac_cv_header_sys_mkdev_h=$ac_header_preproc
10013 fi
10014 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10015 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10016
10017 fi
10018 if test $ac_cv_header_sys_mkdev_h = yes; then
10019
10020 cat >>confdefs.h <<\_ACEOF
10021 #define MAJOR_IN_MKDEV 1
10022 _ACEOF
10023
10024 fi
10025
10026
10027
10028   if test $ac_cv_header_sys_mkdev_h = no; then
10029     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10030   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10031 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10032 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10033   echo $ECHO_N "(cached) $ECHO_C" >&6
10034 fi
10035 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10036 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10037 else
10038   # Is the header compilable?
10039 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10040 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10041 cat >conftest.$ac_ext <<_ACEOF
10042 #line $LINENO "configure"
10043 /* confdefs.h.  */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h.  */
10048 $ac_includes_default
10049 #include <sys/sysmacros.h>
10050 _ACEOF
10051 rm -f conftest.$ac_objext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10053   (eval $ac_compile) 2>&5
10054   ac_status=$?
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); } &&
10057          { ac_try='test -s conftest.$ac_objext'
10058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059   (eval $ac_try) 2>&5
10060   ac_status=$?
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); }; }; then
10063   ac_header_compiler=yes
10064 else
10065   echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068 ac_header_compiler=no
10069 fi
10070 rm -f conftest.$ac_objext conftest.$ac_ext
10071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072 echo "${ECHO_T}$ac_header_compiler" >&6
10073
10074 # Is the header present?
10075 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10076 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10077 cat >conftest.$ac_ext <<_ACEOF
10078 #line $LINENO "configure"
10079 /* confdefs.h.  */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h.  */
10084 #include <sys/sysmacros.h>
10085 _ACEOF
10086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10088   ac_status=$?
10089   grep -v '^ *+' conftest.er1 >conftest.err
10090   rm -f conftest.er1
10091   cat conftest.err >&5
10092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); } >/dev/null; then
10094   if test -s conftest.err; then
10095     ac_cpp_err=$ac_c_preproc_warn_flag
10096   else
10097     ac_cpp_err=
10098   fi
10099 else
10100   ac_cpp_err=yes
10101 fi
10102 if test -z "$ac_cpp_err"; then
10103   ac_header_preproc=yes
10104 else
10105   echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10107
10108   ac_header_preproc=no
10109 fi
10110 rm -f conftest.err conftest.$ac_ext
10111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112 echo "${ECHO_T}$ac_header_preproc" >&6
10113
10114 # So?  What about this header?
10115 case $ac_header_compiler:$ac_header_preproc in
10116   yes:no )
10117     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10118 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10120 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10121     (
10122       cat <<\_ASBOX
10123 ## ------------------------------------ ##
10124 ## Report this to bug-autoconf@gnu.org. ##
10125 ## ------------------------------------ ##
10126 _ASBOX
10127     ) |
10128       sed "s/^/$as_me: WARNING:     /" >&2
10129     ;;
10130   no:yes )
10131     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10132 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10133     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10134 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10135     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10136 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10137     (
10138       cat <<\_ASBOX
10139 ## ------------------------------------ ##
10140 ## Report this to bug-autoconf@gnu.org. ##
10141 ## ------------------------------------ ##
10142 _ASBOX
10143     ) |
10144       sed "s/^/$as_me: WARNING:     /" >&2
10145     ;;
10146 esac
10147 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10148 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10149 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10150   echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10153 fi
10154 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10155 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10156
10157 fi
10158 if test $ac_cv_header_sys_sysmacros_h = yes; then
10159
10160 cat >>confdefs.h <<\_ACEOF
10161 #define MAJOR_IN_SYSMACROS 1
10162 _ACEOF
10163
10164 fi
10165
10166
10167   fi
10168 fi
10169
10170
10171
10172
10173
10174
10175 ac_header_dirent=no
10176 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10177   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10178 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10179 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10181   echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183   cat >conftest.$ac_ext <<_ACEOF
10184 #line $LINENO "configure"
10185 /* confdefs.h.  */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h.  */
10190 #include <sys/types.h>
10191 #include <$ac_hdr>
10192
10193 int
10194 main ()
10195 {
10196 if ((DIR *) 0)
10197 return 0;
10198   ;
10199   return 0;
10200 }
10201 _ACEOF
10202 rm -f conftest.$ac_objext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10204   (eval $ac_compile) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); } &&
10208          { ac_try='test -s conftest.$ac_objext'
10209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210   (eval $ac_try) 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; }; then
10214   eval "$as_ac_Header=yes"
10215 else
10216   echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 eval "$as_ac_Header=no"
10220 fi
10221 rm -f conftest.$ac_objext conftest.$ac_ext
10222 fi
10223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10226   cat >>confdefs.h <<_ACEOF
10227 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10228 _ACEOF
10229
10230 ac_header_dirent=$ac_hdr; break
10231 fi
10232
10233 done
10234 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10235 if test $ac_header_dirent = dirent.h; then
10236   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10237 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10238 if test "${ac_cv_search_opendir+set}" = set; then
10239   echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241   ac_func_search_save_LIBS=$LIBS
10242 ac_cv_search_opendir=no
10243 cat >conftest.$ac_ext <<_ACEOF
10244 #line $LINENO "configure"
10245 /* confdefs.h.  */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h.  */
10250
10251 /* Override any gcc2 internal prototype to avoid an error.  */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 /* We use char because int might match the return type of a gcc2
10256    builtin and then its argument prototype would still apply.  */
10257 char opendir ();
10258 int
10259 main ()
10260 {
10261 opendir ();
10262   ;
10263   return 0;
10264 }
10265 _ACEOF
10266 rm -f conftest.$ac_objext conftest$ac_exeext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268   (eval $ac_link) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); } &&
10272          { ac_try='test -s conftest$ac_exeext'
10273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274   (eval $ac_try) 2>&5
10275   ac_status=$?
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); }; }; then
10278   ac_cv_search_opendir="none required"
10279 else
10280   echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10282
10283 fi
10284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10285 if test "$ac_cv_search_opendir" = no; then
10286   for ac_lib in dir; do
10287     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10288     cat >conftest.$ac_ext <<_ACEOF
10289 #line $LINENO "configure"
10290 /* confdefs.h.  */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h.  */
10295
10296 /* Override any gcc2 internal prototype to avoid an error.  */
10297 #ifdef __cplusplus
10298 extern "C"
10299 #endif
10300 /* We use char because int might match the return type of a gcc2
10301    builtin and then its argument prototype would still apply.  */
10302 char opendir ();
10303 int
10304 main ()
10305 {
10306 opendir ();
10307   ;
10308   return 0;
10309 }
10310 _ACEOF
10311 rm -f conftest.$ac_objext conftest$ac_exeext
10312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10313   (eval $ac_link) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); } &&
10317          { ac_try='test -s conftest$ac_exeext'
10318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319   (eval $ac_try) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; }; then
10323   ac_cv_search_opendir="-l$ac_lib"
10324 break
10325 else
10326   echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329 fi
10330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10331   done
10332 fi
10333 LIBS=$ac_func_search_save_LIBS
10334 fi
10335 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10336 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10337 if test "$ac_cv_search_opendir" != no; then
10338   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10339
10340 fi
10341
10342 else
10343   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10344 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10345 if test "${ac_cv_search_opendir+set}" = set; then
10346   echo $ECHO_N "(cached) $ECHO_C" >&6
10347 else
10348   ac_func_search_save_LIBS=$LIBS
10349 ac_cv_search_opendir=no
10350 cat >conftest.$ac_ext <<_ACEOF
10351 #line $LINENO "configure"
10352 /* confdefs.h.  */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h.  */
10357
10358 /* Override any gcc2 internal prototype to avoid an error.  */
10359 #ifdef __cplusplus
10360 extern "C"
10361 #endif
10362 /* We use char because int might match the return type of a gcc2
10363    builtin and then its argument prototype would still apply.  */
10364 char opendir ();
10365 int
10366 main ()
10367 {
10368 opendir ();
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 rm -f conftest.$ac_objext conftest$ac_exeext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375   (eval $ac_link) 2>&5
10376   ac_status=$?
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); } &&
10379          { ac_try='test -s conftest$ac_exeext'
10380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381   (eval $ac_try) 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); }; }; then
10385   ac_cv_search_opendir="none required"
10386 else
10387   echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10389
10390 fi
10391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10392 if test "$ac_cv_search_opendir" = no; then
10393   for ac_lib in x; do
10394     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10395     cat >conftest.$ac_ext <<_ACEOF
10396 #line $LINENO "configure"
10397 /* confdefs.h.  */
10398 _ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h.  */
10402
10403 /* Override any gcc2 internal prototype to avoid an error.  */
10404 #ifdef __cplusplus
10405 extern "C"
10406 #endif
10407 /* We use char because int might match the return type of a gcc2
10408    builtin and then its argument prototype would still apply.  */
10409 char opendir ();
10410 int
10411 main ()
10412 {
10413 opendir ();
10414   ;
10415   return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420   (eval $ac_link) 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); } &&
10424          { ac_try='test -s conftest$ac_exeext'
10425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426   (eval $ac_try) 2>&5
10427   ac_status=$?
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); }; }; then
10430   ac_cv_search_opendir="-l$ac_lib"
10431 break
10432 else
10433   echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10435
10436 fi
10437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10438   done
10439 fi
10440 LIBS=$ac_func_search_save_LIBS
10441 fi
10442 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10443 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10444 if test "$ac_cv_search_opendir" != no; then
10445   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10446
10447 fi
10448
10449 fi
10450
10451 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10452 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10453 if test "${ac_cv_header_stat_broken+set}" = set; then
10454   echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456   cat >conftest.$ac_ext <<_ACEOF
10457 #line $LINENO "configure"
10458 /* confdefs.h.  */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h.  */
10463 #include <sys/types.h>
10464 #include <sys/stat.h>
10465
10466 #if defined(S_ISBLK) && defined(S_IFDIR)
10467 # if S_ISBLK (S_IFDIR)
10468 You lose.
10469 # endif
10470 #endif
10471
10472 #if defined(S_ISBLK) && defined(S_IFCHR)
10473 # if S_ISBLK (S_IFCHR)
10474 You lose.
10475 # endif
10476 #endif
10477
10478 #if defined(S_ISLNK) && defined(S_IFREG)
10479 # if S_ISLNK (S_IFREG)
10480 You lose.
10481 # endif
10482 #endif
10483
10484 #if defined(S_ISSOCK) && defined(S_IFREG)
10485 # if S_ISSOCK (S_IFREG)
10486 You lose.
10487 # endif
10488 #endif
10489
10490 _ACEOF
10491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10492   $EGREP "You lose" >/dev/null 2>&1; then
10493   ac_cv_header_stat_broken=yes
10494 else
10495   ac_cv_header_stat_broken=no
10496 fi
10497 rm -f conftest*
10498
10499 fi
10500 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10501 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10502 if test $ac_cv_header_stat_broken = yes; then
10503
10504 cat >>confdefs.h <<\_ACEOF
10505 #define STAT_MACROS_BROKEN 1
10506 _ACEOF
10507
10508 fi
10509
10510 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10511 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10512 if test "${ac_cv_header_sys_wait_h+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/wait.h>
10524 #ifndef WEXITSTATUS
10525 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10526 #endif
10527 #ifndef WIFEXITED
10528 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10529 #endif
10530
10531 int
10532 main ()
10533 {
10534   int s;
10535   wait (&s);
10536   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10537   ;
10538   return 0;
10539 }
10540 _ACEOF
10541 rm -f conftest.$ac_objext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543   (eval $ac_compile) 2>&5
10544   ac_status=$?
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } &&
10547          { ac_try='test -s conftest.$ac_objext'
10548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549   (eval $ac_try) 2>&5
10550   ac_status=$?
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); }; }; then
10553   ac_cv_header_sys_wait_h=yes
10554 else
10555   echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10557
10558 ac_cv_header_sys_wait_h=no
10559 fi
10560 rm -f conftest.$ac_objext conftest.$ac_ext
10561 fi
10562 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10563 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10564 if test $ac_cv_header_sys_wait_h = yes; then
10565
10566 cat >>confdefs.h <<\_ACEOF
10567 #define HAVE_SYS_WAIT_H 1
10568 _ACEOF
10569
10570 fi
10571
10572 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10573 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10574 if test "${ac_cv_header_time+set}" = set; then
10575   echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577   cat >conftest.$ac_ext <<_ACEOF
10578 #line $LINENO "configure"
10579 /* confdefs.h.  */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h.  */
10584 #include <sys/types.h>
10585 #include <sys/time.h>
10586 #include <time.h>
10587
10588 int
10589 main ()
10590 {
10591 if ((struct tm *) 0)
10592 return 0;
10593   ;
10594   return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10599   (eval $ac_compile) 2>&5
10600   ac_status=$?
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); } &&
10603          { ac_try='test -s conftest.$ac_objext'
10604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605   (eval $ac_try) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; }; then
10609   ac_cv_header_time=yes
10610 else
10611   echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10613
10614 ac_cv_header_time=no
10615 fi
10616 rm -f conftest.$ac_objext conftest.$ac_ext
10617 fi
10618 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10619 echo "${ECHO_T}$ac_cv_header_time" >&6
10620 if test $ac_cv_header_time = yes; then
10621
10622 cat >>confdefs.h <<\_ACEOF
10623 #define TIME_WITH_SYS_TIME 1
10624 _ACEOF
10625
10626 fi
10627
10628
10629 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10630 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10631 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10632   echo $ECHO_N "(cached) $ECHO_C" >&6
10633 else
10634   cat >conftest.$ac_ext <<_ACEOF
10635 #line $LINENO "configure"
10636 /* confdefs.h.  */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h.  */
10641 $ac_includes_default
10642 int
10643 main ()
10644 {
10645 static struct stat ac_aggr;
10646 if (ac_aggr.st_blksize)
10647 return 0;
10648   ;
10649   return 0;
10650 }
10651 _ACEOF
10652 rm -f conftest.$ac_objext
10653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10654   (eval $ac_compile) 2>&5
10655   ac_status=$?
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); } &&
10658          { ac_try='test -s conftest.$ac_objext'
10659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660   (eval $ac_try) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); }; }; then
10664   ac_cv_member_struct_stat_st_blksize=yes
10665 else
10666   echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10668
10669 cat >conftest.$ac_ext <<_ACEOF
10670 #line $LINENO "configure"
10671 /* confdefs.h.  */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h.  */
10676 $ac_includes_default
10677 int
10678 main ()
10679 {
10680 static struct stat ac_aggr;
10681 if (sizeof ac_aggr.st_blksize)
10682 return 0;
10683   ;
10684   return 0;
10685 }
10686 _ACEOF
10687 rm -f conftest.$ac_objext
10688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10689   (eval $ac_compile) 2>&5
10690   ac_status=$?
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); } &&
10693          { ac_try='test -s conftest.$ac_objext'
10694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695   (eval $ac_try) 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); }; }; then
10699   ac_cv_member_struct_stat_st_blksize=yes
10700 else
10701   echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10703
10704 ac_cv_member_struct_stat_st_blksize=no
10705 fi
10706 rm -f conftest.$ac_objext conftest.$ac_ext
10707 fi
10708 rm -f conftest.$ac_objext conftest.$ac_ext
10709 fi
10710 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10711 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10712 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10713
10714 cat >>confdefs.h <<_ACEOF
10715 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10716 _ACEOF
10717
10718
10719 cat >>confdefs.h <<\_ACEOF
10720 #define HAVE_ST_BLKSIZE 1
10721 _ACEOF
10722
10723 fi
10724
10725
10726 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10727 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10728 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10729   echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731   cat >conftest.$ac_ext <<_ACEOF
10732 #line $LINENO "configure"
10733 /* confdefs.h.  */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h.  */
10738 $ac_includes_default
10739 int
10740 main ()
10741 {
10742 static struct stat ac_aggr;
10743 if (ac_aggr.st_blocks)
10744 return 0;
10745   ;
10746   return 0;
10747 }
10748 _ACEOF
10749 rm -f conftest.$ac_objext
10750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10751   (eval $ac_compile) 2>&5
10752   ac_status=$?
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); } &&
10755          { ac_try='test -s conftest.$ac_objext'
10756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757   (eval $ac_try) 2>&5
10758   ac_status=$?
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); }; }; then
10761   ac_cv_member_struct_stat_st_blocks=yes
10762 else
10763   echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10765
10766 cat >conftest.$ac_ext <<_ACEOF
10767 #line $LINENO "configure"
10768 /* confdefs.h.  */
10769 _ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h.  */
10773 $ac_includes_default
10774 int
10775 main ()
10776 {
10777 static struct stat ac_aggr;
10778 if (sizeof ac_aggr.st_blocks)
10779 return 0;
10780   ;
10781   return 0;
10782 }
10783 _ACEOF
10784 rm -f conftest.$ac_objext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10786   (eval $ac_compile) 2>&5
10787   ac_status=$?
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } &&
10790          { ac_try='test -s conftest.$ac_objext'
10791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792   (eval $ac_try) 2>&5
10793   ac_status=$?
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); }; }; then
10796   ac_cv_member_struct_stat_st_blocks=yes
10797 else
10798   echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801 ac_cv_member_struct_stat_st_blocks=no
10802 fi
10803 rm -f conftest.$ac_objext conftest.$ac_ext
10804 fi
10805 rm -f conftest.$ac_objext conftest.$ac_ext
10806 fi
10807 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10808 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10809 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10810
10811 cat >>confdefs.h <<_ACEOF
10812 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10813 _ACEOF
10814
10815
10816 cat >>confdefs.h <<\_ACEOF
10817 #define HAVE_ST_BLOCKS 1
10818 _ACEOF
10819
10820 else
10821   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10822 fi
10823
10824
10825 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10826 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10827 if test "${ac_cv_struct_tm+set}" = set; then
10828   echo $ECHO_N "(cached) $ECHO_C" >&6
10829 else
10830   cat >conftest.$ac_ext <<_ACEOF
10831 #line $LINENO "configure"
10832 /* confdefs.h.  */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h.  */
10837 #include <sys/types.h>
10838 #include <time.h>
10839
10840 int
10841 main ()
10842 {
10843 struct tm *tp; tp->tm_sec;
10844   ;
10845   return 0;
10846 }
10847 _ACEOF
10848 rm -f conftest.$ac_objext
10849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10850   (eval $ac_compile) 2>&5
10851   ac_status=$?
10852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853   (exit $ac_status); } &&
10854          { ac_try='test -s conftest.$ac_objext'
10855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856   (eval $ac_try) 2>&5
10857   ac_status=$?
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); }; }; then
10860   ac_cv_struct_tm=time.h
10861 else
10862   echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10864
10865 ac_cv_struct_tm=sys/time.h
10866 fi
10867 rm -f conftest.$ac_objext conftest.$ac_ext
10868 fi
10869 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10870 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10871 if test $ac_cv_struct_tm = sys/time.h; then
10872
10873 cat >>confdefs.h <<\_ACEOF
10874 #define TM_IN_SYS_TIME 1
10875 _ACEOF
10876
10877 fi
10878
10879 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10880 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10881 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10882   echo $ECHO_N "(cached) $ECHO_C" >&6
10883 else
10884   cat >conftest.$ac_ext <<_ACEOF
10885 #line $LINENO "configure"
10886 /* confdefs.h.  */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h.  */
10891 #include <sys/types.h>
10892 #include <$ac_cv_struct_tm>
10893
10894
10895 int
10896 main ()
10897 {
10898 static struct tm ac_aggr;
10899 if (ac_aggr.tm_zone)
10900 return 0;
10901   ;
10902   return 0;
10903 }
10904 _ACEOF
10905 rm -f conftest.$ac_objext
10906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10907   (eval $ac_compile) 2>&5
10908   ac_status=$?
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); } &&
10911          { ac_try='test -s conftest.$ac_objext'
10912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913   (eval $ac_try) 2>&5
10914   ac_status=$?
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); }; }; then
10917   ac_cv_member_struct_tm_tm_zone=yes
10918 else
10919   echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10921
10922 cat >conftest.$ac_ext <<_ACEOF
10923 #line $LINENO "configure"
10924 /* confdefs.h.  */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h.  */
10929 #include <sys/types.h>
10930 #include <$ac_cv_struct_tm>
10931
10932
10933 int
10934 main ()
10935 {
10936 static struct tm ac_aggr;
10937 if (sizeof ac_aggr.tm_zone)
10938 return 0;
10939   ;
10940   return 0;
10941 }
10942 _ACEOF
10943 rm -f conftest.$ac_objext
10944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10945   (eval $ac_compile) 2>&5
10946   ac_status=$?
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); } &&
10949          { ac_try='test -s conftest.$ac_objext'
10950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951   (eval $ac_try) 2>&5
10952   ac_status=$?
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); }; }; then
10955   ac_cv_member_struct_tm_tm_zone=yes
10956 else
10957   echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10959
10960 ac_cv_member_struct_tm_tm_zone=no
10961 fi
10962 rm -f conftest.$ac_objext conftest.$ac_ext
10963 fi
10964 rm -f conftest.$ac_objext conftest.$ac_ext
10965 fi
10966 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10967 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10968 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10969
10970 cat >>confdefs.h <<_ACEOF
10971 #define HAVE_STRUCT_TM_TM_ZONE 1
10972 _ACEOF
10973
10974
10975 fi
10976
10977 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10978
10979 cat >>confdefs.h <<\_ACEOF
10980 #define HAVE_TM_ZONE 1
10981 _ACEOF
10982
10983 else
10984   echo "$as_me:$LINENO: checking for tzname" >&5
10985 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10986 if test "${ac_cv_var_tzname+set}" = set; then
10987   echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989   cat >conftest.$ac_ext <<_ACEOF
10990 #line $LINENO "configure"
10991 /* confdefs.h.  */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h.  */
10996 #include <time.h>
10997 #ifndef tzname /* For SGI.  */
10998 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10999 #endif
11000
11001 int
11002 main ()
11003 {
11004 atoi(*tzname);
11005   ;
11006   return 0;
11007 }
11008 _ACEOF
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11011   (eval $ac_link) 2>&5
11012   ac_status=$?
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } &&
11015          { ac_try='test -s conftest$ac_exeext'
11016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017   (eval $ac_try) 2>&5
11018   ac_status=$?
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); }; }; then
11021   ac_cv_var_tzname=yes
11022 else
11023   echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11025
11026 ac_cv_var_tzname=no
11027 fi
11028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11029 fi
11030 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11031 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11032   if test $ac_cv_var_tzname = yes; then
11033
11034 cat >>confdefs.h <<\_ACEOF
11035 #define HAVE_TZNAME 1
11036 _ACEOF
11037
11038   fi
11039 fi
11040
11041
11042 echo "$as_me:$LINENO: checking for utime.h" >&5
11043 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11044 if test "${ba_cv_header_utime_h+set}" = set; then
11045   echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047   cat >conftest.$ac_ext <<_ACEOF
11048 #line $LINENO "configure"
11049 /* confdefs.h.  */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h.  */
11054
11055 #include <sys/types.h>
11056 #include <utime.h>
11057 int
11058 main ()
11059 {
11060 struct utimbuf foo
11061   ;
11062   return 0;
11063 }
11064 _ACEOF
11065 rm -f conftest.$ac_objext
11066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11067   (eval $ac_compile) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); } &&
11071          { ac_try='test -s conftest.$ac_objext'
11072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073   (eval $ac_try) 2>&5
11074   ac_status=$?
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); }; }; then
11077   ba_cv_header_utime_h=yes
11078 else
11079   echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11081
11082 ba_cv_header_utime_h=no
11083 fi
11084 rm -f conftest.$ac_objext conftest.$ac_ext
11085 fi
11086 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11087 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11088 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11089 #define HAVE_UTIME_H 1
11090 _ACEOF
11091
11092
11093 echo "$as_me:$LINENO: checking for socklen_t" >&5
11094 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11095 if test "${ba_cv_header_socklen_t+set}" = set; then
11096   echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098   cat >conftest.$ac_ext <<_ACEOF
11099 #line $LINENO "configure"
11100 /* confdefs.h.  */
11101 _ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h.  */
11105
11106 #include <sys/types.h>
11107 #include <sys/socket.h>
11108 int
11109 main ()
11110 {
11111 socklen_t x
11112   ;
11113   return 0;
11114 }
11115 _ACEOF
11116 rm -f conftest.$ac_objext
11117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11118   (eval $ac_compile) 2>&5
11119   ac_status=$?
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); } &&
11122          { ac_try='test -s conftest.$ac_objext'
11123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124   (eval $ac_try) 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); }; }; then
11128   ba_cv_header_socklen_t=yes
11129 else
11130   echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11132
11133 ba_cv_header_socklen_t=no
11134 fi
11135 rm -f conftest.$ac_objext conftest.$ac_ext
11136 fi
11137 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11138 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11139 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11140 #define HAVE_SOCKLEN_T 1
11141 _ACEOF
11142
11143
11144 echo "$as_me:$LINENO: checking for bigendian" >&5
11145 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11146 if test "${ba_cv_bigendian+set}" = set; then
11147   echo $ECHO_N "(cached) $ECHO_C" >&6
11148 else
11149   if test "$cross_compiling" = yes; then
11150   ba_cv_bigendian=no
11151 else
11152   cat >conftest.$ac_ext <<_ACEOF
11153 #line $LINENO "configure"
11154 /* confdefs.h.  */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h.  */
11159 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11160 _ACEOF
11161 rm -f conftest$ac_exeext
11162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163   (eval $ac_link) 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168   (eval $ac_try) 2>&5
11169   ac_status=$?
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); }; }; then
11172   ba_cv_bigendian=yes
11173 else
11174   echo "$as_me: program exited with status $ac_status" >&5
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11177
11178 ( exit $ac_status )
11179 ba_cv_bigendian=no
11180 fi
11181 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11182 fi
11183 fi
11184 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11185 echo "${ECHO_T}$ba_cv_bigendian" >&6
11186 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11187 #define HAVE_BIGENDIAN 1
11188 _ACEOF
11189
11190
11191
11192 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11193 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11194 if test "${ac_cv_c_const+set}" = set; then
11195   echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197   cat >conftest.$ac_ext <<_ACEOF
11198 #line $LINENO "configure"
11199 /* confdefs.h.  */
11200 _ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h.  */
11204
11205 int
11206 main ()
11207 {
11208 /* FIXME: Include the comments suggested by Paul. */
11209 #ifndef __cplusplus
11210   /* Ultrix mips cc rejects this.  */
11211   typedef int charset[2];
11212   const charset x;
11213   /* SunOS 4.1.1 cc rejects this.  */
11214   char const *const *ccp;
11215   char **p;
11216   /* NEC SVR4.0.2 mips cc rejects this.  */
11217   struct point {int x, y;};
11218   static struct point const zero = {0,0};
11219   /* AIX XL C 1.02.0.0 rejects this.
11220      It does not let you subtract one const X* pointer from another in
11221      an arm of an if-expression whose if-part is not a constant
11222      expression */
11223   const char *g = "string";
11224   ccp = &g + (g ? g-g : 0);
11225   /* HPUX 7.0 cc rejects these. */
11226   ++ccp;
11227   p = (char**) ccp;
11228   ccp = (char const *const *) p;
11229   { /* SCO 3.2v4 cc rejects this.  */
11230     char *t;
11231     char const *s = 0 ? (char *) 0 : (char const *) 0;
11232
11233     *t++ = 0;
11234   }
11235   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11236     int x[] = {25, 17};
11237     const int *foo = &x[0];
11238     ++foo;
11239   }
11240   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11241     typedef const int *iptr;
11242     iptr p = 0;
11243     ++p;
11244   }
11245   { /* AIX XL C 1.02.0.0 rejects this saying
11246        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11247     struct s { int j; const int *ap[3]; };
11248     struct s *b; b->j = 5;
11249   }
11250   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11251     const int foo = 10;
11252   }
11253 #endif
11254
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 rm -f conftest.$ac_objext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261   (eval $ac_compile) 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } &&
11265          { ac_try='test -s conftest.$ac_objext'
11266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267   (eval $ac_try) 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); }; }; then
11271   ac_cv_c_const=yes
11272 else
11273   echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11275
11276 ac_cv_c_const=no
11277 fi
11278 rm -f conftest.$ac_objext conftest.$ac_ext
11279 fi
11280 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11281 echo "${ECHO_T}$ac_cv_c_const" >&6
11282 if test $ac_cv_c_const = no; then
11283
11284 cat >>confdefs.h <<\_ACEOF
11285 #define const
11286 _ACEOF
11287
11288 fi
11289
11290
11291
11292 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11293 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11294 fstype=no
11295 # The order of these tests is important.
11296 cat >conftest.$ac_ext <<_ACEOF
11297 #line $LINENO "configure"
11298 /* confdefs.h.  */
11299 _ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h.  */
11303 #include <sys/statvfs.h>
11304 #include <sys/fstyp.h>
11305 _ACEOF
11306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11307   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11308   ac_status=$?
11309   grep -v '^ *+' conftest.er1 >conftest.err
11310   rm -f conftest.er1
11311   cat conftest.err >&5
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); } >/dev/null; then
11314   if test -s conftest.err; then
11315     ac_cpp_err=$ac_c_preproc_warn_flag
11316   else
11317     ac_cpp_err=
11318   fi
11319 else
11320   ac_cpp_err=yes
11321 fi
11322 if test -z "$ac_cpp_err"; then
11323   cat >>confdefs.h <<\_ACEOF
11324 #define FSTYPE_STATVFS 1
11325 _ACEOF
11326  fstype=SVR4
11327 else
11328   echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11330
11331
11332 fi
11333 rm -f conftest.err conftest.$ac_ext
11334 if test $fstype = no; then
11335 cat >conftest.$ac_ext <<_ACEOF
11336 #line $LINENO "configure"
11337 /* confdefs.h.  */
11338 _ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h.  */
11342 #include <sys/statfs.h>
11343 #include <sys/fstyp.h>
11344 _ACEOF
11345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11347   ac_status=$?
11348   grep -v '^ *+' conftest.er1 >conftest.err
11349   rm -f conftest.er1
11350   cat conftest.err >&5
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); } >/dev/null; then
11353   if test -s conftest.err; then
11354     ac_cpp_err=$ac_c_preproc_warn_flag
11355   else
11356     ac_cpp_err=
11357   fi
11358 else
11359   ac_cpp_err=yes
11360 fi
11361 if test -z "$ac_cpp_err"; then
11362   cat >>confdefs.h <<\_ACEOF
11363 #define FSTYPE_USG_STATFS 1
11364 _ACEOF
11365  fstype=SVR3
11366 else
11367   echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11369
11370
11371 fi
11372 rm -f conftest.err conftest.$ac_ext
11373 fi
11374 if test $fstype = no; then
11375 cat >conftest.$ac_ext <<_ACEOF
11376 #line $LINENO "configure"
11377 /* confdefs.h.  */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h.  */
11382 #include <sys/statfs.h>
11383 #include <sys/vmount.h>
11384 _ACEOF
11385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11387   ac_status=$?
11388   grep -v '^ *+' conftest.er1 >conftest.err
11389   rm -f conftest.er1
11390   cat conftest.err >&5
11391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); } >/dev/null; then
11393   if test -s conftest.err; then
11394     ac_cpp_err=$ac_c_preproc_warn_flag
11395   else
11396     ac_cpp_err=
11397   fi
11398 else
11399   ac_cpp_err=yes
11400 fi
11401 if test -z "$ac_cpp_err"; then
11402   cat >>confdefs.h <<\_ACEOF
11403 #define FSTYPE_AIX_STATFS 1
11404 _ACEOF
11405  fstype=AIX
11406 else
11407   echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11409
11410
11411 fi
11412 rm -f conftest.err conftest.$ac_ext
11413 fi
11414 if test $fstype = no; then
11415 cat >conftest.$ac_ext <<_ACEOF
11416 #line $LINENO "configure"
11417 /* confdefs.h.  */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h.  */
11422 #include <mntent.h>
11423 _ACEOF
11424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11425   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11426   ac_status=$?
11427   grep -v '^ *+' conftest.er1 >conftest.err
11428   rm -f conftest.er1
11429   cat conftest.err >&5
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); } >/dev/null; then
11432   if test -s conftest.err; then
11433     ac_cpp_err=$ac_c_preproc_warn_flag
11434   else
11435     ac_cpp_err=
11436   fi
11437 else
11438   ac_cpp_err=yes
11439 fi
11440 if test -z "$ac_cpp_err"; then
11441   cat >>confdefs.h <<\_ACEOF
11442 #define FSTYPE_MNTENT 1
11443 _ACEOF
11444  fstype=4.3BSD
11445 else
11446   echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11448
11449
11450 fi
11451 rm -f conftest.err conftest.$ac_ext
11452 fi
11453 if test $fstype = no; then
11454 cat >conftest.$ac_ext <<_ACEOF
11455 #line $LINENO "configure"
11456 /* confdefs.h.  */
11457 _ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h.  */
11461 #include <sys/mount.h>
11462
11463 _ACEOF
11464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11465   $EGREP "f_type;" >/dev/null 2>&1; then
11466   cat >>confdefs.h <<\_ACEOF
11467 #define FSTYPE_STATFS 1
11468 _ACEOF
11469  fstype=4.4BSD/OSF1
11470 fi
11471 rm -f conftest*
11472
11473 fi
11474 if test $fstype = no; then
11475 cat >conftest.$ac_ext <<_ACEOF
11476 #line $LINENO "configure"
11477 /* confdefs.h.  */
11478 _ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h.  */
11482 #include <sys/mount.h>
11483 #include <sys/fs_types.h>
11484 _ACEOF
11485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11486   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11487   ac_status=$?
11488   grep -v '^ *+' conftest.er1 >conftest.err
11489   rm -f conftest.er1
11490   cat conftest.err >&5
11491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   (exit $ac_status); } >/dev/null; then
11493   if test -s conftest.err; then
11494     ac_cpp_err=$ac_c_preproc_warn_flag
11495   else
11496     ac_cpp_err=
11497   fi
11498 else
11499   ac_cpp_err=yes
11500 fi
11501 if test -z "$ac_cpp_err"; then
11502   cat >>confdefs.h <<\_ACEOF
11503 #define FSTYPE_GETMNT 1
11504 _ACEOF
11505  fstype=Ultrix
11506 else
11507   echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11509
11510
11511 fi
11512 rm -f conftest.err conftest.$ac_ext
11513 fi
11514 echo "$as_me:$LINENO: result: $fstype" >&5
11515 echo "${ECHO_T}$fstype" >&6
11516
11517 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11518 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11519 if test "${ac_cv_type_signal+set}" = set; then
11520   echo $ECHO_N "(cached) $ECHO_C" >&6
11521 else
11522   cat >conftest.$ac_ext <<_ACEOF
11523 #line $LINENO "configure"
11524 /* confdefs.h.  */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h.  */
11529 #include <sys/types.h>
11530 #include <signal.h>
11531 #ifdef signal
11532 # undef signal
11533 #endif
11534 #ifdef __cplusplus
11535 extern "C" void (*signal (int, void (*)(int)))(int);
11536 #else
11537 void (*signal ()) ();
11538 #endif
11539
11540 int
11541 main ()
11542 {
11543 int i;
11544   ;
11545   return 0;
11546 }
11547 _ACEOF
11548 rm -f conftest.$ac_objext
11549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11550   (eval $ac_compile) 2>&5
11551   ac_status=$?
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); } &&
11554          { ac_try='test -s conftest.$ac_objext'
11555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556   (eval $ac_try) 2>&5
11557   ac_status=$?
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); }; }; then
11560   ac_cv_type_signal=void
11561 else
11562   echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11564
11565 ac_cv_type_signal=int
11566 fi
11567 rm -f conftest.$ac_objext conftest.$ac_ext
11568 fi
11569 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11570 echo "${ECHO_T}$ac_cv_type_signal" >&6
11571
11572 cat >>confdefs.h <<_ACEOF
11573 #define RETSIGTYPE $ac_cv_type_signal
11574 _ACEOF
11575
11576
11577
11578 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11579 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11580 if test "${bash_cv_signal_vintage+set}" = set; then
11581   echo $ECHO_N "(cached) $ECHO_C" >&6
11582 else
11583
11584   cat >conftest.$ac_ext <<_ACEOF
11585 #line $LINENO "configure"
11586 /* confdefs.h.  */
11587 _ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h.  */
11591 #include <signal.h>
11592 int
11593 main ()
11594 {
11595
11596     sigset_t ss;
11597     struct sigaction sa;
11598     sigemptyset(&ss); sigsuspend(&ss);
11599     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11600     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11601
11602   ;
11603   return 0;
11604 }
11605 _ACEOF
11606 rm -f conftest.$ac_objext conftest$ac_exeext
11607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11608   (eval $ac_link) 2>&5
11609   ac_status=$?
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); } &&
11612          { ac_try='test -s conftest$ac_exeext'
11613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614   (eval $ac_try) 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); }; }; then
11618   bash_cv_signal_vintage=posix
11619 else
11620   echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623
11624     cat >conftest.$ac_ext <<_ACEOF
11625 #line $LINENO "configure"
11626 /* confdefs.h.  */
11627 _ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h.  */
11631 #include <signal.h>
11632 int
11633 main ()
11634 {
11635
11636         int mask = sigmask(SIGINT);
11637         sigsetmask(mask); sigblock(mask); sigpause(mask);
11638
11639   ;
11640   return 0;
11641 }
11642 _ACEOF
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11645   (eval $ac_link) 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); } &&
11649          { ac_try='test -s conftest$ac_exeext'
11650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651   (eval $ac_try) 2>&5
11652   ac_status=$?
11653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654   (exit $ac_status); }; }; then
11655   bash_cv_signal_vintage=4.2bsd
11656 else
11657   echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.$ac_ext >&5
11659
11660
11661       cat >conftest.$ac_ext <<_ACEOF
11662 #line $LINENO "configure"
11663 /* confdefs.h.  */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h.  */
11668
11669         #include <signal.h>
11670         RETSIGTYPE foo() { }
11671 int
11672 main ()
11673 {
11674
11675                 int mask = sigmask(SIGINT);
11676                 sigset(SIGINT, foo); sigrelse(SIGINT);
11677                 sighold(SIGINT); sigpause(SIGINT);
11678
11679   ;
11680   return 0;
11681 }
11682 _ACEOF
11683 rm -f conftest.$ac_objext conftest$ac_exeext
11684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11685   (eval $ac_link) 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); } &&
11689          { ac_try='test -s conftest$ac_exeext'
11690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691   (eval $ac_try) 2>&5
11692   ac_status=$?
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); }; }; then
11695   bash_cv_signal_vintage=svr3
11696 else
11697   echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11699
11700 bash_cv_signal_vintage=v7
11701
11702 fi
11703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11704
11705 fi
11706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11707
11708 fi
11709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11710
11711 fi
11712
11713 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11714 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11715 if test "$bash_cv_signal_vintage" = posix; then
11716 cat >>confdefs.h <<\_ACEOF
11717 #define HAVE_POSIX_SIGNALS 1
11718 _ACEOF
11719
11720 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11721 cat >>confdefs.h <<\_ACEOF
11722 #define HAVE_BSD_SIGNALS 1
11723 _ACEOF
11724
11725 elif test "$bash_cv_signal_vintage" = svr3; then
11726 cat >>confdefs.h <<\_ACEOF
11727 #define HAVE_USG_SIGHOLD 1
11728 _ACEOF
11729
11730 fi
11731
11732 echo "$as_me:$LINENO: checking for mode_t" >&5
11733 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11734 if test "${ac_cv_type_mode_t+set}" = set; then
11735   echo $ECHO_N "(cached) $ECHO_C" >&6
11736 else
11737   cat >conftest.$ac_ext <<_ACEOF
11738 #line $LINENO "configure"
11739 /* confdefs.h.  */
11740 _ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h.  */
11744 $ac_includes_default
11745 int
11746 main ()
11747 {
11748 if ((mode_t *) 0)
11749   return 0;
11750 if (sizeof (mode_t))
11751   return 0;
11752   ;
11753   return 0;
11754 }
11755 _ACEOF
11756 rm -f conftest.$ac_objext
11757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11758   (eval $ac_compile) 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); } &&
11762          { ac_try='test -s conftest.$ac_objext'
11763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764   (eval $ac_try) 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; }; then
11768   ac_cv_type_mode_t=yes
11769 else
11770   echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11772
11773 ac_cv_type_mode_t=no
11774 fi
11775 rm -f conftest.$ac_objext conftest.$ac_ext
11776 fi
11777 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11778 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11779 if test $ac_cv_type_mode_t = yes; then
11780   :
11781 else
11782
11783 cat >>confdefs.h <<_ACEOF
11784 #define mode_t int
11785 _ACEOF
11786
11787 fi
11788
11789 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11790 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11791 if test "${ac_cv_type_uid_t+set}" = set; then
11792   echo $ECHO_N "(cached) $ECHO_C" >&6
11793 else
11794   cat >conftest.$ac_ext <<_ACEOF
11795 #line $LINENO "configure"
11796 /* confdefs.h.  */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h.  */
11801 #include <sys/types.h>
11802
11803 _ACEOF
11804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11805   $EGREP "uid_t" >/dev/null 2>&1; then
11806   ac_cv_type_uid_t=yes
11807 else
11808   ac_cv_type_uid_t=no
11809 fi
11810 rm -f conftest*
11811
11812 fi
11813 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11814 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11815 if test $ac_cv_type_uid_t = no; then
11816
11817 cat >>confdefs.h <<\_ACEOF
11818 #define uid_t int
11819 _ACEOF
11820
11821
11822 cat >>confdefs.h <<\_ACEOF
11823 #define gid_t int
11824 _ACEOF
11825
11826 fi
11827
11828 echo "$as_me:$LINENO: checking for size_t" >&5
11829 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11830 if test "${ac_cv_type_size_t+set}" = set; then
11831   echo $ECHO_N "(cached) $ECHO_C" >&6
11832 else
11833   cat >conftest.$ac_ext <<_ACEOF
11834 #line $LINENO "configure"
11835 /* confdefs.h.  */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h.  */
11840 $ac_includes_default
11841 int
11842 main ()
11843 {
11844 if ((size_t *) 0)
11845   return 0;
11846 if (sizeof (size_t))
11847   return 0;
11848   ;
11849   return 0;
11850 }
11851 _ACEOF
11852 rm -f conftest.$ac_objext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11854   (eval $ac_compile) 2>&5
11855   ac_status=$?
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); } &&
11858          { ac_try='test -s conftest.$ac_objext'
11859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860   (eval $ac_try) 2>&5
11861   ac_status=$?
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); }; }; then
11864   ac_cv_type_size_t=yes
11865 else
11866   echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11868
11869 ac_cv_type_size_t=no
11870 fi
11871 rm -f conftest.$ac_objext conftest.$ac_ext
11872 fi
11873 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11874 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11875 if test $ac_cv_type_size_t = yes; then
11876   :
11877 else
11878
11879 cat >>confdefs.h <<_ACEOF
11880 #define size_t unsigned
11881 _ACEOF
11882
11883 fi
11884
11885 echo "$as_me:$LINENO: checking for pid_t" >&5
11886 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11887 if test "${ac_cv_type_pid_t+set}" = set; then
11888   echo $ECHO_N "(cached) $ECHO_C" >&6
11889 else
11890   cat >conftest.$ac_ext <<_ACEOF
11891 #line $LINENO "configure"
11892 /* confdefs.h.  */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h.  */
11897 $ac_includes_default
11898 int
11899 main ()
11900 {
11901 if ((pid_t *) 0)
11902   return 0;
11903 if (sizeof (pid_t))
11904   return 0;
11905   ;
11906   return 0;
11907 }
11908 _ACEOF
11909 rm -f conftest.$ac_objext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911   (eval $ac_compile) 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); } &&
11915          { ac_try='test -s conftest.$ac_objext'
11916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917   (eval $ac_try) 2>&5
11918   ac_status=$?
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); }; }; then
11921   ac_cv_type_pid_t=yes
11922 else
11923   echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11925
11926 ac_cv_type_pid_t=no
11927 fi
11928 rm -f conftest.$ac_objext conftest.$ac_ext
11929 fi
11930 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11931 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11932 if test $ac_cv_type_pid_t = yes; then
11933   :
11934 else
11935
11936 cat >>confdefs.h <<_ACEOF
11937 #define pid_t int
11938 _ACEOF
11939
11940 fi
11941
11942 echo "$as_me:$LINENO: checking for off_t" >&5
11943 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11944 if test "${ac_cv_type_off_t+set}" = set; then
11945   echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947   cat >conftest.$ac_ext <<_ACEOF
11948 #line $LINENO "configure"
11949 /* confdefs.h.  */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h.  */
11954 $ac_includes_default
11955 int
11956 main ()
11957 {
11958 if ((off_t *) 0)
11959   return 0;
11960 if (sizeof (off_t))
11961   return 0;
11962   ;
11963   return 0;
11964 }
11965 _ACEOF
11966 rm -f conftest.$ac_objext
11967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11968   (eval $ac_compile) 2>&5
11969   ac_status=$?
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); } &&
11972          { ac_try='test -s conftest.$ac_objext'
11973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974   (eval $ac_try) 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); }; }; then
11978   ac_cv_type_off_t=yes
11979 else
11980   echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11982
11983 ac_cv_type_off_t=no
11984 fi
11985 rm -f conftest.$ac_objext conftest.$ac_ext
11986 fi
11987 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11988 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11989 if test $ac_cv_type_off_t = yes; then
11990   :
11991 else
11992
11993 cat >>confdefs.h <<_ACEOF
11994 #define off_t long
11995 _ACEOF
11996
11997 fi
11998
11999 echo "$as_me:$LINENO: checking for ino_t" >&5
12000 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12001 if test "${ac_cv_type_ino_t+set}" = set; then
12002   echo $ECHO_N "(cached) $ECHO_C" >&6
12003 else
12004   cat >conftest.$ac_ext <<_ACEOF
12005 #line $LINENO "configure"
12006 /* confdefs.h.  */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h.  */
12011 $ac_includes_default
12012 int
12013 main ()
12014 {
12015 if ((ino_t *) 0)
12016   return 0;
12017 if (sizeof (ino_t))
12018   return 0;
12019   ;
12020   return 0;
12021 }
12022 _ACEOF
12023 rm -f conftest.$ac_objext
12024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12025   (eval $ac_compile) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); } &&
12029          { ac_try='test -s conftest.$ac_objext'
12030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031   (eval $ac_try) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; }; then
12035   ac_cv_type_ino_t=yes
12036 else
12037   echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12039
12040 ac_cv_type_ino_t=no
12041 fi
12042 rm -f conftest.$ac_objext conftest.$ac_ext
12043 fi
12044 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12045 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12046 if test $ac_cv_type_ino_t = yes; then
12047   :
12048 else
12049
12050 cat >>confdefs.h <<_ACEOF
12051 #define ino_t unsigned long
12052 _ACEOF
12053
12054 fi
12055
12056 echo "$as_me:$LINENO: checking for dev_t" >&5
12057 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12058 if test "${ac_cv_type_dev_t+set}" = set; then
12059   echo $ECHO_N "(cached) $ECHO_C" >&6
12060 else
12061   cat >conftest.$ac_ext <<_ACEOF
12062 #line $LINENO "configure"
12063 /* confdefs.h.  */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h.  */
12068 $ac_includes_default
12069 int
12070 main ()
12071 {
12072 if ((dev_t *) 0)
12073   return 0;
12074 if (sizeof (dev_t))
12075   return 0;
12076   ;
12077   return 0;
12078 }
12079 _ACEOF
12080 rm -f conftest.$ac_objext
12081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12082   (eval $ac_compile) 2>&5
12083   ac_status=$?
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); } &&
12086          { ac_try='test -s conftest.$ac_objext'
12087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088   (eval $ac_try) 2>&5
12089   ac_status=$?
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); }; }; then
12092   ac_cv_type_dev_t=yes
12093 else
12094   echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12096
12097 ac_cv_type_dev_t=no
12098 fi
12099 rm -f conftest.$ac_objext conftest.$ac_ext
12100 fi
12101 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12102 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12103 if test $ac_cv_type_dev_t = yes; then
12104   :
12105 else
12106
12107 cat >>confdefs.h <<_ACEOF
12108 #define dev_t unsigned long
12109 _ACEOF
12110
12111 fi
12112
12113 echo "$as_me:$LINENO: checking for daddr_t" >&5
12114 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12115 if test "${ac_cv_type_daddr_t+set}" = set; then
12116   echo $ECHO_N "(cached) $ECHO_C" >&6
12117 else
12118   cat >conftest.$ac_ext <<_ACEOF
12119 #line $LINENO "configure"
12120 /* confdefs.h.  */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h.  */
12125 $ac_includes_default
12126 int
12127 main ()
12128 {
12129 if ((daddr_t *) 0)
12130   return 0;
12131 if (sizeof (daddr_t))
12132   return 0;
12133   ;
12134   return 0;
12135 }
12136 _ACEOF
12137 rm -f conftest.$ac_objext
12138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12139   (eval $ac_compile) 2>&5
12140   ac_status=$?
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); } &&
12143          { ac_try='test -s conftest.$ac_objext'
12144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145   (eval $ac_try) 2>&5
12146   ac_status=$?
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); }; }; then
12149   ac_cv_type_daddr_t=yes
12150 else
12151   echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12153
12154 ac_cv_type_daddr_t=no
12155 fi
12156 rm -f conftest.$ac_objext conftest.$ac_ext
12157 fi
12158 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12159 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12160 if test $ac_cv_type_daddr_t = yes; then
12161   :
12162 else
12163
12164 cat >>confdefs.h <<_ACEOF
12165 #define daddr_t long
12166 _ACEOF
12167
12168 fi
12169
12170 echo "$as_me:$LINENO: checking for major_t" >&5
12171 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12172 if test "${ac_cv_type_major_t+set}" = set; then
12173   echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175   cat >conftest.$ac_ext <<_ACEOF
12176 #line $LINENO "configure"
12177 /* confdefs.h.  */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h.  */
12182 $ac_includes_default
12183 int
12184 main ()
12185 {
12186 if ((major_t *) 0)
12187   return 0;
12188 if (sizeof (major_t))
12189   return 0;
12190   ;
12191   return 0;
12192 }
12193 _ACEOF
12194 rm -f conftest.$ac_objext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12196   (eval $ac_compile) 2>&5
12197   ac_status=$?
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); } &&
12200          { ac_try='test -s conftest.$ac_objext'
12201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202   (eval $ac_try) 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; }; then
12206   ac_cv_type_major_t=yes
12207 else
12208   echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12210
12211 ac_cv_type_major_t=no
12212 fi
12213 rm -f conftest.$ac_objext conftest.$ac_ext
12214 fi
12215 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12216 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12217 if test $ac_cv_type_major_t = yes; then
12218   :
12219 else
12220
12221 cat >>confdefs.h <<_ACEOF
12222 #define major_t int
12223 _ACEOF
12224
12225 fi
12226
12227 echo "$as_me:$LINENO: checking for minor_t" >&5
12228 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12229 if test "${ac_cv_type_minor_t+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   cat >conftest.$ac_ext <<_ACEOF
12233 #line $LINENO "configure"
12234 /* confdefs.h.  */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h.  */
12239 $ac_includes_default
12240 int
12241 main ()
12242 {
12243 if ((minor_t *) 0)
12244   return 0;
12245 if (sizeof (minor_t))
12246   return 0;
12247   ;
12248   return 0;
12249 }
12250 _ACEOF
12251 rm -f conftest.$ac_objext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12253   (eval $ac_compile) 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); } &&
12257          { ac_try='test -s conftest.$ac_objext'
12258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259   (eval $ac_try) 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); }; }; then
12263   ac_cv_type_minor_t=yes
12264 else
12265   echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12267
12268 ac_cv_type_minor_t=no
12269 fi
12270 rm -f conftest.$ac_objext conftest.$ac_ext
12271 fi
12272 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12273 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12274 if test $ac_cv_type_minor_t = yes; then
12275   :
12276 else
12277
12278 cat >>confdefs.h <<_ACEOF
12279 #define minor_t int
12280 _ACEOF
12281
12282 fi
12283
12284 echo "$as_me:$LINENO: checking for ssize_t" >&5
12285 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12286 if test "${ac_cv_type_ssize_t+set}" = set; then
12287   echo $ECHO_N "(cached) $ECHO_C" >&6
12288 else
12289   cat >conftest.$ac_ext <<_ACEOF
12290 #line $LINENO "configure"
12291 /* confdefs.h.  */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h.  */
12296 $ac_includes_default
12297 int
12298 main ()
12299 {
12300 if ((ssize_t *) 0)
12301   return 0;
12302 if (sizeof (ssize_t))
12303   return 0;
12304   ;
12305   return 0;
12306 }
12307 _ACEOF
12308 rm -f conftest.$ac_objext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12310   (eval $ac_compile) 2>&5
12311   ac_status=$?
12312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313   (exit $ac_status); } &&
12314          { ac_try='test -s conftest.$ac_objext'
12315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316   (eval $ac_try) 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); }; }; then
12320   ac_cv_type_ssize_t=yes
12321 else
12322   echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12324
12325 ac_cv_type_ssize_t=no
12326 fi
12327 rm -f conftest.$ac_objext conftest.$ac_ext
12328 fi
12329 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12330 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12331 if test $ac_cv_type_ssize_t = yes; then
12332   :
12333 else
12334
12335 cat >>confdefs.h <<_ACEOF
12336 #define ssize_t int
12337 _ACEOF
12338
12339 fi
12340
12341 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12342 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12343 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12344   echo $ECHO_N "(cached) $ECHO_C" >&6
12345 else
12346   cat >conftest.$ac_ext <<_ACEOF
12347 #line $LINENO "configure"
12348 /* confdefs.h.  */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h.  */
12353 $ac_includes_default
12354 int
12355 main ()
12356 {
12357 static struct stat ac_aggr;
12358 if (ac_aggr.st_blocks)
12359 return 0;
12360   ;
12361   return 0;
12362 }
12363 _ACEOF
12364 rm -f conftest.$ac_objext
12365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12366   (eval $ac_compile) 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); } &&
12370          { ac_try='test -s conftest.$ac_objext'
12371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372   (eval $ac_try) 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); }; }; then
12376   ac_cv_member_struct_stat_st_blocks=yes
12377 else
12378   echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381 cat >conftest.$ac_ext <<_ACEOF
12382 #line $LINENO "configure"
12383 /* confdefs.h.  */
12384 _ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h.  */
12388 $ac_includes_default
12389 int
12390 main ()
12391 {
12392 static struct stat ac_aggr;
12393 if (sizeof ac_aggr.st_blocks)
12394 return 0;
12395   ;
12396   return 0;
12397 }
12398 _ACEOF
12399 rm -f conftest.$ac_objext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12401   (eval $ac_compile) 2>&5
12402   ac_status=$?
12403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); } &&
12405          { ac_try='test -s conftest.$ac_objext'
12406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407   (eval $ac_try) 2>&5
12408   ac_status=$?
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); }; }; then
12411   ac_cv_member_struct_stat_st_blocks=yes
12412 else
12413   echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12415
12416 ac_cv_member_struct_stat_st_blocks=no
12417 fi
12418 rm -f conftest.$ac_objext conftest.$ac_ext
12419 fi
12420 rm -f conftest.$ac_objext conftest.$ac_ext
12421 fi
12422 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12423 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12424 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12425
12426 cat >>confdefs.h <<_ACEOF
12427 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12428 _ACEOF
12429
12430
12431 cat >>confdefs.h <<\_ACEOF
12432 #define HAVE_ST_BLOCKS 1
12433 _ACEOF
12434
12435 else
12436   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12437 fi
12438
12439
12440
12441 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12442 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12443 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12444   echo $ECHO_N "(cached) $ECHO_C" >&6
12445 else
12446   cat >conftest.$ac_ext <<_ACEOF
12447 #line $LINENO "configure"
12448 /* confdefs.h.  */
12449 _ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h.  */
12453 $ac_includes_default
12454 int
12455 main ()
12456 {
12457 static struct stat ac_aggr;
12458 if (ac_aggr.st_rdev)
12459 return 0;
12460   ;
12461   return 0;
12462 }
12463 _ACEOF
12464 rm -f conftest.$ac_objext
12465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12466   (eval $ac_compile) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); } &&
12470          { ac_try='test -s conftest.$ac_objext'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; }; then
12476   ac_cv_member_struct_stat_st_rdev=yes
12477 else
12478   echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12480
12481 cat >conftest.$ac_ext <<_ACEOF
12482 #line $LINENO "configure"
12483 /* confdefs.h.  */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h.  */
12488 $ac_includes_default
12489 int
12490 main ()
12491 {
12492 static struct stat ac_aggr;
12493 if (sizeof ac_aggr.st_rdev)
12494 return 0;
12495   ;
12496   return 0;
12497 }
12498 _ACEOF
12499 rm -f conftest.$ac_objext
12500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12501   (eval $ac_compile) 2>&5
12502   ac_status=$?
12503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504   (exit $ac_status); } &&
12505          { ac_try='test -s conftest.$ac_objext'
12506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507   (eval $ac_try) 2>&5
12508   ac_status=$?
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); }; }; then
12511   ac_cv_member_struct_stat_st_rdev=yes
12512 else
12513   echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12515
12516 ac_cv_member_struct_stat_st_rdev=no
12517 fi
12518 rm -f conftest.$ac_objext conftest.$ac_ext
12519 fi
12520 rm -f conftest.$ac_objext conftest.$ac_ext
12521 fi
12522 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12523 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12524 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12525
12526 cat >>confdefs.h <<_ACEOF
12527 #define HAVE_STRUCT_STAT_ST_RDEV 1
12528 _ACEOF
12529
12530
12531 cat >>confdefs.h <<\_ACEOF
12532 #define HAVE_ST_RDEV 1
12533 _ACEOF
12534
12535 fi
12536
12537
12538 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12539 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12540 if test "${ac_cv_struct_tm+set}" = set; then
12541   echo $ECHO_N "(cached) $ECHO_C" >&6
12542 else
12543   cat >conftest.$ac_ext <<_ACEOF
12544 #line $LINENO "configure"
12545 /* confdefs.h.  */
12546 _ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h.  */
12550 #include <sys/types.h>
12551 #include <time.h>
12552
12553 int
12554 main ()
12555 {
12556 struct tm *tp; tp->tm_sec;
12557   ;
12558   return 0;
12559 }
12560 _ACEOF
12561 rm -f conftest.$ac_objext
12562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12563   (eval $ac_compile) 2>&5
12564   ac_status=$?
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); } &&
12567          { ac_try='test -s conftest.$ac_objext'
12568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569   (eval $ac_try) 2>&5
12570   ac_status=$?
12571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572   (exit $ac_status); }; }; then
12573   ac_cv_struct_tm=time.h
12574 else
12575   echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12577
12578 ac_cv_struct_tm=sys/time.h
12579 fi
12580 rm -f conftest.$ac_objext conftest.$ac_ext
12581 fi
12582 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12583 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12584 if test $ac_cv_struct_tm = sys/time.h; then
12585
12586 cat >>confdefs.h <<\_ACEOF
12587 #define TM_IN_SYS_TIME 1
12588 _ACEOF
12589
12590 fi
12591
12592 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12593 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12594 if test "${ac_cv_c_const+set}" = set; then
12595   echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597   cat >conftest.$ac_ext <<_ACEOF
12598 #line $LINENO "configure"
12599 /* confdefs.h.  */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h.  */
12604
12605 int
12606 main ()
12607 {
12608 /* FIXME: Include the comments suggested by Paul. */
12609 #ifndef __cplusplus
12610   /* Ultrix mips cc rejects this.  */
12611   typedef int charset[2];
12612   const charset x;
12613   /* SunOS 4.1.1 cc rejects this.  */
12614   char const *const *ccp;
12615   char **p;
12616   /* NEC SVR4.0.2 mips cc rejects this.  */
12617   struct point {int x, y;};
12618   static struct point const zero = {0,0};
12619   /* AIX XL C 1.02.0.0 rejects this.
12620      It does not let you subtract one const X* pointer from another in
12621      an arm of an if-expression whose if-part is not a constant
12622      expression */
12623   const char *g = "string";
12624   ccp = &g + (g ? g-g : 0);
12625   /* HPUX 7.0 cc rejects these. */
12626   ++ccp;
12627   p = (char**) ccp;
12628   ccp = (char const *const *) p;
12629   { /* SCO 3.2v4 cc rejects this.  */
12630     char *t;
12631     char const *s = 0 ? (char *) 0 : (char const *) 0;
12632
12633     *t++ = 0;
12634   }
12635   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12636     int x[] = {25, 17};
12637     const int *foo = &x[0];
12638     ++foo;
12639   }
12640   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12641     typedef const int *iptr;
12642     iptr p = 0;
12643     ++p;
12644   }
12645   { /* AIX XL C 1.02.0.0 rejects this saying
12646        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12647     struct s { int j; const int *ap[3]; };
12648     struct s *b; b->j = 5;
12649   }
12650   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12651     const int foo = 10;
12652   }
12653 #endif
12654
12655   ;
12656   return 0;
12657 }
12658 _ACEOF
12659 rm -f conftest.$ac_objext
12660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12661   (eval $ac_compile) 2>&5
12662   ac_status=$?
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); } &&
12665          { ac_try='test -s conftest.$ac_objext'
12666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667   (eval $ac_try) 2>&5
12668   ac_status=$?
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); }; }; then
12671   ac_cv_c_const=yes
12672 else
12673   echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12675
12676 ac_cv_c_const=no
12677 fi
12678 rm -f conftest.$ac_objext conftest.$ac_ext
12679 fi
12680 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12681 echo "${ECHO_T}$ac_cv_c_const" >&6
12682 if test $ac_cv_c_const = no; then
12683
12684 cat >>confdefs.h <<\_ACEOF
12685 #define const
12686 _ACEOF
12687
12688 fi
12689
12690
12691
12692 echo "$as_me:$LINENO: checking for char" >&5
12693 echo $ECHO_N "checking for char... $ECHO_C" >&6
12694 if test "${ac_cv_type_char+set}" = set; then
12695   echo $ECHO_N "(cached) $ECHO_C" >&6
12696 else
12697   cat >conftest.$ac_ext <<_ACEOF
12698 #line $LINENO "configure"
12699 /* confdefs.h.  */
12700 _ACEOF
12701 cat confdefs.h >>conftest.$ac_ext
12702 cat >>conftest.$ac_ext <<_ACEOF
12703 /* end confdefs.h.  */
12704 $ac_includes_default
12705 int
12706 main ()
12707 {
12708 if ((char *) 0)
12709   return 0;
12710 if (sizeof (char))
12711   return 0;
12712   ;
12713   return 0;
12714 }
12715 _ACEOF
12716 rm -f conftest.$ac_objext
12717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12718   (eval $ac_compile) 2>&5
12719   ac_status=$?
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); } &&
12722          { ac_try='test -s conftest.$ac_objext'
12723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724   (eval $ac_try) 2>&5
12725   ac_status=$?
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); }; }; then
12728   ac_cv_type_char=yes
12729 else
12730   echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733 ac_cv_type_char=no
12734 fi
12735 rm -f conftest.$ac_objext conftest.$ac_ext
12736 fi
12737 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12738 echo "${ECHO_T}$ac_cv_type_char" >&6
12739
12740 echo "$as_me:$LINENO: checking size of char" >&5
12741 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12742 if test "${ac_cv_sizeof_char+set}" = set; then
12743   echo $ECHO_N "(cached) $ECHO_C" >&6
12744 else
12745   if test "$ac_cv_type_char" = yes; then
12746   # The cast to unsigned long works around a bug in the HP C Compiler
12747   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12748   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12749   # This bug is HP SR number 8606223364.
12750   if test "$cross_compiling" = yes; then
12751   # Depending upon the size, compute the lo and hi bounds.
12752 cat >conftest.$ac_ext <<_ACEOF
12753 #line $LINENO "configure"
12754 /* confdefs.h.  */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h.  */
12759 $ac_includes_default
12760 int
12761 main ()
12762 {
12763 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12764 test_array [0] = 0
12765
12766   ;
12767   return 0;
12768 }
12769 _ACEOF
12770 rm -f conftest.$ac_objext
12771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12772   (eval $ac_compile) 2>&5
12773   ac_status=$?
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); } &&
12776          { ac_try='test -s conftest.$ac_objext'
12777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778   (eval $ac_try) 2>&5
12779   ac_status=$?
12780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781   (exit $ac_status); }; }; then
12782   ac_lo=0 ac_mid=0
12783   while :; do
12784     cat >conftest.$ac_ext <<_ACEOF
12785 #line $LINENO "configure"
12786 /* confdefs.h.  */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h.  */
12791 $ac_includes_default
12792 int
12793 main ()
12794 {
12795 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12796 test_array [0] = 0
12797
12798   ;
12799   return 0;
12800 }
12801 _ACEOF
12802 rm -f conftest.$ac_objext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12804   (eval $ac_compile) 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); } &&
12808          { ac_try='test -s conftest.$ac_objext'
12809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810   (eval $ac_try) 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); }; }; then
12814   ac_hi=$ac_mid; break
12815 else
12816   echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12818
12819 ac_lo=`expr $ac_mid + 1`
12820                     if test $ac_lo -le $ac_mid; then
12821                       ac_lo= ac_hi=
12822                       break
12823                     fi
12824                     ac_mid=`expr 2 '*' $ac_mid + 1`
12825 fi
12826 rm -f conftest.$ac_objext conftest.$ac_ext
12827   done
12828 else
12829   echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12831
12832 cat >conftest.$ac_ext <<_ACEOF
12833 #line $LINENO "configure"
12834 /* confdefs.h.  */
12835 _ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h.  */
12839 $ac_includes_default
12840 int
12841 main ()
12842 {
12843 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12844 test_array [0] = 0
12845
12846   ;
12847   return 0;
12848 }
12849 _ACEOF
12850 rm -f conftest.$ac_objext
12851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12852   (eval $ac_compile) 2>&5
12853   ac_status=$?
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); } &&
12856          { ac_try='test -s conftest.$ac_objext'
12857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858   (eval $ac_try) 2>&5
12859   ac_status=$?
12860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); }; }; then
12862   ac_hi=-1 ac_mid=-1
12863   while :; do
12864     cat >conftest.$ac_ext <<_ACEOF
12865 #line $LINENO "configure"
12866 /* confdefs.h.  */
12867 _ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h.  */
12871 $ac_includes_default
12872 int
12873 main ()
12874 {
12875 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12876 test_array [0] = 0
12877
12878   ;
12879   return 0;
12880 }
12881 _ACEOF
12882 rm -f conftest.$ac_objext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12884   (eval $ac_compile) 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); } &&
12888          { ac_try='test -s conftest.$ac_objext'
12889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890   (eval $ac_try) 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); }; }; then
12894   ac_lo=$ac_mid; break
12895 else
12896   echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12898
12899 ac_hi=`expr '(' $ac_mid ')' - 1`
12900                        if test $ac_mid -le $ac_hi; then
12901                          ac_lo= ac_hi=
12902                          break
12903                        fi
12904                        ac_mid=`expr 2 '*' $ac_mid`
12905 fi
12906 rm -f conftest.$ac_objext conftest.$ac_ext
12907   done
12908 else
12909   echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12911
12912 ac_lo= ac_hi=
12913 fi
12914 rm -f conftest.$ac_objext conftest.$ac_ext
12915 fi
12916 rm -f conftest.$ac_objext conftest.$ac_ext
12917 # Binary search between lo and hi bounds.
12918 while test "x$ac_lo" != "x$ac_hi"; do
12919   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12920   cat >conftest.$ac_ext <<_ACEOF
12921 #line $LINENO "configure"
12922 /* confdefs.h.  */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h.  */
12927 $ac_includes_default
12928 int
12929 main ()
12930 {
12931 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12932 test_array [0] = 0
12933
12934   ;
12935   return 0;
12936 }
12937 _ACEOF
12938 rm -f conftest.$ac_objext
12939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12940   (eval $ac_compile) 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); } &&
12944          { ac_try='test -s conftest.$ac_objext'
12945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946   (eval $ac_try) 2>&5
12947   ac_status=$?
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); }; }; then
12950   ac_hi=$ac_mid
12951 else
12952   echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12954
12955 ac_lo=`expr '(' $ac_mid ')' + 1`
12956 fi
12957 rm -f conftest.$ac_objext conftest.$ac_ext
12958 done
12959 case $ac_lo in
12960 ?*) ac_cv_sizeof_char=$ac_lo;;
12961 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12962 See \`config.log' for more details." >&5
12963 echo "$as_me: error: cannot compute sizeof (char), 77
12964 See \`config.log' for more details." >&2;}
12965    { (exit 1); exit 1; }; } ;;
12966 esac
12967 else
12968   if test "$cross_compiling" = yes; then
12969   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12970 See \`config.log' for more details." >&5
12971 echo "$as_me: error: cannot run test program while cross compiling
12972 See \`config.log' for more details." >&2;}
12973    { (exit 1); exit 1; }; }
12974 else
12975   cat >conftest.$ac_ext <<_ACEOF
12976 #line $LINENO "configure"
12977 /* confdefs.h.  */
12978 _ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h.  */
12982 $ac_includes_default
12983 long longval () { return (long) (sizeof (char)); }
12984 unsigned long ulongval () { return (long) (sizeof (char)); }
12985 #include <stdio.h>
12986 #include <stdlib.h>
12987 int
12988 main ()
12989 {
12990
12991   FILE *f = fopen ("conftest.val", "w");
12992   if (! f)
12993     exit (1);
12994   if (((long) (sizeof (char))) < 0)
12995     {
12996       long i = longval ();
12997       if (i != ((long) (sizeof (char))))
12998         exit (1);
12999       fprintf (f, "%ld\n", i);
13000     }
13001   else
13002     {
13003       unsigned long i = ulongval ();
13004       if (i != ((long) (sizeof (char))))
13005         exit (1);
13006       fprintf (f, "%lu\n", i);
13007     }
13008   exit (ferror (f) || fclose (f) != 0);
13009
13010   ;
13011   return 0;
13012 }
13013 _ACEOF
13014 rm -f conftest$ac_exeext
13015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13016   (eval $ac_link) 2>&5
13017   ac_status=$?
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021   (eval $ac_try) 2>&5
13022   ac_status=$?
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); }; }; then
13025   ac_cv_sizeof_char=`cat conftest.val`
13026 else
13027   echo "$as_me: program exited with status $ac_status" >&5
13028 echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13030
13031 ( exit $ac_status )
13032 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13033 See \`config.log' for more details." >&5
13034 echo "$as_me: error: cannot compute sizeof (char), 77
13035 See \`config.log' for more details." >&2;}
13036    { (exit 1); exit 1; }; }
13037 fi
13038 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13039 fi
13040 fi
13041 rm -f conftest.val
13042 else
13043   ac_cv_sizeof_char=0
13044 fi
13045 fi
13046 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13047 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13048 cat >>confdefs.h <<_ACEOF
13049 #define SIZEOF_CHAR $ac_cv_sizeof_char
13050 _ACEOF
13051
13052
13053 echo "$as_me:$LINENO: checking for short int" >&5
13054 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13055 if test "${ac_cv_type_short_int+set}" = set; then
13056   echo $ECHO_N "(cached) $ECHO_C" >&6
13057 else
13058   cat >conftest.$ac_ext <<_ACEOF
13059 #line $LINENO "configure"
13060 /* confdefs.h.  */
13061 _ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h.  */
13065 $ac_includes_default
13066 int
13067 main ()
13068 {
13069 if ((short int *) 0)
13070   return 0;
13071 if (sizeof (short int))
13072   return 0;
13073   ;
13074   return 0;
13075 }
13076 _ACEOF
13077 rm -f conftest.$ac_objext
13078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13079   (eval $ac_compile) 2>&5
13080   ac_status=$?
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); } &&
13083          { ac_try='test -s conftest.$ac_objext'
13084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085   (eval $ac_try) 2>&5
13086   ac_status=$?
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); }; }; then
13089   ac_cv_type_short_int=yes
13090 else
13091   echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13093
13094 ac_cv_type_short_int=no
13095 fi
13096 rm -f conftest.$ac_objext conftest.$ac_ext
13097 fi
13098 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13099 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13100
13101 echo "$as_me:$LINENO: checking size of short int" >&5
13102 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13103 if test "${ac_cv_sizeof_short_int+set}" = set; then
13104   echo $ECHO_N "(cached) $ECHO_C" >&6
13105 else
13106   if test "$ac_cv_type_short_int" = yes; then
13107   # The cast to unsigned long works around a bug in the HP C Compiler
13108   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13109   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13110   # This bug is HP SR number 8606223364.
13111   if test "$cross_compiling" = yes; then
13112   # Depending upon the size, compute the lo and hi bounds.
13113 cat >conftest.$ac_ext <<_ACEOF
13114 #line $LINENO "configure"
13115 /* confdefs.h.  */
13116 _ACEOF
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h.  */
13120 $ac_includes_default
13121 int
13122 main ()
13123 {
13124 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13125 test_array [0] = 0
13126
13127   ;
13128   return 0;
13129 }
13130 _ACEOF
13131 rm -f conftest.$ac_objext
13132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13133   (eval $ac_compile) 2>&5
13134   ac_status=$?
13135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136   (exit $ac_status); } &&
13137          { ac_try='test -s conftest.$ac_objext'
13138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139   (eval $ac_try) 2>&5
13140   ac_status=$?
13141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142   (exit $ac_status); }; }; then
13143   ac_lo=0 ac_mid=0
13144   while :; do
13145     cat >conftest.$ac_ext <<_ACEOF
13146 #line $LINENO "configure"
13147 /* confdefs.h.  */
13148 _ACEOF
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h.  */
13152 $ac_includes_default
13153 int
13154 main ()
13155 {
13156 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13157 test_array [0] = 0
13158
13159   ;
13160   return 0;
13161 }
13162 _ACEOF
13163 rm -f conftest.$ac_objext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13165   (eval $ac_compile) 2>&5
13166   ac_status=$?
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); } &&
13169          { ac_try='test -s conftest.$ac_objext'
13170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171   (eval $ac_try) 2>&5
13172   ac_status=$?
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); }; }; then
13175   ac_hi=$ac_mid; break
13176 else
13177   echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13179
13180 ac_lo=`expr $ac_mid + 1`
13181                     if test $ac_lo -le $ac_mid; then
13182                       ac_lo= ac_hi=
13183                       break
13184                     fi
13185                     ac_mid=`expr 2 '*' $ac_mid + 1`
13186 fi
13187 rm -f conftest.$ac_objext conftest.$ac_ext
13188   done
13189 else
13190   echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13192
13193 cat >conftest.$ac_ext <<_ACEOF
13194 #line $LINENO "configure"
13195 /* confdefs.h.  */
13196 _ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h.  */
13200 $ac_includes_default
13201 int
13202 main ()
13203 {
13204 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13205 test_array [0] = 0
13206
13207   ;
13208   return 0;
13209 }
13210 _ACEOF
13211 rm -f conftest.$ac_objext
13212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213   (eval $ac_compile) 2>&5
13214   ac_status=$?
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); } &&
13217          { ac_try='test -s conftest.$ac_objext'
13218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219   (eval $ac_try) 2>&5
13220   ac_status=$?
13221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222   (exit $ac_status); }; }; then
13223   ac_hi=-1 ac_mid=-1
13224   while :; do
13225     cat >conftest.$ac_ext <<_ACEOF
13226 #line $LINENO "configure"
13227 /* confdefs.h.  */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h.  */
13232 $ac_includes_default
13233 int
13234 main ()
13235 {
13236 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13237 test_array [0] = 0
13238
13239   ;
13240   return 0;
13241 }
13242 _ACEOF
13243 rm -f conftest.$ac_objext
13244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13245   (eval $ac_compile) 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); } &&
13249          { ac_try='test -s conftest.$ac_objext'
13250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251   (eval $ac_try) 2>&5
13252   ac_status=$?
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); }; }; then
13255   ac_lo=$ac_mid; break
13256 else
13257   echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260 ac_hi=`expr '(' $ac_mid ')' - 1`
13261                        if test $ac_mid -le $ac_hi; then
13262                          ac_lo= ac_hi=
13263                          break
13264                        fi
13265                        ac_mid=`expr 2 '*' $ac_mid`
13266 fi
13267 rm -f conftest.$ac_objext conftest.$ac_ext
13268   done
13269 else
13270   echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13272
13273 ac_lo= ac_hi=
13274 fi
13275 rm -f conftest.$ac_objext conftest.$ac_ext
13276 fi
13277 rm -f conftest.$ac_objext conftest.$ac_ext
13278 # Binary search between lo and hi bounds.
13279 while test "x$ac_lo" != "x$ac_hi"; do
13280   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13281   cat >conftest.$ac_ext <<_ACEOF
13282 #line $LINENO "configure"
13283 /* confdefs.h.  */
13284 _ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h.  */
13288 $ac_includes_default
13289 int
13290 main ()
13291 {
13292 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13293 test_array [0] = 0
13294
13295   ;
13296   return 0;
13297 }
13298 _ACEOF
13299 rm -f conftest.$ac_objext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13301   (eval $ac_compile) 2>&5
13302   ac_status=$?
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } &&
13305          { ac_try='test -s conftest.$ac_objext'
13306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307   (eval $ac_try) 2>&5
13308   ac_status=$?
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   (exit $ac_status); }; }; then
13311   ac_hi=$ac_mid
13312 else
13313   echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13315
13316 ac_lo=`expr '(' $ac_mid ')' + 1`
13317 fi
13318 rm -f conftest.$ac_objext conftest.$ac_ext
13319 done
13320 case $ac_lo in
13321 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13322 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13323 See \`config.log' for more details." >&5
13324 echo "$as_me: error: cannot compute sizeof (short int), 77
13325 See \`config.log' for more details." >&2;}
13326    { (exit 1); exit 1; }; } ;;
13327 esac
13328 else
13329   if test "$cross_compiling" = yes; then
13330   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13331 See \`config.log' for more details." >&5
13332 echo "$as_me: error: cannot run test program while cross compiling
13333 See \`config.log' for more details." >&2;}
13334    { (exit 1); exit 1; }; }
13335 else
13336   cat >conftest.$ac_ext <<_ACEOF
13337 #line $LINENO "configure"
13338 /* confdefs.h.  */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h.  */
13343 $ac_includes_default
13344 long longval () { return (long) (sizeof (short int)); }
13345 unsigned long ulongval () { return (long) (sizeof (short int)); }
13346 #include <stdio.h>
13347 #include <stdlib.h>
13348 int
13349 main ()
13350 {
13351
13352   FILE *f = fopen ("conftest.val", "w");
13353   if (! f)
13354     exit (1);
13355   if (((long) (sizeof (short int))) < 0)
13356     {
13357       long i = longval ();
13358       if (i != ((long) (sizeof (short int))))
13359         exit (1);
13360       fprintf (f, "%ld\n", i);
13361     }
13362   else
13363     {
13364       unsigned long i = ulongval ();
13365       if (i != ((long) (sizeof (short int))))
13366         exit (1);
13367       fprintf (f, "%lu\n", i);
13368     }
13369   exit (ferror (f) || fclose (f) != 0);
13370
13371   ;
13372   return 0;
13373 }
13374 _ACEOF
13375 rm -f conftest$ac_exeext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13377   (eval $ac_link) 2>&5
13378   ac_status=$?
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382   (eval $ac_try) 2>&5
13383   ac_status=$?
13384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385   (exit $ac_status); }; }; then
13386   ac_cv_sizeof_short_int=`cat conftest.val`
13387 else
13388   echo "$as_me: program exited with status $ac_status" >&5
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13391
13392 ( exit $ac_status )
13393 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13394 See \`config.log' for more details." >&5
13395 echo "$as_me: error: cannot compute sizeof (short int), 77
13396 See \`config.log' for more details." >&2;}
13397    { (exit 1); exit 1; }; }
13398 fi
13399 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13400 fi
13401 fi
13402 rm -f conftest.val
13403 else
13404   ac_cv_sizeof_short_int=0
13405 fi
13406 fi
13407 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13408 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13409 cat >>confdefs.h <<_ACEOF
13410 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13411 _ACEOF
13412
13413
13414 echo "$as_me:$LINENO: checking for int" >&5
13415 echo $ECHO_N "checking for int... $ECHO_C" >&6
13416 if test "${ac_cv_type_int+set}" = set; then
13417   echo $ECHO_N "(cached) $ECHO_C" >&6
13418 else
13419   cat >conftest.$ac_ext <<_ACEOF
13420 #line $LINENO "configure"
13421 /* confdefs.h.  */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h.  */
13426 $ac_includes_default
13427 int
13428 main ()
13429 {
13430 if ((int *) 0)
13431   return 0;
13432 if (sizeof (int))
13433   return 0;
13434   ;
13435   return 0;
13436 }
13437 _ACEOF
13438 rm -f conftest.$ac_objext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13440   (eval $ac_compile) 2>&5
13441   ac_status=$?
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); } &&
13444          { ac_try='test -s conftest.$ac_objext'
13445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446   (eval $ac_try) 2>&5
13447   ac_status=$?
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); }; }; then
13450   ac_cv_type_int=yes
13451 else
13452   echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13454
13455 ac_cv_type_int=no
13456 fi
13457 rm -f conftest.$ac_objext conftest.$ac_ext
13458 fi
13459 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13460 echo "${ECHO_T}$ac_cv_type_int" >&6
13461
13462 echo "$as_me:$LINENO: checking size of int" >&5
13463 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13464 if test "${ac_cv_sizeof_int+set}" = set; then
13465   echo $ECHO_N "(cached) $ECHO_C" >&6
13466 else
13467   if test "$ac_cv_type_int" = yes; then
13468   # The cast to unsigned long works around a bug in the HP C Compiler
13469   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13470   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13471   # This bug is HP SR number 8606223364.
13472   if test "$cross_compiling" = yes; then
13473   # Depending upon the size, compute the lo and hi bounds.
13474 cat >conftest.$ac_ext <<_ACEOF
13475 #line $LINENO "configure"
13476 /* confdefs.h.  */
13477 _ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h.  */
13481 $ac_includes_default
13482 int
13483 main ()
13484 {
13485 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13486 test_array [0] = 0
13487
13488   ;
13489   return 0;
13490 }
13491 _ACEOF
13492 rm -f conftest.$ac_objext
13493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13494   (eval $ac_compile) 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); } &&
13498          { ac_try='test -s conftest.$ac_objext'
13499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500   (eval $ac_try) 2>&5
13501   ac_status=$?
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); }; }; then
13504   ac_lo=0 ac_mid=0
13505   while :; do
13506     cat >conftest.$ac_ext <<_ACEOF
13507 #line $LINENO "configure"
13508 /* confdefs.h.  */
13509 _ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h.  */
13513 $ac_includes_default
13514 int
13515 main ()
13516 {
13517 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13518 test_array [0] = 0
13519
13520   ;
13521   return 0;
13522 }
13523 _ACEOF
13524 rm -f conftest.$ac_objext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526   (eval $ac_compile) 2>&5
13527   ac_status=$?
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); } &&
13530          { ac_try='test -s conftest.$ac_objext'
13531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532   (eval $ac_try) 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; }; then
13536   ac_hi=$ac_mid; break
13537 else
13538   echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541 ac_lo=`expr $ac_mid + 1`
13542                     if test $ac_lo -le $ac_mid; then
13543                       ac_lo= ac_hi=
13544                       break
13545                     fi
13546                     ac_mid=`expr 2 '*' $ac_mid + 1`
13547 fi
13548 rm -f conftest.$ac_objext conftest.$ac_ext
13549   done
13550 else
13551   echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13553
13554 cat >conftest.$ac_ext <<_ACEOF
13555 #line $LINENO "configure"
13556 /* confdefs.h.  */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h.  */
13561 $ac_includes_default
13562 int
13563 main ()
13564 {
13565 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13566 test_array [0] = 0
13567
13568   ;
13569   return 0;
13570 }
13571 _ACEOF
13572 rm -f conftest.$ac_objext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574   (eval $ac_compile) 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); } &&
13578          { ac_try='test -s conftest.$ac_objext'
13579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580   (eval $ac_try) 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; }; then
13584   ac_hi=-1 ac_mid=-1
13585   while :; do
13586     cat >conftest.$ac_ext <<_ACEOF
13587 #line $LINENO "configure"
13588 /* confdefs.h.  */
13589 _ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h.  */
13593 $ac_includes_default
13594 int
13595 main ()
13596 {
13597 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13598 test_array [0] = 0
13599
13600   ;
13601   return 0;
13602 }
13603 _ACEOF
13604 rm -f conftest.$ac_objext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606   (eval $ac_compile) 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); } &&
13610          { ac_try='test -s conftest.$ac_objext'
13611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612   (eval $ac_try) 2>&5
13613   ac_status=$?
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); }; }; then
13616   ac_lo=$ac_mid; break
13617 else
13618   echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13620
13621 ac_hi=`expr '(' $ac_mid ')' - 1`
13622                        if test $ac_mid -le $ac_hi; then
13623                          ac_lo= ac_hi=
13624                          break
13625                        fi
13626                        ac_mid=`expr 2 '*' $ac_mid`
13627 fi
13628 rm -f conftest.$ac_objext conftest.$ac_ext
13629   done
13630 else
13631   echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13633
13634 ac_lo= ac_hi=
13635 fi
13636 rm -f conftest.$ac_objext conftest.$ac_ext
13637 fi
13638 rm -f conftest.$ac_objext conftest.$ac_ext
13639 # Binary search between lo and hi bounds.
13640 while test "x$ac_lo" != "x$ac_hi"; do
13641   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13642   cat >conftest.$ac_ext <<_ACEOF
13643 #line $LINENO "configure"
13644 /* confdefs.h.  */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h.  */
13649 $ac_includes_default
13650 int
13651 main ()
13652 {
13653 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13654 test_array [0] = 0
13655
13656   ;
13657   return 0;
13658 }
13659 _ACEOF
13660 rm -f conftest.$ac_objext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13662   (eval $ac_compile) 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); } &&
13666          { ac_try='test -s conftest.$ac_objext'
13667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668   (eval $ac_try) 2>&5
13669   ac_status=$?
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); }; }; then
13672   ac_hi=$ac_mid
13673 else
13674   echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13676
13677 ac_lo=`expr '(' $ac_mid ')' + 1`
13678 fi
13679 rm -f conftest.$ac_objext conftest.$ac_ext
13680 done
13681 case $ac_lo in
13682 ?*) ac_cv_sizeof_int=$ac_lo;;
13683 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13684 See \`config.log' for more details." >&5
13685 echo "$as_me: error: cannot compute sizeof (int), 77
13686 See \`config.log' for more details." >&2;}
13687    { (exit 1); exit 1; }; } ;;
13688 esac
13689 else
13690   if test "$cross_compiling" = yes; then
13691   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13692 See \`config.log' for more details." >&5
13693 echo "$as_me: error: cannot run test program while cross compiling
13694 See \`config.log' for more details." >&2;}
13695    { (exit 1); exit 1; }; }
13696 else
13697   cat >conftest.$ac_ext <<_ACEOF
13698 #line $LINENO "configure"
13699 /* confdefs.h.  */
13700 _ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h.  */
13704 $ac_includes_default
13705 long longval () { return (long) (sizeof (int)); }
13706 unsigned long ulongval () { return (long) (sizeof (int)); }
13707 #include <stdio.h>
13708 #include <stdlib.h>
13709 int
13710 main ()
13711 {
13712
13713   FILE *f = fopen ("conftest.val", "w");
13714   if (! f)
13715     exit (1);
13716   if (((long) (sizeof (int))) < 0)
13717     {
13718       long i = longval ();
13719       if (i != ((long) (sizeof (int))))
13720         exit (1);
13721       fprintf (f, "%ld\n", i);
13722     }
13723   else
13724     {
13725       unsigned long i = ulongval ();
13726       if (i != ((long) (sizeof (int))))
13727         exit (1);
13728       fprintf (f, "%lu\n", i);
13729     }
13730   exit (ferror (f) || fclose (f) != 0);
13731
13732   ;
13733   return 0;
13734 }
13735 _ACEOF
13736 rm -f conftest$ac_exeext
13737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13738   (eval $ac_link) 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743   (eval $ac_try) 2>&5
13744   ac_status=$?
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); }; }; then
13747   ac_cv_sizeof_int=`cat conftest.val`
13748 else
13749   echo "$as_me: program exited with status $ac_status" >&5
13750 echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13752
13753 ( exit $ac_status )
13754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13755 See \`config.log' for more details." >&5
13756 echo "$as_me: error: cannot compute sizeof (int), 77
13757 See \`config.log' for more details." >&2;}
13758    { (exit 1); exit 1; }; }
13759 fi
13760 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13761 fi
13762 fi
13763 rm -f conftest.val
13764 else
13765   ac_cv_sizeof_int=0
13766 fi
13767 fi
13768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13769 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13770 cat >>confdefs.h <<_ACEOF
13771 #define SIZEOF_INT $ac_cv_sizeof_int
13772 _ACEOF
13773
13774
13775 echo "$as_me:$LINENO: checking for long int" >&5
13776 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13777 if test "${ac_cv_type_long_int+set}" = set; then
13778   echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780   cat >conftest.$ac_ext <<_ACEOF
13781 #line $LINENO "configure"
13782 /* confdefs.h.  */
13783 _ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h.  */
13787 $ac_includes_default
13788 int
13789 main ()
13790 {
13791 if ((long int *) 0)
13792   return 0;
13793 if (sizeof (long int))
13794   return 0;
13795   ;
13796   return 0;
13797 }
13798 _ACEOF
13799 rm -f conftest.$ac_objext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13801   (eval $ac_compile) 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); } &&
13805          { ac_try='test -s conftest.$ac_objext'
13806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807   (eval $ac_try) 2>&5
13808   ac_status=$?
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); }; }; then
13811   ac_cv_type_long_int=yes
13812 else
13813   echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13815
13816 ac_cv_type_long_int=no
13817 fi
13818 rm -f conftest.$ac_objext conftest.$ac_ext
13819 fi
13820 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13821 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13822
13823 echo "$as_me:$LINENO: checking size of long int" >&5
13824 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13825 if test "${ac_cv_sizeof_long_int+set}" = set; then
13826   echo $ECHO_N "(cached) $ECHO_C" >&6
13827 else
13828   if test "$ac_cv_type_long_int" = yes; then
13829   # The cast to unsigned long works around a bug in the HP C Compiler
13830   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13831   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13832   # This bug is HP SR number 8606223364.
13833   if test "$cross_compiling" = yes; then
13834   # Depending upon the size, compute the lo and hi bounds.
13835 cat >conftest.$ac_ext <<_ACEOF
13836 #line $LINENO "configure"
13837 /* confdefs.h.  */
13838 _ACEOF
13839 cat confdefs.h >>conftest.$ac_ext
13840 cat >>conftest.$ac_ext <<_ACEOF
13841 /* end confdefs.h.  */
13842 $ac_includes_default
13843 int
13844 main ()
13845 {
13846 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13847 test_array [0] = 0
13848
13849   ;
13850   return 0;
13851 }
13852 _ACEOF
13853 rm -f conftest.$ac_objext
13854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13855   (eval $ac_compile) 2>&5
13856   ac_status=$?
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); } &&
13859          { ac_try='test -s conftest.$ac_objext'
13860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861   (eval $ac_try) 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); }; }; then
13865   ac_lo=0 ac_mid=0
13866   while :; do
13867     cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13869 /* confdefs.h.  */
13870 _ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h.  */
13874 $ac_includes_default
13875 int
13876 main ()
13877 {
13878 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13879 test_array [0] = 0
13880
13881   ;
13882   return 0;
13883 }
13884 _ACEOF
13885 rm -f conftest.$ac_objext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13887   (eval $ac_compile) 2>&5
13888   ac_status=$?
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); } &&
13891          { ac_try='test -s conftest.$ac_objext'
13892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893   (eval $ac_try) 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; }; then
13897   ac_hi=$ac_mid; break
13898 else
13899   echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13901
13902 ac_lo=`expr $ac_mid + 1`
13903                     if test $ac_lo -le $ac_mid; then
13904                       ac_lo= ac_hi=
13905                       break
13906                     fi
13907                     ac_mid=`expr 2 '*' $ac_mid + 1`
13908 fi
13909 rm -f conftest.$ac_objext conftest.$ac_ext
13910   done
13911 else
13912   echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13914
13915 cat >conftest.$ac_ext <<_ACEOF
13916 #line $LINENO "configure"
13917 /* confdefs.h.  */
13918 _ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h.  */
13922 $ac_includes_default
13923 int
13924 main ()
13925 {
13926 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13927 test_array [0] = 0
13928
13929   ;
13930   return 0;
13931 }
13932 _ACEOF
13933 rm -f conftest.$ac_objext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13935   (eval $ac_compile) 2>&5
13936   ac_status=$?
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); } &&
13939          { ac_try='test -s conftest.$ac_objext'
13940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941   (eval $ac_try) 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); }; }; then
13945   ac_hi=-1 ac_mid=-1
13946   while :; do
13947     cat >conftest.$ac_ext <<_ACEOF
13948 #line $LINENO "configure"
13949 /* confdefs.h.  */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h.  */
13954 $ac_includes_default
13955 int
13956 main ()
13957 {
13958 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13959 test_array [0] = 0
13960
13961   ;
13962   return 0;
13963 }
13964 _ACEOF
13965 rm -f conftest.$ac_objext
13966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13967   (eval $ac_compile) 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); } &&
13971          { ac_try='test -s conftest.$ac_objext'
13972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973   (eval $ac_try) 2>&5
13974   ac_status=$?
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); }; }; then
13977   ac_lo=$ac_mid; break
13978 else
13979   echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13981
13982 ac_hi=`expr '(' $ac_mid ')' - 1`
13983                        if test $ac_mid -le $ac_hi; then
13984                          ac_lo= ac_hi=
13985                          break
13986                        fi
13987                        ac_mid=`expr 2 '*' $ac_mid`
13988 fi
13989 rm -f conftest.$ac_objext conftest.$ac_ext
13990   done
13991 else
13992   echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13994
13995 ac_lo= ac_hi=
13996 fi
13997 rm -f conftest.$ac_objext conftest.$ac_ext
13998 fi
13999 rm -f conftest.$ac_objext conftest.$ac_ext
14000 # Binary search between lo and hi bounds.
14001 while test "x$ac_lo" != "x$ac_hi"; do
14002   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14003   cat >conftest.$ac_ext <<_ACEOF
14004 #line $LINENO "configure"
14005 /* confdefs.h.  */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h.  */
14010 $ac_includes_default
14011 int
14012 main ()
14013 {
14014 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14015 test_array [0] = 0
14016
14017   ;
14018   return 0;
14019 }
14020 _ACEOF
14021 rm -f conftest.$ac_objext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023   (eval $ac_compile) 2>&5
14024   ac_status=$?
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); } &&
14027          { ac_try='test -s conftest.$ac_objext'
14028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029   (eval $ac_try) 2>&5
14030   ac_status=$?
14031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); }; }; then
14033   ac_hi=$ac_mid
14034 else
14035   echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14037
14038 ac_lo=`expr '(' $ac_mid ')' + 1`
14039 fi
14040 rm -f conftest.$ac_objext conftest.$ac_ext
14041 done
14042 case $ac_lo in
14043 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14044 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14045 See \`config.log' for more details." >&5
14046 echo "$as_me: error: cannot compute sizeof (long int), 77
14047 See \`config.log' for more details." >&2;}
14048    { (exit 1); exit 1; }; } ;;
14049 esac
14050 else
14051   if test "$cross_compiling" = yes; then
14052   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14053 See \`config.log' for more details." >&5
14054 echo "$as_me: error: cannot run test program while cross compiling
14055 See \`config.log' for more details." >&2;}
14056    { (exit 1); exit 1; }; }
14057 else
14058   cat >conftest.$ac_ext <<_ACEOF
14059 #line $LINENO "configure"
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065 $ac_includes_default
14066 long longval () { return (long) (sizeof (long int)); }
14067 unsigned long ulongval () { return (long) (sizeof (long int)); }
14068 #include <stdio.h>
14069 #include <stdlib.h>
14070 int
14071 main ()
14072 {
14073
14074   FILE *f = fopen ("conftest.val", "w");
14075   if (! f)
14076     exit (1);
14077   if (((long) (sizeof (long int))) < 0)
14078     {
14079       long i = longval ();
14080       if (i != ((long) (sizeof (long int))))
14081         exit (1);
14082       fprintf (f, "%ld\n", i);
14083     }
14084   else
14085     {
14086       unsigned long i = ulongval ();
14087       if (i != ((long) (sizeof (long int))))
14088         exit (1);
14089       fprintf (f, "%lu\n", i);
14090     }
14091   exit (ferror (f) || fclose (f) != 0);
14092
14093   ;
14094   return 0;
14095 }
14096 _ACEOF
14097 rm -f conftest$ac_exeext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14099   (eval $ac_link) 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104   (eval $ac_try) 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; }; then
14108   ac_cv_sizeof_long_int=`cat conftest.val`
14109 else
14110   echo "$as_me: program exited with status $ac_status" >&5
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14113
14114 ( exit $ac_status )
14115 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14116 See \`config.log' for more details." >&5
14117 echo "$as_me: error: cannot compute sizeof (long int), 77
14118 See \`config.log' for more details." >&2;}
14119    { (exit 1); exit 1; }; }
14120 fi
14121 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14122 fi
14123 fi
14124 rm -f conftest.val
14125 else
14126   ac_cv_sizeof_long_int=0
14127 fi
14128 fi
14129 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14130 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14131 cat >>confdefs.h <<_ACEOF
14132 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14133 _ACEOF
14134
14135
14136 echo "$as_me:$LINENO: checking for long long int" >&5
14137 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14138 if test "${ac_cv_type_long_long_int+set}" = set; then
14139   echo $ECHO_N "(cached) $ECHO_C" >&6
14140 else
14141   cat >conftest.$ac_ext <<_ACEOF
14142 #line $LINENO "configure"
14143 /* confdefs.h.  */
14144 _ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h.  */
14148 $ac_includes_default
14149 int
14150 main ()
14151 {
14152 if ((long long int *) 0)
14153   return 0;
14154 if (sizeof (long long int))
14155   return 0;
14156   ;
14157   return 0;
14158 }
14159 _ACEOF
14160 rm -f conftest.$ac_objext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14162   (eval $ac_compile) 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); } &&
14166          { ac_try='test -s conftest.$ac_objext'
14167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168   (eval $ac_try) 2>&5
14169   ac_status=$?
14170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); }; }; then
14172   ac_cv_type_long_long_int=yes
14173 else
14174   echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14176
14177 ac_cv_type_long_long_int=no
14178 fi
14179 rm -f conftest.$ac_objext conftest.$ac_ext
14180 fi
14181 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14182 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14183
14184 echo "$as_me:$LINENO: checking size of long long int" >&5
14185 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14186 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14187   echo $ECHO_N "(cached) $ECHO_C" >&6
14188 else
14189   if test "$ac_cv_type_long_long_int" = yes; then
14190   # The cast to unsigned long works around a bug in the HP C Compiler
14191   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14192   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14193   # This bug is HP SR number 8606223364.
14194   if test "$cross_compiling" = yes; then
14195   # Depending upon the size, compute the lo and hi bounds.
14196 cat >conftest.$ac_ext <<_ACEOF
14197 #line $LINENO "configure"
14198 /* confdefs.h.  */
14199 _ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h.  */
14203 $ac_includes_default
14204 int
14205 main ()
14206 {
14207 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14208 test_array [0] = 0
14209
14210   ;
14211   return 0;
14212 }
14213 _ACEOF
14214 rm -f conftest.$ac_objext
14215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14216   (eval $ac_compile) 2>&5
14217   ac_status=$?
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); } &&
14220          { ac_try='test -s conftest.$ac_objext'
14221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222   (eval $ac_try) 2>&5
14223   ac_status=$?
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); }; }; then
14226   ac_lo=0 ac_mid=0
14227   while :; do
14228     cat >conftest.$ac_ext <<_ACEOF
14229 #line $LINENO "configure"
14230 /* confdefs.h.  */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h.  */
14235 $ac_includes_default
14236 int
14237 main ()
14238 {
14239 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14240 test_array [0] = 0
14241
14242   ;
14243   return 0;
14244 }
14245 _ACEOF
14246 rm -f conftest.$ac_objext
14247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14248   (eval $ac_compile) 2>&5
14249   ac_status=$?
14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); } &&
14252          { ac_try='test -s conftest.$ac_objext'
14253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254   (eval $ac_try) 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); }; }; then
14258   ac_hi=$ac_mid; break
14259 else
14260   echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263 ac_lo=`expr $ac_mid + 1`
14264                     if test $ac_lo -le $ac_mid; then
14265                       ac_lo= ac_hi=
14266                       break
14267                     fi
14268                     ac_mid=`expr 2 '*' $ac_mid + 1`
14269 fi
14270 rm -f conftest.$ac_objext conftest.$ac_ext
14271   done
14272 else
14273   echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14275
14276 cat >conftest.$ac_ext <<_ACEOF
14277 #line $LINENO "configure"
14278 /* confdefs.h.  */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h.  */
14283 $ac_includes_default
14284 int
14285 main ()
14286 {
14287 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14288 test_array [0] = 0
14289
14290   ;
14291   return 0;
14292 }
14293 _ACEOF
14294 rm -f conftest.$ac_objext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14296   (eval $ac_compile) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); } &&
14300          { ac_try='test -s conftest.$ac_objext'
14301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302   (eval $ac_try) 2>&5
14303   ac_status=$?
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); }; }; then
14306   ac_hi=-1 ac_mid=-1
14307   while :; do
14308     cat >conftest.$ac_ext <<_ACEOF
14309 #line $LINENO "configure"
14310 /* confdefs.h.  */
14311 _ACEOF
14312 cat confdefs.h >>conftest.$ac_ext
14313 cat >>conftest.$ac_ext <<_ACEOF
14314 /* end confdefs.h.  */
14315 $ac_includes_default
14316 int
14317 main ()
14318 {
14319 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14320 test_array [0] = 0
14321
14322   ;
14323   return 0;
14324 }
14325 _ACEOF
14326 rm -f conftest.$ac_objext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14328   (eval $ac_compile) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); } &&
14332          { ac_try='test -s conftest.$ac_objext'
14333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334   (eval $ac_try) 2>&5
14335   ac_status=$?
14336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); }; }; then
14338   ac_lo=$ac_mid; break
14339 else
14340   echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14342
14343 ac_hi=`expr '(' $ac_mid ')' - 1`
14344                        if test $ac_mid -le $ac_hi; then
14345                          ac_lo= ac_hi=
14346                          break
14347                        fi
14348                        ac_mid=`expr 2 '*' $ac_mid`
14349 fi
14350 rm -f conftest.$ac_objext conftest.$ac_ext
14351   done
14352 else
14353   echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14355
14356 ac_lo= ac_hi=
14357 fi
14358 rm -f conftest.$ac_objext conftest.$ac_ext
14359 fi
14360 rm -f conftest.$ac_objext conftest.$ac_ext
14361 # Binary search between lo and hi bounds.
14362 while test "x$ac_lo" != "x$ac_hi"; do
14363   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14364   cat >conftest.$ac_ext <<_ACEOF
14365 #line $LINENO "configure"
14366 /* confdefs.h.  */
14367 _ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h.  */
14371 $ac_includes_default
14372 int
14373 main ()
14374 {
14375 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14376 test_array [0] = 0
14377
14378   ;
14379   return 0;
14380 }
14381 _ACEOF
14382 rm -f conftest.$ac_objext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14384   (eval $ac_compile) 2>&5
14385   ac_status=$?
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); } &&
14388          { ac_try='test -s conftest.$ac_objext'
14389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390   (eval $ac_try) 2>&5
14391   ac_status=$?
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); }; }; then
14394   ac_hi=$ac_mid
14395 else
14396   echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14398
14399 ac_lo=`expr '(' $ac_mid ')' + 1`
14400 fi
14401 rm -f conftest.$ac_objext conftest.$ac_ext
14402 done
14403 case $ac_lo in
14404 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14405 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14406 See \`config.log' for more details." >&5
14407 echo "$as_me: error: cannot compute sizeof (long long int), 77
14408 See \`config.log' for more details." >&2;}
14409    { (exit 1); exit 1; }; } ;;
14410 esac
14411 else
14412   if test "$cross_compiling" = yes; then
14413   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14414 See \`config.log' for more details." >&5
14415 echo "$as_me: error: cannot run test program while cross compiling
14416 See \`config.log' for more details." >&2;}
14417    { (exit 1); exit 1; }; }
14418 else
14419   cat >conftest.$ac_ext <<_ACEOF
14420 #line $LINENO "configure"
14421 /* confdefs.h.  */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h.  */
14426 $ac_includes_default
14427 long longval () { return (long) (sizeof (long long int)); }
14428 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14429 #include <stdio.h>
14430 #include <stdlib.h>
14431 int
14432 main ()
14433 {
14434
14435   FILE *f = fopen ("conftest.val", "w");
14436   if (! f)
14437     exit (1);
14438   if (((long) (sizeof (long long int))) < 0)
14439     {
14440       long i = longval ();
14441       if (i != ((long) (sizeof (long long int))))
14442         exit (1);
14443       fprintf (f, "%ld\n", i);
14444     }
14445   else
14446     {
14447       unsigned long i = ulongval ();
14448       if (i != ((long) (sizeof (long long int))))
14449         exit (1);
14450       fprintf (f, "%lu\n", i);
14451     }
14452   exit (ferror (f) || fclose (f) != 0);
14453
14454   ;
14455   return 0;
14456 }
14457 _ACEOF
14458 rm -f conftest$ac_exeext
14459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14460   (eval $ac_link) 2>&5
14461   ac_status=$?
14462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465   (eval $ac_try) 2>&5
14466   ac_status=$?
14467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468   (exit $ac_status); }; }; then
14469   ac_cv_sizeof_long_long_int=`cat conftest.val`
14470 else
14471   echo "$as_me: program exited with status $ac_status" >&5
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14474
14475 ( exit $ac_status )
14476 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14477 See \`config.log' for more details." >&5
14478 echo "$as_me: error: cannot compute sizeof (long long int), 77
14479 See \`config.log' for more details." >&2;}
14480    { (exit 1); exit 1; }; }
14481 fi
14482 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14483 fi
14484 fi
14485 rm -f conftest.val
14486 else
14487   ac_cv_sizeof_long_long_int=0
14488 fi
14489 fi
14490 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14491 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14492 cat >>confdefs.h <<_ACEOF
14493 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14494 _ACEOF
14495
14496
14497 echo "$as_me:$LINENO: checking for int *" >&5
14498 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14499 if test "${ac_cv_type_int_p+set}" = set; then
14500   echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502   cat >conftest.$ac_ext <<_ACEOF
14503 #line $LINENO "configure"
14504 /* confdefs.h.  */
14505 _ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h.  */
14509 $ac_includes_default
14510 int
14511 main ()
14512 {
14513 if ((int * *) 0)
14514   return 0;
14515 if (sizeof (int *))
14516   return 0;
14517   ;
14518   return 0;
14519 }
14520 _ACEOF
14521 rm -f conftest.$ac_objext
14522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14523   (eval $ac_compile) 2>&5
14524   ac_status=$?
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   (exit $ac_status); } &&
14527          { ac_try='test -s conftest.$ac_objext'
14528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529   (eval $ac_try) 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; }; then
14533   ac_cv_type_int_p=yes
14534 else
14535   echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14537
14538 ac_cv_type_int_p=no
14539 fi
14540 rm -f conftest.$ac_objext conftest.$ac_ext
14541 fi
14542 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14543 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14544
14545 echo "$as_me:$LINENO: checking size of int *" >&5
14546 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14547 if test "${ac_cv_sizeof_int_p+set}" = set; then
14548   echo $ECHO_N "(cached) $ECHO_C" >&6
14549 else
14550   if test "$ac_cv_type_int_p" = yes; then
14551   # The cast to unsigned long works around a bug in the HP C Compiler
14552   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14553   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14554   # This bug is HP SR number 8606223364.
14555   if test "$cross_compiling" = yes; then
14556   # Depending upon the size, compute the lo and hi bounds.
14557 cat >conftest.$ac_ext <<_ACEOF
14558 #line $LINENO "configure"
14559 /* confdefs.h.  */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h.  */
14564 $ac_includes_default
14565 int
14566 main ()
14567 {
14568 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14569 test_array [0] = 0
14570
14571   ;
14572   return 0;
14573 }
14574 _ACEOF
14575 rm -f conftest.$ac_objext
14576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14577   (eval $ac_compile) 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); } &&
14581          { ac_try='test -s conftest.$ac_objext'
14582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583   (eval $ac_try) 2>&5
14584   ac_status=$?
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); }; }; then
14587   ac_lo=0 ac_mid=0
14588   while :; do
14589     cat >conftest.$ac_ext <<_ACEOF
14590 #line $LINENO "configure"
14591 /* confdefs.h.  */
14592 _ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h.  */
14596 $ac_includes_default
14597 int
14598 main ()
14599 {
14600 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14601 test_array [0] = 0
14602
14603   ;
14604   return 0;
14605 }
14606 _ACEOF
14607 rm -f conftest.$ac_objext
14608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14609   (eval $ac_compile) 2>&5
14610   ac_status=$?
14611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612   (exit $ac_status); } &&
14613          { ac_try='test -s conftest.$ac_objext'
14614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615   (eval $ac_try) 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; }; then
14619   ac_hi=$ac_mid; break
14620 else
14621   echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14623
14624 ac_lo=`expr $ac_mid + 1`
14625                     if test $ac_lo -le $ac_mid; then
14626                       ac_lo= ac_hi=
14627                       break
14628                     fi
14629                     ac_mid=`expr 2 '*' $ac_mid + 1`
14630 fi
14631 rm -f conftest.$ac_objext conftest.$ac_ext
14632   done
14633 else
14634   echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14636
14637 cat >conftest.$ac_ext <<_ACEOF
14638 #line $LINENO "configure"
14639 /* confdefs.h.  */
14640 _ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h.  */
14644 $ac_includes_default
14645 int
14646 main ()
14647 {
14648 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14649 test_array [0] = 0
14650
14651   ;
14652   return 0;
14653 }
14654 _ACEOF
14655 rm -f conftest.$ac_objext
14656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14657   (eval $ac_compile) 2>&5
14658   ac_status=$?
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); } &&
14661          { ac_try='test -s conftest.$ac_objext'
14662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663   (eval $ac_try) 2>&5
14664   ac_status=$?
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); }; }; then
14667   ac_hi=-1 ac_mid=-1
14668   while :; do
14669     cat >conftest.$ac_ext <<_ACEOF
14670 #line $LINENO "configure"
14671 /* confdefs.h.  */
14672 _ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h.  */
14676 $ac_includes_default
14677 int
14678 main ()
14679 {
14680 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14681 test_array [0] = 0
14682
14683   ;
14684   return 0;
14685 }
14686 _ACEOF
14687 rm -f conftest.$ac_objext
14688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14689   (eval $ac_compile) 2>&5
14690   ac_status=$?
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); } &&
14693          { ac_try='test -s conftest.$ac_objext'
14694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695   (eval $ac_try) 2>&5
14696   ac_status=$?
14697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698   (exit $ac_status); }; }; then
14699   ac_lo=$ac_mid; break
14700 else
14701   echo "$as_me: failed program was:" >&5
14702 sed 's/^/| /' conftest.$ac_ext >&5
14703
14704 ac_hi=`expr '(' $ac_mid ')' - 1`
14705                        if test $ac_mid -le $ac_hi; then
14706                          ac_lo= ac_hi=
14707                          break
14708                        fi
14709                        ac_mid=`expr 2 '*' $ac_mid`
14710 fi
14711 rm -f conftest.$ac_objext conftest.$ac_ext
14712   done
14713 else
14714   echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14716
14717 ac_lo= ac_hi=
14718 fi
14719 rm -f conftest.$ac_objext conftest.$ac_ext
14720 fi
14721 rm -f conftest.$ac_objext conftest.$ac_ext
14722 # Binary search between lo and hi bounds.
14723 while test "x$ac_lo" != "x$ac_hi"; do
14724   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14725   cat >conftest.$ac_ext <<_ACEOF
14726 #line $LINENO "configure"
14727 /* confdefs.h.  */
14728 _ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h.  */
14732 $ac_includes_default
14733 int
14734 main ()
14735 {
14736 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14737 test_array [0] = 0
14738
14739   ;
14740   return 0;
14741 }
14742 _ACEOF
14743 rm -f conftest.$ac_objext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745   (eval $ac_compile) 2>&5
14746   ac_status=$?
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); } &&
14749          { ac_try='test -s conftest.$ac_objext'
14750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751   (eval $ac_try) 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); }; }; then
14755   ac_hi=$ac_mid
14756 else
14757   echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14759
14760 ac_lo=`expr '(' $ac_mid ')' + 1`
14761 fi
14762 rm -f conftest.$ac_objext conftest.$ac_ext
14763 done
14764 case $ac_lo in
14765 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14766 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14767 See \`config.log' for more details." >&5
14768 echo "$as_me: error: cannot compute sizeof (int *), 77
14769 See \`config.log' for more details." >&2;}
14770    { (exit 1); exit 1; }; } ;;
14771 esac
14772 else
14773   if test "$cross_compiling" = yes; then
14774   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14775 See \`config.log' for more details." >&5
14776 echo "$as_me: error: cannot run test program while cross compiling
14777 See \`config.log' for more details." >&2;}
14778    { (exit 1); exit 1; }; }
14779 else
14780   cat >conftest.$ac_ext <<_ACEOF
14781 #line $LINENO "configure"
14782 /* confdefs.h.  */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h.  */
14787 $ac_includes_default
14788 long longval () { return (long) (sizeof (int *)); }
14789 unsigned long ulongval () { return (long) (sizeof (int *)); }
14790 #include <stdio.h>
14791 #include <stdlib.h>
14792 int
14793 main ()
14794 {
14795
14796   FILE *f = fopen ("conftest.val", "w");
14797   if (! f)
14798     exit (1);
14799   if (((long) (sizeof (int *))) < 0)
14800     {
14801       long i = longval ();
14802       if (i != ((long) (sizeof (int *))))
14803         exit (1);
14804       fprintf (f, "%ld\n", i);
14805     }
14806   else
14807     {
14808       unsigned long i = ulongval ();
14809       if (i != ((long) (sizeof (int *))))
14810         exit (1);
14811       fprintf (f, "%lu\n", i);
14812     }
14813   exit (ferror (f) || fclose (f) != 0);
14814
14815   ;
14816   return 0;
14817 }
14818 _ACEOF
14819 rm -f conftest$ac_exeext
14820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14821   (eval $ac_link) 2>&5
14822   ac_status=$?
14823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826   (eval $ac_try) 2>&5
14827   ac_status=$?
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); }; }; then
14830   ac_cv_sizeof_int_p=`cat conftest.val`
14831 else
14832   echo "$as_me: program exited with status $ac_status" >&5
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14835
14836 ( exit $ac_status )
14837 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14838 See \`config.log' for more details." >&5
14839 echo "$as_me: error: cannot compute sizeof (int *), 77
14840 See \`config.log' for more details." >&2;}
14841    { (exit 1); exit 1; }; }
14842 fi
14843 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14844 fi
14845 fi
14846 rm -f conftest.val
14847 else
14848   ac_cv_sizeof_int_p=0
14849 fi
14850 fi
14851 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14852 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14853 cat >>confdefs.h <<_ACEOF
14854 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14855 _ACEOF
14856
14857
14858
14859 # Check for sys/types.h types
14860 echo "$as_me:$LINENO: checking for u_int type" >&5
14861 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14862 if test "${ac_cv_have_u_int+set}" = set; then
14863   echo $ECHO_N "(cached) $ECHO_C" >&6
14864 else
14865
14866     cat >conftest.$ac_ext <<_ACEOF
14867 #line $LINENO "configure"
14868 /* confdefs.h.  */
14869 _ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h.  */
14873  #include <sys/types.h>
14874 int
14875 main ()
14876 {
14877  u_int a; a = 1;
14878   ;
14879   return 0;
14880 }
14881 _ACEOF
14882 rm -f conftest.$ac_objext
14883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14884   (eval $ac_compile) 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); } &&
14888          { ac_try='test -s conftest.$ac_objext'
14889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890   (eval $ac_try) 2>&5
14891   ac_status=$?
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); }; }; then
14894    ac_cv_have_u_int="yes"
14895 else
14896   echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14898
14899  ac_cv_have_u_int="no"
14900
14901 fi
14902 rm -f conftest.$ac_objext conftest.$ac_ext
14903
14904 fi
14905 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14906 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14907 if test "x$ac_cv_have_u_int" = "xyes" ; then
14908    cat >>confdefs.h <<\_ACEOF
14909 #define HAVE_U_INT 1
14910 _ACEOF
14911
14912    have_u_int=1
14913 fi
14914
14915 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14916 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14917 if test "${ac_cv_have_intmax_t+set}" = set; then
14918   echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14920
14921    cat >conftest.$ac_ext <<_ACEOF
14922 #line $LINENO "configure"
14923 /* confdefs.h.  */
14924 _ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h.  */
14928  #include <sys/types.h>
14929 int
14930 main ()
14931 {
14932  intmax_t a; a = 1;
14933   ;
14934   return 0;
14935 }
14936 _ACEOF
14937 rm -f conftest.$ac_objext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14939   (eval $ac_compile) 2>&5
14940   ac_status=$?
14941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942   (exit $ac_status); } &&
14943          { ac_try='test -s conftest.$ac_objext'
14944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945   (eval $ac_try) 2>&5
14946   ac_status=$?
14947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948   (exit $ac_status); }; }; then
14949    ac_cv_have_intmax_t="yes"
14950 else
14951   echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14953
14954
14955          cat >conftest.$ac_ext <<_ACEOF
14956 #line $LINENO "configure"
14957 /* confdefs.h.  */
14958 _ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h.  */
14962  #include <stdint.h>
14963 int
14964 main ()
14965 {
14966  intmax_t a; a = 1;
14967   ;
14968   return 0;
14969 }
14970 _ACEOF
14971 rm -f conftest.$ac_objext
14972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14973   (eval $ac_compile) 2>&5
14974   ac_status=$?
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); } &&
14977          { ac_try='test -s conftest.$ac_objext'
14978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979   (eval $ac_try) 2>&5
14980   ac_status=$?
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); }; }; then
14983    ac_cv_have_intmax_t="yes"
14984 else
14985   echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14987
14988  ac_cv_have_intmax_t="no"
14989
14990 fi
14991 rm -f conftest.$ac_objext conftest.$ac_ext
14992
14993
14994 fi
14995 rm -f conftest.$ac_objext conftest.$ac_ext
14996
14997
14998 fi
14999 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15000 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15001 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15002    cat >>confdefs.h <<\_ACEOF
15003 #define HAVE_INTMAX_T 1
15004 _ACEOF
15005
15006    have_intmax_t=1
15007 fi
15008
15009
15010 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15011 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15012 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15013   echo $ECHO_N "(cached) $ECHO_C" >&6
15014 else
15015
15016    cat >conftest.$ac_ext <<_ACEOF
15017 #line $LINENO "configure"
15018 /* confdefs.h.  */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h.  */
15023  #include <sys/types.h>
15024 int
15025 main ()
15026 {
15027  u_intmax_t a; a = 1;
15028   ;
15029   return 0;
15030 }
15031 _ACEOF
15032 rm -f conftest.$ac_objext
15033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15034   (eval $ac_compile) 2>&5
15035   ac_status=$?
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); } &&
15038          { ac_try='test -s conftest.$ac_objext'
15039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040   (eval $ac_try) 2>&5
15041   ac_status=$?
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); }; }; then
15044    ac_cv_have_u_intmax_t="yes"
15045 else
15046   echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15048
15049
15050          cat >conftest.$ac_ext <<_ACEOF
15051 #line $LINENO "configure"
15052 /* confdefs.h.  */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h.  */
15057  #include <stdint.h>
15058 int
15059 main ()
15060 {
15061  u_intmax_t a; a = 1;
15062   ;
15063   return 0;
15064 }
15065 _ACEOF
15066 rm -f conftest.$ac_objext
15067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15068   (eval $ac_compile) 2>&5
15069   ac_status=$?
15070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071   (exit $ac_status); } &&
15072          { ac_try='test -s conftest.$ac_objext'
15073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074   (eval $ac_try) 2>&5
15075   ac_status=$?
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); }; }; then
15078    ac_cv_have_u_intmax_t="yes"
15079 else
15080   echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15082
15083  ac_cv_have_u_intmax_t="no"
15084
15085 fi
15086 rm -f conftest.$ac_objext conftest.$ac_ext
15087
15088
15089 fi
15090 rm -f conftest.$ac_objext conftest.$ac_ext
15091
15092 fi
15093 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15094 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15095 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15096    cat >>confdefs.h <<\_ACEOF
15097 #define HAVE_U_INTMAX_T 1
15098 _ACEOF
15099
15100    have_u_intmax_t=1
15101 fi
15102
15103
15104 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15105 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15106 if test "${ac_cv_have_intxx_t+set}" = set; then
15107   echo $ECHO_N "(cached) $ECHO_C" >&6
15108 else
15109
15110    cat >conftest.$ac_ext <<_ACEOF
15111 #line $LINENO "configure"
15112 /* confdefs.h.  */
15113 _ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h.  */
15117  #include <sys/types.h>
15118 int
15119 main ()
15120 {
15121  int8_t a; int16_t b; int32_t c; a = b = c = 1;
15122   ;
15123   return 0;
15124 }
15125 _ACEOF
15126 rm -f conftest.$ac_objext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15128   (eval $ac_compile) 2>&5
15129   ac_status=$?
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); } &&
15132          { ac_try='test -s conftest.$ac_objext'
15133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134   (eval $ac_try) 2>&5
15135   ac_status=$?
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); }; }; then
15138    ac_cv_have_intxx_t="yes"
15139 else
15140   echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15142
15143  ac_cv_have_intxx_t="no"
15144
15145 fi
15146 rm -f conftest.$ac_objext conftest.$ac_ext
15147
15148 fi
15149 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15150 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15151 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15152    cat >>confdefs.h <<\_ACEOF
15153 #define HAVE_INTXX_T 1
15154 _ACEOF
15155
15156    have_intxx_t=1
15157 fi
15158
15159 echo "$as_me:$LINENO: checking for int64_t type" >&5
15160 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15161 if test "${ac_cv_have_int64_t+set}" = set; then
15162   echo $ECHO_N "(cached) $ECHO_C" >&6
15163 else
15164
15165    cat >conftest.$ac_ext <<_ACEOF
15166 #line $LINENO "configure"
15167 /* confdefs.h.  */
15168 _ACEOF
15169 cat confdefs.h >>conftest.$ac_ext
15170 cat >>conftest.$ac_ext <<_ACEOF
15171 /* end confdefs.h.  */
15172  #include <sys/types.h>
15173 int
15174 main ()
15175 {
15176  int64_t a; a = 1;
15177   ;
15178   return 0;
15179 }
15180 _ACEOF
15181 rm -f conftest.$ac_objext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15183   (eval $ac_compile) 2>&5
15184   ac_status=$?
15185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186   (exit $ac_status); } &&
15187          { ac_try='test -s conftest.$ac_objext'
15188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189   (eval $ac_try) 2>&5
15190   ac_status=$?
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); }; }; then
15193    ac_cv_have_int64_t="yes"
15194 else
15195   echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15197
15198  ac_cv_have_int64_t="no"
15199
15200 fi
15201 rm -f conftest.$ac_objext conftest.$ac_ext
15202
15203 fi
15204 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15205 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15206 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15207    cat >>confdefs.h <<\_ACEOF
15208 #define HAVE_INT64_T 1
15209 _ACEOF
15210
15211    have_int64_t=1
15212 fi
15213
15214 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15215 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15216 if test "${ac_cv_have_u_intxx_t+set}" = set; then
15217   echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219
15220    cat >conftest.$ac_ext <<_ACEOF
15221 #line $LINENO "configure"
15222 /* confdefs.h.  */
15223 _ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h.  */
15227  #include <sys/types.h>
15228 int
15229 main ()
15230 {
15231  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15232   ;
15233   return 0;
15234 }
15235 _ACEOF
15236 rm -f conftest.$ac_objext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15238   (eval $ac_compile) 2>&5
15239   ac_status=$?
15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); } &&
15242          { ac_try='test -s conftest.$ac_objext'
15243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244   (eval $ac_try) 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); }; }; then
15248    ac_cv_have_u_intxx_t="yes"
15249 else
15250   echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15252
15253  ac_cv_have_u_intxx_t="no"
15254
15255 fi
15256 rm -f conftest.$ac_objext conftest.$ac_ext
15257
15258 fi
15259 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15260 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15261 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15262    cat >>confdefs.h <<\_ACEOF
15263 #define HAVE_U_INTXX_T 1
15264 _ACEOF
15265
15266    have_u_intxx_t=1
15267 fi
15268
15269 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15270 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15271 if test "${ac_cv_have_u_int64_t+set}" = set; then
15272   echo $ECHO_N "(cached) $ECHO_C" >&6
15273 else
15274
15275    cat >conftest.$ac_ext <<_ACEOF
15276 #line $LINENO "configure"
15277 /* confdefs.h.  */
15278 _ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h.  */
15282  #include <sys/types.h>
15283 int
15284 main ()
15285 {
15286  u_int64_t a; a = 1;
15287   ;
15288   return 0;
15289 }
15290 _ACEOF
15291 rm -f conftest.$ac_objext
15292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15293   (eval $ac_compile) 2>&5
15294   ac_status=$?
15295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296   (exit $ac_status); } &&
15297          { ac_try='test -s conftest.$ac_objext'
15298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299   (eval $ac_try) 2>&5
15300   ac_status=$?
15301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302   (exit $ac_status); }; }; then
15303    ac_cv_have_u_int64_t="yes"
15304 else
15305   echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15307
15308  ac_cv_have_u_int64_t="no"
15309
15310 fi
15311 rm -f conftest.$ac_objext conftest.$ac_ext
15312
15313 fi
15314 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15315 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15316 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15317    cat >>confdefs.h <<\_ACEOF
15318 #define HAVE_U_INT64_T 1
15319 _ACEOF
15320
15321    have_u_int64_t=1
15322 fi
15323
15324 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15325            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15326 then
15327    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15328 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15329    cat >conftest.$ac_ext <<_ACEOF
15330 #line $LINENO "configure"
15331 /* confdefs.h.  */
15332 _ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h.  */
15336  #include <sys/bitypes.h>
15337 int
15338 main ()
15339 {
15340  int8_t a; int16_t b; int32_t c;
15341         u_int8_t e; u_int16_t f; u_int32_t g;
15342         a = b = c = e = f = g = 1;
15343   ;
15344   return 0;
15345 }
15346 _ACEOF
15347 rm -f conftest.$ac_objext
15348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15349   (eval $ac_compile) 2>&5
15350   ac_status=$?
15351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352   (exit $ac_status); } &&
15353          { ac_try='test -s conftest.$ac_objext'
15354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355   (eval $ac_try) 2>&5
15356   ac_status=$?
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); }; }; then
15359    cat >>confdefs.h <<\_ACEOF
15360 #define HAVE_U_INTXX_T 1
15361 _ACEOF
15362
15363         cat >>confdefs.h <<\_ACEOF
15364 #define HAVE_INTXX_T 1
15365 _ACEOF
15366
15367         cat >>confdefs.h <<\_ACEOF
15368 #define HAVE_SYS_BITYPES_H 1
15369 _ACEOF
15370
15371         echo "$as_me:$LINENO: result: yes" >&5
15372 echo "${ECHO_T}yes" >&6
15373 else
15374   echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15376
15377  echo "$as_me:$LINENO: result: no" >&5
15378 echo "${ECHO_T}no" >&6
15379
15380 fi
15381 rm -f conftest.$ac_objext conftest.$ac_ext
15382 fi
15383
15384 if test -z "$have_u_intxx_t" ; then
15385    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15386 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15387 if test "${ac_cv_have_uintxx_t+set}" = set; then
15388   echo $ECHO_N "(cached) $ECHO_C" >&6
15389 else
15390
15391       cat >conftest.$ac_ext <<_ACEOF
15392 #line $LINENO "configure"
15393 /* confdefs.h.  */
15394 _ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h.  */
15398  #include <sys/types.h>
15399 int
15400 main ()
15401 {
15402  uint8_t a; uint16_t b;
15403            uint32_t c; a = b = c = 1;
15404   ;
15405   return 0;
15406 }
15407 _ACEOF
15408 rm -f conftest.$ac_objext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15410   (eval $ac_compile) 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } &&
15414          { ac_try='test -s conftest.$ac_objext'
15415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416   (eval $ac_try) 2>&5
15417   ac_status=$?
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); }; }; then
15420    ac_cv_have_uintxx_t="yes"
15421 else
15422   echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425  ac_cv_have_uintxx_t="no"
15426
15427 fi
15428 rm -f conftest.$ac_objext conftest.$ac_ext
15429
15430 fi
15431 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15432 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15433    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15434       cat >>confdefs.h <<\_ACEOF
15435 #define HAVE_UINTXX_T 1
15436 _ACEOF
15437
15438    fi
15439 fi
15440
15441 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15442           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15443 then
15444    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15445 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15446    cat >conftest.$ac_ext <<_ACEOF
15447 #line $LINENO "configure"
15448 /* confdefs.h.  */
15449 _ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h.  */
15453  #include <sys/bitypes.h>
15454 int
15455 main ()
15456 {
15457  int64_t a; u_int64_t b;
15458        a = b = 1;
15459   ;
15460   return 0;
15461 }
15462 _ACEOF
15463 rm -f conftest.$ac_objext
15464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15465   (eval $ac_compile) 2>&5
15466   ac_status=$?
15467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468   (exit $ac_status); } &&
15469          { ac_try='test -s conftest.$ac_objext'
15470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471   (eval $ac_try) 2>&5
15472   ac_status=$?
15473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474   (exit $ac_status); }; }; then
15475    cat >>confdefs.h <<\_ACEOF
15476 #define HAVE_U_INT64_T 1
15477 _ACEOF
15478
15479        cat >>confdefs.h <<\_ACEOF
15480 #define HAVE_INT64_T 1
15481 _ACEOF
15482
15483        echo "$as_me:$LINENO: result: yes" >&5
15484 echo "${ECHO_T}yes" >&6
15485 else
15486   echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15488
15489  echo "$as_me:$LINENO: result: no" >&5
15490 echo "${ECHO_T}no" >&6
15491
15492 fi
15493 rm -f conftest.$ac_objext conftest.$ac_ext
15494 fi
15495
15496 if (test -z "$have_uintxx_t" && \
15497           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15498 then
15499    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15500 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15501    cat >conftest.$ac_ext <<_ACEOF
15502 #line $LINENO "configure"
15503 /* confdefs.h.  */
15504 _ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h.  */
15508  #include <sys/bitypes.h>
15509 int
15510 main ()
15511 {
15512  uint8_t a; uint16_t b;
15513           uint32_t c; a = b = c = 1;
15514   ;
15515   return 0;
15516 }
15517 _ACEOF
15518 rm -f conftest.$ac_objext
15519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15520   (eval $ac_compile) 2>&5
15521   ac_status=$?
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); } &&
15524          { ac_try='test -s conftest.$ac_objext'
15525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526   (eval $ac_try) 2>&5
15527   ac_status=$?
15528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529   (exit $ac_status); }; }; then
15530    cat >>confdefs.h <<\_ACEOF
15531 #define HAVE_UINTXX_T 1
15532 _ACEOF
15533
15534        echo "$as_me:$LINENO: result: yes" >&5
15535 echo "${ECHO_T}yes" >&6
15536 else
15537   echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15539
15540  echo "$as_me:$LINENO: result: no" >&5
15541 echo "${ECHO_T}no" >&6
15542
15543 fi
15544 rm -f conftest.$ac_objext conftest.$ac_ext
15545
15546 fi
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564 for ac_func in \
15565         fork \
15566         getcwd \
15567         gethostname \
15568         getpid \
15569         gettimeofday \
15570         setpgid \
15571         setpgrp \
15572         setsid \
15573         signal \
15574         strerror \
15575         strncmp \
15576         strncpy \
15577         vfprintf \
15578
15579 do
15580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15581 echo "$as_me:$LINENO: checking for $ac_func" >&5
15582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15583 if eval "test \"\${$as_ac_var+set}\" = set"; then
15584   echo $ECHO_N "(cached) $ECHO_C" >&6
15585 else
15586   cat >conftest.$ac_ext <<_ACEOF
15587 #line $LINENO "configure"
15588 /* confdefs.h.  */
15589 _ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h.  */
15593 /* System header to define __stub macros and hopefully few prototypes,
15594     which can conflict with char $ac_func (); below.
15595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15596     <limits.h> exists even on freestanding compilers.  */
15597 #ifdef __STDC__
15598 # include <limits.h>
15599 #else
15600 # include <assert.h>
15601 #endif
15602 /* Override any gcc2 internal prototype to avoid an error.  */
15603 #ifdef __cplusplus
15604 extern "C"
15605 {
15606 #endif
15607 /* We use char because int might match the return type of a gcc2
15608    builtin and then its argument prototype would still apply.  */
15609 char $ac_func ();
15610 /* The GNU C library defines this for functions which it implements
15611     to always fail with ENOSYS.  Some functions are actually named
15612     something starting with __ and the normal name is an alias.  */
15613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15614 choke me
15615 #else
15616 char (*f) () = $ac_func;
15617 #endif
15618 #ifdef __cplusplus
15619 }
15620 #endif
15621
15622 int
15623 main ()
15624 {
15625 return f != $ac_func;
15626   ;
15627   return 0;
15628 }
15629 _ACEOF
15630 rm -f conftest.$ac_objext conftest$ac_exeext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15632   (eval $ac_link) 2>&5
15633   ac_status=$?
15634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635   (exit $ac_status); } &&
15636          { ac_try='test -s conftest$ac_exeext'
15637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638   (eval $ac_try) 2>&5
15639   ac_status=$?
15640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641   (exit $ac_status); }; }; then
15642   eval "$as_ac_var=yes"
15643 else
15644   echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15646
15647 eval "$as_ac_var=no"
15648 fi
15649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15650 fi
15651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15653 if test `eval echo '${'$as_ac_var'}'` = yes; then
15654   cat >>confdefs.h <<_ACEOF
15655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15656 _ACEOF
15657
15658 else
15659   echo 'configure: cannot find needed function.'; exit 1
15660
15661 fi
15662 done
15663
15664
15665
15666 for ac_func in fchdir
15667 do
15668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15669 echo "$as_me:$LINENO: checking for $ac_func" >&5
15670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15671 if eval "test \"\${$as_ac_var+set}\" = set"; then
15672   echo $ECHO_N "(cached) $ECHO_C" >&6
15673 else
15674   cat >conftest.$ac_ext <<_ACEOF
15675 #line $LINENO "configure"
15676 /* confdefs.h.  */
15677 _ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h.  */
15681 /* System header to define __stub macros and hopefully few prototypes,
15682     which can conflict with char $ac_func (); below.
15683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15684     <limits.h> exists even on freestanding compilers.  */
15685 #ifdef __STDC__
15686 # include <limits.h>
15687 #else
15688 # include <assert.h>
15689 #endif
15690 /* Override any gcc2 internal prototype to avoid an error.  */
15691 #ifdef __cplusplus
15692 extern "C"
15693 {
15694 #endif
15695 /* We use char because int might match the return type of a gcc2
15696    builtin and then its argument prototype would still apply.  */
15697 char $ac_func ();
15698 /* The GNU C library defines this for functions which it implements
15699     to always fail with ENOSYS.  Some functions are actually named
15700     something starting with __ and the normal name is an alias.  */
15701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15702 choke me
15703 #else
15704 char (*f) () = $ac_func;
15705 #endif
15706 #ifdef __cplusplus
15707 }
15708 #endif
15709
15710 int
15711 main ()
15712 {
15713 return f != $ac_func;
15714   ;
15715   return 0;
15716 }
15717 _ACEOF
15718 rm -f conftest.$ac_objext conftest$ac_exeext
15719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15720   (eval $ac_link) 2>&5
15721   ac_status=$?
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   (exit $ac_status); } &&
15724          { ac_try='test -s conftest$ac_exeext'
15725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726   (eval $ac_try) 2>&5
15727   ac_status=$?
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); }; }; then
15730   eval "$as_ac_var=yes"
15731 else
15732   echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15734
15735 eval "$as_ac_var=no"
15736 fi
15737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15738 fi
15739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15741 if test `eval echo '${'$as_ac_var'}'` = yes; then
15742   cat >>confdefs.h <<_ACEOF
15743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15744 _ACEOF
15745  cat >>confdefs.h <<\_ACEOF
15746 #define HAVE_FCHDIR 1
15747 _ACEOF
15748
15749 fi
15750 done
15751
15752
15753 for ac_func in strtoll
15754 do
15755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15756 echo "$as_me:$LINENO: checking for $ac_func" >&5
15757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15758 if eval "test \"\${$as_ac_var+set}\" = set"; then
15759   echo $ECHO_N "(cached) $ECHO_C" >&6
15760 else
15761   cat >conftest.$ac_ext <<_ACEOF
15762 #line $LINENO "configure"
15763 /* confdefs.h.  */
15764 _ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h.  */
15768 /* System header to define __stub macros and hopefully few prototypes,
15769     which can conflict with char $ac_func (); below.
15770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15771     <limits.h> exists even on freestanding compilers.  */
15772 #ifdef __STDC__
15773 # include <limits.h>
15774 #else
15775 # include <assert.h>
15776 #endif
15777 /* Override any gcc2 internal prototype to avoid an error.  */
15778 #ifdef __cplusplus
15779 extern "C"
15780 {
15781 #endif
15782 /* We use char because int might match the return type of a gcc2
15783    builtin and then its argument prototype would still apply.  */
15784 char $ac_func ();
15785 /* The GNU C library defines this for functions which it implements
15786     to always fail with ENOSYS.  Some functions are actually named
15787     something starting with __ and the normal name is an alias.  */
15788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15789 choke me
15790 #else
15791 char (*f) () = $ac_func;
15792 #endif
15793 #ifdef __cplusplus
15794 }
15795 #endif
15796
15797 int
15798 main ()
15799 {
15800 return f != $ac_func;
15801   ;
15802   return 0;
15803 }
15804 _ACEOF
15805 rm -f conftest.$ac_objext conftest$ac_exeext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15807   (eval $ac_link) 2>&5
15808   ac_status=$?
15809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810   (exit $ac_status); } &&
15811          { ac_try='test -s conftest$ac_exeext'
15812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813   (eval $ac_try) 2>&5
15814   ac_status=$?
15815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816   (exit $ac_status); }; }; then
15817   eval "$as_ac_var=yes"
15818 else
15819   echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15821
15822 eval "$as_ac_var=no"
15823 fi
15824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15825 fi
15826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15828 if test `eval echo '${'$as_ac_var'}'` = yes; then
15829   cat >>confdefs.h <<_ACEOF
15830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15831 _ACEOF
15832  cat >>confdefs.h <<\_ACEOF
15833 #define HAVE_STRTOLL 1
15834 _ACEOF
15835
15836 fi
15837 done
15838
15839
15840
15841 for ac_func in chflags
15842 do
15843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15844 echo "$as_me:$LINENO: checking for $ac_func" >&5
15845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15846 if eval "test \"\${$as_ac_var+set}\" = set"; then
15847   echo $ECHO_N "(cached) $ECHO_C" >&6
15848 else
15849   cat >conftest.$ac_ext <<_ACEOF
15850 #line $LINENO "configure"
15851 /* confdefs.h.  */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h.  */
15856 /* System header to define __stub macros and hopefully few prototypes,
15857     which can conflict with char $ac_func (); below.
15858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15859     <limits.h> exists even on freestanding compilers.  */
15860 #ifdef __STDC__
15861 # include <limits.h>
15862 #else
15863 # include <assert.h>
15864 #endif
15865 /* Override any gcc2 internal prototype to avoid an error.  */
15866 #ifdef __cplusplus
15867 extern "C"
15868 {
15869 #endif
15870 /* We use char because int might match the return type of a gcc2
15871    builtin and then its argument prototype would still apply.  */
15872 char $ac_func ();
15873 /* The GNU C library defines this for functions which it implements
15874     to always fail with ENOSYS.  Some functions are actually named
15875     something starting with __ and the normal name is an alias.  */
15876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15877 choke me
15878 #else
15879 char (*f) () = $ac_func;
15880 #endif
15881 #ifdef __cplusplus
15882 }
15883 #endif
15884
15885 int
15886 main ()
15887 {
15888 return f != $ac_func;
15889   ;
15890   return 0;
15891 }
15892 _ACEOF
15893 rm -f conftest.$ac_objext conftest$ac_exeext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15895   (eval $ac_link) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); } &&
15899          { ac_try='test -s conftest$ac_exeext'
15900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901   (eval $ac_try) 2>&5
15902   ac_status=$?
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); }; }; then
15905   eval "$as_ac_var=yes"
15906 else
15907   echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15909
15910 eval "$as_ac_var=no"
15911 fi
15912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15913 fi
15914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15916 if test `eval echo '${'$as_ac_var'}'` = yes; then
15917   cat >>confdefs.h <<_ACEOF
15918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15919 _ACEOF
15920
15921 fi
15922 done
15923
15924
15925
15926
15927
15928
15929 for ac_func in snprintf vsnprintf gethostid getdomainname
15930 do
15931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15932 echo "$as_me:$LINENO: checking for $ac_func" >&5
15933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15934 if eval "test \"\${$as_ac_var+set}\" = set"; then
15935   echo $ECHO_N "(cached) $ECHO_C" >&6
15936 else
15937   cat >conftest.$ac_ext <<_ACEOF
15938 #line $LINENO "configure"
15939 /* confdefs.h.  */
15940 _ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h.  */
15944 /* System header to define __stub macros and hopefully few prototypes,
15945     which can conflict with char $ac_func (); below.
15946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15947     <limits.h> exists even on freestanding compilers.  */
15948 #ifdef __STDC__
15949 # include <limits.h>
15950 #else
15951 # include <assert.h>
15952 #endif
15953 /* Override any gcc2 internal prototype to avoid an error.  */
15954 #ifdef __cplusplus
15955 extern "C"
15956 {
15957 #endif
15958 /* We use char because int might match the return type of a gcc2
15959    builtin and then its argument prototype would still apply.  */
15960 char $ac_func ();
15961 /* The GNU C library defines this for functions which it implements
15962     to always fail with ENOSYS.  Some functions are actually named
15963     something starting with __ and the normal name is an alias.  */
15964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15965 choke me
15966 #else
15967 char (*f) () = $ac_func;
15968 #endif
15969 #ifdef __cplusplus
15970 }
15971 #endif
15972
15973 int
15974 main ()
15975 {
15976 return f != $ac_func;
15977   ;
15978   return 0;
15979 }
15980 _ACEOF
15981 rm -f conftest.$ac_objext conftest$ac_exeext
15982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15983   (eval $ac_link) 2>&5
15984   ac_status=$?
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); } &&
15987          { ac_try='test -s conftest$ac_exeext'
15988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989   (eval $ac_try) 2>&5
15990   ac_status=$?
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); }; }; then
15993   eval "$as_ac_var=yes"
15994 else
15995   echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15997
15998 eval "$as_ac_var=no"
15999 fi
16000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16001 fi
16002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16004 if test `eval echo '${'$as_ac_var'}'` = yes; then
16005   cat >>confdefs.h <<_ACEOF
16006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16007 _ACEOF
16008
16009 fi
16010 done
16011
16012
16013
16014
16015
16016
16017 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16018 do
16019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16020 echo "$as_me:$LINENO: checking for $ac_func" >&5
16021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16022 if eval "test \"\${$as_ac_var+set}\" = set"; then
16023   echo $ECHO_N "(cached) $ECHO_C" >&6
16024 else
16025   cat >conftest.$ac_ext <<_ACEOF
16026 #line $LINENO "configure"
16027 /* confdefs.h.  */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h.  */
16032 /* System header to define __stub macros and hopefully few prototypes,
16033     which can conflict with char $ac_func (); below.
16034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16035     <limits.h> exists even on freestanding compilers.  */
16036 #ifdef __STDC__
16037 # include <limits.h>
16038 #else
16039 # include <assert.h>
16040 #endif
16041 /* Override any gcc2 internal prototype to avoid an error.  */
16042 #ifdef __cplusplus
16043 extern "C"
16044 {
16045 #endif
16046 /* We use char because int might match the return type of a gcc2
16047    builtin and then its argument prototype would still apply.  */
16048 char $ac_func ();
16049 /* The GNU C library defines this for functions which it implements
16050     to always fail with ENOSYS.  Some functions are actually named
16051     something starting with __ and the normal name is an alias.  */
16052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16053 choke me
16054 #else
16055 char (*f) () = $ac_func;
16056 #endif
16057 #ifdef __cplusplus
16058 }
16059 #endif
16060
16061 int
16062 main ()
16063 {
16064 return f != $ac_func;
16065   ;
16066   return 0;
16067 }
16068 _ACEOF
16069 rm -f conftest.$ac_objext conftest$ac_exeext
16070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16071   (eval $ac_link) 2>&5
16072   ac_status=$?
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); } &&
16075          { ac_try='test -s conftest$ac_exeext'
16076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077   (eval $ac_try) 2>&5
16078   ac_status=$?
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); }; }; then
16081   eval "$as_ac_var=yes"
16082 else
16083   echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16085
16086 eval "$as_ac_var=no"
16087 fi
16088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16089 fi
16090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16092 if test `eval echo '${'$as_ac_var'}'` = yes; then
16093   cat >>confdefs.h <<_ACEOF
16094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16095 _ACEOF
16096
16097 fi
16098 done
16099
16100
16101 # If resolver functions are not in libc check for -lnsl or -lresolv.
16102 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16103 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16104 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16105   echo $ECHO_N "(cached) $ECHO_C" >&6
16106 else
16107   cat >conftest.$ac_ext <<_ACEOF
16108 #line $LINENO "configure"
16109 /* confdefs.h.  */
16110 _ACEOF
16111 cat confdefs.h >>conftest.$ac_ext
16112 cat >>conftest.$ac_ext <<_ACEOF
16113 /* end confdefs.h.  */
16114 /* System header to define __stub macros and hopefully few prototypes,
16115     which can conflict with char gethostbyname_r (); below.
16116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16117     <limits.h> exists even on freestanding compilers.  */
16118 #ifdef __STDC__
16119 # include <limits.h>
16120 #else
16121 # include <assert.h>
16122 #endif
16123 /* Override any gcc2 internal prototype to avoid an error.  */
16124 #ifdef __cplusplus
16125 extern "C"
16126 {
16127 #endif
16128 /* We use char because int might match the return type of a gcc2
16129    builtin and then its argument prototype would still apply.  */
16130 char gethostbyname_r ();
16131 /* The GNU C library defines this for functions which it implements
16132     to always fail with ENOSYS.  Some functions are actually named
16133     something starting with __ and the normal name is an alias.  */
16134 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16135 choke me
16136 #else
16137 char (*f) () = gethostbyname_r;
16138 #endif
16139 #ifdef __cplusplus
16140 }
16141 #endif
16142
16143 int
16144 main ()
16145 {
16146 return f != gethostbyname_r;
16147   ;
16148   return 0;
16149 }
16150 _ACEOF
16151 rm -f conftest.$ac_objext conftest$ac_exeext
16152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16153   (eval $ac_link) 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); } &&
16157          { ac_try='test -s conftest$ac_exeext'
16158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159   (eval $ac_try) 2>&5
16160   ac_status=$?
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); }; }; then
16163   ac_cv_func_gethostbyname_r=yes
16164 else
16165   echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16167
16168 ac_cv_func_gethostbyname_r=no
16169 fi
16170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16171 fi
16172 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16173 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16174 if test $ac_cv_func_gethostbyname_r = yes; then
16175   echo "$as_me:$LINENO: result: using libc's resolver" >&5
16176 echo "${ECHO_T}using libc's resolver" >&6
16177 else
16178
16179 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16180 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16181 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16182   echo $ECHO_N "(cached) $ECHO_C" >&6
16183 else
16184   ac_check_lib_save_LIBS=$LIBS
16185 LIBS="-lnsl  $LIBS"
16186 cat >conftest.$ac_ext <<_ACEOF
16187 #line $LINENO "configure"
16188 /* confdefs.h.  */
16189 _ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h.  */
16193
16194 /* Override any gcc2 internal prototype to avoid an error.  */
16195 #ifdef __cplusplus
16196 extern "C"
16197 #endif
16198 /* We use char because int might match the return type of a gcc2
16199    builtin and then its argument prototype would still apply.  */
16200 char gethostbyname_r ();
16201 int
16202 main ()
16203 {
16204 gethostbyname_r ();
16205   ;
16206   return 0;
16207 }
16208 _ACEOF
16209 rm -f conftest.$ac_objext conftest$ac_exeext
16210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16211   (eval $ac_link) 2>&5
16212   ac_status=$?
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); } &&
16215          { ac_try='test -s conftest$ac_exeext'
16216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217   (eval $ac_try) 2>&5
16218   ac_status=$?
16219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); }; }; then
16221   ac_cv_lib_nsl_gethostbyname_r=yes
16222 else
16223   echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16225
16226 ac_cv_lib_nsl_gethostbyname_r=no
16227 fi
16228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16229 LIBS=$ac_check_lib_save_LIBS
16230 fi
16231 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16232 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16233 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16234   cat >>confdefs.h <<_ACEOF
16235 #define HAVE_LIBNSL 1
16236 _ACEOF
16237
16238   LIBS="-lnsl $LIBS"
16239
16240 fi
16241
16242
16243 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16244 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16245 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16246   echo $ECHO_N "(cached) $ECHO_C" >&6
16247 else
16248   ac_check_lib_save_LIBS=$LIBS
16249 LIBS="-lresolv  $LIBS"
16250 cat >conftest.$ac_ext <<_ACEOF
16251 #line $LINENO "configure"
16252 /* confdefs.h.  */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h.  */
16257
16258 /* Override any gcc2 internal prototype to avoid an error.  */
16259 #ifdef __cplusplus
16260 extern "C"
16261 #endif
16262 /* We use char because int might match the return type of a gcc2
16263    builtin and then its argument prototype would still apply.  */
16264 char gethostbyname_r ();
16265 int
16266 main ()
16267 {
16268 gethostbyname_r ();
16269   ;
16270   return 0;
16271 }
16272 _ACEOF
16273 rm -f conftest.$ac_objext conftest$ac_exeext
16274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275   (eval $ac_link) 2>&5
16276   ac_status=$?
16277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); } &&
16279          { ac_try='test -s conftest$ac_exeext'
16280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281   (eval $ac_try) 2>&5
16282   ac_status=$?
16283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); }; }; then
16285   ac_cv_lib_resolv_gethostbyname_r=yes
16286 else
16287   echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16289
16290 ac_cv_lib_resolv_gethostbyname_r=no
16291 fi
16292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16293 LIBS=$ac_check_lib_save_LIBS
16294 fi
16295 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16296 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16297 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16298   cat >>confdefs.h <<_ACEOF
16299 #define HAVE_LIBRESOLV 1
16300 _ACEOF
16301
16302   LIBS="-lresolv $LIBS"
16303
16304 fi
16305
16306 fi
16307
16308
16309
16310 # Find where sockets are (especially for Solaris)
16311 echo "$as_me:$LINENO: checking for socket" >&5
16312 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16313 if test "${ac_cv_func_socket+set}" = set; then
16314   echo $ECHO_N "(cached) $ECHO_C" >&6
16315 else
16316   cat >conftest.$ac_ext <<_ACEOF
16317 #line $LINENO "configure"
16318 /* confdefs.h.  */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h.  */
16323 /* System header to define __stub macros and hopefully few prototypes,
16324     which can conflict with char socket (); below.
16325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16326     <limits.h> exists even on freestanding compilers.  */
16327 #ifdef __STDC__
16328 # include <limits.h>
16329 #else
16330 # include <assert.h>
16331 #endif
16332 /* Override any gcc2 internal prototype to avoid an error.  */
16333 #ifdef __cplusplus
16334 extern "C"
16335 {
16336 #endif
16337 /* We use char because int might match the return type of a gcc2
16338    builtin and then its argument prototype would still apply.  */
16339 char socket ();
16340 /* The GNU C library defines this for functions which it implements
16341     to always fail with ENOSYS.  Some functions are actually named
16342     something starting with __ and the normal name is an alias.  */
16343 #if defined (__stub_socket) || defined (__stub___socket)
16344 choke me
16345 #else
16346 char (*f) () = socket;
16347 #endif
16348 #ifdef __cplusplus
16349 }
16350 #endif
16351
16352 int
16353 main ()
16354 {
16355 return f != socket;
16356   ;
16357   return 0;
16358 }
16359 _ACEOF
16360 rm -f conftest.$ac_objext conftest$ac_exeext
16361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16362   (eval $ac_link) 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); } &&
16366          { ac_try='test -s conftest$ac_exeext'
16367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368   (eval $ac_try) 2>&5
16369   ac_status=$?
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); }; }; then
16372   ac_cv_func_socket=yes
16373 else
16374   echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16376
16377 ac_cv_func_socket=no
16378 fi
16379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16380 fi
16381 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16382 echo "${ECHO_T}$ac_cv_func_socket" >&6
16383 if test $ac_cv_func_socket = yes; then
16384   echo "$as_me:$LINENO: result: using libc's socket" >&5
16385 echo "${ECHO_T}using libc's socket" >&6
16386 else
16387
16388 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16389 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16390 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16391   echo $ECHO_N "(cached) $ECHO_C" >&6
16392 else
16393   ac_check_lib_save_LIBS=$LIBS
16394 LIBS="-lxnet  $LIBS"
16395 cat >conftest.$ac_ext <<_ACEOF
16396 #line $LINENO "configure"
16397 /* confdefs.h.  */
16398 _ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h.  */
16402
16403 /* Override any gcc2 internal prototype to avoid an error.  */
16404 #ifdef __cplusplus
16405 extern "C"
16406 #endif
16407 /* We use char because int might match the return type of a gcc2
16408    builtin and then its argument prototype would still apply.  */
16409 char socket ();
16410 int
16411 main ()
16412 {
16413 socket ();
16414   ;
16415   return 0;
16416 }
16417 _ACEOF
16418 rm -f conftest.$ac_objext conftest$ac_exeext
16419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16420   (eval $ac_link) 2>&5
16421   ac_status=$?
16422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423   (exit $ac_status); } &&
16424          { ac_try='test -s conftest$ac_exeext'
16425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426   (eval $ac_try) 2>&5
16427   ac_status=$?
16428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); }; }; then
16430   ac_cv_lib_xnet_socket=yes
16431 else
16432   echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16434
16435 ac_cv_lib_xnet_socket=no
16436 fi
16437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16438 LIBS=$ac_check_lib_save_LIBS
16439 fi
16440 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16441 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16442 if test $ac_cv_lib_xnet_socket = yes; then
16443   cat >>confdefs.h <<_ACEOF
16444 #define HAVE_LIBXNET 1
16445 _ACEOF
16446
16447   LIBS="-lxnet $LIBS"
16448
16449 fi
16450
16451
16452 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16453 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16454 if test "${ac_cv_lib_socket_socket+set}" = set; then
16455   echo $ECHO_N "(cached) $ECHO_C" >&6
16456 else
16457   ac_check_lib_save_LIBS=$LIBS
16458 LIBS="-lsocket  $LIBS"
16459 cat >conftest.$ac_ext <<_ACEOF
16460 #line $LINENO "configure"
16461 /* confdefs.h.  */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h.  */
16466
16467 /* Override any gcc2 internal prototype to avoid an error.  */
16468 #ifdef __cplusplus
16469 extern "C"
16470 #endif
16471 /* We use char because int might match the return type of a gcc2
16472    builtin and then its argument prototype would still apply.  */
16473 char socket ();
16474 int
16475 main ()
16476 {
16477 socket ();
16478   ;
16479   return 0;
16480 }
16481 _ACEOF
16482 rm -f conftest.$ac_objext conftest$ac_exeext
16483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16484   (eval $ac_link) 2>&5
16485   ac_status=$?
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); } &&
16488          { ac_try='test -s conftest$ac_exeext'
16489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490   (eval $ac_try) 2>&5
16491   ac_status=$?
16492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493   (exit $ac_status); }; }; then
16494   ac_cv_lib_socket_socket=yes
16495 else
16496   echo "$as_me: failed program was:" >&5
16497 sed 's/^/| /' conftest.$ac_ext >&5
16498
16499 ac_cv_lib_socket_socket=no
16500 fi
16501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16502 LIBS=$ac_check_lib_save_LIBS
16503 fi
16504 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16505 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16506 if test $ac_cv_lib_socket_socket = yes; then
16507   cat >>confdefs.h <<_ACEOF
16508 #define HAVE_LIBSOCKET 1
16509 _ACEOF
16510
16511   LIBS="-lsocket $LIBS"
16512
16513 fi
16514
16515
16516 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16517 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16518 if test "${ac_cv_lib_inet_socket+set}" = set; then
16519   echo $ECHO_N "(cached) $ECHO_C" >&6
16520 else
16521   ac_check_lib_save_LIBS=$LIBS
16522 LIBS="-linet  $LIBS"
16523 cat >conftest.$ac_ext <<_ACEOF
16524 #line $LINENO "configure"
16525 /* confdefs.h.  */
16526 _ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h.  */
16530
16531 /* Override any gcc2 internal prototype to avoid an error.  */
16532 #ifdef __cplusplus
16533 extern "C"
16534 #endif
16535 /* We use char because int might match the return type of a gcc2
16536    builtin and then its argument prototype would still apply.  */
16537 char socket ();
16538 int
16539 main ()
16540 {
16541 socket ();
16542   ;
16543   return 0;
16544 }
16545 _ACEOF
16546 rm -f conftest.$ac_objext conftest$ac_exeext
16547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16548   (eval $ac_link) 2>&5
16549   ac_status=$?
16550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551   (exit $ac_status); } &&
16552          { ac_try='test -s conftest$ac_exeext'
16553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554   (eval $ac_try) 2>&5
16555   ac_status=$?
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); }; }; then
16558   ac_cv_lib_inet_socket=yes
16559 else
16560   echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16562
16563 ac_cv_lib_inet_socket=no
16564 fi
16565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16566 LIBS=$ac_check_lib_save_LIBS
16567 fi
16568 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16569 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16570 if test $ac_cv_lib_inet_socket = yes; then
16571   cat >>confdefs.h <<_ACEOF
16572 #define HAVE_LIBINET 1
16573 _ACEOF
16574
16575   LIBS="-linet $LIBS"
16576
16577 fi
16578
16579 fi
16580
16581
16582
16583 for ac_func in inet_pton
16584 do
16585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16586 echo "$as_me:$LINENO: checking for $ac_func" >&5
16587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16588 if eval "test \"\${$as_ac_var+set}\" = set"; then
16589   echo $ECHO_N "(cached) $ECHO_C" >&6
16590 else
16591   cat >conftest.$ac_ext <<_ACEOF
16592 #line $LINENO "configure"
16593 /* confdefs.h.  */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h.  */
16598 /* System header to define __stub macros and hopefully few prototypes,
16599     which can conflict with char $ac_func (); below.
16600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16601     <limits.h> exists even on freestanding compilers.  */
16602 #ifdef __STDC__
16603 # include <limits.h>
16604 #else
16605 # include <assert.h>
16606 #endif
16607 /* Override any gcc2 internal prototype to avoid an error.  */
16608 #ifdef __cplusplus
16609 extern "C"
16610 {
16611 #endif
16612 /* We use char because int might match the return type of a gcc2
16613    builtin and then its argument prototype would still apply.  */
16614 char $ac_func ();
16615 /* The GNU C library defines this for functions which it implements
16616     to always fail with ENOSYS.  Some functions are actually named
16617     something starting with __ and the normal name is an alias.  */
16618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16619 choke me
16620 #else
16621 char (*f) () = $ac_func;
16622 #endif
16623 #ifdef __cplusplus
16624 }
16625 #endif
16626
16627 int
16628 main ()
16629 {
16630 return f != $ac_func;
16631   ;
16632   return 0;
16633 }
16634 _ACEOF
16635 rm -f conftest.$ac_objext conftest$ac_exeext
16636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16637   (eval $ac_link) 2>&5
16638   ac_status=$?
16639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640   (exit $ac_status); } &&
16641          { ac_try='test -s conftest$ac_exeext'
16642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643   (eval $ac_try) 2>&5
16644   ac_status=$?
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); }; }; then
16647   eval "$as_ac_var=yes"
16648 else
16649   echo "$as_me: failed program was:" >&5
16650 sed 's/^/| /' conftest.$ac_ext >&5
16651
16652 eval "$as_ac_var=no"
16653 fi
16654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16655 fi
16656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16658 if test `eval echo '${'$as_ac_var'}'` = yes; then
16659   cat >>confdefs.h <<_ACEOF
16660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16661 _ACEOF
16662  cat >>confdefs.h <<\_ACEOF
16663 #define HAVE_INET_PTON 1
16664 _ACEOF
16665
16666 fi
16667 done
16668
16669
16670 for ac_func in inet_ntop
16671 do
16672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16673 echo "$as_me:$LINENO: checking for $ac_func" >&5
16674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16675 if eval "test \"\${$as_ac_var+set}\" = set"; then
16676   echo $ECHO_N "(cached) $ECHO_C" >&6
16677 else
16678   cat >conftest.$ac_ext <<_ACEOF
16679 #line $LINENO "configure"
16680 /* confdefs.h.  */
16681 _ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h.  */
16685 /* System header to define __stub macros and hopefully few prototypes,
16686     which can conflict with char $ac_func (); below.
16687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16688     <limits.h> exists even on freestanding compilers.  */
16689 #ifdef __STDC__
16690 # include <limits.h>
16691 #else
16692 # include <assert.h>
16693 #endif
16694 /* Override any gcc2 internal prototype to avoid an error.  */
16695 #ifdef __cplusplus
16696 extern "C"
16697 {
16698 #endif
16699 /* We use char because int might match the return type of a gcc2
16700    builtin and then its argument prototype would still apply.  */
16701 char $ac_func ();
16702 /* The GNU C library defines this for functions which it implements
16703     to always fail with ENOSYS.  Some functions are actually named
16704     something starting with __ and the normal name is an alias.  */
16705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16706 choke me
16707 #else
16708 char (*f) () = $ac_func;
16709 #endif
16710 #ifdef __cplusplus
16711 }
16712 #endif
16713
16714 int
16715 main ()
16716 {
16717 return f != $ac_func;
16718   ;
16719   return 0;
16720 }
16721 _ACEOF
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16724   (eval $ac_link) 2>&5
16725   ac_status=$?
16726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727   (exit $ac_status); } &&
16728          { ac_try='test -s conftest$ac_exeext'
16729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730   (eval $ac_try) 2>&5
16731   ac_status=$?
16732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733   (exit $ac_status); }; }; then
16734   eval "$as_ac_var=yes"
16735 else
16736   echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16738
16739 eval "$as_ac_var=no"
16740 fi
16741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16742 fi
16743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16745 if test `eval echo '${'$as_ac_var'}'` = yes; then
16746   cat >>confdefs.h <<_ACEOF
16747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16748 _ACEOF
16749  cat >>confdefs.h <<\_ACEOF
16750 #define HAVE_INET_NTOP 1
16751 _ACEOF
16752
16753 fi
16754 done
16755
16756
16757 for ac_func in gethostbyname2
16758 do
16759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16760 echo "$as_me:$LINENO: checking for $ac_func" >&5
16761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16762 if eval "test \"\${$as_ac_var+set}\" = set"; then
16763   echo $ECHO_N "(cached) $ECHO_C" >&6
16764 else
16765   cat >conftest.$ac_ext <<_ACEOF
16766 #line $LINENO "configure"
16767 /* confdefs.h.  */
16768 _ACEOF
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h.  */
16772 /* System header to define __stub macros and hopefully few prototypes,
16773     which can conflict with char $ac_func (); below.
16774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16775     <limits.h> exists even on freestanding compilers.  */
16776 #ifdef __STDC__
16777 # include <limits.h>
16778 #else
16779 # include <assert.h>
16780 #endif
16781 /* Override any gcc2 internal prototype to avoid an error.  */
16782 #ifdef __cplusplus
16783 extern "C"
16784 {
16785 #endif
16786 /* We use char because int might match the return type of a gcc2
16787    builtin and then its argument prototype would still apply.  */
16788 char $ac_func ();
16789 /* The GNU C library defines this for functions which it implements
16790     to always fail with ENOSYS.  Some functions are actually named
16791     something starting with __ and the normal name is an alias.  */
16792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16793 choke me
16794 #else
16795 char (*f) () = $ac_func;
16796 #endif
16797 #ifdef __cplusplus
16798 }
16799 #endif
16800
16801 int
16802 main ()
16803 {
16804 return f != $ac_func;
16805   ;
16806   return 0;
16807 }
16808 _ACEOF
16809 rm -f conftest.$ac_objext conftest$ac_exeext
16810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16811   (eval $ac_link) 2>&5
16812   ac_status=$?
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); } &&
16815          { ac_try='test -s conftest$ac_exeext'
16816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817   (eval $ac_try) 2>&5
16818   ac_status=$?
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); }; }; then
16821   eval "$as_ac_var=yes"
16822 else
16823   echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.$ac_ext >&5
16825
16826 eval "$as_ac_var=no"
16827 fi
16828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16829 fi
16830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16832 if test `eval echo '${'$as_ac_var'}'` = yes; then
16833   cat >>confdefs.h <<_ACEOF
16834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16835 _ACEOF
16836  cat >>confdefs.h <<\_ACEOF
16837 #define HAVE_GETHOSTBYNAME2 1
16838 _ACEOF
16839
16840 fi
16841 done
16842
16843
16844 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16845 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16846 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16847   echo $ECHO_N "(cached) $ECHO_C" >&6
16848 else
16849   cat >conftest.$ac_ext <<_ACEOF
16850 #line $LINENO "configure"
16851 /* confdefs.h.  */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h.  */
16856 #include <sys/socket.h>
16857 int
16858 main ()
16859 {
16860 struct sockaddr s; s.sa_len;
16861   ;
16862   return 0;
16863 }
16864 _ACEOF
16865 rm -f conftest.$ac_objext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16867   (eval $ac_compile) 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); } &&
16871          { ac_try='test -s conftest.$ac_objext'
16872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873   (eval $ac_try) 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); }; }; then
16877   ac_cv_struct_sockaddr_sa_len=yes
16878 else
16879   echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16881
16882 ac_cv_struct_sockaddr_sa_len=no
16883 fi
16884 rm -f conftest.$ac_objext conftest.$ac_ext
16885 fi
16886 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16887 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16888
16889  if test $ac_cv_struct_sockaddr_sa_len = yes; then
16890
16891 cat >>confdefs.h <<\_ACEOF
16892 #define HAVE_SA_LEN 1
16893 _ACEOF
16894
16895  fi
16896
16897
16898 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16899 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16900 if test "${ac_cv_ipv6_support+set}" = set; then
16901   echo $ECHO_N "(cached) $ECHO_C" >&6
16902 else
16903   cat >conftest.$ac_ext <<_ACEOF
16904 #line $LINENO "configure"
16905 /* confdefs.h.  */
16906 _ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h.  */
16910  #include <sys/types.h>
16911 #include <sys/socket.h>
16912 #include <netinet/in.h>
16913 int
16914 main ()
16915 {
16916 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16917  0;
16918   ;
16919   return 0;
16920 }
16921 _ACEOF
16922 rm -f conftest.$ac_objext conftest$ac_exeext
16923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16924   (eval $ac_link) 2>&5
16925   ac_status=$?
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); } &&
16928          { ac_try='test -s conftest$ac_exeext'
16929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930   (eval $ac_try) 2>&5
16931   ac_status=$?
16932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933   (exit $ac_status); }; }; then
16934   ac_cv_ipv6_support=yes
16935 else
16936   echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16938
16939 ac_cv_ipv6_support=no
16940 fi
16941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16942 fi
16943 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16944 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16945
16946 if test "$ac_cv_ipv6_support" = yes; then
16947
16948 cat >>confdefs.h <<\_ACEOF
16949 #define HAVE_IPV6 1
16950 _ACEOF
16951
16952 fi
16953
16954
16955
16956
16957 for ac_func in strftime
16958 do
16959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16960 echo "$as_me:$LINENO: checking for $ac_func" >&5
16961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16962 if eval "test \"\${$as_ac_var+set}\" = set"; then
16963   echo $ECHO_N "(cached) $ECHO_C" >&6
16964 else
16965   cat >conftest.$ac_ext <<_ACEOF
16966 #line $LINENO "configure"
16967 /* confdefs.h.  */
16968 _ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h.  */
16972 /* System header to define __stub macros and hopefully few prototypes,
16973     which can conflict with char $ac_func (); below.
16974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16975     <limits.h> exists even on freestanding compilers.  */
16976 #ifdef __STDC__
16977 # include <limits.h>
16978 #else
16979 # include <assert.h>
16980 #endif
16981 /* Override any gcc2 internal prototype to avoid an error.  */
16982 #ifdef __cplusplus
16983 extern "C"
16984 {
16985 #endif
16986 /* We use char because int might match the return type of a gcc2
16987    builtin and then its argument prototype would still apply.  */
16988 char $ac_func ();
16989 /* The GNU C library defines this for functions which it implements
16990     to always fail with ENOSYS.  Some functions are actually named
16991     something starting with __ and the normal name is an alias.  */
16992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16993 choke me
16994 #else
16995 char (*f) () = $ac_func;
16996 #endif
16997 #ifdef __cplusplus
16998 }
16999 #endif
17000
17001 int
17002 main ()
17003 {
17004 return f != $ac_func;
17005   ;
17006   return 0;
17007 }
17008 _ACEOF
17009 rm -f conftest.$ac_objext conftest$ac_exeext
17010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17011   (eval $ac_link) 2>&5
17012   ac_status=$?
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); } &&
17015          { ac_try='test -s conftest$ac_exeext'
17016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017   (eval $ac_try) 2>&5
17018   ac_status=$?
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; }; then
17021   eval "$as_ac_var=yes"
17022 else
17023   echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17025
17026 eval "$as_ac_var=no"
17027 fi
17028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17029 fi
17030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17032 if test `eval echo '${'$as_ac_var'}'` = yes; then
17033   cat >>confdefs.h <<_ACEOF
17034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17035 _ACEOF
17036
17037 else
17038   # strftime is in -lintl on SCO UNIX.
17039 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17040 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17041 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17042   echo $ECHO_N "(cached) $ECHO_C" >&6
17043 else
17044   ac_check_lib_save_LIBS=$LIBS
17045 LIBS="-lintl  $LIBS"
17046 cat >conftest.$ac_ext <<_ACEOF
17047 #line $LINENO "configure"
17048 /* confdefs.h.  */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h.  */
17053
17054 /* Override any gcc2 internal prototype to avoid an error.  */
17055 #ifdef __cplusplus
17056 extern "C"
17057 #endif
17058 /* We use char because int might match the return type of a gcc2
17059    builtin and then its argument prototype would still apply.  */
17060 char strftime ();
17061 int
17062 main ()
17063 {
17064 strftime ();
17065   ;
17066   return 0;
17067 }
17068 _ACEOF
17069 rm -f conftest.$ac_objext conftest$ac_exeext
17070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17071   (eval $ac_link) 2>&5
17072   ac_status=$?
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); } &&
17075          { ac_try='test -s conftest$ac_exeext'
17076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077   (eval $ac_try) 2>&5
17078   ac_status=$?
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); }; }; then
17081   ac_cv_lib_intl_strftime=yes
17082 else
17083   echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17085
17086 ac_cv_lib_intl_strftime=no
17087 fi
17088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17089 LIBS=$ac_check_lib_save_LIBS
17090 fi
17091 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17092 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17093 if test $ac_cv_lib_intl_strftime = yes; then
17094   cat >>confdefs.h <<\_ACEOF
17095 #define HAVE_STRFTIME 1
17096 _ACEOF
17097
17098 LIBS="-lintl $LIBS"
17099 fi
17100
17101 fi
17102 done
17103
17104
17105 for ac_func in vprintf
17106 do
17107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17108 echo "$as_me:$LINENO: checking for $ac_func" >&5
17109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17110 if eval "test \"\${$as_ac_var+set}\" = set"; then
17111   echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113   cat >conftest.$ac_ext <<_ACEOF
17114 #line $LINENO "configure"
17115 /* confdefs.h.  */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h.  */
17120 /* System header to define __stub macros and hopefully few prototypes,
17121     which can conflict with char $ac_func (); below.
17122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17123     <limits.h> exists even on freestanding compilers.  */
17124 #ifdef __STDC__
17125 # include <limits.h>
17126 #else
17127 # include <assert.h>
17128 #endif
17129 /* Override any gcc2 internal prototype to avoid an error.  */
17130 #ifdef __cplusplus
17131 extern "C"
17132 {
17133 #endif
17134 /* We use char because int might match the return type of a gcc2
17135    builtin and then its argument prototype would still apply.  */
17136 char $ac_func ();
17137 /* The GNU C library defines this for functions which it implements
17138     to always fail with ENOSYS.  Some functions are actually named
17139     something starting with __ and the normal name is an alias.  */
17140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17141 choke me
17142 #else
17143 char (*f) () = $ac_func;
17144 #endif
17145 #ifdef __cplusplus
17146 }
17147 #endif
17148
17149 int
17150 main ()
17151 {
17152 return f != $ac_func;
17153   ;
17154   return 0;
17155 }
17156 _ACEOF
17157 rm -f conftest.$ac_objext conftest$ac_exeext
17158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17159   (eval $ac_link) 2>&5
17160   ac_status=$?
17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162   (exit $ac_status); } &&
17163          { ac_try='test -s conftest$ac_exeext'
17164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165   (eval $ac_try) 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); }; }; then
17169   eval "$as_ac_var=yes"
17170 else
17171   echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17173
17174 eval "$as_ac_var=no"
17175 fi
17176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17177 fi
17178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17180 if test `eval echo '${'$as_ac_var'}'` = yes; then
17181   cat >>confdefs.h <<_ACEOF
17182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17183 _ACEOF
17184
17185 echo "$as_me:$LINENO: checking for _doprnt" >&5
17186 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17187 if test "${ac_cv_func__doprnt+set}" = set; then
17188   echo $ECHO_N "(cached) $ECHO_C" >&6
17189 else
17190   cat >conftest.$ac_ext <<_ACEOF
17191 #line $LINENO "configure"
17192 /* confdefs.h.  */
17193 _ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h.  */
17197 /* System header to define __stub macros and hopefully few prototypes,
17198     which can conflict with char _doprnt (); below.
17199     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17200     <limits.h> exists even on freestanding compilers.  */
17201 #ifdef __STDC__
17202 # include <limits.h>
17203 #else
17204 # include <assert.h>
17205 #endif
17206 /* Override any gcc2 internal prototype to avoid an error.  */
17207 #ifdef __cplusplus
17208 extern "C"
17209 {
17210 #endif
17211 /* We use char because int might match the return type of a gcc2
17212    builtin and then its argument prototype would still apply.  */
17213 char _doprnt ();
17214 /* The GNU C library defines this for functions which it implements
17215     to always fail with ENOSYS.  Some functions are actually named
17216     something starting with __ and the normal name is an alias.  */
17217 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17218 choke me
17219 #else
17220 char (*f) () = _doprnt;
17221 #endif
17222 #ifdef __cplusplus
17223 }
17224 #endif
17225
17226 int
17227 main ()
17228 {
17229 return f != _doprnt;
17230   ;
17231   return 0;
17232 }
17233 _ACEOF
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17236   (eval $ac_link) 2>&5
17237   ac_status=$?
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); } &&
17240          { ac_try='test -s conftest$ac_exeext'
17241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242   (eval $ac_try) 2>&5
17243   ac_status=$?
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); }; }; then
17246   ac_cv_func__doprnt=yes
17247 else
17248   echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17250
17251 ac_cv_func__doprnt=no
17252 fi
17253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17254 fi
17255 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17256 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17257 if test $ac_cv_func__doprnt = yes; then
17258
17259 cat >>confdefs.h <<\_ACEOF
17260 #define HAVE_DOPRNT 1
17261 _ACEOF
17262
17263 fi
17264
17265 fi
17266 done
17267
17268
17269 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17270 # for constant arguments.  Useless!
17271 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17272 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17273 if test "${ac_cv_working_alloca_h+set}" = set; then
17274   echo $ECHO_N "(cached) $ECHO_C" >&6
17275 else
17276   cat >conftest.$ac_ext <<_ACEOF
17277 #line $LINENO "configure"
17278 /* confdefs.h.  */
17279 _ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h.  */
17283 #include <alloca.h>
17284 int
17285 main ()
17286 {
17287 char *p = (char *) alloca (2 * sizeof (int));
17288   ;
17289   return 0;
17290 }
17291 _ACEOF
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17294   (eval $ac_link) 2>&5
17295   ac_status=$?
17296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); } &&
17298          { ac_try='test -s conftest$ac_exeext'
17299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300   (eval $ac_try) 2>&5
17301   ac_status=$?
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); }; }; then
17304   ac_cv_working_alloca_h=yes
17305 else
17306   echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17308
17309 ac_cv_working_alloca_h=no
17310 fi
17311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17312 fi
17313 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17314 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17315 if test $ac_cv_working_alloca_h = yes; then
17316
17317 cat >>confdefs.h <<\_ACEOF
17318 #define HAVE_ALLOCA_H 1
17319 _ACEOF
17320
17321 fi
17322
17323 echo "$as_me:$LINENO: checking for alloca" >&5
17324 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17325 if test "${ac_cv_func_alloca_works+set}" = set; then
17326   echo $ECHO_N "(cached) $ECHO_C" >&6
17327 else
17328   cat >conftest.$ac_ext <<_ACEOF
17329 #line $LINENO "configure"
17330 /* confdefs.h.  */
17331 _ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h.  */
17335 #ifdef __GNUC__
17336 # define alloca __builtin_alloca
17337 #else
17338 # ifdef _MSC_VER
17339 #  include <malloc.h>
17340 #  define alloca _alloca
17341 # else
17342 #  if HAVE_ALLOCA_H
17343 #   include <alloca.h>
17344 #  else
17345 #   ifdef _AIX
17346  #pragma alloca
17347 #   else
17348 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17349 char *alloca ();
17350 #    endif
17351 #   endif
17352 #  endif
17353 # endif
17354 #endif
17355
17356 int
17357 main ()
17358 {
17359 char *p = (char *) alloca (1);
17360   ;
17361   return 0;
17362 }
17363 _ACEOF
17364 rm -f conftest.$ac_objext conftest$ac_exeext
17365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17366   (eval $ac_link) 2>&5
17367   ac_status=$?
17368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369   (exit $ac_status); } &&
17370          { ac_try='test -s conftest$ac_exeext'
17371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17372   (eval $ac_try) 2>&5
17373   ac_status=$?
17374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375   (exit $ac_status); }; }; then
17376   ac_cv_func_alloca_works=yes
17377 else
17378   echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17380
17381 ac_cv_func_alloca_works=no
17382 fi
17383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17384 fi
17385 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17386 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17387
17388 if test $ac_cv_func_alloca_works = yes; then
17389
17390 cat >>confdefs.h <<\_ACEOF
17391 #define HAVE_ALLOCA 1
17392 _ACEOF
17393
17394 else
17395   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17396 # that cause trouble.  Some versions do not even contain alloca or
17397 # contain a buggy version.  If you still want to use their alloca,
17398 # use ar to extract alloca.o from them instead of compiling alloca.c.
17399
17400 ALLOCA=alloca.$ac_objext
17401
17402 cat >>confdefs.h <<\_ACEOF
17403 #define C_ALLOCA 1
17404 _ACEOF
17405
17406
17407 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17408 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17409 if test "${ac_cv_os_cray+set}" = set; then
17410   echo $ECHO_N "(cached) $ECHO_C" >&6
17411 else
17412   cat >conftest.$ac_ext <<_ACEOF
17413 #line $LINENO "configure"
17414 /* confdefs.h.  */
17415 _ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h.  */
17419 #if defined(CRAY) && ! defined(CRAY2)
17420 webecray
17421 #else
17422 wenotbecray
17423 #endif
17424
17425 _ACEOF
17426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17427   $EGREP "webecray" >/dev/null 2>&1; then
17428   ac_cv_os_cray=yes
17429 else
17430   ac_cv_os_cray=no
17431 fi
17432 rm -f conftest*
17433
17434 fi
17435 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17436 echo "${ECHO_T}$ac_cv_os_cray" >&6
17437 if test $ac_cv_os_cray = yes; then
17438   for ac_func in _getb67 GETB67 getb67; do
17439     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17440 echo "$as_me:$LINENO: checking for $ac_func" >&5
17441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17442 if eval "test \"\${$as_ac_var+set}\" = set"; then
17443   echo $ECHO_N "(cached) $ECHO_C" >&6
17444 else
17445   cat >conftest.$ac_ext <<_ACEOF
17446 #line $LINENO "configure"
17447 /* confdefs.h.  */
17448 _ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h.  */
17452 /* System header to define __stub macros and hopefully few prototypes,
17453     which can conflict with char $ac_func (); below.
17454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17455     <limits.h> exists even on freestanding compilers.  */
17456 #ifdef __STDC__
17457 # include <limits.h>
17458 #else
17459 # include <assert.h>
17460 #endif
17461 /* Override any gcc2 internal prototype to avoid an error.  */
17462 #ifdef __cplusplus
17463 extern "C"
17464 {
17465 #endif
17466 /* We use char because int might match the return type of a gcc2
17467    builtin and then its argument prototype would still apply.  */
17468 char $ac_func ();
17469 /* The GNU C library defines this for functions which it implements
17470     to always fail with ENOSYS.  Some functions are actually named
17471     something starting with __ and the normal name is an alias.  */
17472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17473 choke me
17474 #else
17475 char (*f) () = $ac_func;
17476 #endif
17477 #ifdef __cplusplus
17478 }
17479 #endif
17480
17481 int
17482 main ()
17483 {
17484 return f != $ac_func;
17485   ;
17486   return 0;
17487 }
17488 _ACEOF
17489 rm -f conftest.$ac_objext conftest$ac_exeext
17490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17491   (eval $ac_link) 2>&5
17492   ac_status=$?
17493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494   (exit $ac_status); } &&
17495          { ac_try='test -s conftest$ac_exeext'
17496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497   (eval $ac_try) 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }; }; then
17501   eval "$as_ac_var=yes"
17502 else
17503   echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17505
17506 eval "$as_ac_var=no"
17507 fi
17508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17509 fi
17510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17512 if test `eval echo '${'$as_ac_var'}'` = yes; then
17513
17514 cat >>confdefs.h <<_ACEOF
17515 #define CRAY_STACKSEG_END $ac_func
17516 _ACEOF
17517
17518     break
17519 fi
17520
17521   done
17522 fi
17523
17524 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17525 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17526 if test "${ac_cv_c_stack_direction+set}" = set; then
17527   echo $ECHO_N "(cached) $ECHO_C" >&6
17528 else
17529   if test "$cross_compiling" = yes; then
17530   ac_cv_c_stack_direction=0
17531 else
17532   cat >conftest.$ac_ext <<_ACEOF
17533 #line $LINENO "configure"
17534 /* confdefs.h.  */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h.  */
17539 int
17540 find_stack_direction ()
17541 {
17542   static char *addr = 0;
17543   auto char dummy;
17544   if (addr == 0)
17545     {
17546       addr = &dummy;
17547       return find_stack_direction ();
17548     }
17549   else
17550     return (&dummy > addr) ? 1 : -1;
17551 }
17552
17553 int
17554 main ()
17555 {
17556   exit (find_stack_direction () < 0);
17557 }
17558 _ACEOF
17559 rm -f conftest$ac_exeext
17560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17561   (eval $ac_link) 2>&5
17562   ac_status=$?
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566   (eval $ac_try) 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; }; then
17570   ac_cv_c_stack_direction=1
17571 else
17572   echo "$as_me: program exited with status $ac_status" >&5
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576 ( exit $ac_status )
17577 ac_cv_c_stack_direction=-1
17578 fi
17579 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17580 fi
17581 fi
17582 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17583 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17584
17585 cat >>confdefs.h <<_ACEOF
17586 #define STACK_DIRECTION $ac_cv_c_stack_direction
17587 _ACEOF
17588
17589
17590 fi
17591
17592 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17593 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17594 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17595 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17596   echo $ECHO_N "(cached) $ECHO_C" >&6
17597 else
17598   ac_check_lib_save_LIBS=$LIBS
17599 LIBS="-lsun  $LIBS"
17600 cat >conftest.$ac_ext <<_ACEOF
17601 #line $LINENO "configure"
17602 /* confdefs.h.  */
17603 _ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h.  */
17607
17608 /* Override any gcc2 internal prototype to avoid an error.  */
17609 #ifdef __cplusplus
17610 extern "C"
17611 #endif
17612 /* We use char because int might match the return type of a gcc2
17613    builtin and then its argument prototype would still apply.  */
17614 char getmntent ();
17615 int
17616 main ()
17617 {
17618 getmntent ();
17619   ;
17620   return 0;
17621 }
17622 _ACEOF
17623 rm -f conftest.$ac_objext conftest$ac_exeext
17624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17625   (eval $ac_link) 2>&5
17626   ac_status=$?
17627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628   (exit $ac_status); } &&
17629          { ac_try='test -s conftest$ac_exeext'
17630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631   (eval $ac_try) 2>&5
17632   ac_status=$?
17633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); }; }; then
17635   ac_cv_lib_sun_getmntent=yes
17636 else
17637   echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17639
17640 ac_cv_lib_sun_getmntent=no
17641 fi
17642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17643 LIBS=$ac_check_lib_save_LIBS
17644 fi
17645 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17646 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17647 if test $ac_cv_lib_sun_getmntent = yes; then
17648   LIBS="-lsun $LIBS"
17649 else
17650   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17651 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17652 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17653   echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655   ac_check_lib_save_LIBS=$LIBS
17656 LIBS="-lseq  $LIBS"
17657 cat >conftest.$ac_ext <<_ACEOF
17658 #line $LINENO "configure"
17659 /* confdefs.h.  */
17660 _ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h.  */
17664
17665 /* Override any gcc2 internal prototype to avoid an error.  */
17666 #ifdef __cplusplus
17667 extern "C"
17668 #endif
17669 /* We use char because int might match the return type of a gcc2
17670    builtin and then its argument prototype would still apply.  */
17671 char getmntent ();
17672 int
17673 main ()
17674 {
17675 getmntent ();
17676   ;
17677   return 0;
17678 }
17679 _ACEOF
17680 rm -f conftest.$ac_objext conftest$ac_exeext
17681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17682   (eval $ac_link) 2>&5
17683   ac_status=$?
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); } &&
17686          { ac_try='test -s conftest$ac_exeext'
17687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688   (eval $ac_try) 2>&5
17689   ac_status=$?
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); }; }; then
17692   ac_cv_lib_seq_getmntent=yes
17693 else
17694   echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17696
17697 ac_cv_lib_seq_getmntent=no
17698 fi
17699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17700 LIBS=$ac_check_lib_save_LIBS
17701 fi
17702 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17703 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17704 if test $ac_cv_lib_seq_getmntent = yes; then
17705   LIBS="-lseq $LIBS"
17706 else
17707   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17708 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17709 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17710   echo $ECHO_N "(cached) $ECHO_C" >&6
17711 else
17712   ac_check_lib_save_LIBS=$LIBS
17713 LIBS="-lgen  $LIBS"
17714 cat >conftest.$ac_ext <<_ACEOF
17715 #line $LINENO "configure"
17716 /* confdefs.h.  */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h.  */
17721
17722 /* Override any gcc2 internal prototype to avoid an error.  */
17723 #ifdef __cplusplus
17724 extern "C"
17725 #endif
17726 /* We use char because int might match the return type of a gcc2
17727    builtin and then its argument prototype would still apply.  */
17728 char getmntent ();
17729 int
17730 main ()
17731 {
17732 getmntent ();
17733   ;
17734   return 0;
17735 }
17736 _ACEOF
17737 rm -f conftest.$ac_objext conftest$ac_exeext
17738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17739   (eval $ac_link) 2>&5
17740   ac_status=$?
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); } &&
17743          { ac_try='test -s conftest$ac_exeext'
17744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745   (eval $ac_try) 2>&5
17746   ac_status=$?
17747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748   (exit $ac_status); }; }; then
17749   ac_cv_lib_gen_getmntent=yes
17750 else
17751   echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17753
17754 ac_cv_lib_gen_getmntent=no
17755 fi
17756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17757 LIBS=$ac_check_lib_save_LIBS
17758 fi
17759 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17760 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17761 if test $ac_cv_lib_gen_getmntent = yes; then
17762   LIBS="-lgen $LIBS"
17763 fi
17764
17765 fi
17766
17767 fi
17768
17769
17770 for ac_func in getmntent
17771 do
17772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17773 echo "$as_me:$LINENO: checking for $ac_func" >&5
17774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17775 if eval "test \"\${$as_ac_var+set}\" = set"; then
17776   echo $ECHO_N "(cached) $ECHO_C" >&6
17777 else
17778   cat >conftest.$ac_ext <<_ACEOF
17779 #line $LINENO "configure"
17780 /* confdefs.h.  */
17781 _ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h.  */
17785 /* System header to define __stub macros and hopefully few prototypes,
17786     which can conflict with char $ac_func (); below.
17787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17788     <limits.h> exists even on freestanding compilers.  */
17789 #ifdef __STDC__
17790 # include <limits.h>
17791 #else
17792 # include <assert.h>
17793 #endif
17794 /* Override any gcc2 internal prototype to avoid an error.  */
17795 #ifdef __cplusplus
17796 extern "C"
17797 {
17798 #endif
17799 /* We use char because int might match the return type of a gcc2
17800    builtin and then its argument prototype would still apply.  */
17801 char $ac_func ();
17802 /* The GNU C library defines this for functions which it implements
17803     to always fail with ENOSYS.  Some functions are actually named
17804     something starting with __ and the normal name is an alias.  */
17805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17806 choke me
17807 #else
17808 char (*f) () = $ac_func;
17809 #endif
17810 #ifdef __cplusplus
17811 }
17812 #endif
17813
17814 int
17815 main ()
17816 {
17817 return f != $ac_func;
17818   ;
17819   return 0;
17820 }
17821 _ACEOF
17822 rm -f conftest.$ac_objext conftest$ac_exeext
17823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17824   (eval $ac_link) 2>&5
17825   ac_status=$?
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); } &&
17828          { ac_try='test -s conftest$ac_exeext'
17829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830   (eval $ac_try) 2>&5
17831   ac_status=$?
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); }; }; then
17834   eval "$as_ac_var=yes"
17835 else
17836   echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17838
17839 eval "$as_ac_var=no"
17840 fi
17841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17842 fi
17843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17845 if test `eval echo '${'$as_ac_var'}'` = yes; then
17846   cat >>confdefs.h <<_ACEOF
17847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17848 _ACEOF
17849
17850 fi
17851 done
17852
17853
17854 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17855 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17856 if test "${ac_cv_func_closedir_void+set}" = set; then
17857   echo $ECHO_N "(cached) $ECHO_C" >&6
17858 else
17859   if test "$cross_compiling" = yes; then
17860   ac_cv_func_closedir_void=yes
17861 else
17862   cat >conftest.$ac_ext <<_ACEOF
17863 #line $LINENO "configure"
17864 /* confdefs.h.  */
17865 _ACEOF
17866 cat confdefs.h >>conftest.$ac_ext
17867 cat >>conftest.$ac_ext <<_ACEOF
17868 /* end confdefs.h.  */
17869 $ac_includes_default
17870 #include <$ac_header_dirent>
17871 #ifndef __cplusplus
17872 int closedir ();
17873 #endif
17874
17875 int
17876 main ()
17877 {
17878 exit (closedir (opendir (".")) != 0);
17879   ;
17880   return 0;
17881 }
17882 _ACEOF
17883 rm -f conftest$ac_exeext
17884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17885   (eval $ac_link) 2>&5
17886   ac_status=$?
17887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890   (eval $ac_try) 2>&5
17891   ac_status=$?
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); }; }; then
17894   ac_cv_func_closedir_void=no
17895 else
17896   echo "$as_me: program exited with status $ac_status" >&5
17897 echo "$as_me: failed program was:" >&5
17898 sed 's/^/| /' conftest.$ac_ext >&5
17899
17900 ( exit $ac_status )
17901 ac_cv_func_closedir_void=yes
17902 fi
17903 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17904 fi
17905 fi
17906 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17907 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17908 if test $ac_cv_func_closedir_void = yes; then
17909
17910 cat >>confdefs.h <<\_ACEOF
17911 #define CLOSEDIR_VOID 1
17912 _ACEOF
17913
17914 fi
17915
17916 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17917 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17918 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17919   echo $ECHO_N "(cached) $ECHO_C" >&6
17920 else
17921   if test "$cross_compiling" = yes; then
17922   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17923 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17924    { (exit 1); exit 1; }; }
17925 else
17926   cat >conftest.$ac_ext <<_ACEOF
17927 #line $LINENO "configure"
17928 /* confdefs.h.  */
17929 _ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h.  */
17933 #if HAVE_UNISTD_H
17934 # include <unistd.h>
17935 #endif
17936
17937 int
17938 main ()
17939 {
17940 /* If this system has a BSD-style setpgrp which takes arguments,
17941   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17942   exit successfully. */
17943   exit (setpgrp (1,1) == -1 ? 0 : 1);
17944   ;
17945   return 0;
17946 }
17947 _ACEOF
17948 rm -f conftest$ac_exeext
17949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17950   (eval $ac_link) 2>&5
17951   ac_status=$?
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955   (eval $ac_try) 2>&5
17956   ac_status=$?
17957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958   (exit $ac_status); }; }; then
17959   ac_cv_func_setpgrp_void=no
17960 else
17961   echo "$as_me: program exited with status $ac_status" >&5
17962 echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17964
17965 ( exit $ac_status )
17966 ac_cv_func_setpgrp_void=yes
17967 fi
17968 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17969 fi
17970 fi
17971 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17972 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17973 if test $ac_cv_func_setpgrp_void = yes; then
17974
17975 cat >>confdefs.h <<\_ACEOF
17976 #define SETPGRP_VOID 1
17977 _ACEOF
17978
17979 fi
17980                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17981 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17982 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17983   echo $ECHO_N "(cached) $ECHO_C" >&6
17984 else
17985   # Some versions of Solaris, SCO, and the GNU C Library
17986    # have a broken or incompatible fnmatch.
17987    # So we run a test program.  If we are cross-compiling, take no chance.
17988    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17989    if test "$cross_compiling" = yes; then
17990   ac_cv_func_fnmatch_works=cross
17991 else
17992   cat >conftest.$ac_ext <<_ACEOF
17993 #line $LINENO "configure"
17994 /* confdefs.h.  */
17995 _ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h.  */
17999 #include <fnmatch.h>
18000 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
18001 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
18002
18003 int
18004 main ()
18005 {
18006 exit
18007            (!(y ("a*", "abc", 0)
18008               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
18009               && y ("a\\\\bc", "abc", 0)
18010               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
18011               && y ("*x", ".x", 0)
18012               && n ("*x", ".x", FNM_PERIOD)
18013               && 1));
18014   ;
18015   return 0;
18016 }
18017 _ACEOF
18018 rm -f conftest$ac_exeext
18019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18020   (eval $ac_link) 2>&5
18021   ac_status=$?
18022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025   (eval $ac_try) 2>&5
18026   ac_status=$?
18027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028   (exit $ac_status); }; }; then
18029   ac_cv_func_fnmatch_works=yes
18030 else
18031   echo "$as_me: program exited with status $ac_status" >&5
18032 echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18034
18035 ( exit $ac_status )
18036 ac_cv_func_fnmatch_works=no
18037 fi
18038 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18039 fi
18040 fi
18041 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
18042 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
18043 if test $ac_cv_func_fnmatch_works = yes; then
18044
18045 cat >>confdefs.h <<\_ACEOF
18046 #define HAVE_FNMATCH 1
18047 _ACEOF
18048
18049 fi
18050
18051
18052
18053
18054
18055 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18056 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18057 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18058   echo $ECHO_N "(cached) $ECHO_C" >&6
18059 else
18060   ac_check_lib_save_LIBS=$LIBS
18061 LIBS="-lxpg4  $LIBS"
18062 cat >conftest.$ac_ext <<_ACEOF
18063 #line $LINENO "configure"
18064 /* confdefs.h.  */
18065 _ACEOF
18066 cat confdefs.h >>conftest.$ac_ext
18067 cat >>conftest.$ac_ext <<_ACEOF
18068 /* end confdefs.h.  */
18069
18070 /* Override any gcc2 internal prototype to avoid an error.  */
18071 #ifdef __cplusplus
18072 extern "C"
18073 #endif
18074 /* We use char because int might match the return type of a gcc2
18075    builtin and then its argument prototype would still apply.  */
18076 char setlocale ();
18077 int
18078 main ()
18079 {
18080 setlocale ();
18081   ;
18082   return 0;
18083 }
18084 _ACEOF
18085 rm -f conftest.$ac_objext conftest$ac_exeext
18086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18087   (eval $ac_link) 2>&5
18088   ac_status=$?
18089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090   (exit $ac_status); } &&
18091          { ac_try='test -s conftest$ac_exeext'
18092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093   (eval $ac_try) 2>&5
18094   ac_status=$?
18095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096   (exit $ac_status); }; }; then
18097   ac_cv_lib_xpg4_setlocale=yes
18098 else
18099   echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18101
18102 ac_cv_lib_xpg4_setlocale=no
18103 fi
18104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18105 LIBS=$ac_check_lib_save_LIBS
18106 fi
18107 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18108 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18109 if test $ac_cv_lib_xpg4_setlocale = yes; then
18110   LIBS="$LIBS -lxpg4"
18111 fi
18112
18113
18114
18115
18116 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18117 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18118 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18119   echo $ECHO_N "(cached) $ECHO_C" >&6
18120 else
18121   ac_check_lib_save_LIBS=$LIBS
18122 LIBS="-lsun  $LIBS"
18123 cat >conftest.$ac_ext <<_ACEOF
18124 #line $LINENO "configure"
18125 /* confdefs.h.  */
18126 _ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h.  */
18130
18131 /* Override any gcc2 internal prototype to avoid an error.  */
18132 #ifdef __cplusplus
18133 extern "C"
18134 #endif
18135 /* We use char because int might match the return type of a gcc2
18136    builtin and then its argument prototype would still apply.  */
18137 char getpwnam ();
18138 int
18139 main ()
18140 {
18141 getpwnam ();
18142   ;
18143   return 0;
18144 }
18145 _ACEOF
18146 rm -f conftest.$ac_objext conftest$ac_exeext
18147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18148   (eval $ac_link) 2>&5
18149   ac_status=$?
18150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151   (exit $ac_status); } &&
18152          { ac_try='test -s conftest$ac_exeext'
18153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154   (eval $ac_try) 2>&5
18155   ac_status=$?
18156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157   (exit $ac_status); }; }; then
18158   ac_cv_lib_sun_getpwnam=yes
18159 else
18160   echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18162
18163 ac_cv_lib_sun_getpwnam=no
18164 fi
18165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18166 LIBS=$ac_check_lib_save_LIBS
18167 fi
18168 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18169 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18170 if test $ac_cv_lib_sun_getpwnam = yes; then
18171   cat >>confdefs.h <<_ACEOF
18172 #define HAVE_LIBSUN 1
18173 _ACEOF
18174
18175   LIBS="-lsun $LIBS"
18176
18177 fi
18178
18179
18180
18181 for ac_header in zlib.h
18182 do
18183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18185   echo "$as_me:$LINENO: checking for $ac_header" >&5
18186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18188   echo $ECHO_N "(cached) $ECHO_C" >&6
18189 fi
18190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18192 else
18193   # Is the header compilable?
18194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18196 cat >conftest.$ac_ext <<_ACEOF
18197 #line $LINENO "configure"
18198 /* confdefs.h.  */
18199 _ACEOF
18200 cat confdefs.h >>conftest.$ac_ext
18201 cat >>conftest.$ac_ext <<_ACEOF
18202 /* end confdefs.h.  */
18203 $ac_includes_default
18204 #include <$ac_header>
18205 _ACEOF
18206 rm -f conftest.$ac_objext
18207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18208   (eval $ac_compile) 2>&5
18209   ac_status=$?
18210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211   (exit $ac_status); } &&
18212          { ac_try='test -s conftest.$ac_objext'
18213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214   (eval $ac_try) 2>&5
18215   ac_status=$?
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); }; }; then
18218   ac_header_compiler=yes
18219 else
18220   echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18222
18223 ac_header_compiler=no
18224 fi
18225 rm -f conftest.$ac_objext conftest.$ac_ext
18226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18227 echo "${ECHO_T}$ac_header_compiler" >&6
18228
18229 # Is the header present?
18230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18232 cat >conftest.$ac_ext <<_ACEOF
18233 #line $LINENO "configure"
18234 /* confdefs.h.  */
18235 _ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h.  */
18239 #include <$ac_header>
18240 _ACEOF
18241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18243   ac_status=$?
18244   grep -v '^ *+' conftest.er1 >conftest.err
18245   rm -f conftest.er1
18246   cat conftest.err >&5
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); } >/dev/null; then
18249   if test -s conftest.err; then
18250     ac_cpp_err=$ac_c_preproc_warn_flag
18251   else
18252     ac_cpp_err=
18253   fi
18254 else
18255   ac_cpp_err=yes
18256 fi
18257 if test -z "$ac_cpp_err"; then
18258   ac_header_preproc=yes
18259 else
18260   echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18262
18263   ac_header_preproc=no
18264 fi
18265 rm -f conftest.err conftest.$ac_ext
18266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18267 echo "${ECHO_T}$ac_header_preproc" >&6
18268
18269 # So?  What about this header?
18270 case $ac_header_compiler:$ac_header_preproc in
18271   yes:no )
18272     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18276     (
18277       cat <<\_ASBOX
18278 ## ------------------------------------ ##
18279 ## Report this to bug-autoconf@gnu.org. ##
18280 ## ------------------------------------ ##
18281 _ASBOX
18282     ) |
18283       sed "s/^/$as_me: WARNING:     /" >&2
18284     ;;
18285   no:yes )
18286     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18288     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18289 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18292     (
18293       cat <<\_ASBOX
18294 ## ------------------------------------ ##
18295 ## Report this to bug-autoconf@gnu.org. ##
18296 ## ------------------------------------ ##
18297 _ASBOX
18298     ) |
18299       sed "s/^/$as_me: WARNING:     /" >&2
18300     ;;
18301 esac
18302 echo "$as_me:$LINENO: checking for $ac_header" >&5
18303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18305   echo $ECHO_N "(cached) $ECHO_C" >&6
18306 else
18307   eval "$as_ac_Header=$ac_header_preproc"
18308 fi
18309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18311
18312 fi
18313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18314   cat >>confdefs.h <<_ACEOF
18315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18316 _ACEOF
18317
18318 fi
18319
18320 done
18321
18322 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18323 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18324 if test "${ac_cv_lib_z_deflate+set}" = set; then
18325   echo $ECHO_N "(cached) $ECHO_C" >&6
18326 else
18327   ac_check_lib_save_LIBS=$LIBS
18328 LIBS="-lz  $LIBS"
18329 cat >conftest.$ac_ext <<_ACEOF
18330 #line $LINENO "configure"
18331 /* confdefs.h.  */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h.  */
18336
18337 /* Override any gcc2 internal prototype to avoid an error.  */
18338 #ifdef __cplusplus
18339 extern "C"
18340 #endif
18341 /* We use char because int might match the return type of a gcc2
18342    builtin and then its argument prototype would still apply.  */
18343 char deflate ();
18344 int
18345 main ()
18346 {
18347 deflate ();
18348   ;
18349   return 0;
18350 }
18351 _ACEOF
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18354   (eval $ac_link) 2>&5
18355   ac_status=$?
18356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357   (exit $ac_status); } &&
18358          { ac_try='test -s conftest$ac_exeext'
18359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360   (eval $ac_try) 2>&5
18361   ac_status=$?
18362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); }; }; then
18364   ac_cv_lib_z_deflate=yes
18365 else
18366   echo "$as_me: failed program was:" >&5
18367 sed 's/^/| /' conftest.$ac_ext >&5
18368
18369 ac_cv_lib_z_deflate=no
18370 fi
18371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18373 fi
18374 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18375 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18376 if test $ac_cv_lib_z_deflate = yes; then
18377   FDLIBS="-lz"
18378 fi
18379
18380 have_zlib=no
18381 if test x$FDLIBS = x-lz; then
18382   cat >>confdefs.h <<\_ACEOF
18383 #define HAVE_LIBZ 1
18384 _ACEOF
18385
18386   have_zlib=yes
18387 fi
18388
18389 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18390   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18391 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18392 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18393   echo $ECHO_N "(cached) $ECHO_C" >&6
18394 fi
18395 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18396 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18397 else
18398   # Is the header compilable?
18399 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18400 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18401 cat >conftest.$ac_ext <<_ACEOF
18402 #line $LINENO "configure"
18403 /* confdefs.h.  */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h.  */
18408 $ac_includes_default
18409 #include <sys/acl.h>
18410 _ACEOF
18411 rm -f conftest.$ac_objext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18413   (eval $ac_compile) 2>&5
18414   ac_status=$?
18415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416   (exit $ac_status); } &&
18417          { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
18424 else
18425   echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18427
18428 ac_header_compiler=no
18429 fi
18430 rm -f conftest.$ac_objext conftest.$ac_ext
18431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18432 echo "${ECHO_T}$ac_header_compiler" >&6
18433
18434 # Is the header present?
18435 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18436 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18437 cat >conftest.$ac_ext <<_ACEOF
18438 #line $LINENO "configure"
18439 /* confdefs.h.  */
18440 _ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h.  */
18444 #include <sys/acl.h>
18445 _ACEOF
18446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18447   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18448   ac_status=$?
18449   grep -v '^ *+' conftest.er1 >conftest.err
18450   rm -f conftest.er1
18451   cat conftest.err >&5
18452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453   (exit $ac_status); } >/dev/null; then
18454   if test -s conftest.err; then
18455     ac_cpp_err=$ac_c_preproc_warn_flag
18456   else
18457     ac_cpp_err=
18458   fi
18459 else
18460   ac_cpp_err=yes
18461 fi
18462 if test -z "$ac_cpp_err"; then
18463   ac_header_preproc=yes
18464 else
18465   echo "$as_me: failed program was:" >&5
18466 sed 's/^/| /' conftest.$ac_ext >&5
18467
18468   ac_header_preproc=no
18469 fi
18470 rm -f conftest.err conftest.$ac_ext
18471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18472 echo "${ECHO_T}$ac_header_preproc" >&6
18473
18474 # So?  What about this header?
18475 case $ac_header_compiler:$ac_header_preproc in
18476   yes:no )
18477     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18478 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18479     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18480 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18481     (
18482       cat <<\_ASBOX
18483 ## ------------------------------------ ##
18484 ## Report this to bug-autoconf@gnu.org. ##
18485 ## ------------------------------------ ##
18486 _ASBOX
18487     ) |
18488       sed "s/^/$as_me: WARNING:     /" >&2
18489     ;;
18490   no:yes )
18491     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18492 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18493     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18494 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18495     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18496 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18497     (
18498       cat <<\_ASBOX
18499 ## ------------------------------------ ##
18500 ## Report this to bug-autoconf@gnu.org. ##
18501 ## ------------------------------------ ##
18502 _ASBOX
18503     ) |
18504       sed "s/^/$as_me: WARNING:     /" >&2
18505     ;;
18506 esac
18507 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18508 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18509 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18510   echo $ECHO_N "(cached) $ECHO_C" >&6
18511 else
18512   ac_cv_header_sys_acl_h=$ac_header_preproc
18513 fi
18514 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18515 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18516
18517 fi
18518
18519
18520 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18521 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18522 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18523   echo $ECHO_N "(cached) $ECHO_C" >&6
18524 else
18525   ac_check_lib_save_LIBS=$LIBS
18526 LIBS="-lacl  $LIBS"
18527 cat >conftest.$ac_ext <<_ACEOF
18528 #line $LINENO "configure"
18529 /* confdefs.h.  */
18530 _ACEOF
18531 cat confdefs.h >>conftest.$ac_ext
18532 cat >>conftest.$ac_ext <<_ACEOF
18533 /* end confdefs.h.  */
18534
18535 /* Override any gcc2 internal prototype to avoid an error.  */
18536 #ifdef __cplusplus
18537 extern "C"
18538 #endif
18539 /* We use char because int might match the return type of a gcc2
18540    builtin and then its argument prototype would still apply.  */
18541 char acl_get_file ();
18542 int
18543 main ()
18544 {
18545 acl_get_file ();
18546   ;
18547   return 0;
18548 }
18549 _ACEOF
18550 rm -f conftest.$ac_objext conftest$ac_exeext
18551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18552   (eval $ac_link) 2>&5
18553   ac_status=$?
18554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555   (exit $ac_status); } &&
18556          { ac_try='test -s conftest$ac_exeext'
18557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558   (eval $ac_try) 2>&5
18559   ac_status=$?
18560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561   (exit $ac_status); }; }; then
18562   ac_cv_lib_acl_acl_get_file=yes
18563 else
18564   echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18566
18567 ac_cv_lib_acl_acl_get_file=no
18568 fi
18569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18570 LIBS=$ac_check_lib_save_LIBS
18571 fi
18572 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18573 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18574 if test $ac_cv_lib_acl_acl_get_file = yes; then
18575   FDLIBS="-lacl $FDLIBS"
18576 fi
18577
18578 have_acl=no
18579 if test $ac_cv_lib_acl_acl_get_file = yes; then
18580    cat >>confdefs.h <<\_ACEOF
18581 #define HAVE_ACL 1
18582 _ACEOF
18583
18584    have_acl=yes
18585 fi
18586
18587 PTHREAD_LIB=""
18588 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18589 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18590 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18591   echo $ECHO_N "(cached) $ECHO_C" >&6
18592 else
18593   ac_check_lib_save_LIBS=$LIBS
18594 LIBS="-lpthread  $LIBS"
18595 cat >conftest.$ac_ext <<_ACEOF
18596 #line $LINENO "configure"
18597 /* confdefs.h.  */
18598 _ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h.  */
18602
18603 /* Override any gcc2 internal prototype to avoid an error.  */
18604 #ifdef __cplusplus
18605 extern "C"
18606 #endif
18607 /* We use char because int might match the return type of a gcc2
18608    builtin and then its argument prototype would still apply.  */
18609 char pthread_create ();
18610 int
18611 main ()
18612 {
18613 pthread_create ();
18614   ;
18615   return 0;
18616 }
18617 _ACEOF
18618 rm -f conftest.$ac_objext conftest$ac_exeext
18619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18620   (eval $ac_link) 2>&5
18621   ac_status=$?
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); } &&
18624          { ac_try='test -s conftest$ac_exeext'
18625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626   (eval $ac_try) 2>&5
18627   ac_status=$?
18628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629   (exit $ac_status); }; }; then
18630   ac_cv_lib_pthread_pthread_create=yes
18631 else
18632   echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18634
18635 ac_cv_lib_pthread_pthread_create=no
18636 fi
18637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18638 LIBS=$ac_check_lib_save_LIBS
18639 fi
18640 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18641 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18642 if test $ac_cv_lib_pthread_pthread_create = yes; then
18643   PTHREAD_LIB="-lpthread"
18644 else
18645   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18646 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18647 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18648   echo $ECHO_N "(cached) $ECHO_C" >&6
18649 else
18650   ac_check_lib_save_LIBS=$LIBS
18651 LIBS="-lpthreads  $LIBS"
18652 cat >conftest.$ac_ext <<_ACEOF
18653 #line $LINENO "configure"
18654 /* confdefs.h.  */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h.  */
18659
18660 /* Override any gcc2 internal prototype to avoid an error.  */
18661 #ifdef __cplusplus
18662 extern "C"
18663 #endif
18664 /* We use char because int might match the return type of a gcc2
18665    builtin and then its argument prototype would still apply.  */
18666 char pthread_create ();
18667 int
18668 main ()
18669 {
18670 pthread_create ();
18671   ;
18672   return 0;
18673 }
18674 _ACEOF
18675 rm -f conftest.$ac_objext conftest$ac_exeext
18676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18677   (eval $ac_link) 2>&5
18678   ac_status=$?
18679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); } &&
18681          { ac_try='test -s conftest$ac_exeext'
18682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683   (eval $ac_try) 2>&5
18684   ac_status=$?
18685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686   (exit $ac_status); }; }; then
18687   ac_cv_lib_pthreads_pthread_create=yes
18688 else
18689   echo "$as_me: failed program was:" >&5
18690 sed 's/^/| /' conftest.$ac_ext >&5
18691
18692 ac_cv_lib_pthreads_pthread_create=no
18693 fi
18694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18695 LIBS=$ac_check_lib_save_LIBS
18696 fi
18697 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18698 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18699 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18700   PTHREAD_LIB="-lpthreads"
18701 else
18702   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18703 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18704 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18705   echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707   ac_check_lib_save_LIBS=$LIBS
18708 LIBS="-lc_r  $LIBS"
18709 cat >conftest.$ac_ext <<_ACEOF
18710 #line $LINENO "configure"
18711 /* confdefs.h.  */
18712 _ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h.  */
18716
18717 /* Override any gcc2 internal prototype to avoid an error.  */
18718 #ifdef __cplusplus
18719 extern "C"
18720 #endif
18721 /* We use char because int might match the return type of a gcc2
18722    builtin and then its argument prototype would still apply.  */
18723 char pthread_create ();
18724 int
18725 main ()
18726 {
18727 pthread_create ();
18728   ;
18729   return 0;
18730 }
18731 _ACEOF
18732 rm -f conftest.$ac_objext conftest$ac_exeext
18733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18734   (eval $ac_link) 2>&5
18735   ac_status=$?
18736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737   (exit $ac_status); } &&
18738          { ac_try='test -s conftest$ac_exeext'
18739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740   (eval $ac_try) 2>&5
18741   ac_status=$?
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); }; }; then
18744   ac_cv_lib_c_r_pthread_create=yes
18745 else
18746   echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18748
18749 ac_cv_lib_c_r_pthread_create=no
18750 fi
18751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18752 LIBS=$ac_check_lib_save_LIBS
18753 fi
18754 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18755 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18756 if test $ac_cv_lib_c_r_pthread_create = yes; then
18757   PTHREAD_LIB="-lc_r"
18758 else
18759   echo "$as_me:$LINENO: checking for pthread_create" >&5
18760 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18761 if test "${ac_cv_func_pthread_create+set}" = set; then
18762   echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764   cat >conftest.$ac_ext <<_ACEOF
18765 #line $LINENO "configure"
18766 /* confdefs.h.  */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h.  */
18771 /* System header to define __stub macros and hopefully few prototypes,
18772     which can conflict with char pthread_create (); below.
18773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18774     <limits.h> exists even on freestanding compilers.  */
18775 #ifdef __STDC__
18776 # include <limits.h>
18777 #else
18778 # include <assert.h>
18779 #endif
18780 /* Override any gcc2 internal prototype to avoid an error.  */
18781 #ifdef __cplusplus
18782 extern "C"
18783 {
18784 #endif
18785 /* We use char because int might match the return type of a gcc2
18786    builtin and then its argument prototype would still apply.  */
18787 char pthread_create ();
18788 /* The GNU C library defines this for functions which it implements
18789     to always fail with ENOSYS.  Some functions are actually named
18790     something starting with __ and the normal name is an alias.  */
18791 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18792 choke me
18793 #else
18794 char (*f) () = pthread_create;
18795 #endif
18796 #ifdef __cplusplus
18797 }
18798 #endif
18799
18800 int
18801 main ()
18802 {
18803 return f != pthread_create;
18804   ;
18805   return 0;
18806 }
18807 _ACEOF
18808 rm -f conftest.$ac_objext conftest$ac_exeext
18809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18810   (eval $ac_link) 2>&5
18811   ac_status=$?
18812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); } &&
18814          { ac_try='test -s conftest$ac_exeext'
18815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816   (eval $ac_try) 2>&5
18817   ac_status=$?
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); }; }; then
18820   ac_cv_func_pthread_create=yes
18821 else
18822   echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18824
18825 ac_cv_func_pthread_create=no
18826 fi
18827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18828 fi
18829 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18830 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18831
18832
18833 fi
18834
18835
18836 fi
18837
18838
18839 fi
18840
18841
18842
18843 cat >>confdefs.h <<\_ACEOF
18844 #define FDLIBS 1
18845 _ACEOF
18846
18847
18848
18849 CFLAGS=${CFLAGS--O}
18850 LDFLAGS=${LDFLAGS--O}
18851 DB_LIBS="${SQL_LFLAGS}"
18852
18853 CPPFLAGS="$CPPFLAGS"
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868 OBJLIST=
18869
18870
18871 lld="lld"
18872 llu="llu"
18873
18874 WCFLAGS=
18875 WLDFLAGS=
18876
18877 #
18878 # Finally we set appropriate distribution specific
18879 #  variables and defaults
18880 #
18881 # PFILES are platform specific files
18882 PFILES="platforms/Makefile"
18883 PSCMD="ps -e"
18884 WIN32=
18885 MACOSX=
18886 hostname=`uname -n | cut -d '.' -f 1`
18887 case "$DISTNAME" in
18888 aix)
18889         DISTVER=`uname -r`
18890         PSCMD="ps -e -o pid,comm"
18891         PFILES="${PFILES} \
18892            platforms/aix/Makefile"
18893         TAPEDRIVE="/dev/rmt0.1"
18894   ;;
18895 alpha)
18896         DISTVER=`uname -r`
18897         PTHREAD_LIB="-lpthread -lexc"
18898         if test "${CC}" = "gcc" ; then
18899            lld="lld"
18900            llu="llu"
18901         else
18902            lld="ld"
18903            llu="lu"
18904         fi
18905         TAPEDRIVE="/dev/nrmt0"
18906   ;;
18907 bsdi)
18908         DISTVER=`uname -a |awk '{print $3}'`
18909         TAPEDRIVE="/dev/nrmt0"
18910         PTHREAD_LIB="-pthread"
18911         CFLAGS="${CFLAGS} -pthread"
18912         PSCMD="ps -x -o pid,command"
18913         lld="qd"
18914         llu="qu"
18915         PFILES="${PFILES} \
18916             platforms/bsdi/Makefile \
18917             platforms/bsdi/bacula-fd \
18918             platforms/bsdi/bacula-sd \
18919             platforms/bsdi/bacula-dir"
18920         largefile_support="yes"
18921   ;;
18922 cygwin)
18923         DISTVER=`uname -a |awk '{print $3}'`
18924         TAPEDRIVE="/dev/nrst0"
18925         WIN32=win32
18926         WCFLAGS="-mwindows"
18927         WLDFLAGS="-mwindows"
18928   ;;
18929 darwin)
18930         DISTVER=`uname -r`
18931         TAPEDRIVE="/dev/nst0"
18932         PSCMD="ps -e -o pid,command"
18933         MACOSX=macosx
18934         PFILES="${PFILES} \
18935            platforms/darwin/Makefile"
18936   ;;
18937 debian)
18938         DISTVER=`cat /etc/debian_version`
18939         TAPEDRIVE="/dev/nrst0"
18940         PSCMD="ps -e -o pid,command"
18941   ;;
18942 freebsd)
18943         DISTVER=`uname -a |awk '{print $3}'`
18944         VER=`echo $DISTVER | cut -c 1`
18945         if test x$VER = x4 ; then
18946            PTHREAD_LIB="-pthread"
18947            CFLAGS="${CFLAGS} -pthread"
18948         fi
18949         lld="qd"
18950         llu="qu"
18951         TAPEDRIVE="/dev/nrsa0"
18952         PSCMD="ps -x -o pid,command"
18953         PFILES="${PFILES} \
18954             platforms/freebsd/Makefile \
18955             platforms/freebsd/bacula-fd \
18956             platforms/freebsd/bacula-sd \
18957             platforms/freebsd/bacula-dir"
18958         largefile_support="yes"
18959   ;;
18960 hpux)
18961         PSCMD="UNIX95=1 ps -e -o pid,comm"
18962         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18963         DISTVER=`uname -r`
18964         TAPEDRIVE="/dev/rmt/0hnb"
18965   ;;
18966 irix)
18967         DISTVER=`uname -r`
18968         TAPEDRIVE="/dev/rmt/0cbn"
18969         PSCMD="ps -e -o pid,comm"
18970         PFILES="${PFILES} \
18971             platforms/irix/Makefile \
18972             platforms/irix/bacula-fd \
18973             platforms/irix/bacula-sd \
18974             platforms/irix/bacula-dir"
18975   ;;
18976 netbsd)
18977         DISTVER=`uname -a |awk '{print $3}'`
18978         lld="qd"
18979         llu="qu"
18980         TAPEDRIVE="/dev/nrst0"
18981         PSCMD="ps -a -o pid,command"
18982         PTHREAD_LIB="-pthread"
18983         CFLAGS="${CFLAGS} -pthread"
18984   ;;
18985 openbsd)
18986         DISTVER=`uname -a |awk '{print $3}'`
18987         lld="qd"
18988         llu="qu"
18989         TAPEDRIVE="/dev/nrst0"
18990         PSCMD="ps -a -o pid,command"
18991         PTHREAD_LIB="-pthread"
18992         CFLAGS="${CFLAGS} -pthread"
18993         PFILES="${PFILES} \
18994             platforms/openbsd/Makefile \
18995             platforms/openbsd/bacula-fd \
18996             platforms/openbsd/bacula-sd \
18997             platforms/openbsd/bacula-dir"
18998   ;;
18999 redhat)
19000         if test -f /etc/whitebox-release ; then
19001            f=/etc/whitebox-release
19002         else
19003            f=/etc/redhat-release
19004         fi
19005         if test `cat $f | grep release |\
19006                    cut -f 3 -d ' '`x = "Enterprise"x ; then
19007            DISTVER="Enterprise "`cat $f | grep release |\
19008                     cut -f 6 -d ' '`
19009         else
19010             DISTVER=`cat /etc/redhat-release | grep release |\
19011                      cut -f 5 -d ' '`
19012         fi
19013         TAPEDRIVE="/dev/nst0"
19014         PSCMD="ps -e -o pid,command"
19015         PFILES="${PFILES} \
19016             platforms/redhat/Makefile \
19017             platforms/redhat/bacula-fd \
19018             platforms/redhat/bacula-sd \
19019             platforms/redhat/bacula-dir \
19020             platforms/redhat/bacula.spec \
19021             "
19022         hostname=`hostname -s`
19023   ;;
19024 mandrake)
19025         DISTVER=`cat /etc/mandrake-release | grep release |\
19026            cut -f 5 -d ' '`
19027         TAPEDRIVE="/dev/nst0"
19028         PSCMD="ps -e -o pid,command"
19029         PFILES="${PFILES} \
19030             platforms/mandrake/Makefile \
19031             platforms/mandrake/bacula-fd \
19032             platforms/mandrake/bacula-sd \
19033             platforms/mandrake/bacula-dir \
19034             platforms/mandrake/bacula.spec \
19035             "
19036   ;;
19037 gentoo)
19038         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19039         TAPEDRIVE="/dev/nst0"
19040         PSCMD="ps -e -o pid,command"
19041         PFILES="${PFILES} \
19042             platforms/gentoo/Makefile \
19043             platforms/gentoo/bacula-fd \
19044             platforms/gentoo/bacula-sd \
19045             platforms/gentoo/bacula-dir"
19046   ;;
19047 slackware)
19048         DISTVER=`cat /etc/slackware-version`
19049         TAPEDRIVE="/dev/nst0"
19050         PSCMD="ps -e -o pid,command"
19051         PFILES="${PFILES} \
19052             platforms/slackware/Makefile \
19053             platforms/slackware/rc.bacula-fd \
19054             platforms/slackware/rc.bacula-sd \
19055             platforms/slackware/rc.bacula-dir\
19056             platforms/slackware/functions.bacula"
19057   ;;
19058 solaris)
19059         DISTVER=`uname -r`
19060         TAPEDRIVE="/dev/rmt/0cbn"
19061         PSCMD="ps -e -o pid,comm"
19062         PFILES="${PFILES} \
19063             platforms/solaris/Makefile \
19064             platforms/solaris/bacula-fd \
19065             platforms/solaris/bacula-sd \
19066             platforms/solaris/bacula-dir"
19067         if test x$DISTVER = x5.6 ; then
19068             cat >>confdefs.h <<\_ACEOF
19069 #define HAVE_OLD_SOCKOPT 1
19070 _ACEOF
19071
19072         fi
19073   ;;
19074 suse)
19075         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19076             cut -f 3 -d ' '`
19077         TAPEDRIVE="/dev/nst0"
19078         PSCMD="ps -e -o pid,command"
19079         PFILES="${PFILES} \
19080             platforms/suse/Makefile \
19081             platforms/suse/bacula-fd \
19082             platforms/suse/bacula-sd \
19083             platforms/suse/bacula-dir \
19084             platforms/suse/bacula \
19085             platforms/suse/bacula.spec"
19086   ;;
19087 suse5)
19088         DISTNAME=suse
19089         DISTVER=5.x
19090         TAPEDRIVE="/dev/nst0"
19091         PSCMD="ps -e -o pid,command"
19092         PFILES="${PFILES} \
19093             platforms/suse/Makefile \
19094             platforms/suse/bacula-fd \
19095             platforms/suse/bacula-sd \
19096             platforms/suse/bacula-dir"
19097   ;;
19098 unknown)
19099         DISTVER=unknown
19100         TAPEDRIVE="/dev/nst0"
19101   ;;
19102 *)
19103   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19104   ;;
19105 esac
19106
19107
19108
19109 LIBS="$PTHREAD_LIB $LIBS"
19110
19111 cat >>confdefs.h <<_ACEOF
19112 #define lld "$lld"
19113 _ACEOF
19114
19115 cat >>confdefs.h <<_ACEOF
19116 #define llu "$llu"
19117 _ACEOF
19118
19119
19120
19121
19122
19123
19124
19125
19126 MCOMMON=./autoconf/Make.common
19127
19128
19129 if test "x${subsysdir}" = "x${sbindir}" ; then
19130    echo " "
19131    echo " "
19132    echo "You have set both --sbindir and --with-subsys-dir"
19133    echo "  equal to: ${subsysdir} "
19134    echo "This is not permitted. Please reconfigure."
19135    echo " "
19136    echo "Aborting configuration ..."
19137    echo " "
19138    echo " "
19139    exit 1
19140 fi
19141
19142                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               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"
19143           ac_config_commands="$ac_config_commands default"
19144 cat >confcache <<\_ACEOF
19145 # This file is a shell script that caches the results of configure
19146 # tests run on this system so they can be shared between configure
19147 # scripts and configure runs, see configure's option --config-cache.
19148 # It is not useful on other systems.  If it contains results you don't
19149 # want to keep, you may remove or edit it.
19150 #
19151 # config.status only pays attention to the cache file if you give it
19152 # the --recheck option to rerun configure.
19153 #
19154 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19155 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19156 # following values.
19157
19158 _ACEOF
19159
19160 # The following way of writing the cache mishandles newlines in values,
19161 # but we know of no workaround that is simple, portable, and efficient.
19162 # So, don't put newlines in cache variables' values.
19163 # Ultrix sh set writes to stderr and can't be redirected directly,
19164 # and sets the high bit in the cache file unless we assign to the vars.
19165 {
19166   (set) 2>&1 |
19167     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19168     *ac_space=\ *)
19169       # `set' does not quote correctly, so add quotes (double-quote
19170       # substitution turns \\\\ into \\, and sed turns \\ into \).
19171       sed -n \
19172         "s/'/'\\\\''/g;
19173           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19174       ;;
19175     *)
19176       # `set' quotes correctly as required by POSIX, so do not add quotes.
19177       sed -n \
19178         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19179       ;;
19180     esac;
19181 } |
19182   sed '
19183      t clear
19184      : clear
19185      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19186      t end
19187      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19188      : end' >>confcache
19189 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19190   if test -w $cache_file; then
19191     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19192     cat confcache >$cache_file
19193   else
19194     echo "not updating unwritable cache $cache_file"
19195   fi
19196 fi
19197 rm -f confcache
19198
19199 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19200 # Let make expand exec_prefix.
19201 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19202
19203 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19204 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19205 # trailing colons and then remove the whole line if VPATH becomes empty
19206 # (actually we leave an empty line to preserve line numbers).
19207 if test "x$srcdir" = x.; then
19208   ac_vpsub='/^[         ]*VPATH[        ]*=/{
19209 s/:*\$(srcdir):*/:/;
19210 s/:*\${srcdir}:*/:/;
19211 s/:*@srcdir@:*/:/;
19212 s/^\([^=]*=[    ]*\):*/\1/;
19213 s/:*$//;
19214 s/^[^=]*=[      ]*$//;
19215 }'
19216 fi
19217
19218 DEFS=-DHAVE_CONFIG_H
19219
19220 ac_libobjs=
19221 ac_ltlibobjs=
19222 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19223   # 1. Remove the extension, and $U if already installed.
19224   ac_i=`echo "$ac_i" |
19225          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19226   # 2. Add them.
19227   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19228   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19229 done
19230 LIBOBJS=$ac_libobjs
19231
19232 LTLIBOBJS=$ac_ltlibobjs
19233
19234
19235
19236 : ${CONFIG_STATUS=./config.status}
19237 ac_clean_files_save=$ac_clean_files
19238 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19239 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19240 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19241 cat >$CONFIG_STATUS <<_ACEOF
19242 #! $SHELL
19243 # Generated by $as_me.
19244 # Run this file to recreate the current configuration.
19245 # Compiler output produced by configure, useful for debugging
19246 # configure, is in config.log if it exists.
19247
19248 debug=false
19249 ac_cs_recheck=false
19250 ac_cs_silent=false
19251 SHELL=\${CONFIG_SHELL-$SHELL}
19252 _ACEOF
19253
19254 cat >>$CONFIG_STATUS <<\_ACEOF
19255 ## --------------------- ##
19256 ## M4sh Initialization.  ##
19257 ## --------------------- ##
19258
19259 # Be Bourne compatible
19260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19261   emulate sh
19262   NULLCMD=:
19263   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19264   # is contrary to our usage.  Disable this feature.
19265   alias -g '${1+"$@"}'='"$@"'
19266 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19267   set -o posix
19268 fi
19269
19270 # Support unset when possible.
19271 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19272   as_unset=unset
19273 else
19274   as_unset=false
19275 fi
19276
19277
19278 # Work around bugs in pre-3.0 UWIN ksh.
19279 $as_unset ENV MAIL MAILPATH
19280 PS1='$ '
19281 PS2='> '
19282 PS4='+ '
19283
19284 # NLS nuisances.
19285 for as_var in \
19286   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19287   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19288   LC_TELEPHONE LC_TIME
19289 do
19290   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19291     eval $as_var=C; export $as_var
19292   else
19293     $as_unset $as_var
19294   fi
19295 done
19296
19297 # Required to use basename.
19298 if expr a : '\(a\)' >/dev/null 2>&1; then
19299   as_expr=expr
19300 else
19301   as_expr=false
19302 fi
19303
19304 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19305   as_basename=basename
19306 else
19307   as_basename=false
19308 fi
19309
19310
19311 # Name of the executable.
19312 as_me=`$as_basename "$0" ||
19313 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19314          X"$0" : 'X\(//\)$' \| \
19315          X"$0" : 'X\(/\)$' \| \
19316          .     : '\(.\)' 2>/dev/null ||
19317 echo X/"$0" |
19318     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19319           /^X\/\(\/\/\)$/{ s//\1/; q; }
19320           /^X\/\(\/\).*/{ s//\1/; q; }
19321           s/.*/./; q'`
19322
19323
19324 # PATH needs CR, and LINENO needs CR and PATH.
19325 # Avoid depending upon Character Ranges.
19326 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19327 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19328 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19329 as_cr_digits='0123456789'
19330 as_cr_alnum=$as_cr_Letters$as_cr_digits
19331
19332 # The user is always right.
19333 if test "${PATH_SEPARATOR+set}" != set; then
19334   echo "#! /bin/sh" >conf$$.sh
19335   echo  "exit 0"   >>conf$$.sh
19336   chmod +x conf$$.sh
19337   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19338     PATH_SEPARATOR=';'
19339   else
19340     PATH_SEPARATOR=:
19341   fi
19342   rm -f conf$$.sh
19343 fi
19344
19345
19346   as_lineno_1=$LINENO
19347   as_lineno_2=$LINENO
19348   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19349   test "x$as_lineno_1" != "x$as_lineno_2" &&
19350   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19351   # Find who we are.  Look in the path if we contain no path at all
19352   # relative or not.
19353   case $0 in
19354     *[\\/]* ) as_myself=$0 ;;
19355     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19356 for as_dir in $PATH
19357 do
19358   IFS=$as_save_IFS
19359   test -z "$as_dir" && as_dir=.
19360   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19361 done
19362
19363        ;;
19364   esac
19365   # We did not find ourselves, most probably we were run as `sh COMMAND'
19366   # in which case we are not to be found in the path.
19367   if test "x$as_myself" = x; then
19368     as_myself=$0
19369   fi
19370   if test ! -f "$as_myself"; then
19371     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19372 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19373    { (exit 1); exit 1; }; }
19374   fi
19375   case $CONFIG_SHELL in
19376   '')
19377     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19378 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19379 do
19380   IFS=$as_save_IFS
19381   test -z "$as_dir" && as_dir=.
19382   for as_base in sh bash ksh sh5; do
19383          case $as_dir in
19384          /*)
19385            if ("$as_dir/$as_base" -c '
19386   as_lineno_1=$LINENO
19387   as_lineno_2=$LINENO
19388   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19389   test "x$as_lineno_1" != "x$as_lineno_2" &&
19390   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19391              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19392              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19393              CONFIG_SHELL=$as_dir/$as_base
19394              export CONFIG_SHELL
19395              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19396            fi;;
19397          esac
19398        done
19399 done
19400 ;;
19401   esac
19402
19403   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19404   # uniformly replaced by the line number.  The first 'sed' inserts a
19405   # line-number line before each line; the second 'sed' does the real
19406   # work.  The second script uses 'N' to pair each line-number line
19407   # with the numbered line, and appends trailing '-' during
19408   # substitution so that $LINENO is not a special case at line end.
19409   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19410   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19411   sed '=' <$as_myself |
19412     sed '
19413       N
19414       s,$,-,
19415       : loop
19416       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19417       t loop
19418       s,-$,,
19419       s,^['$as_cr_digits']*\n,,
19420     ' >$as_me.lineno &&
19421   chmod +x $as_me.lineno ||
19422     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19423 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19424    { (exit 1); exit 1; }; }
19425
19426   # Don't try to exec as it changes $[0], causing all sort of problems
19427   # (the dirname of $[0] is not the place where we might find the
19428   # original and so on.  Autoconf is especially sensible to this).
19429   . ./$as_me.lineno
19430   # Exit status is that of the last command.
19431   exit
19432 }
19433
19434
19435 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19436   *c*,-n*) ECHO_N= ECHO_C='
19437 ' ECHO_T='      ' ;;
19438   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19439   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19440 esac
19441
19442 if expr a : '\(a\)' >/dev/null 2>&1; then
19443   as_expr=expr
19444 else
19445   as_expr=false
19446 fi
19447
19448 rm -f conf$$ conf$$.exe conf$$.file
19449 echo >conf$$.file
19450 if ln -s conf$$.file conf$$ 2>/dev/null; then
19451   # We could just check for DJGPP; but this test a) works b) is more generic
19452   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19453   if test -f conf$$.exe; then
19454     # Don't use ln at all; we don't have any links
19455     as_ln_s='cp -p'
19456   else
19457     as_ln_s='ln -s'
19458   fi
19459 elif ln conf$$.file conf$$ 2>/dev/null; then
19460   as_ln_s=ln
19461 else
19462   as_ln_s='cp -p'
19463 fi
19464 rm -f conf$$ conf$$.exe conf$$.file
19465
19466 if mkdir -p . 2>/dev/null; then
19467   as_mkdir_p=:
19468 else
19469   as_mkdir_p=false
19470 fi
19471
19472 as_executable_p="test -f"
19473
19474 # Sed expression to map a string onto a valid CPP name.
19475 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19476
19477 # Sed expression to map a string onto a valid variable name.
19478 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19479
19480
19481 # IFS
19482 # We need space, tab and new line, in precisely that order.
19483 as_nl='
19484 '
19485 IFS="   $as_nl"
19486
19487 # CDPATH.
19488 $as_unset CDPATH
19489
19490 exec 6>&1
19491
19492 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19493 # report actual input values of CONFIG_FILES etc. instead of their
19494 # values after options handling.  Logging --version etc. is OK.
19495 exec 5>>config.log
19496 {
19497   echo
19498   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19499 ## Running $as_me. ##
19500 _ASBOX
19501 } >&5
19502 cat >&5 <<_CSEOF
19503
19504 This file was extended by $as_me, which was
19505 generated by GNU Autoconf 2.57.  Invocation command line was
19506
19507   CONFIG_FILES    = $CONFIG_FILES
19508   CONFIG_HEADERS  = $CONFIG_HEADERS
19509   CONFIG_LINKS    = $CONFIG_LINKS
19510   CONFIG_COMMANDS = $CONFIG_COMMANDS
19511   $ $0 $@
19512
19513 _CSEOF
19514 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19515 echo >&5
19516 _ACEOF
19517
19518 # Files that config.status was made for.
19519 if test -n "$ac_config_files"; then
19520   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19521 fi
19522
19523 if test -n "$ac_config_headers"; then
19524   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19525 fi
19526
19527 if test -n "$ac_config_links"; then
19528   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19529 fi
19530
19531 if test -n "$ac_config_commands"; then
19532   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19533 fi
19534
19535 cat >>$CONFIG_STATUS <<\_ACEOF
19536
19537 ac_cs_usage="\
19538 \`$as_me' instantiates files from templates according to the
19539 current configuration.
19540
19541 Usage: $0 [OPTIONS] [FILE]...
19542
19543   -h, --help       print this help, then exit
19544   -V, --version    print version number, then exit
19545   -q, --quiet      do not print progress messages
19546   -d, --debug      don't remove temporary files
19547       --recheck    update $as_me by reconfiguring in the same conditions
19548   --file=FILE[:TEMPLATE]
19549                    instantiate the configuration file FILE
19550   --header=FILE[:TEMPLATE]
19551                    instantiate the configuration header FILE
19552
19553 Configuration files:
19554 $config_files
19555
19556 Configuration headers:
19557 $config_headers
19558
19559 Configuration commands:
19560 $config_commands
19561
19562 Report bugs to <bug-autoconf@gnu.org>."
19563 _ACEOF
19564
19565 cat >>$CONFIG_STATUS <<_ACEOF
19566 ac_cs_version="\\
19567 config.status
19568 configured by $0, generated by GNU Autoconf 2.57,
19569   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19570
19571 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19572 Free Software Foundation, Inc.
19573 This config.status script is free software; the Free Software Foundation
19574 gives unlimited permission to copy, distribute and modify it."
19575 srcdir=$srcdir
19576 INSTALL="$INSTALL"
19577 _ACEOF
19578
19579 cat >>$CONFIG_STATUS <<\_ACEOF
19580 # If no file are specified by the user, then we need to provide default
19581 # value.  By we need to know if files were specified by the user.
19582 ac_need_defaults=:
19583 while test $# != 0
19584 do
19585   case $1 in
19586   --*=*)
19587     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19588     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19589     ac_shift=:
19590     ;;
19591   -*)
19592     ac_option=$1
19593     ac_optarg=$2
19594     ac_shift=shift
19595     ;;
19596   *) # This is not an option, so the user has probably given explicit
19597      # arguments.
19598      ac_option=$1
19599      ac_need_defaults=false;;
19600   esac
19601
19602   case $ac_option in
19603   # Handling of the options.
19604 _ACEOF
19605 cat >>$CONFIG_STATUS <<\_ACEOF
19606   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19607     ac_cs_recheck=: ;;
19608   --version | --vers* | -V )
19609     echo "$ac_cs_version"; exit 0 ;;
19610   --he | --h)
19611     # Conflict between --help and --header
19612     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19613 Try \`$0 --help' for more information." >&5
19614 echo "$as_me: error: ambiguous option: $1
19615 Try \`$0 --help' for more information." >&2;}
19616    { (exit 1); exit 1; }; };;
19617   --help | --hel | -h )
19618     echo "$ac_cs_usage"; exit 0 ;;
19619   --debug | --d* | -d )
19620     debug=: ;;
19621   --file | --fil | --fi | --f )
19622     $ac_shift
19623     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19624     ac_need_defaults=false;;
19625   --header | --heade | --head | --hea )
19626     $ac_shift
19627     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19628     ac_need_defaults=false;;
19629   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19630   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19631     ac_cs_silent=: ;;
19632
19633   # This is an error.
19634   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19635 Try \`$0 --help' for more information." >&5
19636 echo "$as_me: error: unrecognized option: $1
19637 Try \`$0 --help' for more information." >&2;}
19638    { (exit 1); exit 1; }; } ;;
19639
19640   *) ac_config_targets="$ac_config_targets $1" ;;
19641
19642   esac
19643   shift
19644 done
19645
19646 ac_configure_extra_args=
19647
19648 if $ac_cs_silent; then
19649   exec 6>/dev/null
19650   ac_configure_extra_args="$ac_configure_extra_args --silent"
19651 fi
19652
19653 _ACEOF
19654 cat >>$CONFIG_STATUS <<_ACEOF
19655 if \$ac_cs_recheck; then
19656   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19657   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19658 fi
19659
19660 _ACEOF
19661
19662
19663
19664
19665
19666 cat >>$CONFIG_STATUS <<\_ACEOF
19667 for ac_config_target in $ac_config_targets
19668 do
19669   case "$ac_config_target" in
19670   # Handling of arguments.
19671   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19672   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19673   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19674   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19675   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19676   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19677   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19678   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19679   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19680   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19681   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19682   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19683   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19684   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19685   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19686   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19687   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19688   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19689   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19690   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19691   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19692   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19693   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19694   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19695   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19696   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19697   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19698   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19699   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19700   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19701   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19702   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19703   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19704   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19705   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19706   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19707   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19708   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19709   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19710   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19711   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19712   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19713   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19714   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19715   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19716   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19717   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19718   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19719   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19720   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19721   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19722   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19723   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19724   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19725   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19726   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19727   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19728   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19729   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19730   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19731   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19732   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19733   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19734   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19735   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19736   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19737   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19738   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19739   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19740   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19741   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19742   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19743   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19744   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19745   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19746   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19747   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19748   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19749   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19750   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19751   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19752   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19753   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19754   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19755   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19756   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19757   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19758   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19759   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19760   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19761   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19762   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19763   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19764   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19765 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19766    { (exit 1); exit 1; }; };;
19767   esac
19768 done
19769
19770 # If the user did not use the arguments to specify the items to instantiate,
19771 # then the envvar interface is used.  Set only those that are not.
19772 # We use the long form for the default assignment because of an extremely
19773 # bizarre bug on SunOS 4.1.3.
19774 if $ac_need_defaults; then
19775   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19776   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19777   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19778 fi
19779
19780 # Have a temporary directory for convenience.  Make it in the build tree
19781 # simply because there is no reason to put it here, and in addition,
19782 # creating and moving files from /tmp can sometimes cause problems.
19783 # Create a temporary directory, and hook for its removal unless debugging.
19784 $debug ||
19785 {
19786   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19787   trap '{ (exit 1); exit 1; }' 1 2 13 15
19788 }
19789
19790 # Create a (secure) tmp directory for tmp files.
19791
19792 {
19793   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19794   test -n "$tmp" && test -d "$tmp"
19795 }  ||
19796 {
19797   tmp=./confstat$$-$RANDOM
19798   (umask 077 && mkdir $tmp)
19799 } ||
19800 {
19801    echo "$me: cannot create a temporary directory in ." >&2
19802    { (exit 1); exit 1; }
19803 }
19804
19805 _ACEOF
19806
19807 cat >>$CONFIG_STATUS <<_ACEOF
19808
19809 #
19810 # CONFIG_FILES section.
19811 #
19812
19813 # No need to generate the scripts if there are no CONFIG_FILES.
19814 # This happens for instance when ./config.status config.h
19815 if test -n "\$CONFIG_FILES"; then
19816   # Protect against being on the right side of a sed subst in config.status.
19817   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19818    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19819 s,@SHELL@,$SHELL,;t t
19820 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19821 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19822 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19823 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19824 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19825 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19826 s,@exec_prefix@,$exec_prefix,;t t
19827 s,@prefix@,$prefix,;t t
19828 s,@program_transform_name@,$program_transform_name,;t t
19829 s,@bindir@,$bindir,;t t
19830 s,@sbindir@,$sbindir,;t t
19831 s,@libexecdir@,$libexecdir,;t t
19832 s,@datadir@,$datadir,;t t
19833 s,@sysconfdir@,$sysconfdir,;t t
19834 s,@sharedstatedir@,$sharedstatedir,;t t
19835 s,@localstatedir@,$localstatedir,;t t
19836 s,@libdir@,$libdir,;t t
19837 s,@includedir@,$includedir,;t t
19838 s,@oldincludedir@,$oldincludedir,;t t
19839 s,@infodir@,$infodir,;t t
19840 s,@mandir@,$mandir,;t t
19841 s,@build_alias@,$build_alias,;t t
19842 s,@host_alias@,$host_alias,;t t
19843 s,@target_alias@,$target_alias,;t t
19844 s,@DEFS@,$DEFS,;t t
19845 s,@ECHO_C@,$ECHO_C,;t t
19846 s,@ECHO_N@,$ECHO_N,;t t
19847 s,@ECHO_T@,$ECHO_T,;t t
19848 s,@LIBS@,$LIBS,;t t
19849 s,@BUILD_DIR@,$BUILD_DIR,;t t
19850 s,@TRUEPRG@,$TRUEPRG,;t t
19851 s,@FALSEPRG@,$FALSEPRG,;t t
19852 s,@VERSION@,$VERSION,;t t
19853 s,@DATE@,$DATE,;t t
19854 s,@LSMDATE@,$LSMDATE,;t t
19855 s,@CC@,$CC,;t t
19856 s,@CFLAGS@,$CFLAGS,;t t
19857 s,@LDFLAGS@,$LDFLAGS,;t t
19858 s,@CPPFLAGS@,$CPPFLAGS,;t t
19859 s,@ac_ct_CC@,$ac_ct_CC,;t t
19860 s,@EXEEXT@,$EXEEXT,;t t
19861 s,@OBJEXT@,$OBJEXT,;t t
19862 s,@CXX@,$CXX,;t t
19863 s,@CXXFLAGS@,$CXXFLAGS,;t t
19864 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19865 s,@CPP@,$CPP,;t t
19866 s,@EGREP@,$EGREP,;t t
19867 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19868 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19869 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19870 s,@RANLIB@,$RANLIB,;t t
19871 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19872 s,@MV@,$MV,;t t
19873 s,@RM@,$RM,;t t
19874 s,@CP@,$CP,;t t
19875 s,@SED@,$SED,;t t
19876 s,@AWK@,$AWK,;t t
19877 s,@ECHO@,$ECHO,;t t
19878 s,@CMP@,$CMP,;t t
19879 s,@TBL@,$TBL,;t t
19880 s,@AR@,$AR,;t t
19881 s,@OPENSSL@,$OPENSSL,;t t
19882 s,@MTX@,$MTX,;t t
19883 s,@PKGCONFIG@,$PKGCONFIG,;t t
19884 s,@WXCONFIG@,$WXCONFIG,;t t
19885 s,@CDRECORD@,$CDRECORD,;t t
19886 s,@ARFLAGS@,$ARFLAGS,;t t
19887 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19888 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19889 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19890 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19891 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19892 s,@build@,$build,;t t
19893 s,@build_cpu@,$build_cpu,;t t
19894 s,@build_vendor@,$build_vendor,;t t
19895 s,@build_os@,$build_os,;t t
19896 s,@host@,$host,;t t
19897 s,@host_cpu@,$host_cpu,;t t
19898 s,@host_vendor@,$host_vendor,;t t
19899 s,@host_os@,$host_os,;t t
19900 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19901 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19902 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19903 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19904 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19905 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19906 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19907 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19908 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19909 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19910 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19911 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19912 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19913 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19914 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19915 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19916 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19917 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19918 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19919 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19920 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19921 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19922 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19923 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19924 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19925 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19926 s,@MSGFMT@,$MSGFMT,;t t
19927 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19928 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19929 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19930 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19931 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19932 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19933 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19934 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19935 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19936 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19937 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19938 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19939 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19940 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19941 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19942 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19943 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19944 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19945 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19946 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19947 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19948 s,@GNOME_DIR@,$GNOME_DIR,;t t
19949 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19950 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19951 s,@WX_DIR@,$WX_DIR,;t t
19952 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
19953 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
19954 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
19955 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19956 s,@STATIC_FD@,$STATIC_FD,;t t
19957 s,@STATIC_SD@,$STATIC_SD,;t t
19958 s,@STATIC_DIR@,$STATIC_DIR,;t t
19959 s,@STATIC_CONS@,$STATIC_CONS,;t t
19960 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19961 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19962 s,@ALL_DIRS@,$ALL_DIRS,;t t
19963 s,@CONS_INC@,$CONS_INC,;t t
19964 s,@CONS_OBJ@,$CONS_OBJ,;t t
19965 s,@CONS_SRC@,$CONS_SRC,;t t
19966 s,@CONS_LIBS@,$CONS_LIBS,;t t
19967 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19968 s,@READLINE_SRC@,$READLINE_SRC,;t t
19969 s,@CDSTL@,$CDSTL,;t t
19970 s,@working_dir@,$working_dir,;t t
19971 s,@scriptdir@,$scriptdir,;t t
19972 s,@dump_email@,$dump_email,;t t
19973 s,@job_email@,$job_email,;t t
19974 s,@smtp_host@,$smtp_host,;t t
19975 s,@piddir@,$piddir,;t t
19976 s,@subsysdir@,$subsysdir,;t t
19977 s,@baseport@,$baseport,;t t
19978 s,@dir_port@,$dir_port,;t t
19979 s,@fd_port@,$fd_port,;t t
19980 s,@sd_port@,$sd_port,;t t
19981 s,@dir_password@,$dir_password,;t t
19982 s,@fd_password@,$fd_password,;t t
19983 s,@sd_password@,$sd_password,;t t
19984 s,@mon_dir_password@,$mon_dir_password,;t t
19985 s,@mon_fd_password@,$mon_fd_password,;t t
19986 s,@mon_sd_password@,$mon_sd_password,;t t
19987 s,@dir_user@,$dir_user,;t t
19988 s,@dir_group@,$dir_group,;t t
19989 s,@sd_user@,$sd_user,;t t
19990 s,@sd_group@,$sd_group,;t t
19991 s,@fd_user@,$fd_user,;t t
19992 s,@fd_group@,$fd_group,;t t
19993 s,@SBINPERM@,$SBINPERM,;t t
19994 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19995 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19996 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19997 s,@cats@,$cats,;t t
19998 s,@DB_NAME@,$DB_NAME,;t t
19999 s,@GETCONF@,$GETCONF,;t t
20000 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20001 s,@X_CFLAGS@,$X_CFLAGS,;t t
20002 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20003 s,@X_LIBS@,$X_LIBS,;t t
20004 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20005 s,@LIBOBJS@,$LIBOBJS,;t t
20006 s,@ALLOCA@,$ALLOCA,;t t
20007 s,@FDLIBS@,$FDLIBS,;t t
20008 s,@DEBUG@,$DEBUG,;t t
20009 s,@DINCLUDE@,$DINCLUDE,;t t
20010 s,@DLIB@,$DLIB,;t t
20011 s,@DB_LIBS@,$DB_LIBS,;t t
20012 s,@WCFLAGS@,$WCFLAGS,;t t
20013 s,@WLDFLAGS@,$WLDFLAGS,;t t
20014 s,@OBJLIST@,$OBJLIST,;t t
20015 s,@hostname@,$hostname,;t t
20016 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20017 s,@PSCMD@,$PSCMD,;t t
20018 s,@WIN32@,$WIN32,;t t
20019 s,@MACOSX@,$MACOSX,;t t
20020 s,@DISTNAME@,$DISTNAME,;t t
20021 s,@DISTVER@,$DISTVER,;t t
20022 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20023 /@MCOMMON@/r $MCOMMON
20024 s,@MCOMMON@,,;t t
20025 CEOF
20026
20027 _ACEOF
20028
20029   cat >>$CONFIG_STATUS <<\_ACEOF
20030   # Split the substitutions into bite-sized pieces for seds with
20031   # small command number limits, like on Digital OSF/1 and HP-UX.
20032   ac_max_sed_lines=48
20033   ac_sed_frag=1 # Number of current file.
20034   ac_beg=1 # First line for current file.
20035   ac_end=$ac_max_sed_lines # Line after last line for current file.
20036   ac_more_lines=:
20037   ac_sed_cmds=
20038   while $ac_more_lines; do
20039     if test $ac_beg -gt 1; then
20040       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20041     else
20042       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20043     fi
20044     if test ! -s $tmp/subs.frag; then
20045       ac_more_lines=false
20046     else
20047       # The purpose of the label and of the branching condition is to
20048       # speed up the sed processing (if there are no `@' at all, there
20049       # is no need to browse any of the substitutions).
20050       # These are the two extra sed commands mentioned above.
20051       (echo ':t
20052   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20053       if test -z "$ac_sed_cmds"; then
20054         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20055       else
20056         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20057       fi
20058       ac_sed_frag=`expr $ac_sed_frag + 1`
20059       ac_beg=$ac_end
20060       ac_end=`expr $ac_end + $ac_max_sed_lines`
20061     fi
20062   done
20063   if test -z "$ac_sed_cmds"; then
20064     ac_sed_cmds=cat
20065   fi
20066 fi # test -n "$CONFIG_FILES"
20067
20068 _ACEOF
20069 cat >>$CONFIG_STATUS <<\_ACEOF
20070 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20071   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20072   case $ac_file in
20073   - | *:- | *:-:* ) # input from stdin
20074         cat >$tmp/stdin
20075         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20076         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20077   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20078         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20079   * )   ac_file_in=$ac_file.in ;;
20080   esac
20081
20082   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20083   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20084 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20085          X"$ac_file" : 'X\(//\)[^/]' \| \
20086          X"$ac_file" : 'X\(//\)$' \| \
20087          X"$ac_file" : 'X\(/\)' \| \
20088          .     : '\(.\)' 2>/dev/null ||
20089 echo X"$ac_file" |
20090     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20091           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20092           /^X\(\/\/\)$/{ s//\1/; q; }
20093           /^X\(\/\).*/{ s//\1/; q; }
20094           s/.*/./; q'`
20095   { if $as_mkdir_p; then
20096     mkdir -p "$ac_dir"
20097   else
20098     as_dir="$ac_dir"
20099     as_dirs=
20100     while test ! -d "$as_dir"; do
20101       as_dirs="$as_dir $as_dirs"
20102       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20104          X"$as_dir" : 'X\(//\)[^/]' \| \
20105          X"$as_dir" : 'X\(//\)$' \| \
20106          X"$as_dir" : 'X\(/\)' \| \
20107          .     : '\(.\)' 2>/dev/null ||
20108 echo X"$as_dir" |
20109     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20110           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20111           /^X\(\/\/\)$/{ s//\1/; q; }
20112           /^X\(\/\).*/{ s//\1/; q; }
20113           s/.*/./; q'`
20114     done
20115     test ! -n "$as_dirs" || mkdir $as_dirs
20116   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20117 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20118    { (exit 1); exit 1; }; }; }
20119
20120   ac_builddir=.
20121
20122 if test "$ac_dir" != .; then
20123   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20124   # A "../" for each directory in $ac_dir_suffix.
20125   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20126 else
20127   ac_dir_suffix= ac_top_builddir=
20128 fi
20129
20130 case $srcdir in
20131   .)  # No --srcdir option.  We are building in place.
20132     ac_srcdir=.
20133     if test -z "$ac_top_builddir"; then
20134        ac_top_srcdir=.
20135     else
20136        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20137     fi ;;
20138   [\\/]* | ?:[\\/]* )  # Absolute path.
20139     ac_srcdir=$srcdir$ac_dir_suffix;
20140     ac_top_srcdir=$srcdir ;;
20141   *) # Relative path.
20142     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20143     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20144 esac
20145 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20146 # absolute.
20147 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20148 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20149 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20150 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20151
20152
20153   case $INSTALL in
20154   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20155   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20156   esac
20157
20158   if test x"$ac_file" != x-; then
20159     { echo "$as_me:$LINENO: creating $ac_file" >&5
20160 echo "$as_me: creating $ac_file" >&6;}
20161     rm -f "$ac_file"
20162   fi
20163   # Let's still pretend it is `configure' which instantiates (i.e., don't
20164   # use $as_me), people would be surprised to read:
20165   #    /* config.h.  Generated by config.status.  */
20166   if test x"$ac_file" = x-; then
20167     configure_input=
20168   else
20169     configure_input="$ac_file.  "
20170   fi
20171   configure_input=$configure_input"Generated from `echo $ac_file_in |
20172                                      sed 's,.*/,,'` by configure."
20173
20174   # First look for the input files in the build tree, otherwise in the
20175   # src tree.
20176   ac_file_inputs=`IFS=:
20177     for f in $ac_file_in; do
20178       case $f in
20179       -) echo $tmp/stdin ;;
20180       [\\/$]*)
20181          # Absolute (can't be DOS-style, as IFS=:)
20182          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20183 echo "$as_me: error: cannot find input file: $f" >&2;}
20184    { (exit 1); exit 1; }; }
20185          echo $f;;
20186       *) # Relative
20187          if test -f "$f"; then
20188            # Build tree
20189            echo $f
20190          elif test -f "$srcdir/$f"; then
20191            # Source tree
20192            echo $srcdir/$f
20193          else
20194            # /dev/null tree
20195            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20196 echo "$as_me: error: cannot find input file: $f" >&2;}
20197    { (exit 1); exit 1; }; }
20198          fi;;
20199       esac
20200     done` || { (exit 1); exit 1; }
20201 _ACEOF
20202 cat >>$CONFIG_STATUS <<_ACEOF
20203   sed "$ac_vpsub
20204 $extrasub
20205 _ACEOF
20206 cat >>$CONFIG_STATUS <<\_ACEOF
20207 :t
20208 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20209 s,@configure_input@,$configure_input,;t t
20210 s,@srcdir@,$ac_srcdir,;t t
20211 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20212 s,@top_srcdir@,$ac_top_srcdir,;t t
20213 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20214 s,@builddir@,$ac_builddir,;t t
20215 s,@abs_builddir@,$ac_abs_builddir,;t t
20216 s,@top_builddir@,$ac_top_builddir,;t t
20217 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20218 s,@INSTALL@,$ac_INSTALL,;t t
20219 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20220   rm -f $tmp/stdin
20221   if test x"$ac_file" != x-; then
20222     mv $tmp/out $ac_file
20223   else
20224     cat $tmp/out
20225     rm -f $tmp/out
20226   fi
20227
20228 done
20229 _ACEOF
20230 cat >>$CONFIG_STATUS <<\_ACEOF
20231
20232 #
20233 # CONFIG_HEADER section.
20234 #
20235
20236 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20237 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20238 #
20239 # ac_d sets the value in "#define NAME VALUE" lines.
20240 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20241 ac_dB='[        ].*$,\1#\2'
20242 ac_dC=' '
20243 ac_dD=',;t'
20244 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20245 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20246 ac_uB='$,\1#\2define\3'
20247 ac_uC=' '
20248 ac_uD=',;t'
20249
20250 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20251   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20252   case $ac_file in
20253   - | *:- | *:-:* ) # input from stdin
20254         cat >$tmp/stdin
20255         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20256         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20257   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20258         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20259   * )   ac_file_in=$ac_file.in ;;
20260   esac
20261
20262   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20263 echo "$as_me: creating $ac_file" >&6;}
20264
20265   # First look for the input files in the build tree, otherwise in the
20266   # src tree.
20267   ac_file_inputs=`IFS=:
20268     for f in $ac_file_in; do
20269       case $f in
20270       -) echo $tmp/stdin ;;
20271       [\\/$]*)
20272          # Absolute (can't be DOS-style, as IFS=:)
20273          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20274 echo "$as_me: error: cannot find input file: $f" >&2;}
20275    { (exit 1); exit 1; }; }
20276          echo $f;;
20277       *) # Relative
20278          if test -f "$f"; then
20279            # Build tree
20280            echo $f
20281          elif test -f "$srcdir/$f"; then
20282            # Source tree
20283            echo $srcdir/$f
20284          else
20285            # /dev/null tree
20286            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20287 echo "$as_me: error: cannot find input file: $f" >&2;}
20288    { (exit 1); exit 1; }; }
20289          fi;;
20290       esac
20291     done` || { (exit 1); exit 1; }
20292   # Remove the trailing spaces.
20293   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
20294
20295 _ACEOF
20296
20297 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20298 # `conftest.undefs', that substitutes the proper values into
20299 # config.h.in to produce config.h.  The first handles `#define'
20300 # templates, and the second `#undef' templates.
20301 # And first: Protect against being on the right side of a sed subst in
20302 # config.status.  Protect against being in an unquoted here document
20303 # in config.status.
20304 rm -f conftest.defines conftest.undefs
20305 # Using a here document instead of a string reduces the quoting nightmare.
20306 # Putting comments in sed scripts is not portable.
20307 #
20308 # `end' is used to avoid that the second main sed command (meant for
20309 # 0-ary CPP macros) applies to n-ary macro definitions.
20310 # See the Autoconf documentation for `clear'.
20311 cat >confdef2sed.sed <<\_ACEOF
20312 s/[\\&,]/\\&/g
20313 s,[\\$`],\\&,g
20314 t clear
20315 : clear
20316 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20317 t end
20318 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20319 : end
20320 _ACEOF
20321 # If some macros were called several times there might be several times
20322 # the same #defines, which is useless.  Nevertheless, we may not want to
20323 # sort them, since we want the *last* AC-DEFINE to be honored.
20324 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20325 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20326 rm -f confdef2sed.sed
20327
20328 # This sed command replaces #undef with comments.  This is necessary, for
20329 # example, in the case of _POSIX_SOURCE, which is predefined and required
20330 # on some systems where configure will not decide to define it.
20331 cat >>conftest.undefs <<\_ACEOF
20332 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20333 _ACEOF
20334
20335 # Break up conftest.defines because some shells have a limit on the size
20336 # of here documents, and old seds have small limits too (100 cmds).
20337 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20338 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20339 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20340 echo '  :' >>$CONFIG_STATUS
20341 rm -f conftest.tail
20342 while grep . conftest.defines >/dev/null
20343 do
20344   # Write a limited-size here document to $tmp/defines.sed.
20345   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20346   # Speed up: don't consider the non `#define' lines.
20347   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
20348   # Work around the forget-to-reset-the-flag bug.
20349   echo 't clr' >>$CONFIG_STATUS
20350   echo ': clr' >>$CONFIG_STATUS
20351   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20352   echo 'CEOF
20353   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20354   rm -f $tmp/in
20355   mv $tmp/out $tmp/in
20356 ' >>$CONFIG_STATUS
20357   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20358   rm -f conftest.defines
20359   mv conftest.tail conftest.defines
20360 done
20361 rm -f conftest.defines
20362 echo '  fi # grep' >>$CONFIG_STATUS
20363 echo >>$CONFIG_STATUS
20364
20365 # Break up conftest.undefs because some shells have a limit on the size
20366 # of here documents, and old seds have small limits too (100 cmds).
20367 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20368 rm -f conftest.tail
20369 while grep . conftest.undefs >/dev/null
20370 do
20371   # Write a limited-size here document to $tmp/undefs.sed.
20372   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20373   # Speed up: don't consider the non `#undef'
20374   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20375   # Work around the forget-to-reset-the-flag bug.
20376   echo 't clr' >>$CONFIG_STATUS
20377   echo ': clr' >>$CONFIG_STATUS
20378   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20379   echo 'CEOF
20380   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20381   rm -f $tmp/in
20382   mv $tmp/out $tmp/in
20383 ' >>$CONFIG_STATUS
20384   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20385   rm -f conftest.undefs
20386   mv conftest.tail conftest.undefs
20387 done
20388 rm -f conftest.undefs
20389
20390 cat >>$CONFIG_STATUS <<\_ACEOF
20391   # Let's still pretend it is `configure' which instantiates (i.e., don't
20392   # use $as_me), people would be surprised to read:
20393   #    /* config.h.  Generated by config.status.  */
20394   if test x"$ac_file" = x-; then
20395     echo "/* Generated by configure.  */" >$tmp/config.h
20396   else
20397     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20398   fi
20399   cat $tmp/in >>$tmp/config.h
20400   rm -f $tmp/in
20401   if test x"$ac_file" != x-; then
20402     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20403       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20404 echo "$as_me: $ac_file is unchanged" >&6;}
20405     else
20406       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20407 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20408          X"$ac_file" : 'X\(//\)[^/]' \| \
20409          X"$ac_file" : 'X\(//\)$' \| \
20410          X"$ac_file" : 'X\(/\)' \| \
20411          .     : '\(.\)' 2>/dev/null ||
20412 echo X"$ac_file" |
20413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20414           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20415           /^X\(\/\/\)$/{ s//\1/; q; }
20416           /^X\(\/\).*/{ s//\1/; q; }
20417           s/.*/./; q'`
20418       { if $as_mkdir_p; then
20419     mkdir -p "$ac_dir"
20420   else
20421     as_dir="$ac_dir"
20422     as_dirs=
20423     while test ! -d "$as_dir"; do
20424       as_dirs="$as_dir $as_dirs"
20425       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20427          X"$as_dir" : 'X\(//\)[^/]' \| \
20428          X"$as_dir" : 'X\(//\)$' \| \
20429          X"$as_dir" : 'X\(/\)' \| \
20430          .     : '\(.\)' 2>/dev/null ||
20431 echo X"$as_dir" |
20432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20433           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20434           /^X\(\/\/\)$/{ s//\1/; q; }
20435           /^X\(\/\).*/{ s//\1/; q; }
20436           s/.*/./; q'`
20437     done
20438     test ! -n "$as_dirs" || mkdir $as_dirs
20439   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20440 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20441    { (exit 1); exit 1; }; }; }
20442
20443       rm -f $ac_file
20444       mv $tmp/config.h $ac_file
20445     fi
20446   else
20447     cat $tmp/config.h
20448     rm -f $tmp/config.h
20449   fi
20450 done
20451 _ACEOF
20452 cat >>$CONFIG_STATUS <<\_ACEOF
20453
20454 #
20455 # CONFIG_COMMANDS section.
20456 #
20457 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20458   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20459   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20460   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20461 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20462          X"$ac_dest" : 'X\(//\)[^/]' \| \
20463          X"$ac_dest" : 'X\(//\)$' \| \
20464          X"$ac_dest" : 'X\(/\)' \| \
20465          .     : '\(.\)' 2>/dev/null ||
20466 echo X"$ac_dest" |
20467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20468           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20469           /^X\(\/\/\)$/{ s//\1/; q; }
20470           /^X\(\/\).*/{ s//\1/; q; }
20471           s/.*/./; q'`
20472   ac_builddir=.
20473
20474 if test "$ac_dir" != .; then
20475   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20476   # A "../" for each directory in $ac_dir_suffix.
20477   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20478 else
20479   ac_dir_suffix= ac_top_builddir=
20480 fi
20481
20482 case $srcdir in
20483   .)  # No --srcdir option.  We are building in place.
20484     ac_srcdir=.
20485     if test -z "$ac_top_builddir"; then
20486        ac_top_srcdir=.
20487     else
20488        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20489     fi ;;
20490   [\\/]* | ?:[\\/]* )  # Absolute path.
20491     ac_srcdir=$srcdir$ac_dir_suffix;
20492     ac_top_srcdir=$srcdir ;;
20493   *) # Relative path.
20494     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20495     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20496 esac
20497 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20498 # absolute.
20499 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20500 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20501 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20502 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20503
20504
20505   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20506 echo "$as_me: executing $ac_dest commands" >&6;}
20507   case $ac_dest in
20508     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20509  ;;
20510   esac
20511 done
20512 _ACEOF
20513
20514 cat >>$CONFIG_STATUS <<\_ACEOF
20515
20516 { (exit 0); exit 0; }
20517 _ACEOF
20518 chmod +x $CONFIG_STATUS
20519 ac_clean_files=$ac_clean_files_save
20520
20521
20522 # configure is writing to config.log, and then calls config.status.
20523 # config.status does its own redirection, appending to config.log.
20524 # Unfortunately, on DOS this fails, as config.log is still kept open
20525 # by configure, so config.status won't be able to write to it; its
20526 # output is simply discarded.  So we exec the FD to /dev/null,
20527 # effectively closing config.log, so it can be properly (re)opened and
20528 # appended to by config.status.  When coming back to configure, we
20529 # need to make the FD available again.
20530 if test "$no_create" != yes; then
20531   ac_cs_success=:
20532   ac_config_status_args=
20533   test "$silent" = yes &&
20534     ac_config_status_args="$ac_config_status_args --quiet"
20535   exec 5>/dev/null
20536   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20537   exec 5>>config.log
20538   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20539   # would make configure fail if this is the last instruction.
20540   $ac_cs_success || { (exit 1); exit 1; }
20541 fi
20542
20543
20544 cd scripts
20545 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20546 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20547 cd ..
20548
20549 c=src/cats
20550
20551 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
20552 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
20553
20554 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
20555 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
20556
20557 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
20558 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
20559
20560 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
20561 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
20562
20563 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
20564 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
20565
20566 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20567 chmod 755 $c/sqlite
20568 chmod 755 $c/mysql
20569
20570 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20571    largefile_support="yes"
20572 fi
20573
20574 #
20575 # A whole lot of hand springs to get the compiler version.
20576 #  This is because gcc changed the output in version 3.0
20577 #
20578 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20579 if test "x${CCVERSION}" = "x" ; then
20580   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20581 fi
20582 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20583 if test x"${CXXVERSION}" = x ; then
20584   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20585 fi
20586
20587 if test "x${subsysdir}" = "x${sbindir}" ; then
20588    echo " "
20589    echo " "
20590    echo "You have set --sbindir and --with-subsys-dir"
20591    echo "  both equal to: ${subsysdir} "
20592    echo "  This is not permitted. Please reconfigure."
20593    echo " "
20594    echo "Aborting configuration ..."
20595    echo " "
20596    echo " "
20597    exit 1
20598 fi
20599
20600 if test "x${db_name}" = "xInternal" ; then
20601    echo " "
20602    echo " "
20603    echo "You have not specified either --enable-client-only or one of the"
20604    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
20605    echo "  This is not permitted. Please reconfigure."
20606    echo " "
20607    echo "Aborting the configuration ..."
20608    echo " "
20609    echo " "
20610    exit 1
20611 fi
20612
20613 echo "
20614 Configuration on `date`:
20615
20616   Host:                       $host -- ${DISTNAME} ${DISTVER}
20617   Bacula version:             ${VERSION} (${DATE})
20618   Source code location:       ${srcdir}
20619   Install binaries:           ${sbindir}
20620   Install config files:       ${sysconfdir}
20621   Scripts directory:          ${scriptdir}
20622   Working directory:          ${working_dir}
20623   PID directory:              ${piddir}
20624   Subsys directory:           ${subsysdir}
20625   C Compiler:                 ${CC} ${CCVERSION}
20626   C++ Compiler:               ${CXX} ${CXXVERSION}
20627   Compiler flags:             ${WCFLAGS} ${CFLAGS}
20628   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
20629   Libraries:                  ${LIBS}
20630   Statically Linked Tools:    ${support_static_tools}
20631   Statically Linked FD:       ${support_static_fd}
20632   Statically Linked SD:       ${support_static_sd}
20633   Statically Linked DIR:      ${support_static_dir}
20634   Statically Linked CONS:     ${support_static_cons}
20635   Database type:              ${db_name}
20636   Database lib:               ${DB_LIBS}
20637
20638   Job Output Email:           ${job_email}
20639   Traceback Email:            ${dump_email}
20640   SMTP Host Address:          ${smtp_host}
20641
20642   Director Port:              ${dir_port}
20643   File daemon Port:           ${fd_port}
20644   Storage daemon Port:        ${sd_port}
20645
20646   Director User:              ${dir_user}
20647   Director Group:             ${dir_group}
20648   Storage Daemon User:        ${sd_user}
20649   Storage DaemonGroup:        ${sd_group}
20650   File Daemon User:           ${fd_user}
20651   File Daemon Group:          ${fd_group}
20652
20653   SQL binaries Directory      ${SQL_BINDIR}
20654
20655   Large file support:         $largefile_support
20656   Bacula conio support:       ${got_conio} ${CONS_LIBS}
20657   readline support:           ${got_readline} ${PRTREADLINE_SRC}
20658   TCP Wrappers support:       ${TCPW_MSG}
20659   ZLIB support:               ${have_zlib}
20660   enable-smartalloc:          ${support_smartalloc}
20661   enable-gnome:               ${support_gnome} ${gnome_version}
20662   enable-wx-console:          ${support_wx_console}
20663   enable-tray-monitor:        ${support_tray_monitor}
20664   client-only:                ${build_client_only}
20665   ACL support:                ${have_acl}
20666
20667   " > config.out
20668
20669 cat config.out
20670
20671 # old stuff
20672 # cweb support:               ${got_cweb} ${CWEB_SRC}
20673   # gmp support:                      ${got_gmp} ${GMP_SRC}