]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add extern C to callback functions
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-wx-console      enable build of wxWidgets console disabled
860   --enable-smartalloc     enable smartalloc debugging support disabled
861   --enable-static-tools   enable static tape tools disabled
862   --enable-static-fd      enable static File daemon disabled
863   --enable-static-sd      enable static Storage daemon disabled
864   --enable-static-dir     enable static Director disabled
865   --enable-static-cons    enable static Console disabled
866   --enable-client-only    build client (File daemon) only disabled
867   --disable-conio            disable conio support enabled
868
869   --disable-readline      disable readline support disable
870
871   --disable-largefile     omit support for large files
872
873 Optional Packages:
874   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
875   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
876   --with-gnome-includes   Specify location of GNOME headers
877   --with-gnome-libs       Specify location of GNOME libs
878   --with-gnome            Specify prefix for GNOME files
879  --with-readline=DIR             specify readline library directory
880   --with-tcp-wrappers=DIR        enable tcpwrappers support
881   --with-working-dir=PATH        specify path of Bacula working directory
882   --with-scriptdir=PATH    specify path of Bacula scripts directory
883   --with-dump-email=EMAIL        dump email address
884   --with-job-email=EMAIL         job output email address
885   --with-smtp-host=HOST          SMTP mail host address
886   --with-pid-dir=PATH            specify location of Bacula pid files
887   --with-subsys-dir=PATH         specify location of Bacula subsys file
888   --with-baseport=PORT           specify base port address for daemons
889   --with-dir-password=PASSWORD   specify Director's password
890   --with-fd-password=PASSWORD    specify Client's password
891   --with-sd-password=PASSWORD    specify Storage daemon's password
892   --with-dir-user=USER           specify user for Director daemon
893   --with-dir-group=GROUP                 specify group for Director daemon
894   --with-sd-user=USER            specify user for Storage daemon
895   --with-sd-group=GROUP          specify group for Storage daemon
896   --with-fd-user=USER            specify user for File daemon
897   --with-fd-group=GROUP          specify group for File daemon
898   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
899   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
900                           base install directory, defaults to /usr/local/pgsql
901
902   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
903                           install directory, default is to search through
904                           a number of common places for the MySQL files.
905
906   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
907                           install directory, default is to search through
908                           a number of common places for the MySQL files.
909
910   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
911                           install directory, default is to search through
912                           a number of common places for the SQLite files.
913   --with-x                use the X Window System
914
915 Some influential environment variables:
916   CC          C compiler command
917   CFLAGS      C compiler flags
918   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
919               nonstandard directory <lib dir>
920   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
921               headers in a nonstandard directory <include dir>
922   CXX         C++ compiler command
923   CXXFLAGS    C++ compiler flags
924   CPP         C preprocessor
925
926 Use these variables to override the choices made by `configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
928
929 _ACEOF
930 fi
931
932 if test "$ac_init_help" = "recursive"; then
933   # If there are subdirs, report their specific --help.
934   ac_popdir=`pwd`
935   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936     test -d $ac_dir || continue
937     ac_builddir=.
938
939 if test "$ac_dir" != .; then
940   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941   # A "../" for each directory in $ac_dir_suffix.
942   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 else
944   ac_dir_suffix= ac_top_builddir=
945 fi
946
947 case $srcdir in
948   .)  # No --srcdir option.  We are building in place.
949     ac_srcdir=.
950     if test -z "$ac_top_builddir"; then
951        ac_top_srcdir=.
952     else
953        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954     fi ;;
955   [\\/]* | ?:[\\/]* )  # Absolute path.
956     ac_srcdir=$srcdir$ac_dir_suffix;
957     ac_top_srcdir=$srcdir ;;
958   *) # Relative path.
959     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960     ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 esac
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 # absolute.
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd $ac_popdir
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
996 _ACEOF
997   exit 0
998 fi
999 exec 5>config.log
1000 cat >&5 <<_ACEOF
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1003
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57.  Invocation command line was
1006
1007   $ $0 $@
1008
1009 _ACEOF
1010 {
1011 cat <<_ASUNAME
1012 ## --------- ##
1013 ## Platform. ##
1014 ## --------- ##
1015
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1024
1025 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1026 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1029 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1030 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1031 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1032
1033 _ASUNAME
1034
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 for as_dir in $PATH
1037 do
1038   IFS=$as_save_IFS
1039   test -z "$as_dir" && as_dir=.
1040   echo "PATH: $as_dir"
1041 done
1042
1043 } >&5
1044
1045 cat >&5 <<_ACEOF
1046
1047
1048 ## ----------- ##
1049 ## Core tests. ##
1050 ## ----------- ##
1051
1052 _ACEOF
1053
1054
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_configure_args=
1061 ac_configure_args0=
1062 ac_configure_args1=
1063 ac_sep=
1064 ac_must_keep_next=false
1065 for ac_pass in 1 2
1066 do
1067   for ac_arg
1068   do
1069     case $ac_arg in
1070     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072     | -silent | --silent | --silen | --sile | --sil)
1073       continue ;;
1074     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076     esac
1077     case $ac_pass in
1078     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079     2)
1080       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081       if test $ac_must_keep_next = true; then
1082         ac_must_keep_next=false # Got value, back to normal.
1083       else
1084         case $ac_arg in
1085           *=* | --config-cache | -C | -disable-* | --disable-* \
1086           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088           | -with-* | --with-* | -without-* | --without-* | --x)
1089             case "$ac_configure_args0 " in
1090               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091             esac
1092             ;;
1093           -* ) ac_must_keep_next=true ;;
1094         esac
1095       fi
1096       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097       # Get rid of the leading space.
1098       ac_sep=" "
1099       ;;
1100     esac
1101   done
1102 done
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log.  We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112   # Save into config.log some information that might help in debugging.
1113   {
1114     echo
1115
1116     cat <<\_ASBOX
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1120 _ASBOX
1121     echo
1122     # The following way of writing the cache mishandles newlines in values,
1123 {
1124   (set) 2>&1 |
1125     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126     *ac_space=\ *)
1127       sed -n \
1128         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130       ;;
1131     *)
1132       sed -n \
1133         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134       ;;
1135     esac;
1136 }
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1143 _ASBOX
1144     echo
1145     for ac_var in $ac_subst_vars
1146     do
1147       eval ac_val=$`echo $ac_var`
1148       echo "$ac_var='"'"'$ac_val'"'"'"
1149     done | sort
1150     echo
1151
1152     if test -n "$ac_subst_files"; then
1153       cat <<\_ASBOX
1154 ## ------------- ##
1155 ## Output files. ##
1156 ## ------------- ##
1157 _ASBOX
1158       echo
1159       for ac_var in $ac_subst_files
1160       do
1161         eval ac_val=$`echo $ac_var`
1162         echo "$ac_var='"'"'$ac_val'"'"'"
1163       done | sort
1164       echo
1165     fi
1166
1167     if test -s confdefs.h; then
1168       cat <<\_ASBOX
1169 ## ----------- ##
1170 ## confdefs.h. ##
1171 ## ----------- ##
1172 _ASBOX
1173       echo
1174       sed "/^$/d" confdefs.h | sort
1175       echo
1176     fi
1177     test "$ac_signal" != 0 &&
1178       echo "$as_me: caught signal $ac_signal"
1179     echo "$as_me: exit $exit_status"
1180   } >&5
1181   rm -f core core.* *.core &&
1182   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183     exit $exit_status
1184      ' 0
1185 for ac_signal in 1 2 13 15; do
1186   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 done
1188 ac_signal=0
1189
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 echo >confdefs.h
1194
1195 # Predefined preprocessor variables.
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 _ACEOF
1220
1221
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225   if test "x$prefix" != xNONE; then
1226     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227   else
1228     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229   fi
1230 fi
1231 for ac_site_file in $CONFIG_SITE; do
1232   if test -r "$ac_site_file"; then
1233     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235     sed 's/^/| /' "$ac_site_file" >&5
1236     . "$ac_site_file"
1237   fi
1238 done
1239
1240 if test -r "$cache_file"; then
1241   # Some versions of bash will fail to source /dev/null (special
1242   # files actually), so we avoid doing that.
1243   if test -f "$cache_file"; then
1244     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1246     case $cache_file in
1247       [\\/]* | ?:[\\/]* ) . $cache_file;;
1248       *)                      . ./$cache_file;;
1249     esac
1250   fi
1251 else
1252   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1254   >$cache_file
1255 fi
1256
1257 # Check that the precious variables saved in the cache have kept the same
1258 # value.
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263   eval ac_new_set=\$ac_env_${ac_var}_set
1264   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265   eval ac_new_val="\$ac_env_${ac_var}_value"
1266   case $ac_old_set,$ac_new_set in
1267     set,)
1268       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270       ac_cache_corrupted=: ;;
1271     ,set)
1272       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274       ac_cache_corrupted=: ;;
1275     ,);;
1276     *)
1277       if test "x$ac_old_val" != "x$ac_new_val"; then
1278         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1281 echo "$as_me:   former value:  $ac_old_val" >&2;}
1282         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1283 echo "$as_me:   current value: $ac_new_val" >&2;}
1284         ac_cache_corrupted=:
1285       fi;;
1286   esac
1287   # Pass precious variables to config.status.
1288   if test "$ac_new_set" = set; then
1289     case $ac_new_val in
1290     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292     *) ac_arg=$ac_var=$ac_new_val ;;
1293     esac
1294     case " $ac_configure_args " in
1295       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1296       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297     esac
1298   fi
1299 done
1300 if $ac_cache_corrupted; then
1301   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305    { (exit 1); exit 1; }; }
1306 fi
1307
1308 ac_ext=c
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332 BUILD_DIR=`pwd`
1333 cd ..
1334 TOP_DIR=`pwd`
1335 cd ${BUILD_DIR}
1336
1337 ac_aux_dir=
1338 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1339   if test -f $ac_dir/install-sh; then
1340     ac_aux_dir=$ac_dir
1341     ac_install_sh="$ac_aux_dir/install-sh -c"
1342     break
1343   elif test -f $ac_dir/install.sh; then
1344     ac_aux_dir=$ac_dir
1345     ac_install_sh="$ac_aux_dir/install.sh -c"
1346     break
1347   elif test -f $ac_dir/shtool; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/shtool install -c"
1350     break
1351   fi
1352 done
1353 if test -z "$ac_aux_dir"; then
1354   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1356    { (exit 1); exit 1; }; }
1357 fi
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361
1362           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1363
1364
1365
1366
1367
1368 for ac_prog in true
1369 do
1370   # Extract the first word of "$ac_prog", so it can be a program name with args.
1371 set dummy $ac_prog; ac_word=$2
1372 echo "$as_me:$LINENO: checking for $ac_word" >&5
1373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1374 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1375   echo $ECHO_N "(cached) $ECHO_C" >&6
1376 else
1377   case $TRUEPRG in
1378   [\\/]* | ?:[\\/]*)
1379   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1380   ;;
1381   *)
1382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1384 do
1385   IFS=$as_save_IFS
1386   test -z "$as_dir" && as_dir=.
1387   for ac_exec_ext in '' $ac_executable_extensions; do
1388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391     break 2
1392   fi
1393 done
1394 done
1395
1396   ;;
1397 esac
1398 fi
1399 TRUEPRG=$ac_cv_path_TRUEPRG
1400
1401 if test -n "$TRUEPRG"; then
1402   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1403 echo "${ECHO_T}$TRUEPRG" >&6
1404 else
1405   echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1407 fi
1408
1409   test -n "$TRUEPRG" && break
1410 done
1411 test -n "$TRUEPRG" || TRUEPRG=":"
1412
1413 for ac_prog in false
1414 do
1415   # Extract the first word of "$ac_prog", so it can be a program name with args.
1416 set dummy $ac_prog; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1420   echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422   case $FALSEPRG in
1423   [\\/]* | ?:[\\/]*)
1424   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1425   ;;
1426   *)
1427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430   IFS=$as_save_IFS
1431   test -z "$as_dir" && as_dir=.
1432   for ac_exec_ext in '' $ac_executable_extensions; do
1433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436     break 2
1437   fi
1438 done
1439 done
1440
1441   ;;
1442 esac
1443 fi
1444 FALSEPRG=$ac_cv_path_FALSEPRG
1445
1446 if test -n "$FALSEPRG"; then
1447   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1448 echo "${ECHO_T}$FALSEPRG" >&6
1449 else
1450   echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1452 fi
1453
1454   test -n "$FALSEPRG" && break
1455 done
1456 test -n "$FALSEPRG" || FALSEPRG=":"
1457
1458
1459 #AC_CANONICAL_HOST
1460
1461 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 echo "configuring for bacula $VERSION ($DATE)"
1465
1466
1467
1468 ac_ext=c
1469 ac_cpp='$CPP $CPPFLAGS'
1470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 if test -n "$ac_tool_prefix"; then
1474   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479   echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481   if test -n "$CC"; then
1482   ac_cv_prog_CC="$CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1486 do
1487   IFS=$as_save_IFS
1488   test -z "$as_dir" && as_dir=.
1489   for ac_exec_ext in '' $ac_executable_extensions; do
1490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493     break 2
1494   fi
1495 done
1496 done
1497
1498 fi
1499 fi
1500 CC=$ac_cv_prog_CC
1501 if test -n "$CC"; then
1502   echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509 fi
1510 if test -z "$ac_cv_prog_CC"; then
1511   ac_ct_CC=$CC
1512   # Extract the first word of "gcc", so it can be a program name with args.
1513 set dummy gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1517   echo $ECHO_N "(cached) $ECHO_C" >&6
1518 else
1519   if test -n "$ac_ct_CC"; then
1520   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1521 else
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1524 do
1525   IFS=$as_save_IFS
1526   test -z "$as_dir" && as_dir=.
1527   for ac_exec_ext in '' $ac_executable_extensions; do
1528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529     ac_cv_prog_ac_ct_CC="gcc"
1530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531     break 2
1532   fi
1533 done
1534 done
1535
1536 fi
1537 fi
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1542 else
1543   echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1545 fi
1546
1547   CC=$ac_ct_CC
1548 else
1549   CC="$ac_cv_prog_CC"
1550 fi
1551
1552 if test -z "$CC"; then
1553   if test -n "$ac_tool_prefix"; then
1554   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   if test -n "$CC"; then
1562   ac_cv_prog_CC="$CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   for ac_exec_ext in '' $ac_executable_extensions; do
1570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571     ac_cv_prog_CC="${ac_tool_prefix}cc"
1572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573     break 2
1574   fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 CC=$ac_cv_prog_CC
1581 if test -n "$CC"; then
1582   echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1584 else
1585   echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589 fi
1590 if test -z "$ac_cv_prog_CC"; then
1591   ac_ct_CC=$CC
1592   # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   if test -n "$ac_ct_CC"; then
1600   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   for ac_exec_ext in '' $ac_executable_extensions; do
1608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609     ac_cv_prog_ac_ct_CC="cc"
1610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611     break 2
1612   fi
1613 done
1614 done
1615
1616 fi
1617 fi
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1622 else
1623   echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625 fi
1626
1627   CC=$ac_ct_CC
1628 else
1629   CC="$ac_cv_prog_CC"
1630 fi
1631
1632 fi
1633 if test -z "$CC"; then
1634   # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   if test -n "$CC"; then
1642   ac_cv_prog_CC="$CC" # Let the user override the test.
1643 else
1644   ac_prog_rejected=no
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1653        ac_prog_rejected=yes
1654        continue
1655      fi
1656     ac_cv_prog_CC="cc"
1657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658     break 2
1659   fi
1660 done
1661 done
1662
1663 if test $ac_prog_rejected = yes; then
1664   # We found a bogon in the path, so make sure we never use it.
1665   set dummy $ac_cv_prog_CC
1666   shift
1667   if test $# != 0; then
1668     # We chose a different compiler from the bogus one.
1669     # However, it has the same basename, so the bogon will be chosen
1670     # first if we set CC to just the basename; use the full file name.
1671     shift
1672     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1673   fi
1674 fi
1675 fi
1676 fi
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679   echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682   echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686 fi
1687 if test -z "$CC"; then
1688   if test -n "$ac_tool_prefix"; then
1689   for ac_prog in cl
1690   do
1691     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696   echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698   if test -n "$CC"; then
1699   ac_cv_prog_CC="$CC" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704   IFS=$as_save_IFS
1705   test -z "$as_dir" && as_dir=.
1706   for ac_exec_ext in '' $ac_executable_extensions; do
1707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710     break 2
1711   fi
1712 done
1713 done
1714
1715 fi
1716 fi
1717 CC=$ac_cv_prog_CC
1718 if test -n "$CC"; then
1719   echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1721 else
1722   echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1724 fi
1725
1726     test -n "$CC" && break
1727   done
1728 fi
1729 if test -z "$CC"; then
1730   ac_ct_CC=$CC
1731   for ac_prog in cl
1732 do
1733   # Extract the first word of "$ac_prog", so it can be a program name with args.
1734 set dummy $ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$ac_ct_CC"; then
1741   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_ac_ct_CC="$ac_prog"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757 fi
1758 fi
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768   test -n "$ac_ct_CC" && break
1769 done
1770
1771   CC=$ac_ct_CC
1772 fi
1773
1774 fi
1775
1776
1777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: no acceptable C compiler found in \$PATH
1780 See \`config.log' for more details." >&2;}
1781    { (exit 1); exit 1; }; }
1782
1783 # Provide some information about the compiler.
1784 echo "$as_me:$LINENO:" \
1785      "checking for C compiler version" >&5
1786 ac_compiler=`set X $ac_compile; echo $2`
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1788   (eval $ac_compiler --version </dev/null >&5) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1793   (eval $ac_compiler -v </dev/null >&5) 2>&5
1794   ac_status=$?
1795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796   (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1798   (eval $ac_compiler -V </dev/null >&5) 2>&5
1799   ac_status=$?
1800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801   (exit $ac_status); }
1802
1803 cat >conftest.$ac_ext <<_ACEOF
1804 #line $LINENO "configure"
1805 /* confdefs.h.  */
1806 _ACEOF
1807 cat confdefs.h >>conftest.$ac_ext
1808 cat >>conftest.$ac_ext <<_ACEOF
1809 /* end confdefs.h.  */
1810
1811 int
1812 main ()
1813 {
1814
1815   ;
1816   return 0;
1817 }
1818 _ACEOF
1819 ac_clean_files_save=$ac_clean_files
1820 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1821 # Try to create an executable without -o first, disregard a.out.
1822 # It will help us diagnose broken compilers, and finding out an intuition
1823 # of exeext.
1824 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1825 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1827 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1828   (eval $ac_link_default) 2>&5
1829   ac_status=$?
1830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831   (exit $ac_status); }; then
1832   # Find the output, starting from the most likely.  This scheme is
1833 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1834 # resort.
1835
1836 # Be careful to initialize this variable, since it used to be cached.
1837 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1838 ac_cv_exeext=
1839 # b.out is created by i960 compilers.
1840 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1841 do
1842   test -f "$ac_file" || continue
1843   case $ac_file in
1844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1845         ;;
1846     conftest.$ac_ext )
1847         # This is the source file.
1848         ;;
1849     [ab].out )
1850         # We found the default executable, but exeext='' is most
1851         # certainly right.
1852         break;;
1853     *.* )
1854         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1855         # FIXME: I believe we export ac_cv_exeext for Libtool,
1856         # but it would be cool to find out if it's true.  Does anybody
1857         # maintain Libtool? --akim.
1858         export ac_cv_exeext
1859         break;;
1860     * )
1861         break;;
1862   esac
1863 done
1864 else
1865   echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&5
1870 echo "$as_me: error: C compiler cannot create executables
1871 See \`config.log' for more details." >&2;}
1872    { (exit 77); exit 77; }; }
1873 fi
1874
1875 ac_exeext=$ac_cv_exeext
1876 echo "$as_me:$LINENO: result: $ac_file" >&5
1877 echo "${ECHO_T}$ac_file" >&6
1878
1879 # Check the compiler produces executables we can run.  If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1884 # If not cross compiling, check that we can run a simple program.
1885 if test "$cross_compiling" != yes; then
1886   if { ac_try='./$ac_file'
1887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888   (eval $ac_try) 2>&5
1889   ac_status=$?
1890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891   (exit $ac_status); }; }; then
1892     cross_compiling=no
1893   else
1894     if test "$cross_compiling" = maybe; then
1895         cross_compiling=yes
1896     else
1897         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&2;}
1903    { (exit 1); exit 1; }; }
1904     fi
1905   fi
1906 fi
1907 echo "$as_me:$LINENO: result: yes" >&5
1908 echo "${ECHO_T}yes" >&6
1909
1910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1911 ac_clean_files=$ac_clean_files_save
1912 # Check the compiler produces executables we can run.  If not, either
1913 # the compiler is broken, or we cross compile.
1914 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1916 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1917 echo "${ECHO_T}$cross_compiling" >&6
1918
1919 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1922   (eval $ac_link) 2>&5
1923   ac_status=$?
1924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925   (exit $ac_status); }; then
1926   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1927 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1928 # work properly (i.e., refer to `conftest.exe'), while it won't with
1929 # `rm'.
1930 for ac_file in conftest.exe conftest conftest.*; do
1931   test -f "$ac_file" || continue
1932   case $ac_file in
1933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1934     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1935           export ac_cv_exeext
1936           break;;
1937     * ) break;;
1938   esac
1939 done
1940 else
1941   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1944 See \`config.log' for more details." >&2;}
1945    { (exit 1); exit 1; }; }
1946 fi
1947
1948 rm -f conftest$ac_cv_exeext
1949 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1950 echo "${ECHO_T}$ac_cv_exeext" >&6
1951
1952 rm -f conftest.$ac_ext
1953 EXEEXT=$ac_cv_exeext
1954 ac_exeext=$EXEEXT
1955 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1957 if test "${ac_cv_objext+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   cat >conftest.$ac_ext <<_ACEOF
1961 #line $LINENO "configure"
1962 /* confdefs.h.  */
1963 _ACEOF
1964 cat confdefs.h >>conftest.$ac_ext
1965 cat >>conftest.$ac_ext <<_ACEOF
1966 /* end confdefs.h.  */
1967
1968 int
1969 main ()
1970 {
1971
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 rm -f conftest.o conftest.obj
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978   (eval $ac_compile) 2>&5
1979   ac_status=$?
1980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981   (exit $ac_status); }; then
1982   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1985     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1986        break;;
1987   esac
1988 done
1989 else
1990   echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2001 fi
2002 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2003 echo "${ECHO_T}$ac_cv_objext" >&6
2004 OBJEXT=$ac_cv_objext
2005 ac_objext=$OBJEXT
2006 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 /* confdefs.h.  */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h.  */
2018
2019 int
2020 main ()
2021 {
2022 #ifndef __GNUC__
2023        choke me
2024 #endif
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032   (eval $ac_compile) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); } &&
2036          { ac_try='test -s conftest.$ac_objext'
2037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038   (eval $ac_try) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; }; then
2042   ac_compiler_gnu=yes
2043 else
2044   echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2046
2047 ac_compiler_gnu=no
2048 fi
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2051
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2054 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2055 GCC=`test $ac_compiler_gnu = yes && echo yes`
2056 ac_test_CFLAGS=${CFLAGS+set}
2057 ac_save_CFLAGS=$CFLAGS
2058 CFLAGS="-g"
2059 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2061 if test "${ac_cv_prog_cc_g+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   cat >conftest.$ac_ext <<_ACEOF
2065 #line $LINENO "configure"
2066 /* confdefs.h.  */
2067 _ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h.  */
2071
2072 int
2073 main ()
2074 {
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082   (eval $ac_compile) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); } &&
2086          { ac_try='test -s conftest.$ac_objext'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; }; then
2092   ac_cv_prog_cc_g=yes
2093 else
2094   echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 ac_cv_prog_cc_g=no
2098 fi
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104   CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106   if test "$GCC" = yes; then
2107     CFLAGS="-g -O2"
2108   else
2109     CFLAGS="-g"
2110   fi
2111 else
2112   if test "$GCC" = yes; then
2113     CFLAGS="-O2"
2114   else
2115     CFLAGS=
2116   fi
2117 fi
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   ac_cv_prog_cc_stdc=no
2124 ac_save_CC=$CC
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132 #include <stdarg.h>
2133 #include <stdio.h>
2134 #include <sys/types.h>
2135 #include <sys/stat.h>
2136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2137 struct buf { int x; };
2138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2140      char **p;
2141      int i;
2142 {
2143   return p[i];
2144 }
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2146 {
2147   char *s;
2148   va_list v;
2149   va_start (v,p);
2150   s = g (p, va_arg (v,int));
2151   va_end (v);
2152   return s;
2153 }
2154 int test (int i, double x);
2155 struct s1 {int (*f) (int a);};
2156 struct s2 {int (*f) (double a);};
2157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2158 int argc;
2159 char **argv;
2160 int
2161 main ()
2162 {
2163 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 # Don't try gcc -ansi; that turns off useful extensions and
2169 # breaks some systems' header files.
2170 # AIX                   -qlanglvl=ansi
2171 # Ultrix and OSF/1      -std1
2172 # HP-UX 10.20 and later -Ae
2173 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2174 # SVR4                  -Xc -D__EXTENSIONS__
2175 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2176 do
2177   CC="$ac_save_CC $ac_arg"
2178   rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180   (eval $ac_compile) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); } &&
2184          { ac_try='test -s conftest.$ac_objext'
2185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186   (eval $ac_try) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; }; then
2190   ac_cv_prog_cc_stdc=$ac_arg
2191 break
2192 else
2193   echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 fi
2197 rm -f conftest.$ac_objext
2198 done
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2200 CC=$ac_save_CC
2201
2202 fi
2203
2204 case "x$ac_cv_prog_cc_stdc" in
2205   x|xno)
2206     echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2208   *)
2209     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211     CC="$CC $ac_cv_prog_cc_stdc" ;;
2212 esac
2213
2214 # Some people use a C++ compiler to compile C.  Since we use `exit',
2215 # in C++ we need to declare it.  In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #ifndef __cplusplus
2220   choke me
2221 #endif
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); } &&
2229          { ac_try='test -s conftest.$ac_objext'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235   for ac_declaration in \
2236    ''\
2237    '#include <stdlib.h>' \
2238    'extern "C" void std::exit (int) throw (); using std::exit;' \
2239    'extern "C" void std::exit (int); using std::exit;' \
2240    'extern "C" void exit (int) throw ();' \
2241    'extern "C" void exit (int);' \
2242    'void exit (int);'
2243 do
2244   cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2246 /* confdefs.h.  */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h.  */
2251 #include <stdlib.h>
2252 $ac_declaration
2253 int
2254 main ()
2255 {
2256 exit (42);
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263   (eval $ac_compile) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); } &&
2267          { ac_try='test -s conftest.$ac_objext'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; }; then
2273   :
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 continue
2279 fi
2280 rm -f conftest.$ac_objext conftest.$ac_ext
2281   cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2283 /* confdefs.h.  */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h.  */
2288 $ac_declaration
2289 int
2290 main ()
2291 {
2292 exit (42);
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299   (eval $ac_compile) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); } &&
2303          { ac_try='test -s conftest.$ac_objext'
2304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305   (eval $ac_try) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; }; then
2309   break
2310 else
2311   echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 fi
2315 rm -f conftest.$ac_objext conftest.$ac_ext
2316 done
2317 rm -f conftest*
2318 if test -n "$ac_declaration"; then
2319   echo '#ifdef __cplusplus' >>confdefs.h
2320   echo $ac_declaration      >>confdefs.h
2321   echo '#endif'             >>confdefs.h
2322 fi
2323
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 fi
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2330 ac_ext=c
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335
2336 ac_ext=cc
2337 ac_cpp='$CXXCPP $CPPFLAGS'
2338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2341 if test -n "$ac_tool_prefix"; then
2342   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2343   do
2344     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2346 echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_CXX+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   if test -n "$CXX"; then
2352   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359   for ac_exec_ext in '' $ac_executable_extensions; do
2360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363     break 2
2364   fi
2365 done
2366 done
2367
2368 fi
2369 fi
2370 CXX=$ac_cv_prog_CXX
2371 if test -n "$CXX"; then
2372   echo "$as_me:$LINENO: result: $CXX" >&5
2373 echo "${ECHO_T}$CXX" >&6
2374 else
2375   echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2377 fi
2378
2379     test -n "$CXX" && break
2380   done
2381 fi
2382 if test -z "$CXX"; then
2383   ac_ct_CXX=$CXX
2384   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2385 do
2386   # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   if test -n "$ac_ct_CXX"; then
2394   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399   IFS=$as_save_IFS
2400   test -z "$as_dir" && as_dir=.
2401   for ac_exec_ext in '' $ac_executable_extensions; do
2402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403     ac_cv_prog_ac_ct_CXX="$ac_prog"
2404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405     break 2
2406   fi
2407 done
2408 done
2409
2410 fi
2411 fi
2412 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2413 if test -n "$ac_ct_CXX"; then
2414   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2415 echo "${ECHO_T}$ac_ct_CXX" >&6
2416 else
2417   echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2419 fi
2420
2421   test -n "$ac_ct_CXX" && break
2422 done
2423 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2424
2425   CXX=$ac_ct_CXX
2426 fi
2427
2428
2429 # Provide some information about the compiler.
2430 echo "$as_me:$LINENO:" \
2431      "checking for C++ compiler version" >&5
2432 ac_compiler=`set X $ac_compile; echo $2`
2433 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2434   (eval $ac_compiler --version </dev/null >&5) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }
2438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2439   (eval $ac_compiler -v </dev/null >&5) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }
2443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2444   (eval $ac_compiler -V </dev/null >&5) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }
2448
2449 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2450 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2451 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 /* confdefs.h.  */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h.  */
2461
2462 int
2463 main ()
2464 {
2465 #ifndef __GNUC__
2466        choke me
2467 #endif
2468
2469   ;
2470   return 0;
2471 }
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475   (eval $ac_compile) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); } &&
2479          { ac_try='test -s conftest.$ac_objext'
2480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481   (eval $ac_try) 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; }; then
2485   ac_compiler_gnu=yes
2486 else
2487   echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2489
2490 ac_compiler_gnu=no
2491 fi
2492 rm -f conftest.$ac_objext conftest.$ac_ext
2493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2494
2495 fi
2496 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2497 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2498 GXX=`test $ac_compiler_gnu = yes && echo yes`
2499 ac_test_CXXFLAGS=${CXXFLAGS+set}
2500 ac_save_CXXFLAGS=$CXXFLAGS
2501 CXXFLAGS="-g"
2502 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cxx_g+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2509 /* confdefs.h.  */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h.  */
2514
2515 int
2516 main ()
2517 {
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525   (eval $ac_compile) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   ac_cv_prog_cxx_g=yes
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_cv_prog_cxx_g=no
2541 fi
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543 fi
2544 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2545 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2546 if test "$ac_test_CXXFLAGS" = set; then
2547   CXXFLAGS=$ac_save_CXXFLAGS
2548 elif test $ac_cv_prog_cxx_g = yes; then
2549   if test "$GXX" = yes; then
2550     CXXFLAGS="-g -O2"
2551   else
2552     CXXFLAGS="-g"
2553   fi
2554 else
2555   if test "$GXX" = yes; then
2556     CXXFLAGS="-O2"
2557   else
2558     CXXFLAGS=
2559   fi
2560 fi
2561 for ac_declaration in \
2562    ''\
2563    '#include <stdlib.h>' \
2564    'extern "C" void std::exit (int) throw (); using std::exit;' \
2565    'extern "C" void std::exit (int); using std::exit;' \
2566    'extern "C" void exit (int) throw ();' \
2567    'extern "C" void exit (int);' \
2568    'void exit (int);'
2569 do
2570   cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577 #include <stdlib.h>
2578 $ac_declaration
2579 int
2580 main ()
2581 {
2582 exit (42);
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589   (eval $ac_compile) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   :
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 continue
2605 fi
2606 rm -f conftest.$ac_objext conftest.$ac_ext
2607   cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2609 /* confdefs.h.  */
2610 _ACEOF
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h.  */
2614 $ac_declaration
2615 int
2616 main ()
2617 {
2618 exit (42);
2619   ;
2620   return 0;
2621 }
2622 _ACEOF
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625   (eval $ac_compile) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -s conftest.$ac_objext'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   break
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 fi
2641 rm -f conftest.$ac_objext conftest.$ac_ext
2642 done
2643 rm -f conftest*
2644 if test -n "$ac_declaration"; then
2645   echo '#ifdef __cplusplus' >>confdefs.h
2646   echo $ac_declaration      >>confdefs.h
2647   echo '#endif'             >>confdefs.h
2648 fi
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
2656 if test "x$CC" != xcc; then
2657   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2658 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2659 else
2660   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2661 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2662 fi
2663 set dummy $CC; ac_cc=`echo $2 |
2664                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2665 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 /* confdefs.h.  */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h.  */
2675
2676 int
2677 main ()
2678 {
2679
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 # Make sure it works both with $CC and with simple cc.
2685 # We do the test twice because some compilers refuse to overwrite an
2686 # existing .o file with -o, though they will create one.
2687 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2688 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689   (eval $ac_try) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); } &&
2693    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694   (eval $ac_try) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); };
2698 then
2699   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2700   if test "x$CC" != xcc; then
2701     # Test first that cc exists at all.
2702     if { ac_try='cc -c conftest.$ac_ext >&5'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; }; then
2708       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2709       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); };
2719       then
2720         # cc works too.
2721         :
2722       else
2723         # cc exists but doesn't like -o.
2724         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2725       fi
2726     fi
2727   fi
2728 else
2729   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2730 fi
2731 rm -f conftest*
2732
2733 fi
2734 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2735   echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2737 else
2738   echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2740
2741 cat >>confdefs.h <<\_ACEOF
2742 #define NO_MINUS_C_MINUS_O 1
2743 _ACEOF
2744
2745 fi
2746
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2753 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2754 # On Suns, sometimes $CPP names a directory.
2755 if test -n "$CPP" && test -d "$CPP"; then
2756   CPP=
2757 fi
2758 if test -z "$CPP"; then
2759   if test "${ac_cv_prog_CPP+set}" = set; then
2760   echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762       # Double quotes because CPP needs to be expanded
2763     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2764     do
2765       ac_preproc_ok=false
2766 for ac_c_preproc_warn_flag in '' yes
2767 do
2768   # Use a header file that comes with gcc, so configuring glibc
2769   # with a fresh cross-compiler works.
2770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771   # <limits.h> exists even on freestanding compilers.
2772   # On the NeXT, cc -E runs the code through the compiler's parser,
2773   # not just through cpp. "Syntax error" is here to catch this case.
2774   cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781 #ifdef __STDC__
2782 # include <limits.h>
2783 #else
2784 # include <assert.h>
2785 #endif
2786                      Syntax error
2787 _ACEOF
2788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } >/dev/null; then
2796   if test -s conftest.err; then
2797     ac_cpp_err=$ac_c_preproc_warn_flag
2798   else
2799     ac_cpp_err=
2800   fi
2801 else
2802   ac_cpp_err=yes
2803 fi
2804 if test -z "$ac_cpp_err"; then
2805   :
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810   # Broken: fails on valid input.
2811 continue
2812 fi
2813 rm -f conftest.err conftest.$ac_ext
2814
2815   # OK, works on sane cases.  Now check whether non-existent headers
2816   # can be detected and how.
2817   cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 #include <ac_nonexistent.h>
2825 _ACEOF
2826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2828   ac_status=$?
2829   grep -v '^ *+' conftest.er1 >conftest.err
2830   rm -f conftest.er1
2831   cat conftest.err >&5
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } >/dev/null; then
2834   if test -s conftest.err; then
2835     ac_cpp_err=$ac_c_preproc_warn_flag
2836   else
2837     ac_cpp_err=
2838   fi
2839 else
2840   ac_cpp_err=yes
2841 fi
2842 if test -z "$ac_cpp_err"; then
2843   # Broken: success on invalid input.
2844 continue
2845 else
2846   echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849   # Passes both tests.
2850 ac_preproc_ok=:
2851 break
2852 fi
2853 rm -f conftest.err conftest.$ac_ext
2854
2855 done
2856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2857 rm -f conftest.err conftest.$ac_ext
2858 if $ac_preproc_ok; then
2859   break
2860 fi
2861
2862     done
2863     ac_cv_prog_CPP=$CPP
2864
2865 fi
2866   CPP=$ac_cv_prog_CPP
2867 else
2868   ac_cv_prog_CPP=$CPP
2869 fi
2870 echo "$as_me:$LINENO: result: $CPP" >&5
2871 echo "${ECHO_T}$CPP" >&6
2872 ac_preproc_ok=false
2873 for ac_c_preproc_warn_flag in '' yes
2874 do
2875   # Use a header file that comes with gcc, so configuring glibc
2876   # with a fresh cross-compiler works.
2877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2878   # <limits.h> exists even on freestanding compilers.
2879   # On the NeXT, cc -E runs the code through the compiler's parser,
2880   # not just through cpp. "Syntax error" is here to catch this case.
2881   cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2883 /* confdefs.h.  */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h.  */
2888 #ifdef __STDC__
2889 # include <limits.h>
2890 #else
2891 # include <assert.h>
2892 #endif
2893                      Syntax error
2894 _ACEOF
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } >/dev/null; then
2903   if test -s conftest.err; then
2904     ac_cpp_err=$ac_c_preproc_warn_flag
2905   else
2906     ac_cpp_err=
2907   fi
2908 else
2909   ac_cpp_err=yes
2910 fi
2911 if test -z "$ac_cpp_err"; then
2912   :
2913 else
2914   echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917   # Broken: fails on valid input.
2918 continue
2919 fi
2920 rm -f conftest.err conftest.$ac_ext
2921
2922   # OK, works on sane cases.  Now check whether non-existent headers
2923   # can be detected and how.
2924   cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #include <ac_nonexistent.h>
2932 _ACEOF
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } >/dev/null; then
2941   if test -s conftest.err; then
2942     ac_cpp_err=$ac_c_preproc_warn_flag
2943   else
2944     ac_cpp_err=
2945   fi
2946 else
2947   ac_cpp_err=yes
2948 fi
2949 if test -z "$ac_cpp_err"; then
2950   # Broken: success on invalid input.
2951 continue
2952 else
2953   echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956   # Passes both tests.
2957 ac_preproc_ok=:
2958 break
2959 fi
2960 rm -f conftest.err conftest.$ac_ext
2961
2962 done
2963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2964 rm -f conftest.err conftest.$ac_ext
2965 if $ac_preproc_ok; then
2966   :
2967 else
2968   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2971 See \`config.log' for more details." >&2;}
2972    { (exit 1); exit 1; }; }
2973 fi
2974
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980
2981
2982 echo "$as_me:$LINENO: checking for egrep" >&5
2983 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2984 if test "${ac_cv_prog_egrep+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2988     then ac_cv_prog_egrep='grep -E'
2989     else ac_cv_prog_egrep='egrep'
2990     fi
2991 fi
2992 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2993 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2994  EGREP=$ac_cv_prog_egrep
2995
2996
2997 if test $ac_cv_c_compiler_gnu = yes; then
2998     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2999 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3000 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003     ac_pattern="Autoconf.*'x'"
3004   cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011 #include <sgtty.h>
3012 Autoconf TIOCGETP
3013 _ACEOF
3014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3016   ac_cv_prog_gcc_traditional=yes
3017 else
3018   ac_cv_prog_gcc_traditional=no
3019 fi
3020 rm -f conftest*
3021
3022
3023   if test $ac_cv_prog_gcc_traditional = no; then
3024     cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 #include <termio.h>
3032 Autoconf TCGETA
3033 _ACEOF
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3036   ac_cv_prog_gcc_traditional=yes
3037 fi
3038 rm -f conftest*
3039
3040   fi
3041 fi
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3043 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3044   if test $ac_cv_prog_gcc_traditional = yes; then
3045     CC="$CC -traditional"
3046   fi
3047 fi
3048
3049 if test x$CC = xgcc
3050 then
3051    cat >>confdefs.h <<\_ACEOF
3052 #define HAVE_GCC 1
3053 _ACEOF
3054
3055 fi
3056
3057 # Find a good install program.  We prefer a C program (faster),
3058 # so one script is as good as another.  But avoid the broken or
3059 # incompatible versions:
3060 # SysV /etc/install, /usr/sbin/install
3061 # SunOS /usr/etc/install
3062 # IRIX /sbin/install
3063 # AIX /bin/install
3064 # AmigaOS /C/install, which installs bootblocks on floppy discs
3065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3068 # ./install, which can be erroneously created by make from ./install.sh.
3069 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3071 if test -z "$INSTALL"; then
3072 if test "${ac_cv_path_install+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080   # Account for people who put trailing slashes in PATH elements.
3081 case $as_dir/ in
3082   ./ | .// | /cC/* | \
3083   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3084   /usr/ucb/* ) ;;
3085   *)
3086     # OSF1 and SCO ODT 3.0 have their own names for install.
3087     # Don't use installbsd from OSF since it installs stuff as root
3088     # by default.
3089     for ac_prog in ginstall scoinst install; do
3090       for ac_exec_ext in '' $ac_executable_extensions; do
3091         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3092           if test $ac_prog = install &&
3093             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3094             # AIX install.  It has an incompatible calling convention.
3095             :
3096           elif test $ac_prog = install &&
3097             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098             # program-specific install script used by HP pwplus--don't use.
3099             :
3100           else
3101             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3102             break 3
3103           fi
3104         fi
3105       done
3106     done
3107     ;;
3108 esac
3109 done
3110
3111
3112 fi
3113   if test "${ac_cv_path_install+set}" = set; then
3114     INSTALL=$ac_cv_path_install
3115   else
3116     # As a last resort, use the slow shell script.  We don't cache a
3117     # path for INSTALL within a source directory, because that will
3118     # break other packages using the cache if that directory is
3119     # removed, or if the path is relative.
3120     INSTALL=$ac_install_sh
3121   fi
3122 fi
3123 echo "$as_me:$LINENO: result: $INSTALL" >&5
3124 echo "${ECHO_T}$INSTALL" >&6
3125
3126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3127 # It thinks the first close brace ends the variable substitution.
3128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3129
3130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3131
3132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3133
3134 if test -n "$ac_tool_prefix"; then
3135   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3137 echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3139 if test "${ac_cv_prog_RANLIB+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142   if test -n "$RANLIB"; then
3143   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150   for ac_exec_ext in '' $ac_executable_extensions; do
3151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154     break 2
3155   fi
3156 done
3157 done
3158
3159 fi
3160 fi
3161 RANLIB=$ac_cv_prog_RANLIB
3162 if test -n "$RANLIB"; then
3163   echo "$as_me:$LINENO: result: $RANLIB" >&5
3164 echo "${ECHO_T}$RANLIB" >&6
3165 else
3166   echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 fi
3169
3170 fi
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172   ac_ct_RANLIB=$RANLIB
3173   # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   if test -n "$ac_ct_RANLIB"; then
3181   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   for ac_exec_ext in '' $ac_executable_extensions; do
3189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190     ac_cv_prog_ac_ct_RANLIB="ranlib"
3191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195 done
3196
3197   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3198 fi
3199 fi
3200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3201 if test -n "$ac_ct_RANLIB"; then
3202   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3204 else
3205   echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207 fi
3208
3209   RANLIB=$ac_ct_RANLIB
3210 else
3211   RANLIB="$ac_cv_prog_RANLIB"
3212 fi
3213
3214 # Extract the first word of "mv", so it can be a program name with args.
3215 set dummy mv; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_path_MV+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   case $MV in
3222   [\\/]* | ?:[\\/]*)
3223   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3224   ;;
3225   *)
3226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231   for ac_exec_ext in '' $ac_executable_extensions; do
3232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238 done
3239
3240   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3241   ;;
3242 esac
3243 fi
3244 MV=$ac_cv_path_MV
3245
3246 if test -n "$MV"; then
3247   echo "$as_me:$LINENO: result: $MV" >&5
3248 echo "${ECHO_T}$MV" >&6
3249 else
3250   echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3252 fi
3253
3254 # Extract the first word of "rm", so it can be a program name with args.
3255 set dummy rm; ac_word=$2
3256 echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3258 if test "${ac_cv_path_RM+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   case $RM in
3262   [\\/]* | ?:[\\/]*)
3263   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3264   ;;
3265   *)
3266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271   for ac_exec_ext in '' $ac_executable_extensions; do
3272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278 done
3279
3280   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3281   ;;
3282 esac
3283 fi
3284 RM=$ac_cv_path_RM
3285
3286 if test -n "$RM"; then
3287   echo "$as_me:$LINENO: result: $RM" >&5
3288 echo "${ECHO_T}$RM" >&6
3289 else
3290   echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3292 fi
3293
3294 # Extract the first word of "cp", so it can be a program name with args.
3295 set dummy cp; ac_word=$2
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_path_CP+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   case $CP in
3302   [\\/]* | ?:[\\/]*)
3303   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3304   ;;
3305   *)
3306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309   IFS=$as_save_IFS
3310   test -z "$as_dir" && as_dir=.
3311   for ac_exec_ext in '' $ac_executable_extensions; do
3312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315     break 2
3316   fi
3317 done
3318 done
3319
3320   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3321   ;;
3322 esac
3323 fi
3324 CP=$ac_cv_path_CP
3325
3326 if test -n "$CP"; then
3327   echo "$as_me:$LINENO: result: $CP" >&5
3328 echo "${ECHO_T}$CP" >&6
3329 else
3330   echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3332 fi
3333
3334 # Extract the first word of "sed", so it can be a program name with args.
3335 set dummy sed; ac_word=$2
3336 echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_path_SED+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   case $SED in
3342   [\\/]* | ?:[\\/]*)
3343   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3344   ;;
3345   *)
3346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351   for ac_exec_ext in '' $ac_executable_extensions; do
3352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358 done
3359
3360   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3361   ;;
3362 esac
3363 fi
3364 SED=$ac_cv_path_SED
3365
3366 if test -n "$SED"; then
3367   echo "$as_me:$LINENO: result: $SED" >&5
3368 echo "${ECHO_T}$SED" >&6
3369 else
3370   echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3372 fi
3373
3374 # Extract the first word of "awk", so it can be a program name with args.
3375 set dummy awk; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_path_AWK+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   case $AWK in
3382   [\\/]* | ?:[\\/]*)
3383   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3384   ;;
3385   *)
3386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391   for ac_exec_ext in '' $ac_executable_extensions; do
3392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398 done
3399
3400   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3401   ;;
3402 esac
3403 fi
3404 AWK=$ac_cv_path_AWK
3405
3406 if test -n "$AWK"; then
3407   echo "$as_me:$LINENO: result: $AWK" >&5
3408 echo "${ECHO_T}$AWK" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414 # Extract the first word of "echo", so it can be a program name with args.
3415 set dummy echo; ac_word=$2
3416 echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_path_ECHO+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   case $ECHO in
3422   [\\/]* | ?:[\\/]*)
3423   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3424   ;;
3425   *)
3426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429   IFS=$as_save_IFS
3430   test -z "$as_dir" && as_dir=.
3431   for ac_exec_ext in '' $ac_executable_extensions; do
3432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435     break 2
3436   fi
3437 done
3438 done
3439
3440   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3441   ;;
3442 esac
3443 fi
3444 ECHO=$ac_cv_path_ECHO
3445
3446 if test -n "$ECHO"; then
3447   echo "$as_me:$LINENO: result: $ECHO" >&5
3448 echo "${ECHO_T}$ECHO" >&6
3449 else
3450   echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3452 fi
3453
3454 # Extract the first word of "cmp", so it can be a program name with args.
3455 set dummy cmp; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_path_CMP+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   case $CMP in
3462   [\\/]* | ?:[\\/]*)
3463   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3464   ;;
3465   *)
3466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471   for ac_exec_ext in '' $ac_executable_extensions; do
3472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478 done
3479
3480   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3481   ;;
3482 esac
3483 fi
3484 CMP=$ac_cv_path_CMP
3485
3486 if test -n "$CMP"; then
3487   echo "$as_me:$LINENO: result: $CMP" >&5
3488 echo "${ECHO_T}$CMP" >&6
3489 else
3490   echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3492 fi
3493
3494 # Extract the first word of "tbl", so it can be a program name with args.
3495 set dummy tbl; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_path_TBL+set}" = set; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   case $TBL in
3502   [\\/]* | ?:[\\/]*)
3503   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3504   ;;
3505   *)
3506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511   for ac_exec_ext in '' $ac_executable_extensions; do
3512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515     break 2
3516   fi
3517 done
3518 done
3519
3520   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3521   ;;
3522 esac
3523 fi
3524 TBL=$ac_cv_path_TBL
3525
3526 if test -n "$TBL"; then
3527   echo "$as_me:$LINENO: result: $TBL" >&5
3528 echo "${ECHO_T}$TBL" >&6
3529 else
3530   echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3532 fi
3533
3534 # Extract the first word of "ar", so it can be a program name with args.
3535 set dummy ar; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_path_AR+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   case $AR in
3542   [\\/]* | ?:[\\/]*)
3543   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3544   ;;
3545   *)
3546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551   for ac_exec_ext in '' $ac_executable_extensions; do
3552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555     break 2
3556   fi
3557 done
3558 done
3559
3560   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3561   ;;
3562 esac
3563 fi
3564 AR=$ac_cv_path_AR
3565
3566 if test -n "$AR"; then
3567   echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3569 else
3570   echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3572 fi
3573
3574 # Extract the first word of "openssl", so it can be a program name with args.
3575 set dummy openssl; ac_word=$2
3576 echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_path_OPENSSL+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   case $OPENSSL in
3582   [\\/]* | ?:[\\/]*)
3583   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3584   ;;
3585   *)
3586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599
3600   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3601   ;;
3602 esac
3603 fi
3604 OPENSSL=$ac_cv_path_OPENSSL
3605
3606 if test -n "$OPENSSL"; then
3607   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3608 echo "${ECHO_T}$OPENSSL" >&6
3609 else
3610   echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3612 fi
3613
3614 # Extract the first word of "mtx", so it can be a program name with args.
3615 set dummy mtx; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_path_MTX+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   case $MTX in
3622   [\\/]* | ?:[\\/]*)
3623   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3624   ;;
3625   *)
3626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629   IFS=$as_save_IFS
3630   test -z "$as_dir" && as_dir=.
3631   for ac_exec_ext in '' $ac_executable_extensions; do
3632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635     break 2
3636   fi
3637 done
3638 done
3639
3640   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3641   ;;
3642 esac
3643 fi
3644 MTX=$ac_cv_path_MTX
3645
3646 if test -n "$MTX"; then
3647   echo "$as_me:$LINENO: result: $MTX" >&5
3648 echo "${ECHO_T}$MTX" >&6
3649 else
3650   echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652 fi
3653
3654 # Extract the first word of "pkg-config", so it can be a program name with args.
3655 set dummy pkg-config; ac_word=$2
3656 echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   case $PKGCONFIG in
3662   [\\/]* | ?:[\\/]*)
3663   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3664   ;;
3665   *)
3666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671   for ac_exec_ext in '' $ac_executable_extensions; do
3672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675     break 2
3676   fi
3677 done
3678 done
3679
3680   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3681   ;;
3682 esac
3683 fi
3684 PKGCONFIG=$ac_cv_path_PKGCONFIG
3685
3686 if test -n "$PKGCONFIG"; then
3687   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3688 echo "${ECHO_T}$PKGCONFIG" >&6
3689 else
3690   echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3692 fi
3693
3694 # Extract the first word of "wx-config", so it can be a program name with args.
3695 set dummy wx-config; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   case $WXCONFIG in
3702   [\\/]* | ?:[\\/]*)
3703   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3704   ;;
3705   *)
3706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709   IFS=$as_save_IFS
3710   test -z "$as_dir" && as_dir=.
3711   for ac_exec_ext in '' $ac_executable_extensions; do
3712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715     break 2
3716   fi
3717 done
3718 done
3719
3720   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3721   ;;
3722 esac
3723 fi
3724 WXCONFIG=$ac_cv_path_WXCONFIG
3725
3726 if test -n "$WXCONFIG"; then
3727   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3728 echo "${ECHO_T}$WXCONFIG" >&6
3729 else
3730   echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3732 fi
3733
3734
3735 test -n "$ARFLAG" || ARFLAGS="cr"
3736
3737
3738 MAKE_SHELL=/bin/sh
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748 # Make sure we can run config.sub.
3749 $ac_config_sub sun4 >/dev/null 2>&1 ||
3750   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3751 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3752    { (exit 1); exit 1; }; }
3753
3754 echo "$as_me:$LINENO: checking build system type" >&5
3755 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3756 if test "${ac_cv_build+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   ac_cv_build_alias=$build_alias
3760 test -z "$ac_cv_build_alias" &&
3761   ac_cv_build_alias=`$ac_config_guess`
3762 test -z "$ac_cv_build_alias" &&
3763   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3764 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3765    { (exit 1); exit 1; }; }
3766 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3767   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3768 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3769    { (exit 1); exit 1; }; }
3770
3771 fi
3772 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3773 echo "${ECHO_T}$ac_cv_build" >&6
3774 build=$ac_cv_build
3775 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3776 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3777 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3778
3779
3780 echo "$as_me:$LINENO: checking for Operating System" >&5
3781 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3782 echo "$as_me:$LINENO: checking host system type" >&5
3783 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3784 if test "${ac_cv_host+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   ac_cv_host_alias=$host_alias
3788 test -z "$ac_cv_host_alias" &&
3789   ac_cv_host_alias=$ac_cv_build_alias
3790 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3791   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3792 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3793    { (exit 1); exit 1; }; }
3794
3795 fi
3796 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3797 echo "${ECHO_T}$ac_cv_host" >&6
3798 host=$ac_cv_host
3799 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3800 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3801 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3802
3803
3804 case $host_os in
3805   *cygwin* ) CYGWIN=yes;;
3806          * ) CYGWIN=no;;
3807 esac
3808
3809 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3810 then
3811
3812
3813 if $TRUEPRG; then
3814   HAVE_SUN_OS_TRUE=
3815   HAVE_SUN_OS_FALSE='#'
3816 else
3817   HAVE_SUN_OS_TRUE='#'
3818   HAVE_SUN_OS_FALSE=
3819 fi
3820         cat >>confdefs.h <<\_ACEOF
3821 #define HAVE_SUN_OS 1
3822 _ACEOF
3823
3824 else
3825
3826
3827 if $FALSEPRG; then
3828   HAVE_SUN_OS_TRUE=
3829   HAVE_SUN_OS_FALSE='#'
3830 else
3831   HAVE_SUN_OS_TRUE='#'
3832   HAVE_SUN_OS_FALSE=
3833 fi
3834 fi
3835
3836 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3837 then
3838
3839
3840 if $TRUEPRG; then
3841   HAVE_OSF1_OS_TRUE=
3842   HAVE_OSF1_OS_FALSE='#'
3843 else
3844   HAVE_OSF1_OS_TRUE='#'
3845   HAVE_OSF1_OS_FALSE=
3846 fi
3847         cat >>confdefs.h <<\_ACEOF
3848 #define HAVE_OSF1_OS 1
3849 _ACEOF
3850
3851 else
3852
3853
3854 if $FALSEPRG; then
3855   HAVE_OSF1_OS_TRUE=
3856   HAVE_OSF1_OS_FALSE='#'
3857 else
3858   HAVE_OSF1_OS_TRUE='#'
3859   HAVE_OSF1_OS_FALSE=
3860 fi
3861 fi
3862
3863 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3864 then
3865
3866
3867 if $TRUEPRG; then
3868   HAVE_AIX_OS_TRUE=
3869   HAVE_AIX_OS_FALSE='#'
3870 else
3871   HAVE_AIX_OS_TRUE='#'
3872   HAVE_AIX_OS_FALSE=
3873 fi
3874         cat >>confdefs.h <<\_ACEOF
3875 #define HAVE_AIX_OS 1
3876 _ACEOF
3877
3878 else
3879
3880
3881 if $FALSEPRG; then
3882   HAVE_AIX_OS_TRUE=
3883   HAVE_AIX_OS_FALSE='#'
3884 else
3885   HAVE_AIX_OS_TRUE='#'
3886   HAVE_AIX_OS_FALSE=
3887 fi
3888 fi
3889
3890 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3891 then
3892
3893
3894 if $TRUEPRG; then
3895   HAVE_HPUX_OS_TRUE=
3896   HAVE_HPUX_OS_FALSE='#'
3897 else
3898   HAVE_HPUX_OS_TRUE='#'
3899   HAVE_HPUX_OS_FALSE=
3900 fi
3901         cat >>confdefs.h <<\_ACEOF
3902 #define HAVE_HPUX_OS 1
3903 _ACEOF
3904
3905 else
3906
3907
3908 if $FALSEPRG; then
3909   HAVE_HPUX_OS_TRUE=
3910   HAVE_HPUX_OS_FALSE='#'
3911 else
3912   HAVE_HPUX_OS_TRUE='#'
3913   HAVE_HPUX_OS_FALSE=
3914 fi
3915 fi
3916
3917 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3918 then
3919
3920
3921 if $TRUEPRG; then
3922   HAVE_LINUX_OS_TRUE=
3923   HAVE_LINUX_OS_FALSE='#'
3924 else
3925   HAVE_LINUX_OS_TRUE='#'
3926   HAVE_LINUX_OS_FALSE=
3927 fi
3928         cat >>confdefs.h <<\_ACEOF
3929 #define HAVE_LINUX_OS 1
3930 _ACEOF
3931
3932 else
3933
3934
3935 if $FALSEPRG; then
3936   HAVE_LINUX_OS_TRUE=
3937   HAVE_LINUX_OS_FALSE='#'
3938 else
3939   HAVE_LINUX_OS_TRUE='#'
3940   HAVE_LINUX_OS_FALSE=
3941 fi
3942 fi
3943
3944 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3945 then
3946
3947
3948 if $TRUEPRG; then
3949   HAVE_FREEBSD_OS_TRUE=
3950   HAVE_FREEBSD_OS_FALSE='#'
3951 else
3952   HAVE_FREEBSD_OS_TRUE='#'
3953   HAVE_FREEBSD_OS_FALSE=
3954 fi
3955         cat >>confdefs.h <<\_ACEOF
3956 #define HAVE_FREEBSD_OS 1
3957 _ACEOF
3958
3959 else
3960
3961
3962 if $FALSEPRG; then
3963   HAVE_FREEBSD_OS_TRUE=
3964   HAVE_FREEBSD_OS_FALSE='#'
3965 else
3966   HAVE_FREEBSD_OS_TRUE='#'
3967   HAVE_FREEBSD_OS_FALSE=
3968 fi
3969 fi
3970
3971 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3972 then
3973
3974
3975 if $TRUEPRG; then
3976   HAVE_NETBSD_OS_TRUE=
3977   HAVE_NETBSD_OS_FALSE='#'
3978 else
3979   HAVE_NETBSD_OS_TRUE='#'
3980   HAVE_NETBSD_OS_FALSE=
3981 fi
3982         cat >>confdefs.h <<\_ACEOF
3983 #define HAVE_NETBSD_OS 1
3984 _ACEOF
3985
3986 else
3987
3988
3989 if $FALSEPRG; then
3990   HAVE_NETBSD_OS_TRUE=
3991   HAVE_NETBSD_OS_FALSE='#'
3992 else
3993   HAVE_NETBSD_OS_TRUE='#'
3994   HAVE_NETBSD_OS_FALSE=
3995 fi
3996 fi
3997
3998 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3999 then
4000
4001
4002 if $TRUEPRG; then
4003   HAVE_OPENBSD_OS_TRUE=
4004   HAVE_OPENBSD_OS_FALSE='#'
4005 else
4006   HAVE_OPENBSD_OS_TRUE='#'
4007   HAVE_OPENBSD_OS_FALSE=
4008 fi
4009         cat >>confdefs.h <<\_ACEOF
4010 #define HAVE_OPENBSD_OS 1
4011 _ACEOF
4012
4013 else
4014
4015
4016 if $FALSEPRG; then
4017   HAVE_OPENBSD_OS_TRUE=
4018   HAVE_OPENBSD_OS_FALSE='#'
4019 else
4020   HAVE_OPENBSD_OS_TRUE='#'
4021   HAVE_OPENBSD_OS_FALSE=
4022 fi
4023 fi
4024
4025 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4026 then
4027
4028
4029 if $TRUEPRG; then
4030   HAVE_BSDI_OS_TRUE=
4031   HAVE_BSDI_OS_FALSE='#'
4032 else
4033   HAVE_BSDI_OS_TRUE='#'
4034   HAVE_BSDI_OS_FALSE=
4035 fi
4036         cat >>confdefs.h <<\_ACEOF
4037 #define HAVE_BSDI_OS 1
4038 _ACEOF
4039
4040 else
4041
4042
4043 if $FALSEPRG; then
4044   HAVE_BSDI_OS_TRUE=
4045   HAVE_BSDI_OS_FALSE='#'
4046 else
4047   HAVE_BSDI_OS_TRUE='#'
4048   HAVE_BSDI_OS_FALSE=
4049 fi
4050 fi
4051
4052 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4053 then
4054
4055
4056 if $TRUEPRG; then
4057   HAVE_SGI_OS_TRUE=
4058   HAVE_SGI_OS_FALSE='#'
4059 else
4060   HAVE_SGI_OS_TRUE='#'
4061   HAVE_SGI_OS_FALSE=
4062 fi
4063         cat >>confdefs.h <<\_ACEOF
4064 #define HAVE_SGI_OS 1
4065 _ACEOF
4066
4067 else
4068
4069
4070 if $FALSEPRG; then
4071   HAVE_SGI_OS_TRUE=
4072   HAVE_SGI_OS_FALSE='#'
4073 else
4074   HAVE_SGI_OS_TRUE='#'
4075   HAVE_SGI_OS_FALSE=
4076 fi
4077 fi
4078
4079 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4080 then
4081
4082
4083 if $TRUEPRG; then
4084   HAVE_IRIX_OS_TRUE=
4085   HAVE_IRIX_OS_FALSE='#'
4086 else
4087   HAVE_IRIX_OS_TRUE='#'
4088   HAVE_IRIX_OS_FALSE=
4089 fi
4090         cat >>confdefs.h <<\_ACEOF
4091 #define HAVE_IRIX_OS 1
4092 _ACEOF
4093
4094 else
4095
4096
4097 if $FALSEPRG; then
4098   HAVE_IRIX_OS_TRUE=
4099   HAVE_IRIX_OS_FALSE='#'
4100 else
4101   HAVE_IRIX_OS_TRUE='#'
4102   HAVE_IRIX_OS_FALSE=
4103 fi
4104 fi
4105
4106 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4107 then
4108
4109
4110 if $TRUEPRG; then
4111   HAVE_DARWIN_OS_TRUE=
4112   HAVE_DARWIN_OS_FALSE='#'
4113 else
4114   HAVE_DARWIN_OS_TRUE='#'
4115   HAVE_DARWIN_OS_FALSE=
4116 fi
4117     cat >>confdefs.h <<\_ACEOF
4118 #define HAVE_DARWIN_OS 1
4119 _ACEOF
4120
4121 else
4122
4123
4124 if $FALSEPRG; then
4125   HAVE_DARWIN_OS_TRUE=
4126   HAVE_DARWIN_OS_FALSE='#'
4127 else
4128   HAVE_DARWIN_OS_TRUE='#'
4129   HAVE_DARWIN_OS_FALSE=
4130 fi
4131 fi
4132
4133 echo "$as_me:$LINENO: result: \" \"" >&5
4134 echo "${ECHO_T}\" \"" >&6
4135
4136
4137 # -----------------------------------------------------------
4138 # ----------------------------------------------------------
4139 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4140 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4141 if test "x$DISTNAME" != "x"
4142 then
4143         echo "distname set to $DISTNAME"
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4145 then
4146         DISTNAME=alpha
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4148 then
4149         DISTNAME=aix
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4151 then
4152         DISTNAME=hpux
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4154 then
4155         DISTNAME=solaris
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4157 then
4158         DISTNAME=freebsd
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4160 then
4161         DISTNAME=netbsd
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4163 then
4164         DISTNAME=openbsd
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4166 then
4167         DISTNAME=irix
4168 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4169 then
4170         DISTNAME=bsdi
4171 elif test -f /etc/SuSE-release
4172 then
4173         DISTNAME=suse
4174 elif test -d /etc/SuSEconfig
4175 then
4176         DISTNAME=suse5
4177 elif test -f /etc/mandrake-release
4178 then
4179         DISTNAME=mandrake
4180 elif test -f /etc/redhat-release
4181 then
4182         DISTNAME=redhat
4183 elif test -f /etc/gentoo-release
4184 then
4185         DISTNAME=gentoo
4186 elif test -f /etc/debian_version
4187 then
4188         DISTNAME=debian
4189 elif test -f /etc/slackware-version
4190 then
4191         DISTNAME=slackware
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4193 then
4194     DISTNAME=darwin
4195 elif test -f /etc/engarde-version
4196 then
4197         DISTNAME=engarde
4198 elif test "$CYGWIN" = yes
4199 then
4200         DISTNAME=cygwin
4201         cat >>confdefs.h <<\_ACEOF
4202 #define HAVE_CYGWIN 1
4203 _ACEOF
4204
4205 else
4206         DISTNAME=unknown
4207 fi
4208 echo "$as_me:$LINENO: result: \" \"" >&5
4209 echo "${ECHO_T}\" \"" >&6
4210
4211
4212 # -----------------------------------------------------------
4213 # ----------------------------------------------------------
4214
4215
4216
4217 if false; then
4218   INSIDE_GNOME_COMMON_TRUE=
4219   INSIDE_GNOME_COMMON_FALSE='#'
4220 else
4221   INSIDE_GNOME_COMMON_TRUE='#'
4222   INSIDE_GNOME_COMMON_FALSE=
4223 fi
4224
4225         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4226
4227         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4228
4229
4230 # ------------------------------------------------------------------
4231 #  If the user has not set --prefix, we set our default to nothing.
4232 #  In this case, if the user has not set --sysconfdir, we set it
4233 #  to the package default of /etc/bacula.  If either --prefix or
4234 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4235 # ------------------------------------------------------------------
4236 if test x${prefix} = xNONE ; then
4237     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4238         sysconfdir=/etc/bacula
4239     fi
4240     prefix=
4241 fi
4242 sysconfdir=`eval echo ${sysconfdir}`
4243
4244 # -------------------------------------------------------------------------
4245 #  If the user has not set --exec-prefix, we default to ${prefix}
4246 # -------------------------------------------------------------------------
4247 if test x${exec_prefix} = xNONE ; then
4248     exec_prefix=${prefix}
4249 fi
4250
4251 # ------------------------------------------------------------------
4252 # If the user has not set --sbindir, we set our default as /sbin
4253 # ------------------------------------------------------------------
4254 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4255     sbindir=${exec_prefix}/sbin
4256 fi
4257 sbindir=`eval echo ${sbindir}`
4258
4259 # ------------------------------------------------------------------
4260 # All list of languages for which a translation exist. Each
4261 #  language is separated by a space.
4262 # ------------------------------------------------------------------
4263 ALL_LINGUAS=""
4264
4265 for ac_prog in msgfmt
4266 do
4267   # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_path_MSGFMT+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   case $MSGFMT in
4275   [\\/]* | ?:[\\/]*)
4276   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4277   ;;
4278   *)
4279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284   for ac_exec_ext in '' $ac_executable_extensions; do
4285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288     break 2
4289   fi
4290 done
4291 done
4292
4293   ;;
4294 esac
4295 fi
4296 MSGFMT=$ac_cv_path_MSGFMT
4297
4298 if test -n "$MSGFMT"; then
4299   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4300 echo "${ECHO_T}$MSGFMT" >&6
4301 else
4302   echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4304 fi
4305
4306   test -n "$MSGFMT" && break
4307 done
4308 test -n "$MSGFMT" || MSGFMT="no"
4309
4310 if test "$MSGFMT" = "no"
4311 then
4312    echo 'msgfmt program not found, disabling NLS !'
4313    USE_NLS=no
4314    USE_INCLUDED_LIBINTL=no
4315 #else
4316 #   AM_GNU_GETTEXT
4317 fi
4318
4319
4320 support_mysql=no
4321 support_sqlite=no
4322 support_postgresql=no
4323 support_smartalloc=yes
4324 support_readline=yes
4325 support_conio=yes
4326 support_gnome=no
4327 support_wx_console=no
4328 gnome_version=
4329 support_static_tools=no
4330 support_static_fd=no
4331 support_static_sd=no
4332 support_static_dir=no
4333 support_static_cons=no
4334 build_client_only=no
4335 cats=
4336 db_name=Internal
4337 DB_NAME=bdb
4338
4339
4340 # -------------------------------------------
4341 # gnome (default off)
4342 # -------------------------------------------
4343 # Check whether --enable-gnome or --disable-gnome was given.
4344 if test "${enable_gnome+set}" = set; then
4345   enableval="$enable_gnome"
4346   if test x$enableval = xyes; then
4347     support_gnome=yes
4348   fi
4349 fi;
4350
4351 GNOME_DIR=
4352 if test x$support_gnome = xyes; then
4353   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4354   pkg=$?
4355   if test $pkg = 0; then
4356      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4357      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4358      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4359      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4360
4361
4362
4363
4364      GNOME_DIR=src/gnome2-console
4365      gnome_version="Version 2.x"
4366   else
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4379 if test "${with_gnome_includes+set}" = set; then
4380   withval="$with_gnome_includes"
4381
4382         CFLAGS="$CFLAGS -I$withval"
4383
4384 fi;
4385
4386
4387 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4388 if test "${with_gnome_libs+set}" = set; then
4389   withval="$with_gnome_libs"
4390
4391         LDFLAGS="$LDFLAGS -L$withval"
4392         gnome_prefix=$withval
4393
4394 fi;
4395
4396
4397 # Check whether --with-gnome or --without-gnome was given.
4398 if test "${with_gnome+set}" = set; then
4399   withval="$with_gnome"
4400   if test x$withval = xyes; then
4401                         want_gnome=yes
4402                                                                         :
4403                 else
4404                         if test "x$withval" = xno; then
4405                                 want_gnome=no
4406                         else
4407                                 want_gnome=yes
4408                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4409                                 CFLAGS="$CFLAGS -I$withval/include"
4410                                 gnome_prefix=$withval/lib
4411                         fi
4412                 fi
4413 else
4414   want_gnome=yes
4415 fi;
4416
4417         if test "x$want_gnome" = xyes; then
4418
4419             # Extract the first word of "gnome-config", so it can be a program name with args.
4420 set dummy gnome-config; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   case $GNOME_CONFIG in
4427   [\\/]* | ?:[\\/]*)
4428   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4429   ;;
4430   *)
4431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436   for ac_exec_ext in '' $ac_executable_extensions; do
4437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443 done
4444
4445   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4446   ;;
4447 esac
4448 fi
4449 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4450
4451 if test -n "$GNOME_CONFIG"; then
4452   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4453 echo "${ECHO_T}$GNOME_CONFIG" >&6
4454 else
4455   echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4457 fi
4458
4459             if test "$GNOME_CONFIG" = "no"; then
4460               no_gnome_config="yes"
4461             else
4462               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4463 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4464               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4465                 echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4467
4468
4469         # Extract the first word of "orbit-config", so it can be a program name with args.
4470 set dummy orbit-config; ac_word=$2
4471 echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   case $ORBIT_CONFIG in
4477   [\\/]* | ?:[\\/]*)
4478   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4479   ;;
4480   *)
4481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_exec_ext in '' $ac_executable_extensions; do
4487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494
4495   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4496   ;;
4497 esac
4498 fi
4499 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4500
4501 if test -n "$ORBIT_CONFIG"; then
4502   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4503 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4504 else
4505   echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4507 fi
4508
4509         # Extract the first word of "orbit-idl", so it can be a program name with args.
4510 set dummy orbit-idl; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   case $ORBIT_IDL in
4517   [\\/]* | ?:[\\/]*)
4518   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4519   ;;
4520   *)
4521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526   for ac_exec_ext in '' $ac_executable_extensions; do
4527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530     break 2
4531   fi
4532 done
4533 done
4534
4535   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4536   ;;
4537 esac
4538 fi
4539 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4540
4541 if test -n "$ORBIT_IDL"; then
4542   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4543 echo "${ECHO_T}$ORBIT_IDL" >&6
4544 else
4545   echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4547 fi
4548
4549         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4550 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4551 if test "${gnome_cv_orbit_found+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554
4555                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4556                         gnome_cv_orbit_found=no
4557                 else
4558                         gnome_cv_orbit_found=yes
4559                 fi
4560
4561 fi
4562 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4563 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4564
4565
4566 if test x$gnome_cv_orbit_found = xyes; then
4567   HAVE_ORBIT_TRUE=
4568   HAVE_ORBIT_FALSE='#'
4569 else
4570   HAVE_ORBIT_TRUE='#'
4571   HAVE_ORBIT_FALSE=
4572 fi
4573         if test x$gnome_cv_orbit_found = xyes; then
4574
4575                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4576                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4577
4578
4579         else
4580                 if test xfail = xfailure; then
4581                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4582 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4583    { (exit 1); exit 1; }; }
4584                 fi
4585         fi
4586
4587         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4588 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4589 if test "${gnome_cv_gnorba_found+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592
4593                 gnome_cv_gnorba_found=no
4594                 if test x$gnome_cv_orbit_found = xyes; then
4595                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4596                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4597                         if test -n "$GNORBA_LIBS"; then
4598                                 gnome_cv_gnorba_found=yes
4599                         fi
4600                 fi
4601
4602 fi
4603 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4604 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4605
4606
4607 if test x$gnome_cv_gnorba_found = xyes; then
4608   HAVE_GNORBA_TRUE=
4609   HAVE_GNORBA_FALSE='#'
4610 else
4611   HAVE_GNORBA_TRUE='#'
4612   HAVE_GNORBA_FALSE=
4613 fi
4614         if test x$gnome_cv_orbit_found = xyes; then
4615
4616                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4617                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4618
4619
4620         else
4621                 if test xfail = xfailure; then
4622                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4623 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4624    { (exit 1); exit 1; }; }
4625                 fi
4626         fi
4627
4628                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4629                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4630                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4631                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4632                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4633                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4634                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4635
4636               else
4637                 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639                 no_gnome_config="yes"
4640               fi
4641             fi
4642
4643             if test x$exec_prefix = xNONE; then
4644                 if test x$prefix = xNONE; then
4645                     gnome_prefix=$ac_default_prefix/lib
4646                 else
4647                     gnome_prefix=$prefix/lib
4648                 fi
4649             else
4650                 gnome_prefix=`eval echo \`echo $libdir\``
4651             fi
4652
4653             if test "$no_gnome_config" = "yes"; then
4654               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4655 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4656               if test -f $gnome_prefix/gnomeConf.sh; then
4657                 echo "$as_me:$LINENO: result: found" >&5
4658 echo "${ECHO_T}found" >&6
4659                 echo "loading gnome configuration from" \
4660                      "$gnome_prefix/gnomeConf.sh"
4661                 . $gnome_prefix/gnomeConf.sh
4662
4663               else
4664                 echo "$as_me:$LINENO: result: not found" >&5
4665 echo "${ECHO_T}not found" >&6
4666                 if test xfail = xfail; then
4667                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4668 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4669    { (exit 1); exit 1; }; }
4670                 fi
4671               fi
4672             fi
4673         fi
4674
4675         if test -n ""; then
4676           n=""
4677           for i in $n; do
4678             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4679 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4680             case $i in
4681               applets)
4682
4683                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4684                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4685 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4686               docklets)
4687
4688                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4689                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4690 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4691               capplet)
4692
4693                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4694                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4695 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4696               *)
4697                 echo "$as_me:$LINENO: result: unknown library" >&5
4698 echo "${ECHO_T}unknown library" >&6
4699             esac
4700             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4701             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4702           done
4703         fi
4704
4705
4706      GNOME_DIR=src/gnome-console
4707      gnome_version="Version 1.4"
4708   fi
4709 fi
4710
4711
4712
4713 # -------------------------------------------
4714 # wx-console (default off)
4715 # -------------------------------------------
4716 # Check whether --enable-wx-console or --disable-wx-console was given.
4717 if test "${enable_wx_console+set}" = set; then
4718   enableval="$enable_wx_console"
4719   if test x$enableval = xyes; then
4720     support_wx_console=yes
4721   fi
4722 fi;
4723
4724 WX_DIR=
4725 if test x$support_wx_console = xyes; then
4726   abc=`$WXCONFIG --cppflags`
4727   pkg=$?
4728   if test $pkg = 0; then
4729      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4730      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4731
4732
4733      WX_DIR=src/wx-console
4734   else
4735      echo " "
4736      echo "wx-config program not found. wx-console disabled."
4737      echo " "
4738      support_wx_console=no
4739   fi
4740 fi
4741
4742
4743
4744
4745 # -------------------------------------------
4746 # smartalloc (default off)
4747 # -------------------------------------------
4748 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4749 if test "${enable_smartalloc+set}" = set; then
4750   enableval="$enable_smartalloc"
4751   if test x$enableval = xno; then
4752     support_smartalloc=no
4753   fi
4754 fi;
4755
4756 if test x$support_smartalloc = xyes; then
4757    cat >>confdefs.h <<\_ACEOF
4758 #define SMARTALLOC 1
4759 _ACEOF
4760
4761 fi
4762
4763 # -------------------------------------------
4764 # static-tools (default off)
4765 # -------------------------------------------
4766 # Check whether --enable-static-tools or --disable-static-tools was given.
4767 if test "${enable_static_tools+set}" = set; then
4768   enableval="$enable_static_tools"
4769   if test x$enableval = xyes; then
4770      support_static_tools=yes
4771    fi
4772 fi;
4773
4774 TTOOL_LDFLAGS=
4775 if test x$support_static_tools = xyes; then
4776    TTOOL_LDFLAGS="-static"
4777 fi
4778
4779
4780 # -------------------------------------------
4781 # static-fd    (default off)
4782 # -------------------------------------------
4783 # Check whether --enable-static-fd or --disable-static-fd was given.
4784 if test "${enable_static_fd+set}" = set; then
4785   enableval="$enable_static_fd"
4786   if test x$enableval = xyes; then
4787      support_static_fd=yes
4788    fi
4789 fi;
4790
4791 STATIC_FD=
4792 if test x$support_static_fd = xyes; then
4793    STATIC_FD="static-bacula-fd"
4794 fi
4795
4796
4797 # -------------------------------------------
4798 # static-sd    (default off)
4799 # -------------------------------------------
4800 # Check whether --enable-static-sd or --disable-static-sd was given.
4801 if test "${enable_static_sd+set}" = set; then
4802   enableval="$enable_static_sd"
4803   if test x$enableval = xyes; then
4804      support_static_sd=yes
4805    fi
4806 fi;
4807
4808 STATIC_SD=
4809 if test x$support_static_sd = xyes; then
4810    STATIC_SD="static-bacula-sd"
4811 fi
4812
4813
4814 # -------------------------------------------
4815 # static-dir   (default off)
4816 # -------------------------------------------
4817 # Check whether --enable-static-dir or --disable-static-dir was given.
4818 if test "${enable_static_dir+set}" = set; then
4819   enableval="$enable_static_dir"
4820   if test x$enableval = xyes; then
4821      support_static_dir=yes
4822    fi
4823 fi;
4824
4825 STATIC_DIR=
4826 if test x$support_static_dir = xyes; then
4827    STATIC_DIR="static-bacula-dir"
4828 fi
4829
4830
4831 # -------------------------------------------
4832 # static-cons  (default off)
4833 # -------------------------------------------
4834 # Check whether --enable-static-cons or --disable-static-cons was given.
4835 if test "${enable_static_cons+set}" = set; then
4836   enableval="$enable_static_cons"
4837   if test x$enableval = xyes; then
4838      support_static_cons=yes
4839    fi
4840 fi;
4841
4842 STATIC_CONS=
4843 STATIC_GNOME_CONS=
4844 STATIC_WX_CONS=
4845 if test x$support_static_cons = xyes; then
4846    STATIC_CONS="static-bconsole"
4847    STATIC_GNOME_CONS="static-gnome-console"
4848    STATIC_WX_CONS="static-wx-console"
4849 fi
4850
4851
4852
4853
4854 # -------------------------------------------
4855 # client_only  (default off)
4856 # -------------------------------------------
4857 # Check whether --enable-client-only or --disable-client-only was given.
4858 if test "${enable_client_only+set}" = set; then
4859   enableval="$enable_client_only"
4860   if test x$enableval = xyes; then
4861      build_client_only=yes
4862    fi
4863 fi;
4864 if test x$build_client_only = xno; then
4865    ALL_DIRS="subdirs"
4866 else
4867    ALL_DIRS=""
4868 fi
4869
4870
4871 # ---------------------------------------------------
4872 # Check for conio (Bacula readline substitute)(
4873 # ---------------------------------------------------
4874 # this allows you to turn it completely off
4875 # Check whether --enable-conio or --disable-conio was given.
4876 if test "${enable_conio+set}" = set; then
4877   enableval="$enable_conio"
4878   if test x$enableval = xno; then
4879     support_conio=no
4880   fi
4881 fi;
4882
4883 got_conio="no"
4884 if test x$support_conio = xyes; then
4885    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4886 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4887 if test "${ac_cv_header_stdc+set}" = set; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890   cat >conftest.$ac_ext <<_ACEOF
4891 #line $LINENO "configure"
4892 /* confdefs.h.  */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h.  */
4897 #include <stdlib.h>
4898 #include <stdarg.h>
4899 #include <string.h>
4900 #include <float.h>
4901
4902 int
4903 main ()
4904 {
4905
4906   ;
4907   return 0;
4908 }
4909 _ACEOF
4910 rm -f conftest.$ac_objext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912   (eval $ac_compile) 2>&5
4913   ac_status=$?
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); } &&
4916          { ac_try='test -s conftest.$ac_objext'
4917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918   (eval $ac_try) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); }; }; then
4922   ac_cv_header_stdc=yes
4923 else
4924   echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4926
4927 ac_cv_header_stdc=no
4928 fi
4929 rm -f conftest.$ac_objext conftest.$ac_ext
4930
4931 if test $ac_cv_header_stdc = yes; then
4932   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4933   cat >conftest.$ac_ext <<_ACEOF
4934 #line $LINENO "configure"
4935 /* confdefs.h.  */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h.  */
4940 #include <string.h>
4941
4942 _ACEOF
4943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4944   $EGREP "memchr" >/dev/null 2>&1; then
4945   :
4946 else
4947   ac_cv_header_stdc=no
4948 fi
4949 rm -f conftest*
4950
4951 fi
4952
4953 if test $ac_cv_header_stdc = yes; then
4954   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4955   cat >conftest.$ac_ext <<_ACEOF
4956 #line $LINENO "configure"
4957 /* confdefs.h.  */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h.  */
4962 #include <stdlib.h>
4963
4964 _ACEOF
4965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4966   $EGREP "free" >/dev/null 2>&1; then
4967   :
4968 else
4969   ac_cv_header_stdc=no
4970 fi
4971 rm -f conftest*
4972
4973 fi
4974
4975 if test $ac_cv_header_stdc = yes; then
4976   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4977   if test "$cross_compiling" = yes; then
4978   :
4979 else
4980   cat >conftest.$ac_ext <<_ACEOF
4981 #line $LINENO "configure"
4982 /* confdefs.h.  */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h.  */
4987 #include <ctype.h>
4988 #if ((' ' & 0x0FF) == 0x020)
4989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4991 #else
4992 # define ISLOWER(c) \
4993                    (('a' <= (c) && (c) <= 'i') \
4994                      || ('j' <= (c) && (c) <= 'r') \
4995                      || ('s' <= (c) && (c) <= 'z'))
4996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4997 #endif
4998
4999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5000 int
5001 main ()
5002 {
5003   int i;
5004   for (i = 0; i < 256; i++)
5005     if (XOR (islower (i), ISLOWER (i))
5006         || toupper (i) != TOUPPER (i))
5007       exit(2);
5008   exit (0);
5009 }
5010 _ACEOF
5011 rm -f conftest$ac_exeext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5013   (eval $ac_link) 2>&5
5014   ac_status=$?
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018   (eval $ac_try) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }; }; then
5022   :
5023 else
5024   echo "$as_me: program exited with status $ac_status" >&5
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028 ( exit $ac_status )
5029 ac_cv_header_stdc=no
5030 fi
5031 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5032 fi
5033 fi
5034 fi
5035 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5036 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5037 if test $ac_cv_header_stdc = yes; then
5038
5039 cat >>confdefs.h <<\_ACEOF
5040 #define STDC_HEADERS 1
5041 _ACEOF
5042
5043 fi
5044
5045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5056                   inttypes.h stdint.h unistd.h
5057 do
5058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5059 echo "$as_me:$LINENO: checking for $ac_header" >&5
5060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5062   echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064   cat >conftest.$ac_ext <<_ACEOF
5065 #line $LINENO "configure"
5066 /* confdefs.h.  */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h.  */
5071 $ac_includes_default
5072
5073 #include <$ac_header>
5074 _ACEOF
5075 rm -f conftest.$ac_objext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077   (eval $ac_compile) 2>&5
5078   ac_status=$?
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); } &&
5081          { ac_try='test -s conftest.$ac_objext'
5082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083   (eval $ac_try) 2>&5
5084   ac_status=$?
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); }; }; then
5087   eval "$as_ac_Header=yes"
5088 else
5089   echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 eval "$as_ac_Header=no"
5093 fi
5094 rm -f conftest.$ac_objext conftest.$ac_ext
5095 fi
5096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5099   cat >>confdefs.h <<_ACEOF
5100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5101 _ACEOF
5102
5103 fi
5104
5105 done
5106
5107
5108 if test "${ac_cv_header_termcap_h+set}" = set; then
5109   echo "$as_me:$LINENO: checking for termcap.h" >&5
5110 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5111 if test "${ac_cv_header_termcap_h+set}" = set; then
5112   echo $ECHO_N "(cached) $ECHO_C" >&6
5113 fi
5114 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5115 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5116 else
5117   # Is the header compilable?
5118 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5119 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5120 cat >conftest.$ac_ext <<_ACEOF
5121 #line $LINENO "configure"
5122 /* confdefs.h.  */
5123 _ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h.  */
5127 $ac_includes_default
5128 #include <termcap.h>
5129 _ACEOF
5130 rm -f conftest.$ac_objext
5131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5132   (eval $ac_compile) 2>&5
5133   ac_status=$?
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); } &&
5136          { ac_try='test -s conftest.$ac_objext'
5137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138   (eval $ac_try) 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); }; }; then
5142   ac_header_compiler=yes
5143 else
5144   echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147 ac_header_compiler=no
5148 fi
5149 rm -f conftest.$ac_objext conftest.$ac_ext
5150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5151 echo "${ECHO_T}$ac_header_compiler" >&6
5152
5153 # Is the header present?
5154 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5155 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5156 cat >conftest.$ac_ext <<_ACEOF
5157 #line $LINENO "configure"
5158 /* confdefs.h.  */
5159 _ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h.  */
5163 #include <termcap.h>
5164 _ACEOF
5165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5167   ac_status=$?
5168   grep -v '^ *+' conftest.er1 >conftest.err
5169   rm -f conftest.er1
5170   cat conftest.err >&5
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); } >/dev/null; then
5173   if test -s conftest.err; then
5174     ac_cpp_err=$ac_c_preproc_warn_flag
5175   else
5176     ac_cpp_err=
5177   fi
5178 else
5179   ac_cpp_err=yes
5180 fi
5181 if test -z "$ac_cpp_err"; then
5182   ac_header_preproc=yes
5183 else
5184   echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5186
5187   ac_header_preproc=no
5188 fi
5189 rm -f conftest.err conftest.$ac_ext
5190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5191 echo "${ECHO_T}$ac_header_preproc" >&6
5192
5193 # So?  What about this header?
5194 case $ac_header_compiler:$ac_header_preproc in
5195   yes:no )
5196     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5197 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5198     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5199 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5200     (
5201       cat <<\_ASBOX
5202 ## ------------------------------------ ##
5203 ## Report this to bug-autoconf@gnu.org. ##
5204 ## ------------------------------------ ##
5205 _ASBOX
5206     ) |
5207       sed "s/^/$as_me: WARNING:     /" >&2
5208     ;;
5209   no:yes )
5210     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5211 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5212     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5213 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5214     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5215 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5216     (
5217       cat <<\_ASBOX
5218 ## ------------------------------------ ##
5219 ## Report this to bug-autoconf@gnu.org. ##
5220 ## ------------------------------------ ##
5221 _ASBOX
5222     ) |
5223       sed "s/^/$as_me: WARNING:     /" >&2
5224     ;;
5225 esac
5226 echo "$as_me:$LINENO: checking for termcap.h" >&5
5227 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5228 if test "${ac_cv_header_termcap_h+set}" = set; then
5229   echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231   ac_cv_header_termcap_h=$ac_header_preproc
5232 fi
5233 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5234 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5235
5236 fi
5237 if test $ac_cv_header_termcap_h = yes; then
5238    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5239 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5240 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5241   echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243   ac_check_lib_save_LIBS=$LIBS
5244 LIBS="-ltermcap  $LIBS"
5245 cat >conftest.$ac_ext <<_ACEOF
5246 #line $LINENO "configure"
5247 /* confdefs.h.  */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h.  */
5252
5253 /* Override any gcc2 internal prototype to avoid an error.  */
5254 #ifdef __cplusplus
5255 extern "C"
5256 #endif
5257 /* We use char because int might match the return type of a gcc2
5258    builtin and then its argument prototype would still apply.  */
5259 char tgetent ();
5260 int
5261 main ()
5262 {
5263 tgetent ();
5264   ;
5265   return 0;
5266 }
5267 _ACEOF
5268 rm -f conftest.$ac_objext conftest$ac_exeext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5270   (eval $ac_link) 2>&5
5271   ac_status=$?
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); } &&
5274          { ac_try='test -s conftest$ac_exeext'
5275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276   (eval $ac_try) 2>&5
5277   ac_status=$?
5278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279   (exit $ac_status); }; }; then
5280   ac_cv_lib_termcap_tgetent=yes
5281 else
5282   echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5284
5285 ac_cv_lib_termcap_tgetent=no
5286 fi
5287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5288 LIBS=$ac_check_lib_save_LIBS
5289 fi
5290 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5291 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5292 if test $ac_cv_lib_termcap_tgetent = yes; then
5293    CONS_LIBS="-ltermcap"
5294          CONS_OBJ="conio.o"
5295          CONS_SRC="conio.c"
5296          got_conio="yes"
5297          support_readline=no
5298
5299 cat >>confdefs.h <<\_ACEOF
5300 #define HAVE_CONIO 1
5301 _ACEOF
5302
5303
5304 else
5305    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5306 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5307 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5308   echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310   ac_check_lib_save_LIBS=$LIBS
5311 LIBS="-lncurses  $LIBS"
5312 cat >conftest.$ac_ext <<_ACEOF
5313 #line $LINENO "configure"
5314 /* confdefs.h.  */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h.  */
5319
5320 /* Override any gcc2 internal prototype to avoid an error.  */
5321 #ifdef __cplusplus
5322 extern "C"
5323 #endif
5324 /* We use char because int might match the return type of a gcc2
5325    builtin and then its argument prototype would still apply.  */
5326 char tgetent ();
5327 int
5328 main ()
5329 {
5330 tgetent ();
5331   ;
5332   return 0;
5333 }
5334 _ACEOF
5335 rm -f conftest.$ac_objext conftest$ac_exeext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5337   (eval $ac_link) 2>&5
5338   ac_status=$?
5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); } &&
5341          { ac_try='test -s conftest$ac_exeext'
5342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343   (eval $ac_try) 2>&5
5344   ac_status=$?
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); }; }; then
5347   ac_cv_lib_ncurses_tgetent=yes
5348 else
5349   echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5351
5352 ac_cv_lib_ncurses_tgetent=no
5353 fi
5354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5355 LIBS=$ac_check_lib_save_LIBS
5356 fi
5357 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5358 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5359 if test $ac_cv_lib_ncurses_tgetent = yes; then
5360    CONS_LIBS="-lncurses"
5361            CONS_OBJ="conio.o"
5362            CONS_SRC="conio.c"
5363            got_conio="yes"
5364            support_readline=no
5365
5366 cat >>confdefs.h <<\_ACEOF
5367 #define HAVE_CONIO 1
5368 _ACEOF
5369
5370
5371 else
5372    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5373 fi
5374
5375
5376 fi
5377
5378
5379 else
5380   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5381 fi
5382
5383
5384 fi
5385
5386
5387 # ---------------------------------------------------
5388 # Check for readline support/directory (default off)
5389 # ---------------------------------------------------
5390 # this allows you to turn it completely off
5391 # Check whether --enable-readline or --disable-readline was given.
5392 if test "${enable_readline+set}" = set; then
5393   enableval="$enable_readline"
5394   if test x$enableval = xno; then
5395     support_readline=no
5396   fi
5397 fi;
5398
5399 got_readline="no"
5400 READLINE_SRC=
5401 if test x$support_readline = xyes; then
5402
5403 # Check whether --with-readline or --without-readline was given.
5404 if test "${with_readline+set}" = set; then
5405   withval="$with_readline"
5406
5407         case "$with_readline" in
5408         no) : ;;
5409         yes|*)
5410           if test "$with_readline" != "yes"; then
5411             CONS_INC="-I${with_readline}"
5412             CONS_LDFLAGS="-L$with_readline"
5413           else
5414              with_readline="/usr/include/readline"
5415           fi
5416           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5418   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5419 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 fi
5423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5425 else
5426   # Is the header compilable?
5427 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5428 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5429 cat >conftest.$ac_ext <<_ACEOF
5430 #line $LINENO "configure"
5431 /* confdefs.h.  */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h.  */
5436 $ac_includes_default
5437 #include <${with_readline}/readline.h>
5438 _ACEOF
5439 rm -f conftest.$ac_objext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441   (eval $ac_compile) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); } &&
5445          { ac_try='test -s conftest.$ac_objext'
5446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447   (eval $ac_try) 2>&5
5448   ac_status=$?
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); }; }; then
5451   ac_header_compiler=yes
5452 else
5453   echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5455
5456 ac_header_compiler=no
5457 fi
5458 rm -f conftest.$ac_objext conftest.$ac_ext
5459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5460 echo "${ECHO_T}$ac_header_compiler" >&6
5461
5462 # Is the header present?
5463 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5464 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5465 cat >conftest.$ac_ext <<_ACEOF
5466 #line $LINENO "configure"
5467 /* confdefs.h.  */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h.  */
5472 #include <${with_readline}/readline.h>
5473 _ACEOF
5474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5475   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5476   ac_status=$?
5477   grep -v '^ *+' conftest.er1 >conftest.err
5478   rm -f conftest.er1
5479   cat conftest.err >&5
5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); } >/dev/null; then
5482   if test -s conftest.err; then
5483     ac_cpp_err=$ac_c_preproc_warn_flag
5484   else
5485     ac_cpp_err=
5486   fi
5487 else
5488   ac_cpp_err=yes
5489 fi
5490 if test -z "$ac_cpp_err"; then
5491   ac_header_preproc=yes
5492 else
5493   echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496   ac_header_preproc=no
5497 fi
5498 rm -f conftest.err conftest.$ac_ext
5499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5500 echo "${ECHO_T}$ac_header_preproc" >&6
5501
5502 # So?  What about this header?
5503 case $ac_header_compiler:$ac_header_preproc in
5504   yes:no )
5505     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5506 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5507     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5508 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5509     (
5510       cat <<\_ASBOX
5511 ## ------------------------------------ ##
5512 ## Report this to bug-autoconf@gnu.org. ##
5513 ## ------------------------------------ ##
5514 _ASBOX
5515     ) |
5516       sed "s/^/$as_me: WARNING:     /" >&2
5517     ;;
5518   no:yes )
5519     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5520 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5521     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5522 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5523     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5524 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5525     (
5526       cat <<\_ASBOX
5527 ## ------------------------------------ ##
5528 ## Report this to bug-autoconf@gnu.org. ##
5529 ## ------------------------------------ ##
5530 _ASBOX
5531     ) |
5532       sed "s/^/$as_me: WARNING:     /" >&2
5533     ;;
5534 esac
5535 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5536 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5538   echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540   eval "$as_ac_Header=$ac_header_preproc"
5541 fi
5542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5544
5545 fi
5546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5547    cat >>confdefs.h <<\_ACEOF
5548 #define HAVE_READLINE 1
5549 _ACEOF
5550
5551                CONS_LIBS="-lreadline -ltermcap"
5552                got_readline="yes"
5553
5554 else
5555    echo " "
5556                echo "readline.h not found. readline turned off ..."
5557                echo " "
5558
5559
5560 fi
5561
5562
5563           ;;
5564         esac
5565
5566 else
5567
5568        # check for standard readline library
5569        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5570   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5571 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5572 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5573   echo $ECHO_N "(cached) $ECHO_C" >&6
5574 fi
5575 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5576 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5577 else
5578   # Is the header compilable?
5579 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5580 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5581 cat >conftest.$ac_ext <<_ACEOF
5582 #line $LINENO "configure"
5583 /* confdefs.h.  */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h.  */
5588 $ac_includes_default
5589 #include </usr/include/readline/readline.h>
5590 _ACEOF
5591 rm -f conftest.$ac_objext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593   (eval $ac_compile) 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); } &&
5597          { ac_try='test -s conftest.$ac_objext'
5598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599   (eval $ac_try) 2>&5
5600   ac_status=$?
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); }; }; then
5603   ac_header_compiler=yes
5604 else
5605   echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608 ac_header_compiler=no
5609 fi
5610 rm -f conftest.$ac_objext conftest.$ac_ext
5611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5612 echo "${ECHO_T}$ac_header_compiler" >&6
5613
5614 # Is the header present?
5615 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5616 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5617 cat >conftest.$ac_ext <<_ACEOF
5618 #line $LINENO "configure"
5619 /* confdefs.h.  */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h.  */
5624 #include </usr/include/readline/readline.h>
5625 _ACEOF
5626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5628   ac_status=$?
5629   grep -v '^ *+' conftest.er1 >conftest.err
5630   rm -f conftest.er1
5631   cat conftest.err >&5
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); } >/dev/null; then
5634   if test -s conftest.err; then
5635     ac_cpp_err=$ac_c_preproc_warn_flag
5636   else
5637     ac_cpp_err=
5638   fi
5639 else
5640   ac_cpp_err=yes
5641 fi
5642 if test -z "$ac_cpp_err"; then
5643   ac_header_preproc=yes
5644 else
5645   echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5647
5648   ac_header_preproc=no
5649 fi
5650 rm -f conftest.err conftest.$ac_ext
5651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5652 echo "${ECHO_T}$ac_header_preproc" >&6
5653
5654 # So?  What about this header?
5655 case $ac_header_compiler:$ac_header_preproc in
5656   yes:no )
5657     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5658 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5659     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5660 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5661     (
5662       cat <<\_ASBOX
5663 ## ------------------------------------ ##
5664 ## Report this to bug-autoconf@gnu.org. ##
5665 ## ------------------------------------ ##
5666 _ASBOX
5667     ) |
5668       sed "s/^/$as_me: WARNING:     /" >&2
5669     ;;
5670   no:yes )
5671     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5672 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5673     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5674 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5675     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5676 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5677     (
5678       cat <<\_ASBOX
5679 ## ------------------------------------ ##
5680 ## Report this to bug-autoconf@gnu.org. ##
5681 ## ------------------------------------ ##
5682 _ASBOX
5683     ) |
5684       sed "s/^/$as_me: WARNING:     /" >&2
5685     ;;
5686 esac
5687 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5688 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5689 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5693 fi
5694 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5695 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5696
5697 fi
5698 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5699    cat >>confdefs.h <<\_ACEOF
5700 #define HAVE_READLINE 1
5701 _ACEOF
5702
5703            got_readline="yes"
5704            CONS_INC="-I/usr/include/readline"
5705            CONS_LIBS="-lreadline -ltermcap"
5706
5707 else
5708
5709            # Did not find standard library, so try Bacula's default
5710             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5712   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5713 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5715   echo $ECHO_N "(cached) $ECHO_C" >&6
5716 fi
5717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5719 else
5720   # Is the header compilable?
5721 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5722 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5723 cat >conftest.$ac_ext <<_ACEOF
5724 #line $LINENO "configure"
5725 /* confdefs.h.  */
5726 _ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h.  */
5730 $ac_includes_default
5731 #include <${TOP_DIR}/depkgs/readline/readline.h>
5732 _ACEOF
5733 rm -f conftest.$ac_objext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735   (eval $ac_compile) 2>&5
5736   ac_status=$?
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); } &&
5739          { ac_try='test -s conftest.$ac_objext'
5740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741   (eval $ac_try) 2>&5
5742   ac_status=$?
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); }; }; then
5745   ac_header_compiler=yes
5746 else
5747   echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5749
5750 ac_header_compiler=no
5751 fi
5752 rm -f conftest.$ac_objext conftest.$ac_ext
5753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5754 echo "${ECHO_T}$ac_header_compiler" >&6
5755
5756 # Is the header present?
5757 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5758 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5759 cat >conftest.$ac_ext <<_ACEOF
5760 #line $LINENO "configure"
5761 /* confdefs.h.  */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h.  */
5766 #include <${TOP_DIR}/depkgs/readline/readline.h>
5767 _ACEOF
5768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5769   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5770   ac_status=$?
5771   grep -v '^ *+' conftest.er1 >conftest.err
5772   rm -f conftest.er1
5773   cat conftest.err >&5
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); } >/dev/null; then
5776   if test -s conftest.err; then
5777     ac_cpp_err=$ac_c_preproc_warn_flag
5778   else
5779     ac_cpp_err=
5780   fi
5781 else
5782   ac_cpp_err=yes
5783 fi
5784 if test -z "$ac_cpp_err"; then
5785   ac_header_preproc=yes
5786 else
5787   echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5789
5790   ac_header_preproc=no
5791 fi
5792 rm -f conftest.err conftest.$ac_ext
5793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5794 echo "${ECHO_T}$ac_header_preproc" >&6
5795
5796 # So?  What about this header?
5797 case $ac_header_compiler:$ac_header_preproc in
5798   yes:no )
5799     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5800 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5801     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5802 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5803     (
5804       cat <<\_ASBOX
5805 ## ------------------------------------ ##
5806 ## Report this to bug-autoconf@gnu.org. ##
5807 ## ------------------------------------ ##
5808 _ASBOX
5809     ) |
5810       sed "s/^/$as_me: WARNING:     /" >&2
5811     ;;
5812   no:yes )
5813     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5814 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5815     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5816 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5817     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5818 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5819     (
5820       cat <<\_ASBOX
5821 ## ------------------------------------ ##
5822 ## Report this to bug-autoconf@gnu.org. ##
5823 ## ------------------------------------ ##
5824 _ASBOX
5825     ) |
5826       sed "s/^/$as_me: WARNING:     /" >&2
5827     ;;
5828 esac
5829 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5830 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   eval "$as_ac_Header=$ac_header_preproc"
5835 fi
5836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5838
5839 fi
5840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5841    cat >>confdefs.h <<\_ACEOF
5842 #define HAVE_READLINE 1
5843 _ACEOF
5844
5845                  got_readline="yes"
5846                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5847                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5848                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5849                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5850
5851 else
5852    echo " "
5853                 echo "readline.h not found. readline turned off ..."
5854                 echo " "
5855
5856
5857 fi
5858
5859
5860
5861
5862 fi
5863
5864
5865
5866
5867 fi;
5868 fi
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879 # Minimal stuff for readline Makefile configuration
5880 MAKE_SHELL=/bin/sh
5881
5882
5883 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5884 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5885 if test "${ac_cv_header_stat_broken+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   cat >conftest.$ac_ext <<_ACEOF
5889 #line $LINENO "configure"
5890 /* confdefs.h.  */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h.  */
5895 #include <sys/types.h>
5896 #include <sys/stat.h>
5897
5898 #if defined(S_ISBLK) && defined(S_IFDIR)
5899 # if S_ISBLK (S_IFDIR)
5900 You lose.
5901 # endif
5902 #endif
5903
5904 #if defined(S_ISBLK) && defined(S_IFCHR)
5905 # if S_ISBLK (S_IFCHR)
5906 You lose.
5907 # endif
5908 #endif
5909
5910 #if defined(S_ISLNK) && defined(S_IFREG)
5911 # if S_ISLNK (S_IFREG)
5912 You lose.
5913 # endif
5914 #endif
5915
5916 #if defined(S_ISSOCK) && defined(S_IFREG)
5917 # if S_ISSOCK (S_IFREG)
5918 You lose.
5919 # endif
5920 #endif
5921
5922 _ACEOF
5923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924   $EGREP "You lose" >/dev/null 2>&1; then
5925   ac_cv_header_stat_broken=yes
5926 else
5927   ac_cv_header_stat_broken=no
5928 fi
5929 rm -f conftest*
5930
5931 fi
5932 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5933 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5934 if test $ac_cv_header_stat_broken = yes; then
5935
5936 cat >>confdefs.h <<\_ACEOF
5937 #define STAT_MACROS_BROKEN 1
5938 _ACEOF
5939
5940 fi
5941
5942
5943
5944
5945
5946
5947 ac_header_dirent=no
5948 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5949   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5950 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5951 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5953   echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955   cat >conftest.$ac_ext <<_ACEOF
5956 #line $LINENO "configure"
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962 #include <sys/types.h>
5963 #include <$ac_hdr>
5964
5965 int
5966 main ()
5967 {
5968 if ((DIR *) 0)
5969 return 0;
5970   ;
5971   return 0;
5972 }
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976   (eval $ac_compile) 2>&5
5977   ac_status=$?
5978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); } &&
5980          { ac_try='test -s conftest.$ac_objext'
5981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982   (eval $ac_try) 2>&5
5983   ac_status=$?
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); }; }; then
5986   eval "$as_ac_Header=yes"
5987 else
5988   echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991 eval "$as_ac_Header=no"
5992 fi
5993 rm -f conftest.$ac_objext conftest.$ac_ext
5994 fi
5995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998   cat >>confdefs.h <<_ACEOF
5999 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6000 _ACEOF
6001
6002 ac_header_dirent=$ac_hdr; break
6003 fi
6004
6005 done
6006 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6007 if test $ac_header_dirent = dirent.h; then
6008   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6010 if test "${ac_cv_search_opendir+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   ac_func_search_save_LIBS=$LIBS
6014 ac_cv_search_opendir=no
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 /* confdefs.h.  */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h.  */
6022
6023 /* Override any gcc2 internal prototype to avoid an error.  */
6024 #ifdef __cplusplus
6025 extern "C"
6026 #endif
6027 /* We use char because int might match the return type of a gcc2
6028    builtin and then its argument prototype would still apply.  */
6029 char opendir ();
6030 int
6031 main ()
6032 {
6033 opendir ();
6034   ;
6035   return 0;
6036 }
6037 _ACEOF
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040   (eval $ac_link) 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); } &&
6044          { ac_try='test -s conftest$ac_exeext'
6045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046   (eval $ac_try) 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }; }; then
6050   ac_cv_search_opendir="none required"
6051 else
6052   echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 fi
6056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6057 if test "$ac_cv_search_opendir" = no; then
6058   for ac_lib in dir; do
6059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6060     cat >conftest.$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6062 /* confdefs.h.  */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h.  */
6067
6068 /* Override any gcc2 internal prototype to avoid an error.  */
6069 #ifdef __cplusplus
6070 extern "C"
6071 #endif
6072 /* We use char because int might match the return type of a gcc2
6073    builtin and then its argument prototype would still apply.  */
6074 char opendir ();
6075 int
6076 main ()
6077 {
6078 opendir ();
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085   (eval $ac_link) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); } &&
6089          { ac_try='test -s conftest$ac_exeext'
6090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091   (eval $ac_try) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; }; then
6095   ac_cv_search_opendir="-l$ac_lib"
6096 break
6097 else
6098   echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 fi
6102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6103   done
6104 fi
6105 LIBS=$ac_func_search_save_LIBS
6106 fi
6107 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6108 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6109 if test "$ac_cv_search_opendir" != no; then
6110   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6111
6112 fi
6113
6114 else
6115   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6116 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6117 if test "${ac_cv_search_opendir+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   ac_func_search_save_LIBS=$LIBS
6121 ac_cv_search_opendir=no
6122 cat >conftest.$ac_ext <<_ACEOF
6123 #line $LINENO "configure"
6124 /* confdefs.h.  */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h.  */
6129
6130 /* Override any gcc2 internal prototype to avoid an error.  */
6131 #ifdef __cplusplus
6132 extern "C"
6133 #endif
6134 /* We use char because int might match the return type of a gcc2
6135    builtin and then its argument prototype would still apply.  */
6136 char opendir ();
6137 int
6138 main ()
6139 {
6140 opendir ();
6141   ;
6142   return 0;
6143 }
6144 _ACEOF
6145 rm -f conftest.$ac_objext conftest$ac_exeext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147   (eval $ac_link) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); } &&
6151          { ac_try='test -s conftest$ac_exeext'
6152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153   (eval $ac_try) 2>&5
6154   ac_status=$?
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); }; }; then
6157   ac_cv_search_opendir="none required"
6158 else
6159   echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 fi
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 if test "$ac_cv_search_opendir" = no; then
6165   for ac_lib in x; do
6166     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6167     cat >conftest.$ac_ext <<_ACEOF
6168 #line $LINENO "configure"
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174
6175 /* Override any gcc2 internal prototype to avoid an error.  */
6176 #ifdef __cplusplus
6177 extern "C"
6178 #endif
6179 /* We use char because int might match the return type of a gcc2
6180    builtin and then its argument prototype would still apply.  */
6181 char opendir ();
6182 int
6183 main ()
6184 {
6185 opendir ();
6186   ;
6187   return 0;
6188 }
6189 _ACEOF
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192   (eval $ac_link) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); } &&
6196          { ac_try='test -s conftest$ac_exeext'
6197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198   (eval $ac_try) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); }; }; then
6202   ac_cv_search_opendir="-l$ac_lib"
6203 break
6204 else
6205   echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208 fi
6209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6210   done
6211 fi
6212 LIBS=$ac_func_search_save_LIBS
6213 fi
6214 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6215 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6216 if test "$ac_cv_search_opendir" != no; then
6217   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6218
6219 fi
6220
6221 fi
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6233 do
6234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6235 echo "$as_me:$LINENO: checking for $ac_func" >&5
6236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6237 if eval "test \"\${$as_ac_var+set}\" = set"; then
6238   echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240   cat >conftest.$ac_ext <<_ACEOF
6241 #line $LINENO "configure"
6242 /* confdefs.h.  */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h.  */
6247 /* System header to define __stub macros and hopefully few prototypes,
6248     which can conflict with char $ac_func (); below.
6249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6250     <limits.h> exists even on freestanding compilers.  */
6251 #ifdef __STDC__
6252 # include <limits.h>
6253 #else
6254 # include <assert.h>
6255 #endif
6256 /* Override any gcc2 internal prototype to avoid an error.  */
6257 #ifdef __cplusplus
6258 extern "C"
6259 {
6260 #endif
6261 /* We use char because int might match the return type of a gcc2
6262    builtin and then its argument prototype would still apply.  */
6263 char $ac_func ();
6264 /* The GNU C library defines this for functions which it implements
6265     to always fail with ENOSYS.  Some functions are actually named
6266     something starting with __ and the normal name is an alias.  */
6267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6268 choke me
6269 #else
6270 char (*f) () = $ac_func;
6271 #endif
6272 #ifdef __cplusplus
6273 }
6274 #endif
6275
6276 int
6277 main ()
6278 {
6279 return f != $ac_func;
6280   ;
6281   return 0;
6282 }
6283 _ACEOF
6284 rm -f conftest.$ac_objext conftest$ac_exeext
6285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6286   (eval $ac_link) 2>&5
6287   ac_status=$?
6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); } &&
6290          { ac_try='test -s conftest$ac_exeext'
6291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292   (eval $ac_try) 2>&5
6293   ac_status=$?
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); }; }; then
6296   eval "$as_ac_var=yes"
6297 else
6298   echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6300
6301 eval "$as_ac_var=no"
6302 fi
6303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6304 fi
6305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6307 if test `eval echo '${'$as_ac_var'}'` = yes; then
6308   cat >>confdefs.h <<_ACEOF
6309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6310 _ACEOF
6311
6312 fi
6313 done
6314
6315
6316
6317 for ac_func in nanosleep nl_langinfo
6318 do
6319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6320 echo "$as_me:$LINENO: checking for $ac_func" >&5
6321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6322 if eval "test \"\${$as_ac_var+set}\" = set"; then
6323   echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325   cat >conftest.$ac_ext <<_ACEOF
6326 #line $LINENO "configure"
6327 /* confdefs.h.  */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h.  */
6332 /* System header to define __stub macros and hopefully few prototypes,
6333     which can conflict with char $ac_func (); below.
6334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6335     <limits.h> exists even on freestanding compilers.  */
6336 #ifdef __STDC__
6337 # include <limits.h>
6338 #else
6339 # include <assert.h>
6340 #endif
6341 /* Override any gcc2 internal prototype to avoid an error.  */
6342 #ifdef __cplusplus
6343 extern "C"
6344 {
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 $ac_func ();
6349 /* The GNU C library defines this for functions which it implements
6350     to always fail with ENOSYS.  Some functions are actually named
6351     something starting with __ and the normal name is an alias.  */
6352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6353 choke me
6354 #else
6355 char (*f) () = $ac_func;
6356 #endif
6357 #ifdef __cplusplus
6358 }
6359 #endif
6360
6361 int
6362 main ()
6363 {
6364 return f != $ac_func;
6365   ;
6366   return 0;
6367 }
6368 _ACEOF
6369 rm -f conftest.$ac_objext conftest$ac_exeext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6371   (eval $ac_link) 2>&5
6372   ac_status=$?
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); } &&
6375          { ac_try='test -s conftest$ac_exeext'
6376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377   (eval $ac_try) 2>&5
6378   ac_status=$?
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); }; }; then
6381   eval "$as_ac_var=yes"
6382 else
6383   echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386 eval "$as_ac_var=no"
6387 fi
6388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6389 fi
6390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6392 if test `eval echo '${'$as_ac_var'}'` = yes; then
6393   cat >>confdefs.h <<_ACEOF
6394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6395 _ACEOF
6396
6397 fi
6398 done
6399
6400
6401
6402 for ac_header in varargs.h
6403 do
6404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6406   echo "$as_me:$LINENO: checking for $ac_header" >&5
6407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6409   echo $ECHO_N "(cached) $ECHO_C" >&6
6410 fi
6411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6413 else
6414   # Is the header compilable?
6415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6417 cat >conftest.$ac_ext <<_ACEOF
6418 #line $LINENO "configure"
6419 /* confdefs.h.  */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h.  */
6424 $ac_includes_default
6425 #include <$ac_header>
6426 _ACEOF
6427 rm -f conftest.$ac_objext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429   (eval $ac_compile) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); } &&
6433          { ac_try='test -s conftest.$ac_objext'
6434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435   (eval $ac_try) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); }; }; then
6439   ac_header_compiler=yes
6440 else
6441   echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6443
6444 ac_header_compiler=no
6445 fi
6446 rm -f conftest.$ac_objext conftest.$ac_ext
6447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6448 echo "${ECHO_T}$ac_header_compiler" >&6
6449
6450 # Is the header present?
6451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6453 cat >conftest.$ac_ext <<_ACEOF
6454 #line $LINENO "configure"
6455 /* confdefs.h.  */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h.  */
6460 #include <$ac_header>
6461 _ACEOF
6462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6463   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6464   ac_status=$?
6465   grep -v '^ *+' conftest.er1 >conftest.err
6466   rm -f conftest.er1
6467   cat conftest.err >&5
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); } >/dev/null; then
6470   if test -s conftest.err; then
6471     ac_cpp_err=$ac_c_preproc_warn_flag
6472   else
6473     ac_cpp_err=
6474   fi
6475 else
6476   ac_cpp_err=yes
6477 fi
6478 if test -z "$ac_cpp_err"; then
6479   ac_header_preproc=yes
6480 else
6481   echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6483
6484   ac_header_preproc=no
6485 fi
6486 rm -f conftest.err conftest.$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6488 echo "${ECHO_T}$ac_header_preproc" >&6
6489
6490 # So?  What about this header?
6491 case $ac_header_compiler:$ac_header_preproc in
6492   yes:no )
6493     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6497     (
6498       cat <<\_ASBOX
6499 ## ------------------------------------ ##
6500 ## Report this to bug-autoconf@gnu.org. ##
6501 ## ------------------------------------ ##
6502 _ASBOX
6503     ) |
6504       sed "s/^/$as_me: WARNING:     /" >&2
6505     ;;
6506   no:yes )
6507     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6509     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6513     (
6514       cat <<\_ASBOX
6515 ## ------------------------------------ ##
6516 ## Report this to bug-autoconf@gnu.org. ##
6517 ## ------------------------------------ ##
6518 _ASBOX
6519     ) |
6520       sed "s/^/$as_me: WARNING:     /" >&2
6521     ;;
6522 esac
6523 echo "$as_me:$LINENO: checking for $ac_header" >&5
6524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528   eval "$as_ac_Header=$ac_header_preproc"
6529 fi
6530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6532
6533 fi
6534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6535   cat >>confdefs.h <<_ACEOF
6536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6537 _ACEOF
6538
6539 fi
6540
6541 done
6542
6543
6544 # End of readline/conio stuff
6545 # -----------------------------------------------------------------------
6546
6547
6548 # ---------------------------------------------------
6549 # Check for GMP support/directory
6550 # ---------------------------------------------------
6551 #GMP_SRC=
6552 #local_gmp="no"
6553 #AC_ARG_WITH(gmp,
6554 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6555 #  [
6556 #     case "$with_gmp" in
6557 #     no) : ;;
6558 #     yes|*)
6559 #       if test "$with_gmp" != "yes"; then
6560 #         GMP_INC="-I$with_gmp"
6561 #         GMP_LIBS="-lgmp"
6562 #         GMP_LDFLAGS="-L$with_gmp"
6563 #       else
6564 #          with_gmp="/usr/include"
6565 #       fi
6566 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6567 #          [ AC_MSG_RESULT(yes)
6568 #            AC_DEFINE(HAVE_GMP)
6569 #            GMP_LIBS="-lgmp"
6570 #            got_gmp="yes"
6571 #          ],
6572 #          [ AC_MSG_ERROR([*** gmp library missing])
6573 #          ]
6574 #       )
6575 #       ;;
6576 #     esac
6577 #  ],[
6578 #    # check for standard gmp library
6579 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6580 #    [ AC_MSG_RESULT(yes)
6581 #      AC_DEFINE(HAVE_GMP)
6582 #      got_gmp="yes"
6583 #      GMP_INC=
6584 #      GMP_LIBS="-lgmp"
6585 #    ], [
6586 #      # Did not find standard library, so use our own
6587 #      AC_MSG_RESULT(yes)
6588 #      AC_DEFINE(HAVE_GMP)
6589 #      got_gmp="yes"
6590 #      local_gmp="yes"
6591 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6592 #      GMP_LIBS="-lgmp"
6593 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6594 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6595 #    ])
6596 #  ]
6597 #)
6598 #AC_SUBST(GMP_INC)
6599 #AC_SUBST(GMP_LIBS)
6600 #AC_SUBST(GMP_LDFLAGS)
6601 #AC_SUBST(GMP_SRC)
6602
6603 # End of GMP stuff
6604 # -----------------------------------------------------------------------
6605
6606
6607 # ---------------------------------------------------
6608 # Check for CWEB support/directory
6609 # ---------------------------------------------------
6610 #CWEB_SRC=
6611 #CWEB=/bin
6612 #local_cweb="no"
6613 #AC_ARG_WITH(cweb,
6614 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6615 #  [
6616 #     case "$with_cweb" in
6617 #     no) : ;;
6618 #     yes|*)
6619 #       if test "$with_cweb" != "yes"; then
6620 #         CWEB_INC="-I$with_cweb"
6621 #         CWEB_LIBS="-lcweb"
6622 #         CWEB_LDFLAGS="-L$with_cweb"
6623 #       else
6624 #          with_cweb="/usr/include"
6625 #       fi
6626 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6627 #          [ AC_MSG_RESULT(yes)
6628 #            AC_DEFINE(HAVE_CWEB)
6629 #            CWEB_LIBS="-lcweb"
6630 #            got_cweb="yes"
6631 #          ],
6632 #          [ AC_MSG_ERROR([*** cweb library missing])
6633 #          ]
6634 #       )
6635 #       ;;
6636 #     esac
6637 #  ],[
6638 #    # check for standard cweb library
6639 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6640 #    [ AC_MSG_RESULT(yes)
6641 #      AC_DEFINE(HAVE_CWEB)
6642 #      got_cweb="yes"
6643 #      CWEB_INC=
6644 #      CWEB_LIBS="-lcweb"
6645 #    ], [
6646 #      # Did not find starndard library, so use our own
6647 #      AC_MSG_RESULT(yes)
6648 #      AC_DEFINE(HAVE_CWEB)
6649 #      got_cweb="yes"
6650 #      local_cweb="yes"
6651 #      CWEB=${TOP_DIR}/depkgs/cweb
6652 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6653 #      CWEB_LIBS="-lcweb"
6654 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6655 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6656 #    ])
6657 #  ]
6658 #)
6659 #AC_SUBST(CWEB)
6660 #AC_SUBST(CWEB_INC)
6661 #AC_SUBST(CWEB_LIBS)
6662 #AC_SUBST(CWEB_LDFLAGS)
6663 #AC_SUBST(CWEB_SRC)
6664
6665 # End of CWEB stuff
6666 # -----------------------------------------------------------------------
6667
6668
6669
6670 # -----------------------------------------------------------
6671 # Check whether user wants TCP wrappers support (default off)
6672 # -----------------------------------------------------------
6673 TCPW_MSG="no"
6674
6675 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6676 if test "${with_tcp_wrappers+set}" = set; then
6677   withval="$with_tcp_wrappers"
6678
6679     if test "x$withval" != "xno" ; then
6680        saved_LIBS="$LIBS"
6681        LIBS="$saved_LIBS -lwrap"
6682        echo "$as_me:$LINENO: checking for libwrap" >&5
6683 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6684        cat >conftest.$ac_ext <<_ACEOF
6685 #line $LINENO "configure"
6686 /* confdefs.h.  */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h.  */
6691  #include <tcpd.h>
6692              int deny_severity = 0;
6693              int allow_severity = 0;
6694              struct request_info *req;
6695 int
6696 main ()
6697 {
6698  hosts_access(req);
6699   ;
6700   return 0;
6701 }
6702 _ACEOF
6703 rm -f conftest.$ac_objext conftest$ac_exeext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705   (eval $ac_link) 2>&5
6706   ac_status=$?
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); } &&
6709          { ac_try='test -s conftest$ac_exeext'
6710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711   (eval $ac_try) 2>&5
6712   ac_status=$?
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); }; }; then
6715
6716             echo "$as_me:$LINENO: result: yes" >&5
6717 echo "${ECHO_T}yes" >&6
6718             cat >>confdefs.h <<\_ACEOF
6719 #define HAVE_LIBWRAP 1
6720 _ACEOF
6721
6722             TCPW_MSG="yes"
6723
6724 else
6725   echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6727
6728
6729             LIBS="$saved_LIBS -lwrap -lnsl"
6730             cat >conftest.$ac_ext <<_ACEOF
6731 #line $LINENO "configure"
6732 /* confdefs.h.  */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h.  */
6737  #include <tcpd.h>
6738                  int deny_severity = 0;
6739                  int allow_severity = 0;
6740                  struct request_info *req;
6741 int
6742 main ()
6743 {
6744  hosts_access(req);
6745   ;
6746   return 0;
6747 }
6748 _ACEOF
6749 rm -f conftest.$ac_objext conftest$ac_exeext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6751   (eval $ac_link) 2>&5
6752   ac_status=$?
6753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754   (exit $ac_status); } &&
6755          { ac_try='test -s conftest$ac_exeext'
6756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757   (eval $ac_try) 2>&5
6758   ac_status=$?
6759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760   (exit $ac_status); }; }; then
6761
6762                  echo "$as_me:$LINENO: result: yes" >&5
6763 echo "${ECHO_T}yes" >&6
6764                  cat >>confdefs.h <<\_ACEOF
6765 #define HAVE_LIBWRAP 1
6766 _ACEOF
6767
6768                  TCPW_MSG="yes"
6769
6770 else
6771   echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6773
6774 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6775 echo "$as_me: error: *** libwrap missing" >&2;}
6776    { (exit 1); exit 1; }; }
6777
6778 fi
6779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6780
6781 fi
6782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6783     fi
6784
6785
6786 fi;
6787
6788 # ------------------------------------------
6789 # Where to place working dir
6790 # ------------------------------------------
6791 working_dir=`eval echo ${prefix}/var/bacula/working`
6792
6793 # Check whether --with-working-dir or --without-working-dir was given.
6794 if test "${with_working_dir+set}" = set; then
6795   withval="$with_working_dir"
6796
6797        if test "x$withval" != "xno" ; then
6798               working_dir=$withval
6799        fi
6800
6801
6802 fi;
6803
6804
6805
6806
6807 # ------------------------------------------
6808 # Where to place scriptdir (script files)
6809 # ------------------------------------------
6810 scriptdir=`eval echo ${sysconfdir}`
6811
6812 # Check whether --with-scriptdir or --without-scriptdir was given.
6813 if test "${with_scriptdir+set}" = set; then
6814   withval="$with_scriptdir"
6815
6816        if test "x$withval" != "xno" ; then
6817               scriptdir=$withval
6818        fi
6819
6820
6821 fi;
6822
6823
6824
6825
6826 # ------------------------------------------
6827 # Where to send dump email
6828 # ------------------------------------------
6829 dump_email=root@localhost
6830
6831 # Check whether --with-dump-email or --without-dump-email was given.
6832 if test "${with_dump_email+set}" = set; then
6833   withval="$with_dump_email"
6834
6835        if test "x$withval" != "xno" ; then
6836               dump_email=$withval
6837        fi
6838
6839
6840 fi;
6841
6842
6843
6844 # ------------------------------------------
6845 # Where to send job email
6846 # ------------------------------------------
6847 job_email=root@localhost
6848
6849 # Check whether --with-job-email or --without-job-email was given.
6850 if test "${with_job_email+set}" = set; then
6851   withval="$with_job_email"
6852
6853        if test "x$withval" != "xno" ; then
6854               job_email=$withval
6855        fi
6856
6857
6858 fi;
6859
6860
6861
6862 # ------------------------------------------
6863 # Where to find smtp host
6864 # ------------------------------------------
6865 smtp_host=localhost
6866
6867 # Check whether --with-smtp_host or --without-smtp_host was given.
6868 if test "${with_smtp_host+set}" = set; then
6869   withval="$with_smtp_host"
6870
6871        if test "x$withval" != "xno" ; then
6872               smtp_host=$withval
6873        fi
6874
6875
6876 fi;
6877
6878
6879
6880
6881 # ------------------------------------
6882 # Where to place pid files
6883 # ------------------------------------
6884 piddir=/var/run
6885
6886 # Check whether --with-pid-dir or --without-pid-dir was given.
6887 if test "${with_pid_dir+set}" = set; then
6888   withval="$with_pid_dir"
6889
6890         if test "x$withval" != "xno" ; then
6891             piddir=$withval
6892         fi
6893
6894
6895 fi;
6896
6897 cat >>confdefs.h <<_ACEOF
6898 #define _PATH_BACULA_PIDDIR "$piddir"
6899 _ACEOF
6900
6901
6902
6903
6904 # ------------------------------------
6905 # Where to place subsys "lock file"
6906 # ------------------------------------
6907 subsysdir=/var/run/subsys
6908
6909 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6910 if test "${with_subsys_dir+set}" = set; then
6911   withval="$with_subsys_dir"
6912
6913         if test "x$withval" != "xno" ; then
6914             subsysdir=$withval
6915         fi
6916
6917
6918 fi;
6919
6920
6921
6922
6923
6924 # ------------------------------------
6925 # Where to start assigning ports
6926 # ------------------------------------
6927 baseport=9101
6928
6929 # Check whether --with-baseport or --without-baseport was given.
6930 if test "${with_baseport+set}" = set; then
6931   withval="$with_baseport"
6932
6933         if test "x$withval" != "xno" ; then
6934              baseport=$withval
6935         fi
6936
6937
6938 fi;
6939
6940
6941 dir_port=`expr $baseport`
6942 fd_port=`expr $baseport + 1`
6943 sd_port=`expr $fd_port + 1`
6944
6945
6946
6947
6948
6949
6950 # ------------------------------------------
6951 # Generate passwords
6952 # ------------------------------------------
6953 dir_password=
6954
6955 # Check whether --with-dir-password or --without-dir-password was given.
6956 if test "${with_dir_password+set}" = set; then
6957   withval="$with_dir_password"
6958
6959        if test "x$withval" != "xno" ; then
6960            dir_password=$withval
6961        fi
6962
6963
6964 fi;
6965
6966 if test "x$dir_password" = "x" ; then
6967    if test "x$OPENSSL" = "xnone" ; then
6968 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6969       key=`autoconf/randpass 33`
6970    else
6971       key=`openssl rand -base64 33`
6972    fi
6973    dir_password=$key
6974 fi
6975
6976 fd_password=
6977
6978 # Check whether --with-fd-password or --without-fd-password was given.
6979 if test "${with_fd_password+set}" = set; then
6980   withval="$with_fd_password"
6981
6982        if test "x$withval" != "xno" ; then
6983            fd_password=$withval
6984        fi
6985
6986
6987 fi;
6988
6989 if test "x$fd_password" = "x" ; then
6990    if test "x$OPENSSL" = "xnone" ; then
6991 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6992       key=`autoconf/randpass 37`
6993    else
6994       key=`openssl rand -base64 33`
6995    fi
6996    fd_password=$key
6997 fi
6998
6999 sd_password=
7000
7001 # Check whether --with-sd-password or --without-sd-password was given.
7002 if test "${with_sd_password+set}" = set; then
7003   withval="$with_sd_password"
7004
7005        if test "x$withval" != "xno" ; then
7006            sd_password=$withval
7007        fi
7008
7009
7010 fi;
7011
7012 if test "x$sd_password" = "x" ; then
7013    if test "x$OPENSSL" = "xnone" ; then
7014 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7015       key=`autoconf/randpass 41`
7016    else
7017       key=`openssl rand -base64 33`
7018    fi
7019    sd_password=$key
7020 fi
7021
7022
7023
7024
7025
7026
7027
7028 #
7029 # Handle users and groups for each daemon
7030 #
7031 dir_user=
7032
7033 # Check whether --with-dir_user or --without-dir_user was given.
7034 if test "${with_dir_user+set}" = set; then
7035   withval="$with_dir_user"
7036
7037         if test "x$withval" != "x" ; then
7038              dir_user=$withval
7039         fi
7040
7041
7042 fi;
7043
7044 dir_group=
7045
7046 # Check whether --with-dir_group or --without-dir_group was given.
7047 if test "${with_dir_group+set}" = set; then
7048   withval="$with_dir_group"
7049
7050         if test "x$withval" != "x" ; then
7051              dir_group=$withval
7052         fi
7053
7054
7055 fi;
7056
7057 sd_user=
7058
7059 # Check whether --with-sd_user or --without-sd_user was given.
7060 if test "${with_sd_user+set}" = set; then
7061   withval="$with_sd_user"
7062
7063         if test "x$withval" != "x" ; then
7064              sd_user=$withval
7065         fi
7066
7067
7068 fi;
7069
7070 sd_group=
7071
7072 # Check whether --with-sd_group or --without-sd_group was given.
7073 if test "${with_sd_group+set}" = set; then
7074   withval="$with_sd_group"
7075
7076         if test "x$withval" != "x" ; then
7077              sd_group=$withval
7078         fi
7079
7080
7081 fi;
7082
7083 fd_user=
7084
7085 # Check whether --with-fd_user or --without-fd_user was given.
7086 if test "${with_fd_user+set}" = set; then
7087   withval="$with_fd_user"
7088
7089         if test "x$withval" != "x" ; then
7090              fd_user=$withval
7091         fi
7092
7093
7094 fi;
7095
7096 fd_group=
7097
7098 # Check whether --with-fd_group or --without-fd_group was given.
7099 if test "${with_fd_group+set}" = set; then
7100   withval="$with_fd_group"
7101
7102         if test "x$withval" != "x" ; then
7103              fd_group=$withval
7104         fi
7105
7106
7107 fi;
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119 #
7120 # allow setting default executable permissions
7121 #
7122 SBINPERM=0754
7123
7124 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7125 if test "${with_sbin_perm+set}" = set; then
7126   withval="$with_sbin_perm"
7127
7128         if test "x$withval" != "x" ; then
7129             SBINPERM=$withval
7130         fi
7131
7132
7133 fi;
7134
7135
7136
7137 # ------------------------------------------------
7138 # Bacula check for various SQL database engines
7139 # ------------------------------------------------
7140
7141 db_found=no
7142 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7143 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7144
7145 # Check whether --with-postgresql or --without-postgresql was given.
7146 if test "${with_postgresql+set}" = set; then
7147   withval="$with_postgresql"
7148
7149   if test "$withval" != "no"; then
7150       if test "$db_found" = "yes"; then
7151           echo "$as_me:$LINENO: result: error" >&5
7152 echo "${ECHO_T}error" >&6
7153           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7154 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7155    { (exit 1); exit 1; }; };
7156       fi
7157       if test "$withval" = "yes"; then
7158           if test -f /usr/local/include/libpq-fe.h; then
7159               POSTGRESQL_INCDIR=/usr/local/include
7160               POSTGRESQL_LIBDIR=/usr/local/lib
7161               POSTGRESQL_BINDIR=/usr/local/bin
7162           elif test -f /usr/include/libpq-fe.h; then
7163               POSTGRESQL_INCDIR=/usr/include
7164               POSTGRESQL_LIBDIR=/usr/lib
7165               POSTGRESQL_BINDIR=/usr/bin
7166           elif test -f /usr/include/pgsql/libpq-fe.h; then
7167               POSTGRESQL_INCDIR=/usr/include/pgsql
7168               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7169               POSTGRESQL_BINDIR=/usr/bin
7170           elif test -f /usr/include/postgresql/libpq-fe.h; then
7171               POSTGRESQL_INCDIR=/usr/include/postgresql
7172               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7173               POSTGRESQL_BINDIR=/usr/bin
7174           else
7175               echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6
7177               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7178 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7179    { (exit 1); exit 1; }; }
7180           fi
7181       elif test -f $withval/include/libpq-fe.h; then
7182           POSTGRESQL_INCDIR=$withval/include
7183           POSTGRESQL_LIBDIR=$withval/lib
7184           POSTGRESQL_BINDIR=$withval/bin
7185       else
7186           echo "$as_me:$LINENO: result: no" >&5
7187 echo "${ECHO_T}no" >&6
7188           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7189 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7190    { (exit 1); exit 1; }; }
7191       fi
7192       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7193       echo "$as_me:$LINENO: checking for crypt" >&5
7194 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7195 if test "${ac_cv_func_crypt+set}" = set; then
7196   echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198   cat >conftest.$ac_ext <<_ACEOF
7199 #line $LINENO "configure"
7200 /* confdefs.h.  */
7201 _ACEOF
7202 cat confdefs.h >>conftest.$ac_ext
7203 cat >>conftest.$ac_ext <<_ACEOF
7204 /* end confdefs.h.  */
7205 /* System header to define __stub macros and hopefully few prototypes,
7206     which can conflict with char crypt (); below.
7207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7208     <limits.h> exists even on freestanding compilers.  */
7209 #ifdef __STDC__
7210 # include <limits.h>
7211 #else
7212 # include <assert.h>
7213 #endif
7214 /* Override any gcc2 internal prototype to avoid an error.  */
7215 #ifdef __cplusplus
7216 extern "C"
7217 {
7218 #endif
7219 /* We use char because int might match the return type of a gcc2
7220    builtin and then its argument prototype would still apply.  */
7221 char crypt ();
7222 /* The GNU C library defines this for functions which it implements
7223     to always fail with ENOSYS.  Some functions are actually named
7224     something starting with __ and the normal name is an alias.  */
7225 #if defined (__stub_crypt) || defined (__stub___crypt)
7226 choke me
7227 #else
7228 char (*f) () = crypt;
7229 #endif
7230 #ifdef __cplusplus
7231 }
7232 #endif
7233
7234 int
7235 main ()
7236 {
7237 return f != crypt;
7238   ;
7239   return 0;
7240 }
7241 _ACEOF
7242 rm -f conftest.$ac_objext conftest$ac_exeext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244   (eval $ac_link) 2>&5
7245   ac_status=$?
7246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247   (exit $ac_status); } &&
7248          { ac_try='test -s conftest$ac_exeext'
7249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250   (eval $ac_try) 2>&5
7251   ac_status=$?
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); }; }; then
7254   ac_cv_func_crypt=yes
7255 else
7256   echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7258
7259 ac_cv_func_crypt=no
7260 fi
7261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7262 fi
7263 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7264 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7265 if test $ac_cv_func_crypt = yes; then
7266   :
7267 else
7268   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7269 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7270 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7271   echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273   ac_check_lib_save_LIBS=$LIBS
7274 LIBS="-lcrypt  $LIBS"
7275 cat >conftest.$ac_ext <<_ACEOF
7276 #line $LINENO "configure"
7277 /* confdefs.h.  */
7278 _ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h.  */
7282
7283 /* Override any gcc2 internal prototype to avoid an error.  */
7284 #ifdef __cplusplus
7285 extern "C"
7286 #endif
7287 /* We use char because int might match the return type of a gcc2
7288    builtin and then its argument prototype would still apply.  */
7289 char crypt ();
7290 int
7291 main ()
7292 {
7293 crypt ();
7294   ;
7295   return 0;
7296 }
7297 _ACEOF
7298 rm -f conftest.$ac_objext conftest$ac_exeext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7300   (eval $ac_link) 2>&5
7301   ac_status=$?
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); } &&
7304          { ac_try='test -s conftest$ac_exeext'
7305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306   (eval $ac_try) 2>&5
7307   ac_status=$?
7308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309   (exit $ac_status); }; }; then
7310   ac_cv_lib_crypt_crypt=yes
7311 else
7312   echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315 ac_cv_lib_crypt_crypt=no
7316 fi
7317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7318 LIBS=$ac_check_lib_save_LIBS
7319 fi
7320 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7321 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7322 if test $ac_cv_lib_crypt_crypt = yes; then
7323   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7324 fi
7325
7326 fi
7327
7328       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7329       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7330       SQL_BINDIR=$POSTGRESQL_BINDIR
7331       cat >>confdefs.h <<\_ACEOF
7332 #define HAVE_POSTGRESQL 1
7333 _ACEOF
7334
7335       echo "$as_me:$LINENO: result: yes" >&5
7336 echo "${ECHO_T}yes" >&6
7337       db_found=yes
7338       support_postgresql=yes
7339       db_name=PostgreSQL
7340       DB_NAME=postgresql
7341   else
7342       echo "$as_me:$LINENO: result: no" >&5
7343 echo "${ECHO_T}no" >&6
7344   fi
7345
7346 else
7347
7348   echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6
7350
7351 fi;
7352
7353
7354
7355
7356
7357
7358
7359 db_found=no
7360 echo "$as_me:$LINENO: checking for MySQL support" >&5
7361 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7362
7363 # Check whether --with-mysql or --without-mysql was given.
7364 if test "${with_mysql+set}" = set; then
7365   withval="$with_mysql"
7366
7367   if test "$withval" != "no"; then
7368         if test "$withval" = "yes"; then
7369                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7370                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7371                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7372                         MYSQL_BINDIR=/usr/local/mysql/bin
7373                 elif test -f /usr/include/mysql/mysql.h; then
7374                         MYSQL_INCDIR=/usr/include/mysql
7375                         MYSQL_LIBDIR=/usr/lib/mysql
7376                         MYSQL_BINDIR=/usr/bin
7377                 elif test -f /usr/include/mysql.h; then
7378                         MYSQL_INCDIR=/usr/include
7379                         MYSQL_LIBDIR=/usr/lib
7380                         MYSQL_BINDIR=/usr/bin
7381                 elif test -f /usr/local/include/mysql/mysql.h; then
7382                         MYSQL_INCDIR=/usr/local/include/mysql
7383                         MYSQL_LIBDIR=/usr/local/lib/mysql
7384                         MYSQL_BINDIR=/usr/local/bin
7385                 elif test -f /usr/local/include/mysql.h; then
7386                         MYSQL_INCDIR=/usr/local/include
7387                         MYSQL_LIBDIR=/usr/local/lib
7388                         MYSQL_BINDIR=/usr/local/bin
7389                 else
7390                    echo "$as_me:$LINENO: result: no" >&5
7391 echo "${ECHO_T}no" >&6
7392                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7393 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7394    { (exit 1); exit 1; }; }
7395                 fi
7396         else
7397                 if test -f $withval/include/mysql/mysql.h; then
7398                         MYSQL_INCDIR=$withval/include/mysql
7399                         MYSQL_LIBDIR=$withval/lib/mysql
7400                         MYSQL_BINDIR=$withval/bin
7401                 elif test -f $withval/include/mysql.h; then
7402                         MYSQL_INCDIR=$withval/include
7403                         MYSQL_LIBDIR=$withval/lib
7404                         MYSQL_BINDIR=$withval/bin
7405                 else
7406                    echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6
7408                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7409 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7410    { (exit 1); exit 1; }; }
7411                 fi
7412         fi
7413     SQL_INCLUDE=-I$MYSQL_INCDIR
7414     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7415        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7416        cat >>confdefs.h <<\_ACEOF
7417 #define HAVE_THREAD_SAFE_MYSQL 1
7418 _ACEOF
7419
7420     else
7421        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7422     fi
7423     SQL_BINDIR=$MYSQL_BINDIR
7424
7425     cat >>confdefs.h <<\_ACEOF
7426 #define HAVE_MYSQL 1
7427 _ACEOF
7428
7429     echo "$as_me:$LINENO: result: yes" >&5
7430 echo "${ECHO_T}yes" >&6
7431     db_found=yes
7432     support_mysql=yes
7433     db_name=MySQL
7434     DB_NAME=mysql
7435
7436   else
7437         echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7439   fi
7440
7441 else
7442
7443     echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6
7445
7446 fi;
7447
7448
7449 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7450 if test "${with_embedded_mysql+set}" = set; then
7451   withval="$with_embedded_mysql"
7452
7453   if test "$withval" != "no"; then
7454         if test "$withval" = "yes"; then
7455                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7456                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7457                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7458                         MYSQL_BINDIR=/usr/local/mysql/bin
7459                 elif test -f /usr/include/mysql/mysql.h; then
7460                         MYSQL_INCDIR=/usr/include/mysql
7461                         MYSQL_LIBDIR=/usr/lib/mysql
7462                         MYSQL_BINDIR=/usr/bin
7463                 elif test -f /usr/include/mysql.h; then
7464                         MYSQL_INCDIR=/usr/include
7465                         MYSQL_LIBDIR=/usr/lib
7466                         MYSQL_BINDIR=/usr/bin
7467                 elif test -f /usr/local/include/mysql/mysql.h; then
7468                         MYSQL_INCDIR=/usr/local/include/mysql
7469                         MYSQL_LIBDIR=/usr/local/lib/mysql
7470                         MYSQL_BINDIR=/usr/local/bin
7471                 elif test -f /usr/local/include/mysql.h; then
7472                         MYSQL_INCDIR=/usr/local/include
7473                         MYSQL_LIBDIR=/usr/local/lib
7474                         MYSQL_BINDIR=/usr/local/bin
7475                 else
7476                    echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6
7478                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7479 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7480    { (exit 1); exit 1; }; }
7481                 fi
7482         else
7483                 if test -f $withval/include/mysql/mysql.h; then
7484                         MYSQL_INCDIR=$withval/include/mysql
7485                         MYSQL_LIBDIR=$withval/lib/mysql
7486                         MYSQL_BINDIR=$withval/bin
7487                 elif test -f $withval/include/mysql.h; then
7488                         MYSQL_INCDIR=$withval/include
7489                         MYSQL_LIBDIR=$withval/lib
7490                         MYSQL_BINDIR=$withval/bin
7491                 else
7492                    echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6
7494                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7495 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7496    { (exit 1); exit 1; }; }
7497                 fi
7498         fi
7499     SQL_INCLUDE=-I$MYSQL_INCDIR
7500     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7501     SQL_BINDIR=$MYSQL_BINDIR
7502
7503     cat >>confdefs.h <<\_ACEOF
7504 #define HAVE_MYSQL 1
7505 _ACEOF
7506
7507     cat >>confdefs.h <<\_ACEOF
7508 #define HAVE_EMBEDDED_MYSQL 1
7509 _ACEOF
7510
7511     echo "$as_me:$LINENO: result: yes" >&5
7512 echo "${ECHO_T}yes" >&6
7513     db_found=yes
7514     support_mysql=yes
7515     db_name=MySQL
7516     DB_NAME=mysql
7517
7518   else
7519         echo "$as_me:$LINENO: result: no" >&5
7520 echo "${ECHO_T}no" >&6
7521   fi
7522
7523 else
7524
7525   echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6
7527
7528 fi;
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538 db_found=no
7539 echo "$as_me:$LINENO: checking for SQLite support" >&5
7540 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7541
7542 # Check whether --with-sqlite or --without-sqlite was given.
7543 if test "${with_sqlite+set}" = set; then
7544   withval="$with_sqlite"
7545
7546   if test "$withval" != "no"; then
7547         if test "$withval" = "yes"; then
7548                 if test -f /usr/local/include/sqlite.h; then
7549                         SQLITE_INCDIR=/usr/local/include
7550                         SQLITE_LIBDIR=/usr/local/lib
7551                         SQLITE_BINDIR=/usr/local/bin
7552                 elif test -f /usr/include/sqlite.h; then
7553                         SQLITE_INCDIR=/usr/include
7554                         SQLITE_LIBDIR=/usr/lib
7555                         SQLITE_BINDIR=/usr/bin
7556                 else
7557                    echo "$as_me:$LINENO: result: no" >&5
7558 echo "${ECHO_T}no" >&6
7559                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7560 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7561    { (exit 1); exit 1; }; }
7562                 fi
7563         else
7564                 if test -f $withval/sqlite.h; then
7565                         SQLITE_INCDIR=$withval
7566                         SQLITE_LIBDIR=$withval
7567                         SQLITE_BINDIR=$withval
7568                 else
7569                    echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6
7571                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7572 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7573    { (exit 1); exit 1; }; }
7574                 fi
7575         fi
7576     SQL_INCLUDE=-I$SQLITE_INCDIR
7577     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7578     SQL_BINDIR=$SQLITE_BINDIR
7579
7580     cat >>confdefs.h <<\_ACEOF
7581 #define HAVE_SQLITE 1
7582 _ACEOF
7583
7584     echo "$as_me:$LINENO: result: yes" >&5
7585 echo "${ECHO_T}yes" >&6
7586     db_found=yes
7587     support_sqlite=yes
7588     db_name=SQLite
7589     DB_NAME=sqlite
7590
7591   else
7592         echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6
7594   fi
7595
7596 else
7597
7598   echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6
7600
7601 fi;
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611 cat >>confdefs.h <<\_ACEOF
7612 #define PROTOTYPES 1
7613 _ACEOF
7614
7615
7616 if test -z "$CFLAGS"; then
7617     if test -z "$CCOPTS"; then
7618         CCOPTS='-g -O2'
7619     fi
7620     CFLAGS="$CCOPTS"
7621 fi
7622
7623
7624
7625
7626 largefile_support="no"
7627
7628    # Check whether --enable-largefile or --disable-largefile was given.
7629 if test "${enable_largefile+set}" = set; then
7630   enableval="$enable_largefile"
7631
7632 fi;
7633    if test "$enable_largefile" != no; then
7634      if test -n "$ac_tool_prefix"; then
7635   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7636 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7637 echo "$as_me:$LINENO: checking for $ac_word" >&5
7638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7639 if test "${ac_cv_prog_GETCONF+set}" = set; then
7640   echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642   if test -n "$GETCONF"; then
7643   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650   for ac_exec_ext in '' $ac_executable_extensions; do
7651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657 done
7658
7659 fi
7660 fi
7661 GETCONF=$ac_cv_prog_GETCONF
7662 if test -n "$GETCONF"; then
7663   echo "$as_me:$LINENO: result: $GETCONF" >&5
7664 echo "${ECHO_T}$GETCONF" >&6
7665 else
7666   echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6
7668 fi
7669
7670 fi
7671 if test -z "$ac_cv_prog_GETCONF"; then
7672   ac_ct_GETCONF=$GETCONF
7673   # Extract the first word of "getconf", so it can be a program name with args.
7674 set dummy getconf; ac_word=$2
7675 echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7677 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7678   echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680   if test -n "$ac_ct_GETCONF"; then
7681   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7682 else
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686   IFS=$as_save_IFS
7687   test -z "$as_dir" && as_dir=.
7688   for ac_exec_ext in '' $ac_executable_extensions; do
7689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690     ac_cv_prog_ac_ct_GETCONF="getconf"
7691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692     break 2
7693   fi
7694 done
7695 done
7696
7697 fi
7698 fi
7699 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7700 if test -n "$ac_ct_GETCONF"; then
7701   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7702 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7703 else
7704   echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6
7706 fi
7707
7708   GETCONF=$ac_ct_GETCONF
7709 else
7710   GETCONF="$ac_cv_prog_GETCONF"
7711 fi
7712
7713      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7714 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7715 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7719         ac_cv_sys_largefile_CFLAGS=no
7720         case "$host_os" in
7721            # IRIX 6.2 and later require cc -n32.
7722            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7723              if test "$GCC" != yes; then
7724                ac_cv_sys_largefile_CFLAGS=-n32
7725              fi
7726              ac_save_CC="$CC"
7727              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7728              cat >conftest.$ac_ext <<_ACEOF
7729 #line $LINENO "configure"
7730 /* confdefs.h.  */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h.  */
7735
7736 int
7737 main ()
7738 {
7739
7740   ;
7741   return 0;
7742 }
7743 _ACEOF
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746   (eval $ac_link) 2>&5
7747   ac_status=$?
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); } &&
7750          { ac_try='test -s conftest$ac_exeext'
7751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752   (eval $ac_try) 2>&5
7753   ac_status=$?
7754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755   (exit $ac_status); }; }; then
7756   :
7757 else
7758   echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7760
7761 ac_cv_sys_largefile_CFLAGS=no
7762 fi
7763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7764              CC="$ac_save_CC"
7765            esac
7766       }
7767 fi
7768 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7769 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7770      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7771 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7772 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7773   echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7776         ac_cv_sys_largefile_LDFLAGS=no
7777
7778       }
7779 fi
7780 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7781 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7782      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7783 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7784 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7785   echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7788         ac_cv_sys_largefile_LIBS=no
7789
7790       }
7791 fi
7792 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7793 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7794
7795      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7796        case "$ac_flag" in
7797        no) ;;
7798        -D_FILE_OFFSET_BITS=*) ;;
7799        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7800        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7801        -D?* | -I?*)
7802          case "$ac_flag" in
7803    no) ;;
7804    ?*)
7805      case "$CPPFLAGS" in
7806      '') CPPFLAGS="$ac_flag" ;;
7807      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7808      esac ;;
7809    esac ;;
7810        *)
7811          case "$ac_flag" in
7812    no) ;;
7813    ?*)
7814      case "$CFLAGS" in
7815      '') CFLAGS="$ac_flag" ;;
7816      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7817      esac ;;
7818    esac ;;
7819        esac
7820      done
7821      case "$ac_cv_sys_largefile_LDFLAGS" in
7822    no) ;;
7823    ?*)
7824      case "$LDFLAGS" in
7825      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7826      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7827      esac ;;
7828    esac
7829      case "$ac_cv_sys_largefile_LIBS" in
7830    no) ;;
7831    ?*)
7832      case "$LIBS" in
7833      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7834      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7835      esac ;;
7836    esac
7837      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7838 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7839 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7840   echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842   ac_cv_sys_file_offset_bits=no
7843       case "$host_os" in
7844         # HP-UX 10.20 and later
7845         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7846           ac_cv_sys_file_offset_bits=64 ;;
7847         esac
7848       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7849         case "$ac_flag" in
7850         -D_FILE_OFFSET_BITS)
7851           ac_cv_sys_file_offset_bits=1 ;;
7852         -D_FILE_OFFSET_BITS=*)
7853           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7854         esac
7855       done
7856
7857 fi
7858 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7859 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7860    if test "$ac_cv_sys_file_offset_bits" != no; then
7861
7862 cat >>confdefs.h <<_ACEOF
7863 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7864 _ACEOF
7865
7866    fi
7867      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7868 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7869 if test "${ac_cv_sys_largefile_source+set}" = set; then
7870   echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872   ac_cv_sys_largefile_source=no
7873       case "$host_os" in
7874         # HP-UX 10.20 and later
7875         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7876           ac_cv_sys_largefile_source=1 ;;
7877         esac
7878       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7879         case "$ac_flag" in
7880         -D_LARGEFILE_SOURCE)
7881           ac_cv_sys_largefile_source=1 ;;
7882         -D_LARGEFILE_SOURCE=*)
7883           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7884         esac
7885       done
7886
7887 fi
7888 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7889 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7890    if test "$ac_cv_sys_largefile_source" != no; then
7891
7892 cat >>confdefs.h <<_ACEOF
7893 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7894 _ACEOF
7895
7896    fi
7897      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7898 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7899 if test "${ac_cv_sys_large_files+set}" = set; then
7900   echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902   ac_cv_sys_large_files=no
7903       case "$host_os" in
7904         # AIX 4.2 and later
7905         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7906           ac_cv_sys_large_files=1 ;;
7907         esac
7908       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7909         case "$ac_flag" in
7910         -D_LARGE_FILES)
7911           ac_cv_sys_large_files=1 ;;
7912         -D_LARGE_FILES=*)
7913           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7914         esac
7915       done
7916
7917 fi
7918 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7919 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7920    if test "$ac_cv_sys_large_files" != no; then
7921
7922 cat >>confdefs.h <<_ACEOF
7923 #define _LARGE_FILES $ac_cv_sys_large_files
7924 _ACEOF
7925
7926    fi
7927    fi
7928
7929
7930
7931 echo "$as_me:$LINENO: checking for X" >&5
7932 echo $ECHO_N "checking for X... $ECHO_C" >&6
7933
7934
7935 # Check whether --with-x or --without-x was given.
7936 if test "${with_x+set}" = set; then
7937   withval="$with_x"
7938
7939 fi;
7940 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7941 if test "x$with_x" = xno; then
7942   # The user explicitly disabled X.
7943   have_x=disabled
7944 else
7945   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7946     # Both variables are already set.
7947     have_x=yes
7948   else
7949     if test "${ac_cv_have_x+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952   # One or both of the vars are not set, and there is no cached value.
7953 ac_x_includes=no ac_x_libraries=no
7954 rm -fr conftest.dir
7955 if mkdir conftest.dir; then
7956   cd conftest.dir
7957   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7958   cat >Imakefile <<'_ACEOF'
7959 acfindx:
7960         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7961 _ACEOF
7962   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7963     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7964     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7965     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7966     for ac_extension in a so sl; do
7967       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7968          test -f $ac_im_libdir/libX11.$ac_extension; then
7969         ac_im_usrlibdir=$ac_im_libdir; break
7970       fi
7971     done
7972     # Screen out bogus values from the imake configuration.  They are
7973     # bogus both because they are the default anyway, and because
7974     # using them would break gcc on systems where it needs fixed includes.
7975     case $ac_im_incroot in
7976         /usr/include) ;;
7977         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7978     esac
7979     case $ac_im_usrlibdir in
7980         /usr/lib | /lib) ;;
7981         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7982     esac
7983   fi
7984   cd ..
7985   rm -fr conftest.dir
7986 fi
7987
7988 # Standard set of common directories for X headers.
7989 # Check X11 before X11Rn because it is often a symlink to the current release.
7990 ac_x_header_dirs='
7991 /usr/X11/include
7992 /usr/X11R6/include
7993 /usr/X11R5/include
7994 /usr/X11R4/include
7995
7996 /usr/include/X11
7997 /usr/include/X11R6
7998 /usr/include/X11R5
7999 /usr/include/X11R4
8000
8001 /usr/local/X11/include
8002 /usr/local/X11R6/include
8003 /usr/local/X11R5/include
8004 /usr/local/X11R4/include
8005
8006 /usr/local/include/X11
8007 /usr/local/include/X11R6
8008 /usr/local/include/X11R5
8009 /usr/local/include/X11R4
8010
8011 /usr/X386/include
8012 /usr/x386/include
8013 /usr/XFree86/include/X11
8014
8015 /usr/include
8016 /usr/local/include
8017 /usr/unsupported/include
8018 /usr/athena/include
8019 /usr/local/x11r5/include
8020 /usr/lpp/Xamples/include
8021
8022 /usr/openwin/include
8023 /usr/openwin/share/include'
8024
8025 if test "$ac_x_includes" = no; then
8026   # Guess where to find include files, by looking for Intrinsic.h.
8027   # First, try using that file with no special directory specified.
8028   cat >conftest.$ac_ext <<_ACEOF
8029 #line $LINENO "configure"
8030 /* confdefs.h.  */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h.  */
8035 #include <X11/Intrinsic.h>
8036 _ACEOF
8037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8039   ac_status=$?
8040   grep -v '^ *+' conftest.er1 >conftest.err
8041   rm -f conftest.er1
8042   cat conftest.err >&5
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); } >/dev/null; then
8045   if test -s conftest.err; then
8046     ac_cpp_err=$ac_c_preproc_warn_flag
8047   else
8048     ac_cpp_err=
8049   fi
8050 else
8051   ac_cpp_err=yes
8052 fi
8053 if test -z "$ac_cpp_err"; then
8054   # We can compile using X headers with no special include directory.
8055 ac_x_includes=
8056 else
8057   echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060   for ac_dir in $ac_x_header_dirs; do
8061   if test -r "$ac_dir/X11/Intrinsic.h"; then
8062     ac_x_includes=$ac_dir
8063     break
8064   fi
8065 done
8066 fi
8067 rm -f conftest.err conftest.$ac_ext
8068 fi # $ac_x_includes = no
8069
8070 if test "$ac_x_libraries" = no; then
8071   # Check for the libraries.
8072   # See if we find them without any special options.
8073   # Don't add to $LIBS permanently.
8074   ac_save_LIBS=$LIBS
8075   LIBS="-lXt $LIBS"
8076   cat >conftest.$ac_ext <<_ACEOF
8077 #line $LINENO "configure"
8078 /* confdefs.h.  */
8079 _ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h.  */
8083 #include <X11/Intrinsic.h>
8084 int
8085 main ()
8086 {
8087 XtMalloc (0)
8088   ;
8089   return 0;
8090 }
8091 _ACEOF
8092 rm -f conftest.$ac_objext conftest$ac_exeext
8093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8094   (eval $ac_link) 2>&5
8095   ac_status=$?
8096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097   (exit $ac_status); } &&
8098          { ac_try='test -s conftest$ac_exeext'
8099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100   (eval $ac_try) 2>&5
8101   ac_status=$?
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); }; }; then
8104   LIBS=$ac_save_LIBS
8105 # We can link X programs with no special library path.
8106 ac_x_libraries=
8107 else
8108   echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8110
8111 LIBS=$ac_save_LIBS
8112 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8113 do
8114   # Don't even attempt the hair of trying to link an X program!
8115   for ac_extension in a so sl; do
8116     if test -r $ac_dir/libXt.$ac_extension; then
8117       ac_x_libraries=$ac_dir
8118       break 2
8119     fi
8120   done
8121 done
8122 fi
8123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8124 fi # $ac_x_libraries = no
8125
8126 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8127   # Didn't find X anywhere.  Cache the known absence of X.
8128   ac_cv_have_x="have_x=no"
8129 else
8130   # Record where we found X for the cache.
8131   ac_cv_have_x="have_x=yes \
8132                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8133 fi
8134 fi
8135
8136   fi
8137   eval "$ac_cv_have_x"
8138 fi # $with_x != no
8139
8140 if test "$have_x" != yes; then
8141   echo "$as_me:$LINENO: result: $have_x" >&5
8142 echo "${ECHO_T}$have_x" >&6
8143   no_x=yes
8144 else
8145   # If each of the values was on the command line, it overrides each guess.
8146   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8147   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8148   # Update the cache value to reflect the command line values.
8149   ac_cv_have_x="have_x=yes \
8150                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8151   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8152 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8153 fi
8154
8155 if test "$no_x" = yes; then
8156   # Not all programs may use this symbol, but it does not hurt to define it.
8157
8158 cat >>confdefs.h <<\_ACEOF
8159 #define X_DISPLAY_MISSING 1
8160 _ACEOF
8161
8162   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8163 else
8164   if test -n "$x_includes"; then
8165     X_CFLAGS="$X_CFLAGS -I$x_includes"
8166   fi
8167
8168   # It would also be nice to do this for all -L options, not just this one.
8169   if test -n "$x_libraries"; then
8170     X_LIBS="$X_LIBS -L$x_libraries"
8171     # For Solaris; some versions of Sun CC require a space after -R and
8172     # others require no space.  Words are not sufficient . . . .
8173     case `(uname -sr) 2>/dev/null` in
8174     "SunOS 5"*)
8175       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8176 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8177       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8178       cat >conftest.$ac_ext <<_ACEOF
8179 #line $LINENO "configure"
8180 /* confdefs.h.  */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h.  */
8185
8186 int
8187 main ()
8188 {
8189
8190   ;
8191   return 0;
8192 }
8193 _ACEOF
8194 rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8196   (eval $ac_link) 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); } &&
8200          { ac_try='test -s conftest$ac_exeext'
8201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202   (eval $ac_try) 2>&5
8203   ac_status=$?
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); }; }; then
8206   ac_R_nospace=yes
8207 else
8208   echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8210
8211 ac_R_nospace=no
8212 fi
8213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8214       if test $ac_R_nospace = yes; then
8215         echo "$as_me:$LINENO: result: no" >&5
8216 echo "${ECHO_T}no" >&6
8217         X_LIBS="$X_LIBS -R$x_libraries"
8218       else
8219         LIBS="$ac_xsave_LIBS -R $x_libraries"
8220         cat >conftest.$ac_ext <<_ACEOF
8221 #line $LINENO "configure"
8222 /* confdefs.h.  */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h.  */
8227
8228 int
8229 main ()
8230 {
8231
8232   ;
8233   return 0;
8234 }
8235 _ACEOF
8236 rm -f conftest.$ac_objext conftest$ac_exeext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8238   (eval $ac_link) 2>&5
8239   ac_status=$?
8240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241   (exit $ac_status); } &&
8242          { ac_try='test -s conftest$ac_exeext'
8243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244   (eval $ac_try) 2>&5
8245   ac_status=$?
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); }; }; then
8248   ac_R_space=yes
8249 else
8250   echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8252
8253 ac_R_space=no
8254 fi
8255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8256         if test $ac_R_space = yes; then
8257           echo "$as_me:$LINENO: result: yes" >&5
8258 echo "${ECHO_T}yes" >&6
8259           X_LIBS="$X_LIBS -R $x_libraries"
8260         else
8261           echo "$as_me:$LINENO: result: neither works" >&5
8262 echo "${ECHO_T}neither works" >&6
8263         fi
8264       fi
8265       LIBS=$ac_xsave_LIBS
8266     esac
8267   fi
8268
8269   # Check for system-dependent libraries X programs must link with.
8270   # Do this before checking for the system-independent R6 libraries
8271   # (-lICE), since we may need -lsocket or whatever for X linking.
8272
8273   if test "$ISC" = yes; then
8274     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8275   else
8276     # Martyn Johnson says this is needed for Ultrix, if the X
8277     # libraries were built with DECnet support.  And Karl Berry says
8278     # the Alpha needs dnet_stub (dnet does not exist).
8279     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8280     cat >conftest.$ac_ext <<_ACEOF
8281 #line $LINENO "configure"
8282 /* confdefs.h.  */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h.  */
8287
8288 /* Override any gcc2 internal prototype to avoid an error.  */
8289 #ifdef __cplusplus
8290 extern "C"
8291 #endif
8292 /* We use char because int might match the return type of a gcc2
8293    builtin and then its argument prototype would still apply.  */
8294 char XOpenDisplay ();
8295 int
8296 main ()
8297 {
8298 XOpenDisplay ();
8299   ;
8300   return 0;
8301 }
8302 _ACEOF
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305   (eval $ac_link) 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); } &&
8309          { ac_try='test -s conftest$ac_exeext'
8310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311   (eval $ac_try) 2>&5
8312   ac_status=$?
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); }; }; then
8315   :
8316 else
8317   echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8319
8320 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8321 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8322 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8323   echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325   ac_check_lib_save_LIBS=$LIBS
8326 LIBS="-ldnet  $LIBS"
8327 cat >conftest.$ac_ext <<_ACEOF
8328 #line $LINENO "configure"
8329 /* confdefs.h.  */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h.  */
8334
8335 /* Override any gcc2 internal prototype to avoid an error.  */
8336 #ifdef __cplusplus
8337 extern "C"
8338 #endif
8339 /* We use char because int might match the return type of a gcc2
8340    builtin and then its argument prototype would still apply.  */
8341 char dnet_ntoa ();
8342 int
8343 main ()
8344 {
8345 dnet_ntoa ();
8346   ;
8347   return 0;
8348 }
8349 _ACEOF
8350 rm -f conftest.$ac_objext conftest$ac_exeext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8352   (eval $ac_link) 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); } &&
8356          { ac_try='test -s conftest$ac_exeext'
8357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358   (eval $ac_try) 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; }; then
8362   ac_cv_lib_dnet_dnet_ntoa=yes
8363 else
8364   echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8366
8367 ac_cv_lib_dnet_dnet_ntoa=no
8368 fi
8369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8370 LIBS=$ac_check_lib_save_LIBS
8371 fi
8372 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8373 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8374 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8375   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8376 fi
8377
8378     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8379       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8380 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8381 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8382   echo $ECHO_N "(cached) $ECHO_C" >&6
8383 else
8384   ac_check_lib_save_LIBS=$LIBS
8385 LIBS="-ldnet_stub  $LIBS"
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
8394 /* Override any gcc2 internal prototype to avoid an error.  */
8395 #ifdef __cplusplus
8396 extern "C"
8397 #endif
8398 /* We use char because int might match the return type of a gcc2
8399    builtin and then its argument prototype would still apply.  */
8400 char dnet_ntoa ();
8401 int
8402 main ()
8403 {
8404 dnet_ntoa ();
8405   ;
8406   return 0;
8407 }
8408 _ACEOF
8409 rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8411   (eval $ac_link) 2>&5
8412   ac_status=$?
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); } &&
8415          { ac_try='test -s conftest$ac_exeext'
8416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417   (eval $ac_try) 2>&5
8418   ac_status=$?
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); }; }; then
8421   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8422 else
8423   echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8425
8426 ac_cv_lib_dnet_stub_dnet_ntoa=no
8427 fi
8428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8429 LIBS=$ac_check_lib_save_LIBS
8430 fi
8431 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8432 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8433 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8434   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8435 fi
8436
8437     fi
8438 fi
8439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8440     LIBS="$ac_xsave_LIBS"
8441
8442     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8443     # to get the SysV transport functions.
8444     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8445     # needs -lnsl.
8446     # The nsl library prevents programs from opening the X display
8447     # on Irix 5.2, according to T.E. Dickey.
8448     # The functions gethostbyname, getservbyname, and inet_addr are
8449     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8450     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8451 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8452 if test "${ac_cv_func_gethostbyname+set}" = set; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   cat >conftest.$ac_ext <<_ACEOF
8456 #line $LINENO "configure"
8457 /* confdefs.h.  */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h.  */
8462 /* System header to define __stub macros and hopefully few prototypes,
8463     which can conflict with char gethostbyname (); below.
8464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8465     <limits.h> exists even on freestanding compilers.  */
8466 #ifdef __STDC__
8467 # include <limits.h>
8468 #else
8469 # include <assert.h>
8470 #endif
8471 /* Override any gcc2 internal prototype to avoid an error.  */
8472 #ifdef __cplusplus
8473 extern "C"
8474 {
8475 #endif
8476 /* We use char because int might match the return type of a gcc2
8477    builtin and then its argument prototype would still apply.  */
8478 char gethostbyname ();
8479 /* The GNU C library defines this for functions which it implements
8480     to always fail with ENOSYS.  Some functions are actually named
8481     something starting with __ and the normal name is an alias.  */
8482 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8483 choke me
8484 #else
8485 char (*f) () = gethostbyname;
8486 #endif
8487 #ifdef __cplusplus
8488 }
8489 #endif
8490
8491 int
8492 main ()
8493 {
8494 return f != gethostbyname;
8495   ;
8496   return 0;
8497 }
8498 _ACEOF
8499 rm -f conftest.$ac_objext conftest$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501   (eval $ac_link) 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); } &&
8505          { ac_try='test -s conftest$ac_exeext'
8506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507   (eval $ac_try) 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); }; }; then
8511   ac_cv_func_gethostbyname=yes
8512 else
8513   echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ac_cv_func_gethostbyname=no
8517 fi
8518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8519 fi
8520 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8521 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8522
8523     if test $ac_cv_func_gethostbyname = no; then
8524       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8525 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8526 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8527   echo $ECHO_N "(cached) $ECHO_C" >&6
8528 else
8529   ac_check_lib_save_LIBS=$LIBS
8530 LIBS="-lnsl  $LIBS"
8531 cat >conftest.$ac_ext <<_ACEOF
8532 #line $LINENO "configure"
8533 /* confdefs.h.  */
8534 _ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h.  */
8538
8539 /* Override any gcc2 internal prototype to avoid an error.  */
8540 #ifdef __cplusplus
8541 extern "C"
8542 #endif
8543 /* We use char because int might match the return type of a gcc2
8544    builtin and then its argument prototype would still apply.  */
8545 char gethostbyname ();
8546 int
8547 main ()
8548 {
8549 gethostbyname ();
8550   ;
8551   return 0;
8552 }
8553 _ACEOF
8554 rm -f conftest.$ac_objext conftest$ac_exeext
8555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8556   (eval $ac_link) 2>&5
8557   ac_status=$?
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); } &&
8560          { ac_try='test -s conftest$ac_exeext'
8561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562   (eval $ac_try) 2>&5
8563   ac_status=$?
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); }; }; then
8566   ac_cv_lib_nsl_gethostbyname=yes
8567 else
8568   echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 ac_cv_lib_nsl_gethostbyname=no
8572 fi
8573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8574 LIBS=$ac_check_lib_save_LIBS
8575 fi
8576 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8577 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8578 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8579   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8580 fi
8581
8582       if test $ac_cv_lib_nsl_gethostbyname = no; then
8583         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8584 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8585 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8586   echo $ECHO_N "(cached) $ECHO_C" >&6
8587 else
8588   ac_check_lib_save_LIBS=$LIBS
8589 LIBS="-lbsd  $LIBS"
8590 cat >conftest.$ac_ext <<_ACEOF
8591 #line $LINENO "configure"
8592 /* confdefs.h.  */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h.  */
8597
8598 /* Override any gcc2 internal prototype to avoid an error.  */
8599 #ifdef __cplusplus
8600 extern "C"
8601 #endif
8602 /* We use char because int might match the return type of a gcc2
8603    builtin and then its argument prototype would still apply.  */
8604 char gethostbyname ();
8605 int
8606 main ()
8607 {
8608 gethostbyname ();
8609   ;
8610   return 0;
8611 }
8612 _ACEOF
8613 rm -f conftest.$ac_objext conftest$ac_exeext
8614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615   (eval $ac_link) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); } &&
8619          { ac_try='test -s conftest$ac_exeext'
8620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621   (eval $ac_try) 2>&5
8622   ac_status=$?
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); }; }; then
8625   ac_cv_lib_bsd_gethostbyname=yes
8626 else
8627   echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8629
8630 ac_cv_lib_bsd_gethostbyname=no
8631 fi
8632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8633 LIBS=$ac_check_lib_save_LIBS
8634 fi
8635 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8636 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8637 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8638   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8639 fi
8640
8641       fi
8642     fi
8643
8644     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8645     # socket/setsockopt and other routines are undefined under SCO ODT
8646     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8647     # on later versions), says Simon Leinen: it contains gethostby*
8648     # variants that don't use the name server (or something).  -lsocket
8649     # must be given before -lnsl if both are needed.  We assume that
8650     # if connect needs -lnsl, so does gethostbyname.
8651     echo "$as_me:$LINENO: checking for connect" >&5
8652 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8653 if test "${ac_cv_func_connect+set}" = set; then
8654   echo $ECHO_N "(cached) $ECHO_C" >&6
8655 else
8656   cat >conftest.$ac_ext <<_ACEOF
8657 #line $LINENO "configure"
8658 /* confdefs.h.  */
8659 _ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h.  */
8663 /* System header to define __stub macros and hopefully few prototypes,
8664     which can conflict with char connect (); below.
8665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8666     <limits.h> exists even on freestanding compilers.  */
8667 #ifdef __STDC__
8668 # include <limits.h>
8669 #else
8670 # include <assert.h>
8671 #endif
8672 /* Override any gcc2 internal prototype to avoid an error.  */
8673 #ifdef __cplusplus
8674 extern "C"
8675 {
8676 #endif
8677 /* We use char because int might match the return type of a gcc2
8678    builtin and then its argument prototype would still apply.  */
8679 char connect ();
8680 /* The GNU C library defines this for functions which it implements
8681     to always fail with ENOSYS.  Some functions are actually named
8682     something starting with __ and the normal name is an alias.  */
8683 #if defined (__stub_connect) || defined (__stub___connect)
8684 choke me
8685 #else
8686 char (*f) () = connect;
8687 #endif
8688 #ifdef __cplusplus
8689 }
8690 #endif
8691
8692 int
8693 main ()
8694 {
8695 return f != connect;
8696   ;
8697   return 0;
8698 }
8699 _ACEOF
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702   (eval $ac_link) 2>&5
8703   ac_status=$?
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); } &&
8706          { ac_try='test -s conftest$ac_exeext'
8707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708   (eval $ac_try) 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); }; }; then
8712   ac_cv_func_connect=yes
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8716
8717 ac_cv_func_connect=no
8718 fi
8719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8720 fi
8721 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8722 echo "${ECHO_T}$ac_cv_func_connect" >&6
8723
8724     if test $ac_cv_func_connect = no; then
8725       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8726 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8727 if test "${ac_cv_lib_socket_connect+set}" = set; then
8728   echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730   ac_check_lib_save_LIBS=$LIBS
8731 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8732 cat >conftest.$ac_ext <<_ACEOF
8733 #line $LINENO "configure"
8734 /* confdefs.h.  */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h.  */
8739
8740 /* Override any gcc2 internal prototype to avoid an error.  */
8741 #ifdef __cplusplus
8742 extern "C"
8743 #endif
8744 /* We use char because int might match the return type of a gcc2
8745    builtin and then its argument prototype would still apply.  */
8746 char connect ();
8747 int
8748 main ()
8749 {
8750 connect ();
8751   ;
8752   return 0;
8753 }
8754 _ACEOF
8755 rm -f conftest.$ac_objext conftest$ac_exeext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757   (eval $ac_link) 2>&5
8758   ac_status=$?
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); } &&
8761          { ac_try='test -s conftest$ac_exeext'
8762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763   (eval $ac_try) 2>&5
8764   ac_status=$?
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); }; }; then
8767   ac_cv_lib_socket_connect=yes
8768 else
8769   echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8771
8772 ac_cv_lib_socket_connect=no
8773 fi
8774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8775 LIBS=$ac_check_lib_save_LIBS
8776 fi
8777 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8778 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8779 if test $ac_cv_lib_socket_connect = yes; then
8780   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8781 fi
8782
8783     fi
8784
8785     # Guillermo Gomez says -lposix is necessary on A/UX.
8786     echo "$as_me:$LINENO: checking for remove" >&5
8787 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8788 if test "${ac_cv_func_remove+set}" = set; then
8789   echo $ECHO_N "(cached) $ECHO_C" >&6
8790 else
8791   cat >conftest.$ac_ext <<_ACEOF
8792 #line $LINENO "configure"
8793 /* confdefs.h.  */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h.  */
8798 /* System header to define __stub macros and hopefully few prototypes,
8799     which can conflict with char remove (); below.
8800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8801     <limits.h> exists even on freestanding compilers.  */
8802 #ifdef __STDC__
8803 # include <limits.h>
8804 #else
8805 # include <assert.h>
8806 #endif
8807 /* Override any gcc2 internal prototype to avoid an error.  */
8808 #ifdef __cplusplus
8809 extern "C"
8810 {
8811 #endif
8812 /* We use char because int might match the return type of a gcc2
8813    builtin and then its argument prototype would still apply.  */
8814 char remove ();
8815 /* The GNU C library defines this for functions which it implements
8816     to always fail with ENOSYS.  Some functions are actually named
8817     something starting with __ and the normal name is an alias.  */
8818 #if defined (__stub_remove) || defined (__stub___remove)
8819 choke me
8820 #else
8821 char (*f) () = remove;
8822 #endif
8823 #ifdef __cplusplus
8824 }
8825 #endif
8826
8827 int
8828 main ()
8829 {
8830 return f != remove;
8831   ;
8832   return 0;
8833 }
8834 _ACEOF
8835 rm -f conftest.$ac_objext conftest$ac_exeext
8836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8837   (eval $ac_link) 2>&5
8838   ac_status=$?
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); } &&
8841          { ac_try='test -s conftest$ac_exeext'
8842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843   (eval $ac_try) 2>&5
8844   ac_status=$?
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); }; }; then
8847   ac_cv_func_remove=yes
8848 else
8849   echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8851
8852 ac_cv_func_remove=no
8853 fi
8854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8855 fi
8856 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8857 echo "${ECHO_T}$ac_cv_func_remove" >&6
8858
8859     if test $ac_cv_func_remove = no; then
8860       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8861 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8862 if test "${ac_cv_lib_posix_remove+set}" = set; then
8863   echo $ECHO_N "(cached) $ECHO_C" >&6
8864 else
8865   ac_check_lib_save_LIBS=$LIBS
8866 LIBS="-lposix  $LIBS"
8867 cat >conftest.$ac_ext <<_ACEOF
8868 #line $LINENO "configure"
8869 /* confdefs.h.  */
8870 _ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h.  */
8874
8875 /* Override any gcc2 internal prototype to avoid an error.  */
8876 #ifdef __cplusplus
8877 extern "C"
8878 #endif
8879 /* We use char because int might match the return type of a gcc2
8880    builtin and then its argument prototype would still apply.  */
8881 char remove ();
8882 int
8883 main ()
8884 {
8885 remove ();
8886   ;
8887   return 0;
8888 }
8889 _ACEOF
8890 rm -f conftest.$ac_objext conftest$ac_exeext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8892   (eval $ac_link) 2>&5
8893   ac_status=$?
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); } &&
8896          { ac_try='test -s conftest$ac_exeext'
8897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898   (eval $ac_try) 2>&5
8899   ac_status=$?
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); }; }; then
8902   ac_cv_lib_posix_remove=yes
8903 else
8904   echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8906
8907 ac_cv_lib_posix_remove=no
8908 fi
8909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8910 LIBS=$ac_check_lib_save_LIBS
8911 fi
8912 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8913 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8914 if test $ac_cv_lib_posix_remove = yes; then
8915   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8916 fi
8917
8918     fi
8919
8920     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8921     echo "$as_me:$LINENO: checking for shmat" >&5
8922 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8923 if test "${ac_cv_func_shmat+set}" = set; then
8924   echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926   cat >conftest.$ac_ext <<_ACEOF
8927 #line $LINENO "configure"
8928 /* confdefs.h.  */
8929 _ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h.  */
8933 /* System header to define __stub macros and hopefully few prototypes,
8934     which can conflict with char shmat (); below.
8935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8936     <limits.h> exists even on freestanding compilers.  */
8937 #ifdef __STDC__
8938 # include <limits.h>
8939 #else
8940 # include <assert.h>
8941 #endif
8942 /* Override any gcc2 internal prototype to avoid an error.  */
8943 #ifdef __cplusplus
8944 extern "C"
8945 {
8946 #endif
8947 /* We use char because int might match the return type of a gcc2
8948    builtin and then its argument prototype would still apply.  */
8949 char shmat ();
8950 /* The GNU C library defines this for functions which it implements
8951     to always fail with ENOSYS.  Some functions are actually named
8952     something starting with __ and the normal name is an alias.  */
8953 #if defined (__stub_shmat) || defined (__stub___shmat)
8954 choke me
8955 #else
8956 char (*f) () = shmat;
8957 #endif
8958 #ifdef __cplusplus
8959 }
8960 #endif
8961
8962 int
8963 main ()
8964 {
8965 return f != shmat;
8966   ;
8967   return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest.$ac_objext conftest$ac_exeext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8972   (eval $ac_link) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } &&
8976          { ac_try='test -s conftest$ac_exeext'
8977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978   (eval $ac_try) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; }; then
8982   ac_cv_func_shmat=yes
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8986
8987 ac_cv_func_shmat=no
8988 fi
8989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8990 fi
8991 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8992 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8993
8994     if test $ac_cv_func_shmat = no; then
8995       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8996 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8997 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8998   echo $ECHO_N "(cached) $ECHO_C" >&6
8999 else
9000   ac_check_lib_save_LIBS=$LIBS
9001 LIBS="-lipc  $LIBS"
9002 cat >conftest.$ac_ext <<_ACEOF
9003 #line $LINENO "configure"
9004 /* confdefs.h.  */
9005 _ACEOF
9006 cat confdefs.h >>conftest.$ac_ext
9007 cat >>conftest.$ac_ext <<_ACEOF
9008 /* end confdefs.h.  */
9009
9010 /* Override any gcc2 internal prototype to avoid an error.  */
9011 #ifdef __cplusplus
9012 extern "C"
9013 #endif
9014 /* We use char because int might match the return type of a gcc2
9015    builtin and then its argument prototype would still apply.  */
9016 char shmat ();
9017 int
9018 main ()
9019 {
9020 shmat ();
9021   ;
9022   return 0;
9023 }
9024 _ACEOF
9025 rm -f conftest.$ac_objext conftest$ac_exeext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027   (eval $ac_link) 2>&5
9028   ac_status=$?
9029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030   (exit $ac_status); } &&
9031          { ac_try='test -s conftest$ac_exeext'
9032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033   (eval $ac_try) 2>&5
9034   ac_status=$?
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); }; }; then
9037   ac_cv_lib_ipc_shmat=yes
9038 else
9039   echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9041
9042 ac_cv_lib_ipc_shmat=no
9043 fi
9044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9045 LIBS=$ac_check_lib_save_LIBS
9046 fi
9047 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9048 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9049 if test $ac_cv_lib_ipc_shmat = yes; then
9050   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9051 fi
9052
9053     fi
9054   fi
9055
9056   # Check for libraries that X11R6 Xt/Xaw programs need.
9057   ac_save_LDFLAGS=$LDFLAGS
9058   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9059   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9060   # check for ICE first), but we must link in the order -lSM -lICE or
9061   # we get undefined symbols.  So assume we have SM if we have ICE.
9062   # These have to be linked with before -lX11, unlike the other
9063   # libraries we check for below, so use a different variable.
9064   # John Interrante, Karl Berry
9065   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9066 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9067 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9068   echo $ECHO_N "(cached) $ECHO_C" >&6
9069 else
9070   ac_check_lib_save_LIBS=$LIBS
9071 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9072 cat >conftest.$ac_ext <<_ACEOF
9073 #line $LINENO "configure"
9074 /* confdefs.h.  */
9075 _ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h.  */
9079
9080 /* Override any gcc2 internal prototype to avoid an error.  */
9081 #ifdef __cplusplus
9082 extern "C"
9083 #endif
9084 /* We use char because int might match the return type of a gcc2
9085    builtin and then its argument prototype would still apply.  */
9086 char IceConnectionNumber ();
9087 int
9088 main ()
9089 {
9090 IceConnectionNumber ();
9091   ;
9092   return 0;
9093 }
9094 _ACEOF
9095 rm -f conftest.$ac_objext conftest$ac_exeext
9096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9097   (eval $ac_link) 2>&5
9098   ac_status=$?
9099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100   (exit $ac_status); } &&
9101          { ac_try='test -s conftest$ac_exeext'
9102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103   (eval $ac_try) 2>&5
9104   ac_status=$?
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); }; }; then
9107   ac_cv_lib_ICE_IceConnectionNumber=yes
9108 else
9109   echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.$ac_ext >&5
9111
9112 ac_cv_lib_ICE_IceConnectionNumber=no
9113 fi
9114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9115 LIBS=$ac_check_lib_save_LIBS
9116 fi
9117 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9118 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9119 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9120   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9121 fi
9122
9123   LDFLAGS=$ac_save_LDFLAGS
9124
9125 fi
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150 for ac_header in \
9151         assert.h \
9152         fcntl.h \
9153         grp.h \
9154         pwd.h \
9155         libc.h \
9156         limits.h \
9157         stdarg.h \
9158         stdlib.h \
9159         stdint.h \
9160         string.h \
9161         termios.h \
9162         unistd.h \
9163         sys/byteorder.h \
9164         sys/ioctl.h \
9165         sys/select.h \
9166         sys/sockio.h \
9167         sys/time.h \
9168         sys/socket.h \
9169         arpa/nameser.h \
9170         resolv.h \
9171         mtio.h \
9172         sys/mtio.h \
9173
9174 do
9175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9177   echo "$as_me:$LINENO: checking for $ac_header" >&5
9178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9180   echo $ECHO_N "(cached) $ECHO_C" >&6
9181 fi
9182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9184 else
9185   # Is the header compilable?
9186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9188 cat >conftest.$ac_ext <<_ACEOF
9189 #line $LINENO "configure"
9190 /* confdefs.h.  */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h.  */
9195 $ac_includes_default
9196 #include <$ac_header>
9197 _ACEOF
9198 rm -f conftest.$ac_objext
9199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9200   (eval $ac_compile) 2>&5
9201   ac_status=$?
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); } &&
9204          { ac_try='test -s conftest.$ac_objext'
9205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206   (eval $ac_try) 2>&5
9207   ac_status=$?
9208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209   (exit $ac_status); }; }; then
9210   ac_header_compiler=yes
9211 else
9212   echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9214
9215 ac_header_compiler=no
9216 fi
9217 rm -f conftest.$ac_objext conftest.$ac_ext
9218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9219 echo "${ECHO_T}$ac_header_compiler" >&6
9220
9221 # Is the header present?
9222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9224 cat >conftest.$ac_ext <<_ACEOF
9225 #line $LINENO "configure"
9226 /* confdefs.h.  */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h.  */
9231 #include <$ac_header>
9232 _ACEOF
9233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9234   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9235   ac_status=$?
9236   grep -v '^ *+' conftest.er1 >conftest.err
9237   rm -f conftest.er1
9238   cat conftest.err >&5
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); } >/dev/null; then
9241   if test -s conftest.err; then
9242     ac_cpp_err=$ac_c_preproc_warn_flag
9243   else
9244     ac_cpp_err=
9245   fi
9246 else
9247   ac_cpp_err=yes
9248 fi
9249 if test -z "$ac_cpp_err"; then
9250   ac_header_preproc=yes
9251 else
9252   echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9254
9255   ac_header_preproc=no
9256 fi
9257 rm -f conftest.err conftest.$ac_ext
9258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9259 echo "${ECHO_T}$ac_header_preproc" >&6
9260
9261 # So?  What about this header?
9262 case $ac_header_compiler:$ac_header_preproc in
9263   yes:no )
9264     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9268     (
9269       cat <<\_ASBOX
9270 ## ------------------------------------ ##
9271 ## Report this to bug-autoconf@gnu.org. ##
9272 ## ------------------------------------ ##
9273 _ASBOX
9274     ) |
9275       sed "s/^/$as_me: WARNING:     /" >&2
9276     ;;
9277   no:yes )
9278     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9280     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9284     (
9285       cat <<\_ASBOX
9286 ## ------------------------------------ ##
9287 ## Report this to bug-autoconf@gnu.org. ##
9288 ## ------------------------------------ ##
9289 _ASBOX
9290     ) |
9291       sed "s/^/$as_me: WARNING:     /" >&2
9292     ;;
9293 esac
9294 echo "$as_me:$LINENO: checking for $ac_header" >&5
9295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9297   echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299   eval "$as_ac_Header=$ac_header_preproc"
9300 fi
9301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9303
9304 fi
9305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9306   cat >>confdefs.h <<_ACEOF
9307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9308 _ACEOF
9309
9310 fi
9311
9312 done
9313
9314 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9316 if test "${ac_cv_header_stdc+set}" = set; then
9317   echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9319   cat >conftest.$ac_ext <<_ACEOF
9320 #line $LINENO "configure"
9321 /* confdefs.h.  */
9322 _ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h.  */
9326 #include <stdlib.h>
9327 #include <stdarg.h>
9328 #include <string.h>
9329 #include <float.h>
9330
9331 int
9332 main ()
9333 {
9334
9335   ;
9336   return 0;
9337 }
9338 _ACEOF
9339 rm -f conftest.$ac_objext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341   (eval $ac_compile) 2>&5
9342   ac_status=$?
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); } &&
9345          { ac_try='test -s conftest.$ac_objext'
9346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347   (eval $ac_try) 2>&5
9348   ac_status=$?
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); }; }; then
9351   ac_cv_header_stdc=yes
9352 else
9353   echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9355
9356 ac_cv_header_stdc=no
9357 fi
9358 rm -f conftest.$ac_objext conftest.$ac_ext
9359
9360 if test $ac_cv_header_stdc = yes; then
9361   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9362   cat >conftest.$ac_ext <<_ACEOF
9363 #line $LINENO "configure"
9364 /* confdefs.h.  */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h.  */
9369 #include <string.h>
9370
9371 _ACEOF
9372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9373   $EGREP "memchr" >/dev/null 2>&1; then
9374   :
9375 else
9376   ac_cv_header_stdc=no
9377 fi
9378 rm -f conftest*
9379
9380 fi
9381
9382 if test $ac_cv_header_stdc = yes; then
9383   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9384   cat >conftest.$ac_ext <<_ACEOF
9385 #line $LINENO "configure"
9386 /* confdefs.h.  */
9387 _ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h.  */
9391 #include <stdlib.h>
9392
9393 _ACEOF
9394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9395   $EGREP "free" >/dev/null 2>&1; then
9396   :
9397 else
9398   ac_cv_header_stdc=no
9399 fi
9400 rm -f conftest*
9401
9402 fi
9403
9404 if test $ac_cv_header_stdc = yes; then
9405   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9406   if test "$cross_compiling" = yes; then
9407   :
9408 else
9409   cat >conftest.$ac_ext <<_ACEOF
9410 #line $LINENO "configure"
9411 /* confdefs.h.  */
9412 _ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h.  */
9416 #include <ctype.h>
9417 #if ((' ' & 0x0FF) == 0x020)
9418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9420 #else
9421 # define ISLOWER(c) \
9422                    (('a' <= (c) && (c) <= 'i') \
9423                      || ('j' <= (c) && (c) <= 'r') \
9424                      || ('s' <= (c) && (c) <= 'z'))
9425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9426 #endif
9427
9428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9429 int
9430 main ()
9431 {
9432   int i;
9433   for (i = 0; i < 256; i++)
9434     if (XOR (islower (i), ISLOWER (i))
9435         || toupper (i) != TOUPPER (i))
9436       exit(2);
9437   exit (0);
9438 }
9439 _ACEOF
9440 rm -f conftest$ac_exeext
9441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9442   (eval $ac_link) 2>&5
9443   ac_status=$?
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447   (eval $ac_try) 2>&5
9448   ac_status=$?
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); }; }; then
9451   :
9452 else
9453   echo "$as_me: program exited with status $ac_status" >&5
9454 echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.$ac_ext >&5
9456
9457 ( exit $ac_status )
9458 ac_cv_header_stdc=no
9459 fi
9460 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9461 fi
9462 fi
9463 fi
9464 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9465 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9466 if test $ac_cv_header_stdc = yes; then
9467
9468 cat >>confdefs.h <<\_ACEOF
9469 #define STDC_HEADERS 1
9470 _ACEOF
9471
9472 fi
9473
9474 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9475 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9476 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9477   echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479   cat >conftest.$ac_ext <<_ACEOF
9480 #line $LINENO "configure"
9481 /* confdefs.h.  */
9482 _ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h.  */
9486 #include <sys/types.h>
9487 int
9488 main ()
9489 {
9490 return makedev(0, 0);
9491   ;
9492   return 0;
9493 }
9494 _ACEOF
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497   (eval $ac_link) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); } &&
9501          { ac_try='test -s conftest$ac_exeext'
9502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503   (eval $ac_try) 2>&5
9504   ac_status=$?
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); }; }; then
9507   ac_cv_header_sys_types_h_makedev=yes
9508 else
9509   echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9511
9512 ac_cv_header_sys_types_h_makedev=no
9513 fi
9514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9515
9516 fi
9517 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9518 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9519
9520 if test $ac_cv_header_sys_types_h_makedev = no; then
9521 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9522   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9523 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9524 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9525   echo $ECHO_N "(cached) $ECHO_C" >&6
9526 fi
9527 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9528 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9529 else
9530   # Is the header compilable?
9531 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9532 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9533 cat >conftest.$ac_ext <<_ACEOF
9534 #line $LINENO "configure"
9535 /* confdefs.h.  */
9536 _ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h.  */
9540 $ac_includes_default
9541 #include <sys/mkdev.h>
9542 _ACEOF
9543 rm -f conftest.$ac_objext
9544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9545   (eval $ac_compile) 2>&5
9546   ac_status=$?
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); } &&
9549          { ac_try='test -s conftest.$ac_objext'
9550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551   (eval $ac_try) 2>&5
9552   ac_status=$?
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); }; }; then
9555   ac_header_compiler=yes
9556 else
9557   echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9559
9560 ac_header_compiler=no
9561 fi
9562 rm -f conftest.$ac_objext conftest.$ac_ext
9563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9564 echo "${ECHO_T}$ac_header_compiler" >&6
9565
9566 # Is the header present?
9567 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9568 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9569 cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9571 /* confdefs.h.  */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h.  */
9576 #include <sys/mkdev.h>
9577 _ACEOF
9578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9579   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9580   ac_status=$?
9581   grep -v '^ *+' conftest.er1 >conftest.err
9582   rm -f conftest.er1
9583   cat conftest.err >&5
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); } >/dev/null; then
9586   if test -s conftest.err; then
9587     ac_cpp_err=$ac_c_preproc_warn_flag
9588   else
9589     ac_cpp_err=
9590   fi
9591 else
9592   ac_cpp_err=yes
9593 fi
9594 if test -z "$ac_cpp_err"; then
9595   ac_header_preproc=yes
9596 else
9597   echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600   ac_header_preproc=no
9601 fi
9602 rm -f conftest.err conftest.$ac_ext
9603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9604 echo "${ECHO_T}$ac_header_preproc" >&6
9605
9606 # So?  What about this header?
9607 case $ac_header_compiler:$ac_header_preproc in
9608   yes:no )
9609     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9610 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9611     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9612 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9613     (
9614       cat <<\_ASBOX
9615 ## ------------------------------------ ##
9616 ## Report this to bug-autoconf@gnu.org. ##
9617 ## ------------------------------------ ##
9618 _ASBOX
9619     ) |
9620       sed "s/^/$as_me: WARNING:     /" >&2
9621     ;;
9622   no:yes )
9623     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9624 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9625     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9626 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9627     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9628 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9629     (
9630       cat <<\_ASBOX
9631 ## ------------------------------------ ##
9632 ## Report this to bug-autoconf@gnu.org. ##
9633 ## ------------------------------------ ##
9634 _ASBOX
9635     ) |
9636       sed "s/^/$as_me: WARNING:     /" >&2
9637     ;;
9638 esac
9639 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9640 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9641 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9642   echo $ECHO_N "(cached) $ECHO_C" >&6
9643 else
9644   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9645 fi
9646 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9647 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9648
9649 fi
9650 if test $ac_cv_header_sys_mkdev_h = yes; then
9651
9652 cat >>confdefs.h <<\_ACEOF
9653 #define MAJOR_IN_MKDEV 1
9654 _ACEOF
9655
9656 fi
9657
9658
9659
9660   if test $ac_cv_header_sys_mkdev_h = no; then
9661     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9662   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9663 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9664 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9665   echo $ECHO_N "(cached) $ECHO_C" >&6
9666 fi
9667 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9668 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9669 else
9670   # Is the header compilable?
9671 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9672 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9673 cat >conftest.$ac_ext <<_ACEOF
9674 #line $LINENO "configure"
9675 /* confdefs.h.  */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h.  */
9680 $ac_includes_default
9681 #include <sys/sysmacros.h>
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685   (eval $ac_compile) 2>&5
9686   ac_status=$?
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } &&
9689          { ac_try='test -s conftest.$ac_objext'
9690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691   (eval $ac_try) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   ac_header_compiler=yes
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_header_compiler=no
9701 fi
9702 rm -f conftest.$ac_objext conftest.$ac_ext
9703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9704 echo "${ECHO_T}$ac_header_compiler" >&6
9705
9706 # Is the header present?
9707 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9708 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9709 cat >conftest.$ac_ext <<_ACEOF
9710 #line $LINENO "configure"
9711 /* confdefs.h.  */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h.  */
9716 #include <sys/sysmacros.h>
9717 _ACEOF
9718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9719   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9720   ac_status=$?
9721   grep -v '^ *+' conftest.er1 >conftest.err
9722   rm -f conftest.er1
9723   cat conftest.err >&5
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); } >/dev/null; then
9726   if test -s conftest.err; then
9727     ac_cpp_err=$ac_c_preproc_warn_flag
9728   else
9729     ac_cpp_err=
9730   fi
9731 else
9732   ac_cpp_err=yes
9733 fi
9734 if test -z "$ac_cpp_err"; then
9735   ac_header_preproc=yes
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740   ac_header_preproc=no
9741 fi
9742 rm -f conftest.err conftest.$ac_ext
9743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9744 echo "${ECHO_T}$ac_header_preproc" >&6
9745
9746 # So?  What about this header?
9747 case $ac_header_compiler:$ac_header_preproc in
9748   yes:no )
9749     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9750 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9751     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9752 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9753     (
9754       cat <<\_ASBOX
9755 ## ------------------------------------ ##
9756 ## Report this to bug-autoconf@gnu.org. ##
9757 ## ------------------------------------ ##
9758 _ASBOX
9759     ) |
9760       sed "s/^/$as_me: WARNING:     /" >&2
9761     ;;
9762   no:yes )
9763     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9764 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9765     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9766 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9767     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9768 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9769     (
9770       cat <<\_ASBOX
9771 ## ------------------------------------ ##
9772 ## Report this to bug-autoconf@gnu.org. ##
9773 ## ------------------------------------ ##
9774 _ASBOX
9775     ) |
9776       sed "s/^/$as_me: WARNING:     /" >&2
9777     ;;
9778 esac
9779 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9780 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9781 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9782   echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9785 fi
9786 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9787 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9788
9789 fi
9790 if test $ac_cv_header_sys_sysmacros_h = yes; then
9791
9792 cat >>confdefs.h <<\_ACEOF
9793 #define MAJOR_IN_SYSMACROS 1
9794 _ACEOF
9795
9796 fi
9797
9798
9799   fi
9800 fi
9801
9802
9803
9804
9805
9806
9807 ac_header_dirent=no
9808 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9809   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9810 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9811 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9813   echo $ECHO_N "(cached) $ECHO_C" >&6
9814 else
9815   cat >conftest.$ac_ext <<_ACEOF
9816 #line $LINENO "configure"
9817 /* confdefs.h.  */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h.  */
9822 #include <sys/types.h>
9823 #include <$ac_hdr>
9824
9825 int
9826 main ()
9827 {
9828 if ((DIR *) 0)
9829 return 0;
9830   ;
9831   return 0;
9832 }
9833 _ACEOF
9834 rm -f conftest.$ac_objext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9836   (eval $ac_compile) 2>&5
9837   ac_status=$?
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); } &&
9840          { ac_try='test -s conftest.$ac_objext'
9841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842   (eval $ac_try) 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); }; }; then
9846   eval "$as_ac_Header=yes"
9847 else
9848   echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 eval "$as_ac_Header=no"
9852 fi
9853 rm -f conftest.$ac_objext conftest.$ac_ext
9854 fi
9855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9858   cat >>confdefs.h <<_ACEOF
9859 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9860 _ACEOF
9861
9862 ac_header_dirent=$ac_hdr; break
9863 fi
9864
9865 done
9866 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9867 if test $ac_header_dirent = dirent.h; then
9868   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9869 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9870 if test "${ac_cv_search_opendir+set}" = set; then
9871   echo $ECHO_N "(cached) $ECHO_C" >&6
9872 else
9873   ac_func_search_save_LIBS=$LIBS
9874 ac_cv_search_opendir=no
9875 cat >conftest.$ac_ext <<_ACEOF
9876 #line $LINENO "configure"
9877 /* confdefs.h.  */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h.  */
9882
9883 /* Override any gcc2 internal prototype to avoid an error.  */
9884 #ifdef __cplusplus
9885 extern "C"
9886 #endif
9887 /* We use char because int might match the return type of a gcc2
9888    builtin and then its argument prototype would still apply.  */
9889 char opendir ();
9890 int
9891 main ()
9892 {
9893 opendir ();
9894   ;
9895   return 0;
9896 }
9897 _ACEOF
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900   (eval $ac_link) 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); } &&
9904          { ac_try='test -s conftest$ac_exeext'
9905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906   (eval $ac_try) 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); }; }; then
9910   ac_cv_search_opendir="none required"
9911 else
9912   echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9914
9915 fi
9916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9917 if test "$ac_cv_search_opendir" = no; then
9918   for ac_lib in dir; do
9919     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9920     cat >conftest.$ac_ext <<_ACEOF
9921 #line $LINENO "configure"
9922 /* confdefs.h.  */
9923 _ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h.  */
9927
9928 /* Override any gcc2 internal prototype to avoid an error.  */
9929 #ifdef __cplusplus
9930 extern "C"
9931 #endif
9932 /* We use char because int might match the return type of a gcc2
9933    builtin and then its argument prototype would still apply.  */
9934 char opendir ();
9935 int
9936 main ()
9937 {
9938 opendir ();
9939   ;
9940   return 0;
9941 }
9942 _ACEOF
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9945   (eval $ac_link) 2>&5
9946   ac_status=$?
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } &&
9949          { ac_try='test -s conftest$ac_exeext'
9950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951   (eval $ac_try) 2>&5
9952   ac_status=$?
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); }; }; then
9955   ac_cv_search_opendir="-l$ac_lib"
9956 break
9957 else
9958   echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9960
9961 fi
9962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9963   done
9964 fi
9965 LIBS=$ac_func_search_save_LIBS
9966 fi
9967 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9968 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9969 if test "$ac_cv_search_opendir" != no; then
9970   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9971
9972 fi
9973
9974 else
9975   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9976 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9977 if test "${ac_cv_search_opendir+set}" = set; then
9978   echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980   ac_func_search_save_LIBS=$LIBS
9981 ac_cv_search_opendir=no
9982 cat >conftest.$ac_ext <<_ACEOF
9983 #line $LINENO "configure"
9984 /* confdefs.h.  */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h.  */
9989
9990 /* Override any gcc2 internal prototype to avoid an error.  */
9991 #ifdef __cplusplus
9992 extern "C"
9993 #endif
9994 /* We use char because int might match the return type of a gcc2
9995    builtin and then its argument prototype would still apply.  */
9996 char opendir ();
9997 int
9998 main ()
9999 {
10000 opendir ();
10001   ;
10002   return 0;
10003 }
10004 _ACEOF
10005 rm -f conftest.$ac_objext conftest$ac_exeext
10006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10007   (eval $ac_link) 2>&5
10008   ac_status=$?
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); } &&
10011          { ac_try='test -s conftest$ac_exeext'
10012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013   (eval $ac_try) 2>&5
10014   ac_status=$?
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); }; }; then
10017   ac_cv_search_opendir="none required"
10018 else
10019   echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022 fi
10023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10024 if test "$ac_cv_search_opendir" = no; then
10025   for ac_lib in x; do
10026     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10027     cat >conftest.$ac_ext <<_ACEOF
10028 #line $LINENO "configure"
10029 /* confdefs.h.  */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h.  */
10034
10035 /* Override any gcc2 internal prototype to avoid an error.  */
10036 #ifdef __cplusplus
10037 extern "C"
10038 #endif
10039 /* We use char because int might match the return type of a gcc2
10040    builtin and then its argument prototype would still apply.  */
10041 char opendir ();
10042 int
10043 main ()
10044 {
10045 opendir ();
10046   ;
10047   return 0;
10048 }
10049 _ACEOF
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10052   (eval $ac_link) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } &&
10056          { ac_try='test -s conftest$ac_exeext'
10057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; }; then
10062   ac_cv_search_opendir="-l$ac_lib"
10063 break
10064 else
10065   echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068 fi
10069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10070   done
10071 fi
10072 LIBS=$ac_func_search_save_LIBS
10073 fi
10074 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10075 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10076 if test "$ac_cv_search_opendir" != no; then
10077   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10078
10079 fi
10080
10081 fi
10082
10083 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10084 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10085 if test "${ac_cv_header_stat_broken+set}" = set; then
10086   echo $ECHO_N "(cached) $ECHO_C" >&6
10087 else
10088   cat >conftest.$ac_ext <<_ACEOF
10089 #line $LINENO "configure"
10090 /* confdefs.h.  */
10091 _ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h.  */
10095 #include <sys/types.h>
10096 #include <sys/stat.h>
10097
10098 #if defined(S_ISBLK) && defined(S_IFDIR)
10099 # if S_ISBLK (S_IFDIR)
10100 You lose.
10101 # endif
10102 #endif
10103
10104 #if defined(S_ISBLK) && defined(S_IFCHR)
10105 # if S_ISBLK (S_IFCHR)
10106 You lose.
10107 # endif
10108 #endif
10109
10110 #if defined(S_ISLNK) && defined(S_IFREG)
10111 # if S_ISLNK (S_IFREG)
10112 You lose.
10113 # endif
10114 #endif
10115
10116 #if defined(S_ISSOCK) && defined(S_IFREG)
10117 # if S_ISSOCK (S_IFREG)
10118 You lose.
10119 # endif
10120 #endif
10121
10122 _ACEOF
10123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10124   $EGREP "You lose" >/dev/null 2>&1; then
10125   ac_cv_header_stat_broken=yes
10126 else
10127   ac_cv_header_stat_broken=no
10128 fi
10129 rm -f conftest*
10130
10131 fi
10132 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10133 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10134 if test $ac_cv_header_stat_broken = yes; then
10135
10136 cat >>confdefs.h <<\_ACEOF
10137 #define STAT_MACROS_BROKEN 1
10138 _ACEOF
10139
10140 fi
10141
10142 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10143 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10144 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10145   echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147   cat >conftest.$ac_ext <<_ACEOF
10148 #line $LINENO "configure"
10149 /* confdefs.h.  */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h.  */
10154 #include <sys/types.h>
10155 #include <sys/wait.h>
10156 #ifndef WEXITSTATUS
10157 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10158 #endif
10159 #ifndef WIFEXITED
10160 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10161 #endif
10162
10163 int
10164 main ()
10165 {
10166   int s;
10167   wait (&s);
10168   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10169   ;
10170   return 0;
10171 }
10172 _ACEOF
10173 rm -f conftest.$ac_objext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10175   (eval $ac_compile) 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); } &&
10179          { ac_try='test -s conftest.$ac_objext'
10180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181   (eval $ac_try) 2>&5
10182   ac_status=$?
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); }; }; then
10185   ac_cv_header_sys_wait_h=yes
10186 else
10187   echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10189
10190 ac_cv_header_sys_wait_h=no
10191 fi
10192 rm -f conftest.$ac_objext conftest.$ac_ext
10193 fi
10194 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10195 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10196 if test $ac_cv_header_sys_wait_h = yes; then
10197
10198 cat >>confdefs.h <<\_ACEOF
10199 #define HAVE_SYS_WAIT_H 1
10200 _ACEOF
10201
10202 fi
10203
10204 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10205 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10206 if test "${ac_cv_header_time+set}" = set; then
10207   echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209   cat >conftest.$ac_ext <<_ACEOF
10210 #line $LINENO "configure"
10211 /* confdefs.h.  */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h.  */
10216 #include <sys/types.h>
10217 #include <sys/time.h>
10218 #include <time.h>
10219
10220 int
10221 main ()
10222 {
10223 if ((struct tm *) 0)
10224 return 0;
10225   ;
10226   return 0;
10227 }
10228 _ACEOF
10229 rm -f conftest.$ac_objext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10231   (eval $ac_compile) 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); } &&
10235          { ac_try='test -s conftest.$ac_objext'
10236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237   (eval $ac_try) 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); }; }; then
10241   ac_cv_header_time=yes
10242 else
10243   echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10245
10246 ac_cv_header_time=no
10247 fi
10248 rm -f conftest.$ac_objext conftest.$ac_ext
10249 fi
10250 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10251 echo "${ECHO_T}$ac_cv_header_time" >&6
10252 if test $ac_cv_header_time = yes; then
10253
10254 cat >>confdefs.h <<\_ACEOF
10255 #define TIME_WITH_SYS_TIME 1
10256 _ACEOF
10257
10258 fi
10259
10260
10261 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10262 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10263 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10264   echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266   cat >conftest.$ac_ext <<_ACEOF
10267 #line $LINENO "configure"
10268 /* confdefs.h.  */
10269 _ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h.  */
10273 $ac_includes_default
10274 int
10275 main ()
10276 {
10277 static struct stat ac_aggr;
10278 if (ac_aggr.st_blksize)
10279 return 0;
10280   ;
10281   return 0;
10282 }
10283 _ACEOF
10284 rm -f conftest.$ac_objext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10286   (eval $ac_compile) 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } &&
10290          { ac_try='test -s conftest.$ac_objext'
10291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292   (eval $ac_try) 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; }; then
10296   ac_cv_member_struct_stat_st_blksize=yes
10297 else
10298   echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10300
10301 cat >conftest.$ac_ext <<_ACEOF
10302 #line $LINENO "configure"
10303 /* confdefs.h.  */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h.  */
10308 $ac_includes_default
10309 int
10310 main ()
10311 {
10312 static struct stat ac_aggr;
10313 if (sizeof ac_aggr.st_blksize)
10314 return 0;
10315   ;
10316   return 0;
10317 }
10318 _ACEOF
10319 rm -f conftest.$ac_objext
10320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321   (eval $ac_compile) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); } &&
10325          { ac_try='test -s conftest.$ac_objext'
10326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327   (eval $ac_try) 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; }; then
10331   ac_cv_member_struct_stat_st_blksize=yes
10332 else
10333   echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10335
10336 ac_cv_member_struct_stat_st_blksize=no
10337 fi
10338 rm -f conftest.$ac_objext conftest.$ac_ext
10339 fi
10340 rm -f conftest.$ac_objext conftest.$ac_ext
10341 fi
10342 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10343 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10344 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10345
10346 cat >>confdefs.h <<_ACEOF
10347 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10348 _ACEOF
10349
10350
10351 cat >>confdefs.h <<\_ACEOF
10352 #define HAVE_ST_BLKSIZE 1
10353 _ACEOF
10354
10355 fi
10356
10357
10358 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10359 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10360 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10361   echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363   cat >conftest.$ac_ext <<_ACEOF
10364 #line $LINENO "configure"
10365 /* confdefs.h.  */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h.  */
10370 $ac_includes_default
10371 int
10372 main ()
10373 {
10374 static struct stat ac_aggr;
10375 if (ac_aggr.st_blocks)
10376 return 0;
10377   ;
10378   return 0;
10379 }
10380 _ACEOF
10381 rm -f conftest.$ac_objext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10383   (eval $ac_compile) 2>&5
10384   ac_status=$?
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); } &&
10387          { ac_try='test -s conftest.$ac_objext'
10388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389   (eval $ac_try) 2>&5
10390   ac_status=$?
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); }; }; then
10393   ac_cv_member_struct_stat_st_blocks=yes
10394 else
10395   echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10397
10398 cat >conftest.$ac_ext <<_ACEOF
10399 #line $LINENO "configure"
10400 /* confdefs.h.  */
10401 _ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h.  */
10405 $ac_includes_default
10406 int
10407 main ()
10408 {
10409 static struct stat ac_aggr;
10410 if (sizeof ac_aggr.st_blocks)
10411 return 0;
10412   ;
10413   return 0;
10414 }
10415 _ACEOF
10416 rm -f conftest.$ac_objext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418   (eval $ac_compile) 2>&5
10419   ac_status=$?
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); } &&
10422          { ac_try='test -s conftest.$ac_objext'
10423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424   (eval $ac_try) 2>&5
10425   ac_status=$?
10426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427   (exit $ac_status); }; }; then
10428   ac_cv_member_struct_stat_st_blocks=yes
10429 else
10430   echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10432
10433 ac_cv_member_struct_stat_st_blocks=no
10434 fi
10435 rm -f conftest.$ac_objext conftest.$ac_ext
10436 fi
10437 rm -f conftest.$ac_objext conftest.$ac_ext
10438 fi
10439 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10440 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10441 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10442
10443 cat >>confdefs.h <<_ACEOF
10444 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10445 _ACEOF
10446
10447
10448 cat >>confdefs.h <<\_ACEOF
10449 #define HAVE_ST_BLOCKS 1
10450 _ACEOF
10451
10452 else
10453   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10454 fi
10455
10456
10457 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10458 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10459 if test "${ac_cv_struct_tm+set}" = set; then
10460   echo $ECHO_N "(cached) $ECHO_C" >&6
10461 else
10462   cat >conftest.$ac_ext <<_ACEOF
10463 #line $LINENO "configure"
10464 /* confdefs.h.  */
10465 _ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h.  */
10469 #include <sys/types.h>
10470 #include <time.h>
10471
10472 int
10473 main ()
10474 {
10475 struct tm *tp; tp->tm_sec;
10476   ;
10477   return 0;
10478 }
10479 _ACEOF
10480 rm -f conftest.$ac_objext
10481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482   (eval $ac_compile) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); } &&
10486          { ac_try='test -s conftest.$ac_objext'
10487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488   (eval $ac_try) 2>&5
10489   ac_status=$?
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); }; }; then
10492   ac_cv_struct_tm=time.h
10493 else
10494   echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10496
10497 ac_cv_struct_tm=sys/time.h
10498 fi
10499 rm -f conftest.$ac_objext conftest.$ac_ext
10500 fi
10501 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10502 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10503 if test $ac_cv_struct_tm = sys/time.h; then
10504
10505 cat >>confdefs.h <<\_ACEOF
10506 #define TM_IN_SYS_TIME 1
10507 _ACEOF
10508
10509 fi
10510
10511 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10512 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10513 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10514   echo $ECHO_N "(cached) $ECHO_C" >&6
10515 else
10516   cat >conftest.$ac_ext <<_ACEOF
10517 #line $LINENO "configure"
10518 /* confdefs.h.  */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h.  */
10523 #include <sys/types.h>
10524 #include <$ac_cv_struct_tm>
10525
10526
10527 int
10528 main ()
10529 {
10530 static struct tm ac_aggr;
10531 if (ac_aggr.tm_zone)
10532 return 0;
10533   ;
10534   return 0;
10535 }
10536 _ACEOF
10537 rm -f conftest.$ac_objext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10539   (eval $ac_compile) 2>&5
10540   ac_status=$?
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); } &&
10543          { ac_try='test -s conftest.$ac_objext'
10544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545   (eval $ac_try) 2>&5
10546   ac_status=$?
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); }; }; then
10549   ac_cv_member_struct_tm_tm_zone=yes
10550 else
10551   echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10553
10554 cat >conftest.$ac_ext <<_ACEOF
10555 #line $LINENO "configure"
10556 /* confdefs.h.  */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h.  */
10561 #include <sys/types.h>
10562 #include <$ac_cv_struct_tm>
10563
10564
10565 int
10566 main ()
10567 {
10568 static struct tm ac_aggr;
10569 if (sizeof ac_aggr.tm_zone)
10570 return 0;
10571   ;
10572   return 0;
10573 }
10574 _ACEOF
10575 rm -f conftest.$ac_objext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10577   (eval $ac_compile) 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); } &&
10581          { ac_try='test -s conftest.$ac_objext'
10582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583   (eval $ac_try) 2>&5
10584   ac_status=$?
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); }; }; then
10587   ac_cv_member_struct_tm_tm_zone=yes
10588 else
10589   echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10591
10592 ac_cv_member_struct_tm_tm_zone=no
10593 fi
10594 rm -f conftest.$ac_objext conftest.$ac_ext
10595 fi
10596 rm -f conftest.$ac_objext conftest.$ac_ext
10597 fi
10598 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10599 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10600 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10601
10602 cat >>confdefs.h <<_ACEOF
10603 #define HAVE_STRUCT_TM_TM_ZONE 1
10604 _ACEOF
10605
10606
10607 fi
10608
10609 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10610
10611 cat >>confdefs.h <<\_ACEOF
10612 #define HAVE_TM_ZONE 1
10613 _ACEOF
10614
10615 else
10616   echo "$as_me:$LINENO: checking for tzname" >&5
10617 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10618 if test "${ac_cv_var_tzname+set}" = set; then
10619   echo $ECHO_N "(cached) $ECHO_C" >&6
10620 else
10621   cat >conftest.$ac_ext <<_ACEOF
10622 #line $LINENO "configure"
10623 /* confdefs.h.  */
10624 _ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h.  */
10628 #include <time.h>
10629 #ifndef tzname /* For SGI.  */
10630 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10631 #endif
10632
10633 int
10634 main ()
10635 {
10636 atoi(*tzname);
10637   ;
10638   return 0;
10639 }
10640 _ACEOF
10641 rm -f conftest.$ac_objext conftest$ac_exeext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10643   (eval $ac_link) 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); } &&
10647          { ac_try='test -s conftest$ac_exeext'
10648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649   (eval $ac_try) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); }; }; then
10653   ac_cv_var_tzname=yes
10654 else
10655   echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10657
10658 ac_cv_var_tzname=no
10659 fi
10660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10661 fi
10662 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10663 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10664   if test $ac_cv_var_tzname = yes; then
10665
10666 cat >>confdefs.h <<\_ACEOF
10667 #define HAVE_TZNAME 1
10668 _ACEOF
10669
10670   fi
10671 fi
10672
10673
10674 echo "$as_me:$LINENO: checking for utime.h" >&5
10675 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10676 if test "${ba_cv_header_utime_h+set}" = set; then
10677   echo $ECHO_N "(cached) $ECHO_C" >&6
10678 else
10679   cat >conftest.$ac_ext <<_ACEOF
10680 #line $LINENO "configure"
10681 /* confdefs.h.  */
10682 _ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h.  */
10686
10687 #include <sys/types.h>
10688 #include <utime.h>
10689 int
10690 main ()
10691 {
10692 struct utimbuf foo
10693   ;
10694   return 0;
10695 }
10696 _ACEOF
10697 rm -f conftest.$ac_objext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10699   (eval $ac_compile) 2>&5
10700   ac_status=$?
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); } &&
10703          { ac_try='test -s conftest.$ac_objext'
10704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705   (eval $ac_try) 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); }; }; then
10709   ba_cv_header_utime_h=yes
10710 else
10711   echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10713
10714 ba_cv_header_utime_h=no
10715 fi
10716 rm -f conftest.$ac_objext conftest.$ac_ext
10717 fi
10718 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10719 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10720 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10721 #define HAVE_UTIME_H 1
10722 _ACEOF
10723
10724
10725 echo "$as_me:$LINENO: checking for socklen_t" >&5
10726 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10727 if test "${ba_cv_header_socklen_t+set}" = set; then
10728   echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730   cat >conftest.$ac_ext <<_ACEOF
10731 #line $LINENO "configure"
10732 /* confdefs.h.  */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h.  */
10737
10738 #include <sys/types.h>
10739 #include <sys/socket.h>
10740 int
10741 main ()
10742 {
10743 socklen_t x
10744   ;
10745   return 0;
10746 }
10747 _ACEOF
10748 rm -f conftest.$ac_objext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10750   (eval $ac_compile) 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); } &&
10754          { ac_try='test -s conftest.$ac_objext'
10755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756   (eval $ac_try) 2>&5
10757   ac_status=$?
10758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759   (exit $ac_status); }; }; then
10760   ba_cv_header_socklen_t=yes
10761 else
10762   echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10764
10765 ba_cv_header_socklen_t=no
10766 fi
10767 rm -f conftest.$ac_objext conftest.$ac_ext
10768 fi
10769 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10770 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10771 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10772 #define HAVE_SOCKLEN_T 1
10773 _ACEOF
10774
10775
10776 echo "$as_me:$LINENO: checking for bigendian" >&5
10777 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10778 if test "${ba_cv_bigendian+set}" = set; then
10779   echo $ECHO_N "(cached) $ECHO_C" >&6
10780 else
10781   if test "$cross_compiling" = yes; then
10782   ba_cv_bigendian=no
10783 else
10784   cat >conftest.$ac_ext <<_ACEOF
10785 #line $LINENO "configure"
10786 /* confdefs.h.  */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h.  */
10791 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10792 _ACEOF
10793 rm -f conftest$ac_exeext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10795   (eval $ac_link) 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800   (eval $ac_try) 2>&5
10801   ac_status=$?
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); }; }; then
10804   ba_cv_bigendian=yes
10805 else
10806   echo "$as_me: program exited with status $ac_status" >&5
10807 echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10809
10810 ( exit $ac_status )
10811 ba_cv_bigendian=no
10812 fi
10813 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10814 fi
10815 fi
10816 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10817 echo "${ECHO_T}$ba_cv_bigendian" >&6
10818 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10819 #define HAVE_BIGENDIAN 1
10820 _ACEOF
10821
10822
10823
10824 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10825 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10826 if test "${ac_cv_c_const+set}" = set; then
10827   echo $ECHO_N "(cached) $ECHO_C" >&6
10828 else
10829   cat >conftest.$ac_ext <<_ACEOF
10830 #line $LINENO "configure"
10831 /* confdefs.h.  */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h.  */
10836
10837 int
10838 main ()
10839 {
10840 /* FIXME: Include the comments suggested by Paul. */
10841 #ifndef __cplusplus
10842   /* Ultrix mips cc rejects this.  */
10843   typedef int charset[2];
10844   const charset x;
10845   /* SunOS 4.1.1 cc rejects this.  */
10846   char const *const *ccp;
10847   char **p;
10848   /* NEC SVR4.0.2 mips cc rejects this.  */
10849   struct point {int x, y;};
10850   static struct point const zero = {0,0};
10851   /* AIX XL C 1.02.0.0 rejects this.
10852      It does not let you subtract one const X* pointer from another in
10853      an arm of an if-expression whose if-part is not a constant
10854      expression */
10855   const char *g = "string";
10856   ccp = &g + (g ? g-g : 0);
10857   /* HPUX 7.0 cc rejects these. */
10858   ++ccp;
10859   p = (char**) ccp;
10860   ccp = (char const *const *) p;
10861   { /* SCO 3.2v4 cc rejects this.  */
10862     char *t;
10863     char const *s = 0 ? (char *) 0 : (char const *) 0;
10864
10865     *t++ = 0;
10866   }
10867   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10868     int x[] = {25, 17};
10869     const int *foo = &x[0];
10870     ++foo;
10871   }
10872   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10873     typedef const int *iptr;
10874     iptr p = 0;
10875     ++p;
10876   }
10877   { /* AIX XL C 1.02.0.0 rejects this saying
10878        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10879     struct s { int j; const int *ap[3]; };
10880     struct s *b; b->j = 5;
10881   }
10882   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10883     const int foo = 10;
10884   }
10885 #endif
10886
10887   ;
10888   return 0;
10889 }
10890 _ACEOF
10891 rm -f conftest.$ac_objext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10893   (eval $ac_compile) 2>&5
10894   ac_status=$?
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); } &&
10897          { ac_try='test -s conftest.$ac_objext'
10898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899   (eval $ac_try) 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; }; then
10903   ac_cv_c_const=yes
10904 else
10905   echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10907
10908 ac_cv_c_const=no
10909 fi
10910 rm -f conftest.$ac_objext conftest.$ac_ext
10911 fi
10912 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10913 echo "${ECHO_T}$ac_cv_c_const" >&6
10914 if test $ac_cv_c_const = no; then
10915
10916 cat >>confdefs.h <<\_ACEOF
10917 #define const
10918 _ACEOF
10919
10920 fi
10921
10922
10923
10924 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10925 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10926 fstype=no
10927 # The order of these tests is important.
10928 cat >conftest.$ac_ext <<_ACEOF
10929 #line $LINENO "configure"
10930 /* confdefs.h.  */
10931 _ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h.  */
10935 #include <sys/statvfs.h>
10936 #include <sys/fstyp.h>
10937 _ACEOF
10938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10940   ac_status=$?
10941   grep -v '^ *+' conftest.er1 >conftest.err
10942   rm -f conftest.er1
10943   cat conftest.err >&5
10944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); } >/dev/null; then
10946   if test -s conftest.err; then
10947     ac_cpp_err=$ac_c_preproc_warn_flag
10948   else
10949     ac_cpp_err=
10950   fi
10951 else
10952   ac_cpp_err=yes
10953 fi
10954 if test -z "$ac_cpp_err"; then
10955   cat >>confdefs.h <<\_ACEOF
10956 #define FSTYPE_STATVFS 1
10957 _ACEOF
10958  fstype=SVR4
10959 else
10960   echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10962
10963
10964 fi
10965 rm -f conftest.err conftest.$ac_ext
10966 if test $fstype = no; then
10967 cat >conftest.$ac_ext <<_ACEOF
10968 #line $LINENO "configure"
10969 /* confdefs.h.  */
10970 _ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h.  */
10974 #include <sys/statfs.h>
10975 #include <sys/fstyp.h>
10976 _ACEOF
10977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10979   ac_status=$?
10980   grep -v '^ *+' conftest.er1 >conftest.err
10981   rm -f conftest.er1
10982   cat conftest.err >&5
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); } >/dev/null; then
10985   if test -s conftest.err; then
10986     ac_cpp_err=$ac_c_preproc_warn_flag
10987   else
10988     ac_cpp_err=
10989   fi
10990 else
10991   ac_cpp_err=yes
10992 fi
10993 if test -z "$ac_cpp_err"; then
10994   cat >>confdefs.h <<\_ACEOF
10995 #define FSTYPE_USG_STATFS 1
10996 _ACEOF
10997  fstype=SVR3
10998 else
10999   echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11001
11002
11003 fi
11004 rm -f conftest.err conftest.$ac_ext
11005 fi
11006 if test $fstype = no; then
11007 cat >conftest.$ac_ext <<_ACEOF
11008 #line $LINENO "configure"
11009 /* confdefs.h.  */
11010 _ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h.  */
11014 #include <sys/statfs.h>
11015 #include <sys/vmount.h>
11016 _ACEOF
11017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11019   ac_status=$?
11020   grep -v '^ *+' conftest.er1 >conftest.err
11021   rm -f conftest.er1
11022   cat conftest.err >&5
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); } >/dev/null; then
11025   if test -s conftest.err; then
11026     ac_cpp_err=$ac_c_preproc_warn_flag
11027   else
11028     ac_cpp_err=
11029   fi
11030 else
11031   ac_cpp_err=yes
11032 fi
11033 if test -z "$ac_cpp_err"; then
11034   cat >>confdefs.h <<\_ACEOF
11035 #define FSTYPE_AIX_STATFS 1
11036 _ACEOF
11037  fstype=AIX
11038 else
11039   echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11041
11042
11043 fi
11044 rm -f conftest.err conftest.$ac_ext
11045 fi
11046 if test $fstype = no; then
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 #include <mntent.h>
11055 _ACEOF
11056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11058   ac_status=$?
11059   grep -v '^ *+' conftest.er1 >conftest.err
11060   rm -f conftest.er1
11061   cat conftest.err >&5
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } >/dev/null; then
11064   if test -s conftest.err; then
11065     ac_cpp_err=$ac_c_preproc_warn_flag
11066   else
11067     ac_cpp_err=
11068   fi
11069 else
11070   ac_cpp_err=yes
11071 fi
11072 if test -z "$ac_cpp_err"; then
11073   cat >>confdefs.h <<\_ACEOF
11074 #define FSTYPE_MNTENT 1
11075 _ACEOF
11076  fstype=4.3BSD
11077 else
11078   echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11080
11081
11082 fi
11083 rm -f conftest.err conftest.$ac_ext
11084 fi
11085 if test $fstype = no; then
11086 cat >conftest.$ac_ext <<_ACEOF
11087 #line $LINENO "configure"
11088 /* confdefs.h.  */
11089 _ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h.  */
11093 #include <sys/mount.h>
11094
11095 _ACEOF
11096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11097   $EGREP "f_type;" >/dev/null 2>&1; then
11098   cat >>confdefs.h <<\_ACEOF
11099 #define FSTYPE_STATFS 1
11100 _ACEOF
11101  fstype=4.4BSD/OSF1
11102 fi
11103 rm -f conftest*
11104
11105 fi
11106 if test $fstype = no; then
11107 cat >conftest.$ac_ext <<_ACEOF
11108 #line $LINENO "configure"
11109 /* confdefs.h.  */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h.  */
11114 #include <sys/mount.h>
11115 #include <sys/fs_types.h>
11116 _ACEOF
11117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11119   ac_status=$?
11120   grep -v '^ *+' conftest.er1 >conftest.err
11121   rm -f conftest.er1
11122   cat conftest.err >&5
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); } >/dev/null; then
11125   if test -s conftest.err; then
11126     ac_cpp_err=$ac_c_preproc_warn_flag
11127   else
11128     ac_cpp_err=
11129   fi
11130 else
11131   ac_cpp_err=yes
11132 fi
11133 if test -z "$ac_cpp_err"; then
11134   cat >>confdefs.h <<\_ACEOF
11135 #define FSTYPE_GETMNT 1
11136 _ACEOF
11137  fstype=Ultrix
11138 else
11139   echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11141
11142
11143 fi
11144 rm -f conftest.err conftest.$ac_ext
11145 fi
11146 echo "$as_me:$LINENO: result: $fstype" >&5
11147 echo "${ECHO_T}$fstype" >&6
11148
11149 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11150 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11151 if test "${ac_cv_type_signal+set}" = set; then
11152   echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154   cat >conftest.$ac_ext <<_ACEOF
11155 #line $LINENO "configure"
11156 /* confdefs.h.  */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h.  */
11161 #include <sys/types.h>
11162 #include <signal.h>
11163 #ifdef signal
11164 # undef signal
11165 #endif
11166 #ifdef __cplusplus
11167 extern "C" void (*signal (int, void (*)(int)))(int);
11168 #else
11169 void (*signal ()) ();
11170 #endif
11171
11172 int
11173 main ()
11174 {
11175 int i;
11176   ;
11177   return 0;
11178 }
11179 _ACEOF
11180 rm -f conftest.$ac_objext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11182   (eval $ac_compile) 2>&5
11183   ac_status=$?
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); } &&
11186          { ac_try='test -s conftest.$ac_objext'
11187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188   (eval $ac_try) 2>&5
11189   ac_status=$?
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); }; }; then
11192   ac_cv_type_signal=void
11193 else
11194   echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11196
11197 ac_cv_type_signal=int
11198 fi
11199 rm -f conftest.$ac_objext conftest.$ac_ext
11200 fi
11201 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11202 echo "${ECHO_T}$ac_cv_type_signal" >&6
11203
11204 cat >>confdefs.h <<_ACEOF
11205 #define RETSIGTYPE $ac_cv_type_signal
11206 _ACEOF
11207
11208
11209
11210 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11211 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11212 if test "${bash_cv_signal_vintage+set}" = set; then
11213   echo $ECHO_N "(cached) $ECHO_C" >&6
11214 else
11215
11216   cat >conftest.$ac_ext <<_ACEOF
11217 #line $LINENO "configure"
11218 /* confdefs.h.  */
11219 _ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h.  */
11223 #include <signal.h>
11224 int
11225 main ()
11226 {
11227
11228     sigset_t ss;
11229     struct sigaction sa;
11230     sigemptyset(&ss); sigsuspend(&ss);
11231     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11232     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11233
11234   ;
11235   return 0;
11236 }
11237 _ACEOF
11238 rm -f conftest.$ac_objext conftest$ac_exeext
11239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11240   (eval $ac_link) 2>&5
11241   ac_status=$?
11242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243   (exit $ac_status); } &&
11244          { ac_try='test -s conftest$ac_exeext'
11245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246   (eval $ac_try) 2>&5
11247   ac_status=$?
11248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249   (exit $ac_status); }; }; then
11250   bash_cv_signal_vintage=posix
11251 else
11252   echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11254
11255
11256     cat >conftest.$ac_ext <<_ACEOF
11257 #line $LINENO "configure"
11258 /* confdefs.h.  */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h.  */
11263 #include <signal.h>
11264 int
11265 main ()
11266 {
11267
11268         int mask = sigmask(SIGINT);
11269         sigsetmask(mask); sigblock(mask); sigpause(mask);
11270
11271   ;
11272   return 0;
11273 }
11274 _ACEOF
11275 rm -f conftest.$ac_objext conftest$ac_exeext
11276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11277   (eval $ac_link) 2>&5
11278   ac_status=$?
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); } &&
11281          { ac_try='test -s conftest$ac_exeext'
11282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283   (eval $ac_try) 2>&5
11284   ac_status=$?
11285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286   (exit $ac_status); }; }; then
11287   bash_cv_signal_vintage=4.2bsd
11288 else
11289   echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11291
11292
11293       cat >conftest.$ac_ext <<_ACEOF
11294 #line $LINENO "configure"
11295 /* confdefs.h.  */
11296 _ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h.  */
11300
11301         #include <signal.h>
11302         RETSIGTYPE foo() { }
11303 int
11304 main ()
11305 {
11306
11307                 int mask = sigmask(SIGINT);
11308                 sigset(SIGINT, foo); sigrelse(SIGINT);
11309                 sighold(SIGINT); sigpause(SIGINT);
11310
11311   ;
11312   return 0;
11313 }
11314 _ACEOF
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11317   (eval $ac_link) 2>&5
11318   ac_status=$?
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); } &&
11321          { ac_try='test -s conftest$ac_exeext'
11322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323   (eval $ac_try) 2>&5
11324   ac_status=$?
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); }; }; then
11327   bash_cv_signal_vintage=svr3
11328 else
11329   echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11331
11332 bash_cv_signal_vintage=v7
11333
11334 fi
11335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11336
11337 fi
11338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11339
11340 fi
11341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11342
11343 fi
11344
11345 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11346 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11347 if test "$bash_cv_signal_vintage" = posix; then
11348 cat >>confdefs.h <<\_ACEOF
11349 #define HAVE_POSIX_SIGNALS 1
11350 _ACEOF
11351
11352 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11353 cat >>confdefs.h <<\_ACEOF
11354 #define HAVE_BSD_SIGNALS 1
11355 _ACEOF
11356
11357 elif test "$bash_cv_signal_vintage" = svr3; then
11358 cat >>confdefs.h <<\_ACEOF
11359 #define HAVE_USG_SIGHOLD 1
11360 _ACEOF
11361
11362 fi
11363
11364 echo "$as_me:$LINENO: checking for mode_t" >&5
11365 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11366 if test "${ac_cv_type_mode_t+set}" = set; then
11367   echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369   cat >conftest.$ac_ext <<_ACEOF
11370 #line $LINENO "configure"
11371 /* confdefs.h.  */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h.  */
11376 $ac_includes_default
11377 int
11378 main ()
11379 {
11380 if ((mode_t *) 0)
11381   return 0;
11382 if (sizeof (mode_t))
11383   return 0;
11384   ;
11385   return 0;
11386 }
11387 _ACEOF
11388 rm -f conftest.$ac_objext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11390   (eval $ac_compile) 2>&5
11391   ac_status=$?
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); } &&
11394          { ac_try='test -s conftest.$ac_objext'
11395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396   (eval $ac_try) 2>&5
11397   ac_status=$?
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); }; }; then
11400   ac_cv_type_mode_t=yes
11401 else
11402   echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11404
11405 ac_cv_type_mode_t=no
11406 fi
11407 rm -f conftest.$ac_objext conftest.$ac_ext
11408 fi
11409 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11410 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11411 if test $ac_cv_type_mode_t = yes; then
11412   :
11413 else
11414
11415 cat >>confdefs.h <<_ACEOF
11416 #define mode_t int
11417 _ACEOF
11418
11419 fi
11420
11421 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11422 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11423 if test "${ac_cv_type_uid_t+set}" = set; then
11424   echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426   cat >conftest.$ac_ext <<_ACEOF
11427 #line $LINENO "configure"
11428 /* confdefs.h.  */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h.  */
11433 #include <sys/types.h>
11434
11435 _ACEOF
11436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11437   $EGREP "uid_t" >/dev/null 2>&1; then
11438   ac_cv_type_uid_t=yes
11439 else
11440   ac_cv_type_uid_t=no
11441 fi
11442 rm -f conftest*
11443
11444 fi
11445 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11446 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11447 if test $ac_cv_type_uid_t = no; then
11448
11449 cat >>confdefs.h <<\_ACEOF
11450 #define uid_t int
11451 _ACEOF
11452
11453
11454 cat >>confdefs.h <<\_ACEOF
11455 #define gid_t int
11456 _ACEOF
11457
11458 fi
11459
11460 echo "$as_me:$LINENO: checking for size_t" >&5
11461 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11462 if test "${ac_cv_type_size_t+set}" = set; then
11463   echo $ECHO_N "(cached) $ECHO_C" >&6
11464 else
11465   cat >conftest.$ac_ext <<_ACEOF
11466 #line $LINENO "configure"
11467 /* confdefs.h.  */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h.  */
11472 $ac_includes_default
11473 int
11474 main ()
11475 {
11476 if ((size_t *) 0)
11477   return 0;
11478 if (sizeof (size_t))
11479   return 0;
11480   ;
11481   return 0;
11482 }
11483 _ACEOF
11484 rm -f conftest.$ac_objext
11485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11486   (eval $ac_compile) 2>&5
11487   ac_status=$?
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); } &&
11490          { ac_try='test -s conftest.$ac_objext'
11491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492   (eval $ac_try) 2>&5
11493   ac_status=$?
11494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); }; }; then
11496   ac_cv_type_size_t=yes
11497 else
11498   echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11500
11501 ac_cv_type_size_t=no
11502 fi
11503 rm -f conftest.$ac_objext conftest.$ac_ext
11504 fi
11505 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11506 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11507 if test $ac_cv_type_size_t = yes; then
11508   :
11509 else
11510
11511 cat >>confdefs.h <<_ACEOF
11512 #define size_t unsigned
11513 _ACEOF
11514
11515 fi
11516
11517 echo "$as_me:$LINENO: checking for pid_t" >&5
11518 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11519 if test "${ac_cv_type_pid_t+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 $ac_includes_default
11530 int
11531 main ()
11532 {
11533 if ((pid_t *) 0)
11534   return 0;
11535 if (sizeof (pid_t))
11536   return 0;
11537   ;
11538   return 0;
11539 }
11540 _ACEOF
11541 rm -f conftest.$ac_objext
11542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11543   (eval $ac_compile) 2>&5
11544   ac_status=$?
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); } &&
11547          { ac_try='test -s conftest.$ac_objext'
11548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549   (eval $ac_try) 2>&5
11550   ac_status=$?
11551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552   (exit $ac_status); }; }; then
11553   ac_cv_type_pid_t=yes
11554 else
11555   echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11557
11558 ac_cv_type_pid_t=no
11559 fi
11560 rm -f conftest.$ac_objext conftest.$ac_ext
11561 fi
11562 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11563 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11564 if test $ac_cv_type_pid_t = yes; then
11565   :
11566 else
11567
11568 cat >>confdefs.h <<_ACEOF
11569 #define pid_t int
11570 _ACEOF
11571
11572 fi
11573
11574 echo "$as_me:$LINENO: checking for off_t" >&5
11575 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11576 if test "${ac_cv_type_off_t+set}" = set; then
11577   echo $ECHO_N "(cached) $ECHO_C" >&6
11578 else
11579   cat >conftest.$ac_ext <<_ACEOF
11580 #line $LINENO "configure"
11581 /* confdefs.h.  */
11582 _ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h.  */
11586 $ac_includes_default
11587 int
11588 main ()
11589 {
11590 if ((off_t *) 0)
11591   return 0;
11592 if (sizeof (off_t))
11593   return 0;
11594   ;
11595   return 0;
11596 }
11597 _ACEOF
11598 rm -f conftest.$ac_objext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11600   (eval $ac_compile) 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); } &&
11604          { ac_try='test -s conftest.$ac_objext'
11605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606   (eval $ac_try) 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); }; }; then
11610   ac_cv_type_off_t=yes
11611 else
11612   echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11614
11615 ac_cv_type_off_t=no
11616 fi
11617 rm -f conftest.$ac_objext conftest.$ac_ext
11618 fi
11619 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11620 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11621 if test $ac_cv_type_off_t = yes; then
11622   :
11623 else
11624
11625 cat >>confdefs.h <<_ACEOF
11626 #define off_t long
11627 _ACEOF
11628
11629 fi
11630
11631 echo "$as_me:$LINENO: checking for ino_t" >&5
11632 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11633 if test "${ac_cv_type_ino_t+set}" = set; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636   cat >conftest.$ac_ext <<_ACEOF
11637 #line $LINENO "configure"
11638 /* confdefs.h.  */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h.  */
11643 $ac_includes_default
11644 int
11645 main ()
11646 {
11647 if ((ino_t *) 0)
11648   return 0;
11649 if (sizeof (ino_t))
11650   return 0;
11651   ;
11652   return 0;
11653 }
11654 _ACEOF
11655 rm -f conftest.$ac_objext
11656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11657   (eval $ac_compile) 2>&5
11658   ac_status=$?
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); } &&
11661          { ac_try='test -s conftest.$ac_objext'
11662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663   (eval $ac_try) 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); }; }; then
11667   ac_cv_type_ino_t=yes
11668 else
11669   echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11671
11672 ac_cv_type_ino_t=no
11673 fi
11674 rm -f conftest.$ac_objext conftest.$ac_ext
11675 fi
11676 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11677 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11678 if test $ac_cv_type_ino_t = yes; then
11679   :
11680 else
11681
11682 cat >>confdefs.h <<_ACEOF
11683 #define ino_t unsigned long
11684 _ACEOF
11685
11686 fi
11687
11688 echo "$as_me:$LINENO: checking for dev_t" >&5
11689 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11690 if test "${ac_cv_type_dev_t+set}" = set; then
11691   echo $ECHO_N "(cached) $ECHO_C" >&6
11692 else
11693   cat >conftest.$ac_ext <<_ACEOF
11694 #line $LINENO "configure"
11695 /* confdefs.h.  */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h.  */
11700 $ac_includes_default
11701 int
11702 main ()
11703 {
11704 if ((dev_t *) 0)
11705   return 0;
11706 if (sizeof (dev_t))
11707   return 0;
11708   ;
11709   return 0;
11710 }
11711 _ACEOF
11712 rm -f conftest.$ac_objext
11713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11714   (eval $ac_compile) 2>&5
11715   ac_status=$?
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); } &&
11718          { ac_try='test -s conftest.$ac_objext'
11719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720   (eval $ac_try) 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); }; }; then
11724   ac_cv_type_dev_t=yes
11725 else
11726   echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11728
11729 ac_cv_type_dev_t=no
11730 fi
11731 rm -f conftest.$ac_objext conftest.$ac_ext
11732 fi
11733 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11734 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11735 if test $ac_cv_type_dev_t = yes; then
11736   :
11737 else
11738
11739 cat >>confdefs.h <<_ACEOF
11740 #define dev_t unsigned long
11741 _ACEOF
11742
11743 fi
11744
11745 echo "$as_me:$LINENO: checking for daddr_t" >&5
11746 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11747 if test "${ac_cv_type_daddr_t+set}" = set; then
11748   echo $ECHO_N "(cached) $ECHO_C" >&6
11749 else
11750   cat >conftest.$ac_ext <<_ACEOF
11751 #line $LINENO "configure"
11752 /* confdefs.h.  */
11753 _ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h.  */
11757 $ac_includes_default
11758 int
11759 main ()
11760 {
11761 if ((daddr_t *) 0)
11762   return 0;
11763 if (sizeof (daddr_t))
11764   return 0;
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11771   (eval $ac_compile) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); } &&
11775          { ac_try='test -s conftest.$ac_objext'
11776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777   (eval $ac_try) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; }; then
11781   ac_cv_type_daddr_t=yes
11782 else
11783   echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11785
11786 ac_cv_type_daddr_t=no
11787 fi
11788 rm -f conftest.$ac_objext conftest.$ac_ext
11789 fi
11790 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11791 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11792 if test $ac_cv_type_daddr_t = yes; then
11793   :
11794 else
11795
11796 cat >>confdefs.h <<_ACEOF
11797 #define daddr_t long
11798 _ACEOF
11799
11800 fi
11801
11802 echo "$as_me:$LINENO: checking for major_t" >&5
11803 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11804 if test "${ac_cv_type_major_t+set}" = set; then
11805   echo $ECHO_N "(cached) $ECHO_C" >&6
11806 else
11807   cat >conftest.$ac_ext <<_ACEOF
11808 #line $LINENO "configure"
11809 /* confdefs.h.  */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h.  */
11814 $ac_includes_default
11815 int
11816 main ()
11817 {
11818 if ((major_t *) 0)
11819   return 0;
11820 if (sizeof (major_t))
11821   return 0;
11822   ;
11823   return 0;
11824 }
11825 _ACEOF
11826 rm -f conftest.$ac_objext
11827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11828   (eval $ac_compile) 2>&5
11829   ac_status=$?
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); } &&
11832          { ac_try='test -s conftest.$ac_objext'
11833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834   (eval $ac_try) 2>&5
11835   ac_status=$?
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); }; }; then
11838   ac_cv_type_major_t=yes
11839 else
11840   echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11842
11843 ac_cv_type_major_t=no
11844 fi
11845 rm -f conftest.$ac_objext conftest.$ac_ext
11846 fi
11847 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11848 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11849 if test $ac_cv_type_major_t = yes; then
11850   :
11851 else
11852
11853 cat >>confdefs.h <<_ACEOF
11854 #define major_t int
11855 _ACEOF
11856
11857 fi
11858
11859 echo "$as_me:$LINENO: checking for minor_t" >&5
11860 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11861 if test "${ac_cv_type_minor_t+set}" = set; then
11862   echo $ECHO_N "(cached) $ECHO_C" >&6
11863 else
11864   cat >conftest.$ac_ext <<_ACEOF
11865 #line $LINENO "configure"
11866 /* confdefs.h.  */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h.  */
11871 $ac_includes_default
11872 int
11873 main ()
11874 {
11875 if ((minor_t *) 0)
11876   return 0;
11877 if (sizeof (minor_t))
11878   return 0;
11879   ;
11880   return 0;
11881 }
11882 _ACEOF
11883 rm -f conftest.$ac_objext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11885   (eval $ac_compile) 2>&5
11886   ac_status=$?
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); } &&
11889          { ac_try='test -s conftest.$ac_objext'
11890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891   (eval $ac_try) 2>&5
11892   ac_status=$?
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); }; }; then
11895   ac_cv_type_minor_t=yes
11896 else
11897   echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900 ac_cv_type_minor_t=no
11901 fi
11902 rm -f conftest.$ac_objext conftest.$ac_ext
11903 fi
11904 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11905 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11906 if test $ac_cv_type_minor_t = yes; then
11907   :
11908 else
11909
11910 cat >>confdefs.h <<_ACEOF
11911 #define minor_t int
11912 _ACEOF
11913
11914 fi
11915
11916 echo "$as_me:$LINENO: checking for ssize_t" >&5
11917 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11918 if test "${ac_cv_type_ssize_t+set}" = set; then
11919   echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921   cat >conftest.$ac_ext <<_ACEOF
11922 #line $LINENO "configure"
11923 /* confdefs.h.  */
11924 _ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h.  */
11928 $ac_includes_default
11929 int
11930 main ()
11931 {
11932 if ((ssize_t *) 0)
11933   return 0;
11934 if (sizeof (ssize_t))
11935   return 0;
11936   ;
11937   return 0;
11938 }
11939 _ACEOF
11940 rm -f conftest.$ac_objext
11941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11942   (eval $ac_compile) 2>&5
11943   ac_status=$?
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); } &&
11946          { ac_try='test -s conftest.$ac_objext'
11947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948   (eval $ac_try) 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); }; }; then
11952   ac_cv_type_ssize_t=yes
11953 else
11954   echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957 ac_cv_type_ssize_t=no
11958 fi
11959 rm -f conftest.$ac_objext conftest.$ac_ext
11960 fi
11961 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11962 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11963 if test $ac_cv_type_ssize_t = yes; then
11964   :
11965 else
11966
11967 cat >>confdefs.h <<_ACEOF
11968 #define ssize_t int
11969 _ACEOF
11970
11971 fi
11972
11973 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11974 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11975 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11976   echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978   cat >conftest.$ac_ext <<_ACEOF
11979 #line $LINENO "configure"
11980 /* confdefs.h.  */
11981 _ACEOF
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h.  */
11985 $ac_includes_default
11986 int
11987 main ()
11988 {
11989 static struct stat ac_aggr;
11990 if (ac_aggr.st_blocks)
11991 return 0;
11992   ;
11993   return 0;
11994 }
11995 _ACEOF
11996 rm -f conftest.$ac_objext
11997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11998   (eval $ac_compile) 2>&5
11999   ac_status=$?
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); } &&
12002          { ac_try='test -s conftest.$ac_objext'
12003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004   (eval $ac_try) 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); }; }; then
12008   ac_cv_member_struct_stat_st_blocks=yes
12009 else
12010   echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12012
12013 cat >conftest.$ac_ext <<_ACEOF
12014 #line $LINENO "configure"
12015 /* confdefs.h.  */
12016 _ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h.  */
12020 $ac_includes_default
12021 int
12022 main ()
12023 {
12024 static struct stat ac_aggr;
12025 if (sizeof ac_aggr.st_blocks)
12026 return 0;
12027   ;
12028   return 0;
12029 }
12030 _ACEOF
12031 rm -f conftest.$ac_objext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12033   (eval $ac_compile) 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); } &&
12037          { ac_try='test -s conftest.$ac_objext'
12038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039   (eval $ac_try) 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); }; }; then
12043   ac_cv_member_struct_stat_st_blocks=yes
12044 else
12045   echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048 ac_cv_member_struct_stat_st_blocks=no
12049 fi
12050 rm -f conftest.$ac_objext conftest.$ac_ext
12051 fi
12052 rm -f conftest.$ac_objext conftest.$ac_ext
12053 fi
12054 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12055 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12056 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12057
12058 cat >>confdefs.h <<_ACEOF
12059 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12060 _ACEOF
12061
12062
12063 cat >>confdefs.h <<\_ACEOF
12064 #define HAVE_ST_BLOCKS 1
12065 _ACEOF
12066
12067 else
12068   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12069 fi
12070
12071
12072
12073 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12074 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12075 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12076   echo $ECHO_N "(cached) $ECHO_C" >&6
12077 else
12078   cat >conftest.$ac_ext <<_ACEOF
12079 #line $LINENO "configure"
12080 /* confdefs.h.  */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h.  */
12085 $ac_includes_default
12086 int
12087 main ()
12088 {
12089 static struct stat ac_aggr;
12090 if (ac_aggr.st_rdev)
12091 return 0;
12092   ;
12093   return 0;
12094 }
12095 _ACEOF
12096 rm -f conftest.$ac_objext
12097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12098   (eval $ac_compile) 2>&5
12099   ac_status=$?
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); } &&
12102          { ac_try='test -s conftest.$ac_objext'
12103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104   (eval $ac_try) 2>&5
12105   ac_status=$?
12106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); }; }; then
12108   ac_cv_member_struct_stat_st_rdev=yes
12109 else
12110   echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 cat >conftest.$ac_ext <<_ACEOF
12114 #line $LINENO "configure"
12115 /* confdefs.h.  */
12116 _ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h.  */
12120 $ac_includes_default
12121 int
12122 main ()
12123 {
12124 static struct stat ac_aggr;
12125 if (sizeof ac_aggr.st_rdev)
12126 return 0;
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131 rm -f conftest.$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133   (eval $ac_compile) 2>&5
12134   ac_status=$?
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); } &&
12137          { ac_try='test -s conftest.$ac_objext'
12138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139   (eval $ac_try) 2>&5
12140   ac_status=$?
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); }; }; then
12143   ac_cv_member_struct_stat_st_rdev=yes
12144 else
12145   echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12147
12148 ac_cv_member_struct_stat_st_rdev=no
12149 fi
12150 rm -f conftest.$ac_objext conftest.$ac_ext
12151 fi
12152 rm -f conftest.$ac_objext conftest.$ac_ext
12153 fi
12154 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12155 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12156 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12157
12158 cat >>confdefs.h <<_ACEOF
12159 #define HAVE_STRUCT_STAT_ST_RDEV 1
12160 _ACEOF
12161
12162
12163 cat >>confdefs.h <<\_ACEOF
12164 #define HAVE_ST_RDEV 1
12165 _ACEOF
12166
12167 fi
12168
12169
12170 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12171 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12172 if test "${ac_cv_struct_tm+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 #include <sys/types.h>
12183 #include <time.h>
12184
12185 int
12186 main ()
12187 {
12188 struct tm *tp; tp->tm_sec;
12189   ;
12190   return 0;
12191 }
12192 _ACEOF
12193 rm -f conftest.$ac_objext
12194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12195   (eval $ac_compile) 2>&5
12196   ac_status=$?
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); } &&
12199          { ac_try='test -s conftest.$ac_objext'
12200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201   (eval $ac_try) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; }; then
12205   ac_cv_struct_tm=time.h
12206 else
12207   echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12209
12210 ac_cv_struct_tm=sys/time.h
12211 fi
12212 rm -f conftest.$ac_objext conftest.$ac_ext
12213 fi
12214 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12215 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12216 if test $ac_cv_struct_tm = sys/time.h; then
12217
12218 cat >>confdefs.h <<\_ACEOF
12219 #define TM_IN_SYS_TIME 1
12220 _ACEOF
12221
12222 fi
12223
12224 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12225 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12226 if test "${ac_cv_c_const+set}" = set; then
12227   echo $ECHO_N "(cached) $ECHO_C" >&6
12228 else
12229   cat >conftest.$ac_ext <<_ACEOF
12230 #line $LINENO "configure"
12231 /* confdefs.h.  */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h.  */
12236
12237 int
12238 main ()
12239 {
12240 /* FIXME: Include the comments suggested by Paul. */
12241 #ifndef __cplusplus
12242   /* Ultrix mips cc rejects this.  */
12243   typedef int charset[2];
12244   const charset x;
12245   /* SunOS 4.1.1 cc rejects this.  */
12246   char const *const *ccp;
12247   char **p;
12248   /* NEC SVR4.0.2 mips cc rejects this.  */
12249   struct point {int x, y;};
12250   static struct point const zero = {0,0};
12251   /* AIX XL C 1.02.0.0 rejects this.
12252      It does not let you subtract one const X* pointer from another in
12253      an arm of an if-expression whose if-part is not a constant
12254      expression */
12255   const char *g = "string";
12256   ccp = &g + (g ? g-g : 0);
12257   /* HPUX 7.0 cc rejects these. */
12258   ++ccp;
12259   p = (char**) ccp;
12260   ccp = (char const *const *) p;
12261   { /* SCO 3.2v4 cc rejects this.  */
12262     char *t;
12263     char const *s = 0 ? (char *) 0 : (char const *) 0;
12264
12265     *t++ = 0;
12266   }
12267   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12268     int x[] = {25, 17};
12269     const int *foo = &x[0];
12270     ++foo;
12271   }
12272   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12273     typedef const int *iptr;
12274     iptr p = 0;
12275     ++p;
12276   }
12277   { /* AIX XL C 1.02.0.0 rejects this saying
12278        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12279     struct s { int j; const int *ap[3]; };
12280     struct s *b; b->j = 5;
12281   }
12282   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12283     const int foo = 10;
12284   }
12285 #endif
12286
12287   ;
12288   return 0;
12289 }
12290 _ACEOF
12291 rm -f conftest.$ac_objext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293   (eval $ac_compile) 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); } &&
12297          { ac_try='test -s conftest.$ac_objext'
12298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299   (eval $ac_try) 2>&5
12300   ac_status=$?
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); }; }; then
12303   ac_cv_c_const=yes
12304 else
12305   echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12307
12308 ac_cv_c_const=no
12309 fi
12310 rm -f conftest.$ac_objext conftest.$ac_ext
12311 fi
12312 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12313 echo "${ECHO_T}$ac_cv_c_const" >&6
12314 if test $ac_cv_c_const = no; then
12315
12316 cat >>confdefs.h <<\_ACEOF
12317 #define const
12318 _ACEOF
12319
12320 fi
12321
12322
12323
12324 echo "$as_me:$LINENO: checking for char" >&5
12325 echo $ECHO_N "checking for char... $ECHO_C" >&6
12326 if test "${ac_cv_type_char+set}" = set; then
12327   echo $ECHO_N "(cached) $ECHO_C" >&6
12328 else
12329   cat >conftest.$ac_ext <<_ACEOF
12330 #line $LINENO "configure"
12331 /* confdefs.h.  */
12332 _ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h.  */
12336 $ac_includes_default
12337 int
12338 main ()
12339 {
12340 if ((char *) 0)
12341   return 0;
12342 if (sizeof (char))
12343   return 0;
12344   ;
12345   return 0;
12346 }
12347 _ACEOF
12348 rm -f conftest.$ac_objext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12350   (eval $ac_compile) 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); } &&
12354          { ac_try='test -s conftest.$ac_objext'
12355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356   (eval $ac_try) 2>&5
12357   ac_status=$?
12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359   (exit $ac_status); }; }; then
12360   ac_cv_type_char=yes
12361 else
12362   echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12364
12365 ac_cv_type_char=no
12366 fi
12367 rm -f conftest.$ac_objext conftest.$ac_ext
12368 fi
12369 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12370 echo "${ECHO_T}$ac_cv_type_char" >&6
12371
12372 echo "$as_me:$LINENO: checking size of char" >&5
12373 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12374 if test "${ac_cv_sizeof_char+set}" = set; then
12375   echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377   if test "$ac_cv_type_char" = yes; then
12378   # The cast to unsigned long works around a bug in the HP C Compiler
12379   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12380   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12381   # This bug is HP SR number 8606223364.
12382   if test "$cross_compiling" = yes; then
12383   # Depending upon the size, compute the lo and hi bounds.
12384 cat >conftest.$ac_ext <<_ACEOF
12385 #line $LINENO "configure"
12386 /* confdefs.h.  */
12387 _ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h.  */
12391 $ac_includes_default
12392 int
12393 main ()
12394 {
12395 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12396 test_array [0] = 0
12397
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 rm -f conftest.$ac_objext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12404   (eval $ac_compile) 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); } &&
12408          { ac_try='test -s conftest.$ac_objext'
12409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410   (eval $ac_try) 2>&5
12411   ac_status=$?
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); }; }; then
12414   ac_lo=0 ac_mid=0
12415   while :; do
12416     cat >conftest.$ac_ext <<_ACEOF
12417 #line $LINENO "configure"
12418 /* confdefs.h.  */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h.  */
12423 $ac_includes_default
12424 int
12425 main ()
12426 {
12427 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12428 test_array [0] = 0
12429
12430   ;
12431   return 0;
12432 }
12433 _ACEOF
12434 rm -f conftest.$ac_objext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12436   (eval $ac_compile) 2>&5
12437   ac_status=$?
12438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439   (exit $ac_status); } &&
12440          { ac_try='test -s conftest.$ac_objext'
12441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442   (eval $ac_try) 2>&5
12443   ac_status=$?
12444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); }; }; then
12446   ac_hi=$ac_mid; break
12447 else
12448   echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12450
12451 ac_lo=`expr $ac_mid + 1`
12452                     if test $ac_lo -le $ac_mid; then
12453                       ac_lo= ac_hi=
12454                       break
12455                     fi
12456                     ac_mid=`expr 2 '*' $ac_mid + 1`
12457 fi
12458 rm -f conftest.$ac_objext conftest.$ac_ext
12459   done
12460 else
12461   echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12463
12464 cat >conftest.$ac_ext <<_ACEOF
12465 #line $LINENO "configure"
12466 /* confdefs.h.  */
12467 _ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h.  */
12471 $ac_includes_default
12472 int
12473 main ()
12474 {
12475 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12476 test_array [0] = 0
12477
12478   ;
12479   return 0;
12480 }
12481 _ACEOF
12482 rm -f conftest.$ac_objext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484   (eval $ac_compile) 2>&5
12485   ac_status=$?
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); } &&
12488          { ac_try='test -s conftest.$ac_objext'
12489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490   (eval $ac_try) 2>&5
12491   ac_status=$?
12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493   (exit $ac_status); }; }; then
12494   ac_hi=-1 ac_mid=-1
12495   while :; do
12496     cat >conftest.$ac_ext <<_ACEOF
12497 #line $LINENO "configure"
12498 /* confdefs.h.  */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h.  */
12503 $ac_includes_default
12504 int
12505 main ()
12506 {
12507 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12508 test_array [0] = 0
12509
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516   (eval $ac_compile) 2>&5
12517   ac_status=$?
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); } &&
12520          { ac_try='test -s conftest.$ac_objext'
12521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522   (eval $ac_try) 2>&5
12523   ac_status=$?
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); }; }; then
12526   ac_lo=$ac_mid; break
12527 else
12528   echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12530
12531 ac_hi=`expr '(' $ac_mid ')' - 1`
12532                        if test $ac_mid -le $ac_hi; then
12533                          ac_lo= ac_hi=
12534                          break
12535                        fi
12536                        ac_mid=`expr 2 '*' $ac_mid`
12537 fi
12538 rm -f conftest.$ac_objext conftest.$ac_ext
12539   done
12540 else
12541   echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12543
12544 ac_lo= ac_hi=
12545 fi
12546 rm -f conftest.$ac_objext conftest.$ac_ext
12547 fi
12548 rm -f conftest.$ac_objext conftest.$ac_ext
12549 # Binary search between lo and hi bounds.
12550 while test "x$ac_lo" != "x$ac_hi"; do
12551   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12552   cat >conftest.$ac_ext <<_ACEOF
12553 #line $LINENO "configure"
12554 /* confdefs.h.  */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h.  */
12559 $ac_includes_default
12560 int
12561 main ()
12562 {
12563 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12564 test_array [0] = 0
12565
12566   ;
12567   return 0;
12568 }
12569 _ACEOF
12570 rm -f conftest.$ac_objext
12571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12572   (eval $ac_compile) 2>&5
12573   ac_status=$?
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); } &&
12576          { ac_try='test -s conftest.$ac_objext'
12577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578   (eval $ac_try) 2>&5
12579   ac_status=$?
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); }; }; then
12582   ac_hi=$ac_mid
12583 else
12584   echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12586
12587 ac_lo=`expr '(' $ac_mid ')' + 1`
12588 fi
12589 rm -f conftest.$ac_objext conftest.$ac_ext
12590 done
12591 case $ac_lo in
12592 ?*) ac_cv_sizeof_char=$ac_lo;;
12593 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12594 See \`config.log' for more details." >&5
12595 echo "$as_me: error: cannot compute sizeof (char), 77
12596 See \`config.log' for more details." >&2;}
12597    { (exit 1); exit 1; }; } ;;
12598 esac
12599 else
12600   if test "$cross_compiling" = yes; then
12601   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12602 See \`config.log' for more details." >&5
12603 echo "$as_me: error: cannot run test program while cross compiling
12604 See \`config.log' for more details." >&2;}
12605    { (exit 1); exit 1; }; }
12606 else
12607   cat >conftest.$ac_ext <<_ACEOF
12608 #line $LINENO "configure"
12609 /* confdefs.h.  */
12610 _ACEOF
12611 cat confdefs.h >>conftest.$ac_ext
12612 cat >>conftest.$ac_ext <<_ACEOF
12613 /* end confdefs.h.  */
12614 $ac_includes_default
12615 long longval () { return (long) (sizeof (char)); }
12616 unsigned long ulongval () { return (long) (sizeof (char)); }
12617 #include <stdio.h>
12618 #include <stdlib.h>
12619 int
12620 main ()
12621 {
12622
12623   FILE *f = fopen ("conftest.val", "w");
12624   if (! f)
12625     exit (1);
12626   if (((long) (sizeof (char))) < 0)
12627     {
12628       long i = longval ();
12629       if (i != ((long) (sizeof (char))))
12630         exit (1);
12631       fprintf (f, "%ld\n", i);
12632     }
12633   else
12634     {
12635       unsigned long i = ulongval ();
12636       if (i != ((long) (sizeof (char))))
12637         exit (1);
12638       fprintf (f, "%lu\n", i);
12639     }
12640   exit (ferror (f) || fclose (f) != 0);
12641
12642   ;
12643   return 0;
12644 }
12645 _ACEOF
12646 rm -f conftest$ac_exeext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648   (eval $ac_link) 2>&5
12649   ac_status=$?
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653   (eval $ac_try) 2>&5
12654   ac_status=$?
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); }; }; then
12657   ac_cv_sizeof_char=`cat conftest.val`
12658 else
12659   echo "$as_me: program exited with status $ac_status" >&5
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663 ( exit $ac_status )
12664 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12665 See \`config.log' for more details." >&5
12666 echo "$as_me: error: cannot compute sizeof (char), 77
12667 See \`config.log' for more details." >&2;}
12668    { (exit 1); exit 1; }; }
12669 fi
12670 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12671 fi
12672 fi
12673 rm -f conftest.val
12674 else
12675   ac_cv_sizeof_char=0
12676 fi
12677 fi
12678 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12679 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12680 cat >>confdefs.h <<_ACEOF
12681 #define SIZEOF_CHAR $ac_cv_sizeof_char
12682 _ACEOF
12683
12684
12685 echo "$as_me:$LINENO: checking for short int" >&5
12686 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12687 if test "${ac_cv_type_short_int+set}" = set; then
12688   echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690   cat >conftest.$ac_ext <<_ACEOF
12691 #line $LINENO "configure"
12692 /* confdefs.h.  */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h.  */
12697 $ac_includes_default
12698 int
12699 main ()
12700 {
12701 if ((short int *) 0)
12702   return 0;
12703 if (sizeof (short int))
12704   return 0;
12705   ;
12706   return 0;
12707 }
12708 _ACEOF
12709 rm -f conftest.$ac_objext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12711   (eval $ac_compile) 2>&5
12712   ac_status=$?
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); } &&
12715          { ac_try='test -s conftest.$ac_objext'
12716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717   (eval $ac_try) 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); }; }; then
12721   ac_cv_type_short_int=yes
12722 else
12723   echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12725
12726 ac_cv_type_short_int=no
12727 fi
12728 rm -f conftest.$ac_objext conftest.$ac_ext
12729 fi
12730 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12731 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12732
12733 echo "$as_me:$LINENO: checking size of short int" >&5
12734 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12735 if test "${ac_cv_sizeof_short_int+set}" = set; then
12736   echo $ECHO_N "(cached) $ECHO_C" >&6
12737 else
12738   if test "$ac_cv_type_short_int" = yes; then
12739   # The cast to unsigned long works around a bug in the HP C Compiler
12740   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12741   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12742   # This bug is HP SR number 8606223364.
12743   if test "$cross_compiling" = yes; then
12744   # Depending upon the size, compute the lo and hi bounds.
12745 cat >conftest.$ac_ext <<_ACEOF
12746 #line $LINENO "configure"
12747 /* confdefs.h.  */
12748 _ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h.  */
12752 $ac_includes_default
12753 int
12754 main ()
12755 {
12756 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12757 test_array [0] = 0
12758
12759   ;
12760   return 0;
12761 }
12762 _ACEOF
12763 rm -f conftest.$ac_objext
12764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12765   (eval $ac_compile) 2>&5
12766   ac_status=$?
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); } &&
12769          { ac_try='test -s conftest.$ac_objext'
12770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771   (eval $ac_try) 2>&5
12772   ac_status=$?
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); }; }; then
12775   ac_lo=0 ac_mid=0
12776   while :; do
12777     cat >conftest.$ac_ext <<_ACEOF
12778 #line $LINENO "configure"
12779 /* confdefs.h.  */
12780 _ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h.  */
12784 $ac_includes_default
12785 int
12786 main ()
12787 {
12788 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12789 test_array [0] = 0
12790
12791   ;
12792   return 0;
12793 }
12794 _ACEOF
12795 rm -f conftest.$ac_objext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12797   (eval $ac_compile) 2>&5
12798   ac_status=$?
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); } &&
12801          { ac_try='test -s conftest.$ac_objext'
12802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803   (eval $ac_try) 2>&5
12804   ac_status=$?
12805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806   (exit $ac_status); }; }; then
12807   ac_hi=$ac_mid; break
12808 else
12809   echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12811
12812 ac_lo=`expr $ac_mid + 1`
12813                     if test $ac_lo -le $ac_mid; then
12814                       ac_lo= ac_hi=
12815                       break
12816                     fi
12817                     ac_mid=`expr 2 '*' $ac_mid + 1`
12818 fi
12819 rm -f conftest.$ac_objext conftest.$ac_ext
12820   done
12821 else
12822   echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12824
12825 cat >conftest.$ac_ext <<_ACEOF
12826 #line $LINENO "configure"
12827 /* confdefs.h.  */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h.  */
12832 $ac_includes_default
12833 int
12834 main ()
12835 {
12836 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12837 test_array [0] = 0
12838
12839   ;
12840   return 0;
12841 }
12842 _ACEOF
12843 rm -f conftest.$ac_objext
12844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845   (eval $ac_compile) 2>&5
12846   ac_status=$?
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); } &&
12849          { ac_try='test -s conftest.$ac_objext'
12850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851   (eval $ac_try) 2>&5
12852   ac_status=$?
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); }; }; then
12855   ac_hi=-1 ac_mid=-1
12856   while :; do
12857     cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12859 /* confdefs.h.  */
12860 _ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h.  */
12864 $ac_includes_default
12865 int
12866 main ()
12867 {
12868 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12869 test_array [0] = 0
12870
12871   ;
12872   return 0;
12873 }
12874 _ACEOF
12875 rm -f conftest.$ac_objext
12876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12877   (eval $ac_compile) 2>&5
12878   ac_status=$?
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); } &&
12881          { ac_try='test -s conftest.$ac_objext'
12882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883   (eval $ac_try) 2>&5
12884   ac_status=$?
12885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886   (exit $ac_status); }; }; then
12887   ac_lo=$ac_mid; break
12888 else
12889   echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12891
12892 ac_hi=`expr '(' $ac_mid ')' - 1`
12893                        if test $ac_mid -le $ac_hi; then
12894                          ac_lo= ac_hi=
12895                          break
12896                        fi
12897                        ac_mid=`expr 2 '*' $ac_mid`
12898 fi
12899 rm -f conftest.$ac_objext conftest.$ac_ext
12900   done
12901 else
12902   echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12904
12905 ac_lo= ac_hi=
12906 fi
12907 rm -f conftest.$ac_objext conftest.$ac_ext
12908 fi
12909 rm -f conftest.$ac_objext conftest.$ac_ext
12910 # Binary search between lo and hi bounds.
12911 while test "x$ac_lo" != "x$ac_hi"; do
12912   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12913   cat >conftest.$ac_ext <<_ACEOF
12914 #line $LINENO "configure"
12915 /* confdefs.h.  */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h.  */
12920 $ac_includes_default
12921 int
12922 main ()
12923 {
12924 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12925 test_array [0] = 0
12926
12927   ;
12928   return 0;
12929 }
12930 _ACEOF
12931 rm -f conftest.$ac_objext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12933   (eval $ac_compile) 2>&5
12934   ac_status=$?
12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936   (exit $ac_status); } &&
12937          { ac_try='test -s conftest.$ac_objext'
12938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939   (eval $ac_try) 2>&5
12940   ac_status=$?
12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); }; }; then
12943   ac_hi=$ac_mid
12944 else
12945   echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12947
12948 ac_lo=`expr '(' $ac_mid ')' + 1`
12949 fi
12950 rm -f conftest.$ac_objext conftest.$ac_ext
12951 done
12952 case $ac_lo in
12953 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12954 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12955 See \`config.log' for more details." >&5
12956 echo "$as_me: error: cannot compute sizeof (short int), 77
12957 See \`config.log' for more details." >&2;}
12958    { (exit 1); exit 1; }; } ;;
12959 esac
12960 else
12961   if test "$cross_compiling" = yes; then
12962   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12963 See \`config.log' for more details." >&5
12964 echo "$as_me: error: cannot run test program while cross compiling
12965 See \`config.log' for more details." >&2;}
12966    { (exit 1); exit 1; }; }
12967 else
12968   cat >conftest.$ac_ext <<_ACEOF
12969 #line $LINENO "configure"
12970 /* confdefs.h.  */
12971 _ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h.  */
12975 $ac_includes_default
12976 long longval () { return (long) (sizeof (short int)); }
12977 unsigned long ulongval () { return (long) (sizeof (short int)); }
12978 #include <stdio.h>
12979 #include <stdlib.h>
12980 int
12981 main ()
12982 {
12983
12984   FILE *f = fopen ("conftest.val", "w");
12985   if (! f)
12986     exit (1);
12987   if (((long) (sizeof (short int))) < 0)
12988     {
12989       long i = longval ();
12990       if (i != ((long) (sizeof (short int))))
12991         exit (1);
12992       fprintf (f, "%ld\n", i);
12993     }
12994   else
12995     {
12996       unsigned long i = ulongval ();
12997       if (i != ((long) (sizeof (short int))))
12998         exit (1);
12999       fprintf (f, "%lu\n", i);
13000     }
13001   exit (ferror (f) || fclose (f) != 0);
13002
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007 rm -f conftest$ac_exeext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13009   (eval $ac_link) 2>&5
13010   ac_status=$?
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014   (eval $ac_try) 2>&5
13015   ac_status=$?
13016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); }; }; then
13018   ac_cv_sizeof_short_int=`cat conftest.val`
13019 else
13020   echo "$as_me: program exited with status $ac_status" >&5
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13023
13024 ( exit $ac_status )
13025 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13026 See \`config.log' for more details." >&5
13027 echo "$as_me: error: cannot compute sizeof (short int), 77
13028 See \`config.log' for more details." >&2;}
13029    { (exit 1); exit 1; }; }
13030 fi
13031 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13032 fi
13033 fi
13034 rm -f conftest.val
13035 else
13036   ac_cv_sizeof_short_int=0
13037 fi
13038 fi
13039 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13040 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13041 cat >>confdefs.h <<_ACEOF
13042 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13043 _ACEOF
13044
13045
13046 echo "$as_me:$LINENO: checking for int" >&5
13047 echo $ECHO_N "checking for int... $ECHO_C" >&6
13048 if test "${ac_cv_type_int+set}" = set; then
13049   echo $ECHO_N "(cached) $ECHO_C" >&6
13050 else
13051   cat >conftest.$ac_ext <<_ACEOF
13052 #line $LINENO "configure"
13053 /* confdefs.h.  */
13054 _ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h.  */
13058 $ac_includes_default
13059 int
13060 main ()
13061 {
13062 if ((int *) 0)
13063   return 0;
13064 if (sizeof (int))
13065   return 0;
13066   ;
13067   return 0;
13068 }
13069 _ACEOF
13070 rm -f conftest.$ac_objext
13071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13072   (eval $ac_compile) 2>&5
13073   ac_status=$?
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); } &&
13076          { ac_try='test -s conftest.$ac_objext'
13077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078   (eval $ac_try) 2>&5
13079   ac_status=$?
13080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081   (exit $ac_status); }; }; then
13082   ac_cv_type_int=yes
13083 else
13084   echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13086
13087 ac_cv_type_int=no
13088 fi
13089 rm -f conftest.$ac_objext conftest.$ac_ext
13090 fi
13091 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13092 echo "${ECHO_T}$ac_cv_type_int" >&6
13093
13094 echo "$as_me:$LINENO: checking size of int" >&5
13095 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13096 if test "${ac_cv_sizeof_int+set}" = set; then
13097   echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099   if test "$ac_cv_type_int" = yes; then
13100   # The cast to unsigned long works around a bug in the HP C Compiler
13101   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13102   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13103   # This bug is HP SR number 8606223364.
13104   if test "$cross_compiling" = yes; then
13105   # Depending upon the size, compute the lo and hi bounds.
13106 cat >conftest.$ac_ext <<_ACEOF
13107 #line $LINENO "configure"
13108 /* confdefs.h.  */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h.  */
13113 $ac_includes_default
13114 int
13115 main ()
13116 {
13117 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13118 test_array [0] = 0
13119
13120   ;
13121   return 0;
13122 }
13123 _ACEOF
13124 rm -f conftest.$ac_objext
13125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13126   (eval $ac_compile) 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); } &&
13130          { ac_try='test -s conftest.$ac_objext'
13131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132   (eval $ac_try) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }; }; then
13136   ac_lo=0 ac_mid=0
13137   while :; do
13138     cat >conftest.$ac_ext <<_ACEOF
13139 #line $LINENO "configure"
13140 /* confdefs.h.  */
13141 _ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h.  */
13145 $ac_includes_default
13146 int
13147 main ()
13148 {
13149 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13150 test_array [0] = 0
13151
13152   ;
13153   return 0;
13154 }
13155 _ACEOF
13156 rm -f conftest.$ac_objext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13158   (eval $ac_compile) 2>&5
13159   ac_status=$?
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); } &&
13162          { ac_try='test -s conftest.$ac_objext'
13163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164   (eval $ac_try) 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }; }; then
13168   ac_hi=$ac_mid; break
13169 else
13170   echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13172
13173 ac_lo=`expr $ac_mid + 1`
13174                     if test $ac_lo -le $ac_mid; then
13175                       ac_lo= ac_hi=
13176                       break
13177                     fi
13178                     ac_mid=`expr 2 '*' $ac_mid + 1`
13179 fi
13180 rm -f conftest.$ac_objext conftest.$ac_ext
13181   done
13182 else
13183   echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13185
13186 cat >conftest.$ac_ext <<_ACEOF
13187 #line $LINENO "configure"
13188 /* confdefs.h.  */
13189 _ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h.  */
13193 $ac_includes_default
13194 int
13195 main ()
13196 {
13197 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13198 test_array [0] = 0
13199
13200   ;
13201   return 0;
13202 }
13203 _ACEOF
13204 rm -f conftest.$ac_objext
13205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13206   (eval $ac_compile) 2>&5
13207   ac_status=$?
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); } &&
13210          { ac_try='test -s conftest.$ac_objext'
13211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212   (eval $ac_try) 2>&5
13213   ac_status=$?
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); }; }; then
13216   ac_hi=-1 ac_mid=-1
13217   while :; do
13218     cat >conftest.$ac_ext <<_ACEOF
13219 #line $LINENO "configure"
13220 /* confdefs.h.  */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h.  */
13225 $ac_includes_default
13226 int
13227 main ()
13228 {
13229 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13230 test_array [0] = 0
13231
13232   ;
13233   return 0;
13234 }
13235 _ACEOF
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238   (eval $ac_compile) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); } &&
13242          { ac_try='test -s conftest.$ac_objext'
13243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244   (eval $ac_try) 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); }; }; then
13248   ac_lo=$ac_mid; break
13249 else
13250   echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13252
13253 ac_hi=`expr '(' $ac_mid ')' - 1`
13254                        if test $ac_mid -le $ac_hi; then
13255                          ac_lo= ac_hi=
13256                          break
13257                        fi
13258                        ac_mid=`expr 2 '*' $ac_mid`
13259 fi
13260 rm -f conftest.$ac_objext conftest.$ac_ext
13261   done
13262 else
13263   echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13265
13266 ac_lo= ac_hi=
13267 fi
13268 rm -f conftest.$ac_objext conftest.$ac_ext
13269 fi
13270 rm -f conftest.$ac_objext conftest.$ac_ext
13271 # Binary search between lo and hi bounds.
13272 while test "x$ac_lo" != "x$ac_hi"; do
13273   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13274   cat >conftest.$ac_ext <<_ACEOF
13275 #line $LINENO "configure"
13276 /* confdefs.h.  */
13277 _ACEOF
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h.  */
13281 $ac_includes_default
13282 int
13283 main ()
13284 {
13285 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13286 test_array [0] = 0
13287
13288   ;
13289   return 0;
13290 }
13291 _ACEOF
13292 rm -f conftest.$ac_objext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13294   (eval $ac_compile) 2>&5
13295   ac_status=$?
13296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297   (exit $ac_status); } &&
13298          { ac_try='test -s conftest.$ac_objext'
13299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300   (eval $ac_try) 2>&5
13301   ac_status=$?
13302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); }; }; then
13304   ac_hi=$ac_mid
13305 else
13306   echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13308
13309 ac_lo=`expr '(' $ac_mid ')' + 1`
13310 fi
13311 rm -f conftest.$ac_objext conftest.$ac_ext
13312 done
13313 case $ac_lo in
13314 ?*) ac_cv_sizeof_int=$ac_lo;;
13315 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13316 See \`config.log' for more details." >&5
13317 echo "$as_me: error: cannot compute sizeof (int), 77
13318 See \`config.log' for more details." >&2;}
13319    { (exit 1); exit 1; }; } ;;
13320 esac
13321 else
13322   if test "$cross_compiling" = yes; then
13323   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13324 See \`config.log' for more details." >&5
13325 echo "$as_me: error: cannot run test program while cross compiling
13326 See \`config.log' for more details." >&2;}
13327    { (exit 1); exit 1; }; }
13328 else
13329   cat >conftest.$ac_ext <<_ACEOF
13330 #line $LINENO "configure"
13331 /* confdefs.h.  */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h.  */
13336 $ac_includes_default
13337 long longval () { return (long) (sizeof (int)); }
13338 unsigned long ulongval () { return (long) (sizeof (int)); }
13339 #include <stdio.h>
13340 #include <stdlib.h>
13341 int
13342 main ()
13343 {
13344
13345   FILE *f = fopen ("conftest.val", "w");
13346   if (! f)
13347     exit (1);
13348   if (((long) (sizeof (int))) < 0)
13349     {
13350       long i = longval ();
13351       if (i != ((long) (sizeof (int))))
13352         exit (1);
13353       fprintf (f, "%ld\n", i);
13354     }
13355   else
13356     {
13357       unsigned long i = ulongval ();
13358       if (i != ((long) (sizeof (int))))
13359         exit (1);
13360       fprintf (f, "%lu\n", i);
13361     }
13362   exit (ferror (f) || fclose (f) != 0);
13363
13364   ;
13365   return 0;
13366 }
13367 _ACEOF
13368 rm -f conftest$ac_exeext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13370   (eval $ac_link) 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375   (eval $ac_try) 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); }; }; then
13379   ac_cv_sizeof_int=`cat conftest.val`
13380 else
13381   echo "$as_me: program exited with status $ac_status" >&5
13382 echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13384
13385 ( exit $ac_status )
13386 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13387 See \`config.log' for more details." >&5
13388 echo "$as_me: error: cannot compute sizeof (int), 77
13389 See \`config.log' for more details." >&2;}
13390    { (exit 1); exit 1; }; }
13391 fi
13392 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13393 fi
13394 fi
13395 rm -f conftest.val
13396 else
13397   ac_cv_sizeof_int=0
13398 fi
13399 fi
13400 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13401 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13402 cat >>confdefs.h <<_ACEOF
13403 #define SIZEOF_INT $ac_cv_sizeof_int
13404 _ACEOF
13405
13406
13407 echo "$as_me:$LINENO: checking for long int" >&5
13408 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13409 if test "${ac_cv_type_long_int+set}" = set; then
13410   echo $ECHO_N "(cached) $ECHO_C" >&6
13411 else
13412   cat >conftest.$ac_ext <<_ACEOF
13413 #line $LINENO "configure"
13414 /* confdefs.h.  */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h.  */
13419 $ac_includes_default
13420 int
13421 main ()
13422 {
13423 if ((long int *) 0)
13424   return 0;
13425 if (sizeof (long int))
13426   return 0;
13427   ;
13428   return 0;
13429 }
13430 _ACEOF
13431 rm -f conftest.$ac_objext
13432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13433   (eval $ac_compile) 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); } &&
13437          { ac_try='test -s conftest.$ac_objext'
13438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439   (eval $ac_try) 2>&5
13440   ac_status=$?
13441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442   (exit $ac_status); }; }; then
13443   ac_cv_type_long_int=yes
13444 else
13445   echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13447
13448 ac_cv_type_long_int=no
13449 fi
13450 rm -f conftest.$ac_objext conftest.$ac_ext
13451 fi
13452 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13453 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13454
13455 echo "$as_me:$LINENO: checking size of long int" >&5
13456 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13457 if test "${ac_cv_sizeof_long_int+set}" = set; then
13458   echo $ECHO_N "(cached) $ECHO_C" >&6
13459 else
13460   if test "$ac_cv_type_long_int" = yes; then
13461   # The cast to unsigned long works around a bug in the HP C Compiler
13462   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13463   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13464   # This bug is HP SR number 8606223364.
13465   if test "$cross_compiling" = yes; then
13466   # Depending upon the size, compute the lo and hi bounds.
13467 cat >conftest.$ac_ext <<_ACEOF
13468 #line $LINENO "configure"
13469 /* confdefs.h.  */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h.  */
13474 $ac_includes_default
13475 int
13476 main ()
13477 {
13478 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13479 test_array [0] = 0
13480
13481   ;
13482   return 0;
13483 }
13484 _ACEOF
13485 rm -f conftest.$ac_objext
13486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13487   (eval $ac_compile) 2>&5
13488   ac_status=$?
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); } &&
13491          { ac_try='test -s conftest.$ac_objext'
13492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493   (eval $ac_try) 2>&5
13494   ac_status=$?
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); }; }; then
13497   ac_lo=0 ac_mid=0
13498   while :; do
13499     cat >conftest.$ac_ext <<_ACEOF
13500 #line $LINENO "configure"
13501 /* confdefs.h.  */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h.  */
13506 $ac_includes_default
13507 int
13508 main ()
13509 {
13510 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13511 test_array [0] = 0
13512
13513   ;
13514   return 0;
13515 }
13516 _ACEOF
13517 rm -f conftest.$ac_objext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13519   (eval $ac_compile) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); } &&
13523          { ac_try='test -s conftest.$ac_objext'
13524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525   (eval $ac_try) 2>&5
13526   ac_status=$?
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); }; }; then
13529   ac_hi=$ac_mid; break
13530 else
13531   echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13533
13534 ac_lo=`expr $ac_mid + 1`
13535                     if test $ac_lo -le $ac_mid; then
13536                       ac_lo= ac_hi=
13537                       break
13538                     fi
13539                     ac_mid=`expr 2 '*' $ac_mid + 1`
13540 fi
13541 rm -f conftest.$ac_objext conftest.$ac_ext
13542   done
13543 else
13544   echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13546
13547 cat >conftest.$ac_ext <<_ACEOF
13548 #line $LINENO "configure"
13549 /* confdefs.h.  */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h.  */
13554 $ac_includes_default
13555 int
13556 main ()
13557 {
13558 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13559 test_array [0] = 0
13560
13561   ;
13562   return 0;
13563 }
13564 _ACEOF
13565 rm -f conftest.$ac_objext
13566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13567   (eval $ac_compile) 2>&5
13568   ac_status=$?
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); } &&
13571          { ac_try='test -s conftest.$ac_objext'
13572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573   (eval $ac_try) 2>&5
13574   ac_status=$?
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); }; }; then
13577   ac_hi=-1 ac_mid=-1
13578   while :; do
13579     cat >conftest.$ac_ext <<_ACEOF
13580 #line $LINENO "configure"
13581 /* confdefs.h.  */
13582 _ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h.  */
13586 $ac_includes_default
13587 int
13588 main ()
13589 {
13590 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13591 test_array [0] = 0
13592
13593   ;
13594   return 0;
13595 }
13596 _ACEOF
13597 rm -f conftest.$ac_objext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13599   (eval $ac_compile) 2>&5
13600   ac_status=$?
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); } &&
13603          { ac_try='test -s conftest.$ac_objext'
13604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605   (eval $ac_try) 2>&5
13606   ac_status=$?
13607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608   (exit $ac_status); }; }; then
13609   ac_lo=$ac_mid; break
13610 else
13611   echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13613
13614 ac_hi=`expr '(' $ac_mid ')' - 1`
13615                        if test $ac_mid -le $ac_hi; then
13616                          ac_lo= ac_hi=
13617                          break
13618                        fi
13619                        ac_mid=`expr 2 '*' $ac_mid`
13620 fi
13621 rm -f conftest.$ac_objext conftest.$ac_ext
13622   done
13623 else
13624   echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13626
13627 ac_lo= ac_hi=
13628 fi
13629 rm -f conftest.$ac_objext conftest.$ac_ext
13630 fi
13631 rm -f conftest.$ac_objext conftest.$ac_ext
13632 # Binary search between lo and hi bounds.
13633 while test "x$ac_lo" != "x$ac_hi"; do
13634   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13635   cat >conftest.$ac_ext <<_ACEOF
13636 #line $LINENO "configure"
13637 /* confdefs.h.  */
13638 _ACEOF
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h.  */
13642 $ac_includes_default
13643 int
13644 main ()
13645 {
13646 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13647 test_array [0] = 0
13648
13649   ;
13650   return 0;
13651 }
13652 _ACEOF
13653 rm -f conftest.$ac_objext
13654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655   (eval $ac_compile) 2>&5
13656   ac_status=$?
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); } &&
13659          { ac_try='test -s conftest.$ac_objext'
13660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661   (eval $ac_try) 2>&5
13662   ac_status=$?
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); }; }; then
13665   ac_hi=$ac_mid
13666 else
13667   echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13669
13670 ac_lo=`expr '(' $ac_mid ')' + 1`
13671 fi
13672 rm -f conftest.$ac_objext conftest.$ac_ext
13673 done
13674 case $ac_lo in
13675 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13676 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13677 See \`config.log' for more details." >&5
13678 echo "$as_me: error: cannot compute sizeof (long int), 77
13679 See \`config.log' for more details." >&2;}
13680    { (exit 1); exit 1; }; } ;;
13681 esac
13682 else
13683   if test "$cross_compiling" = yes; then
13684   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13685 See \`config.log' for more details." >&5
13686 echo "$as_me: error: cannot run test program while cross compiling
13687 See \`config.log' for more details." >&2;}
13688    { (exit 1); exit 1; }; }
13689 else
13690   cat >conftest.$ac_ext <<_ACEOF
13691 #line $LINENO "configure"
13692 /* confdefs.h.  */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h.  */
13697 $ac_includes_default
13698 long longval () { return (long) (sizeof (long int)); }
13699 unsigned long ulongval () { return (long) (sizeof (long int)); }
13700 #include <stdio.h>
13701 #include <stdlib.h>
13702 int
13703 main ()
13704 {
13705
13706   FILE *f = fopen ("conftest.val", "w");
13707   if (! f)
13708     exit (1);
13709   if (((long) (sizeof (long int))) < 0)
13710     {
13711       long i = longval ();
13712       if (i != ((long) (sizeof (long int))))
13713         exit (1);
13714       fprintf (f, "%ld\n", i);
13715     }
13716   else
13717     {
13718       unsigned long i = ulongval ();
13719       if (i != ((long) (sizeof (long int))))
13720         exit (1);
13721       fprintf (f, "%lu\n", i);
13722     }
13723   exit (ferror (f) || fclose (f) != 0);
13724
13725   ;
13726   return 0;
13727 }
13728 _ACEOF
13729 rm -f conftest$ac_exeext
13730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13731   (eval $ac_link) 2>&5
13732   ac_status=$?
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736   (eval $ac_try) 2>&5
13737   ac_status=$?
13738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739   (exit $ac_status); }; }; then
13740   ac_cv_sizeof_long_int=`cat conftest.val`
13741 else
13742   echo "$as_me: program exited with status $ac_status" >&5
13743 echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13745
13746 ( exit $ac_status )
13747 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13748 See \`config.log' for more details." >&5
13749 echo "$as_me: error: cannot compute sizeof (long int), 77
13750 See \`config.log' for more details." >&2;}
13751    { (exit 1); exit 1; }; }
13752 fi
13753 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13754 fi
13755 fi
13756 rm -f conftest.val
13757 else
13758   ac_cv_sizeof_long_int=0
13759 fi
13760 fi
13761 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13762 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13763 cat >>confdefs.h <<_ACEOF
13764 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13765 _ACEOF
13766
13767
13768 echo "$as_me:$LINENO: checking for long long int" >&5
13769 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13770 if test "${ac_cv_type_long_long_int+set}" = set; then
13771   echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773   cat >conftest.$ac_ext <<_ACEOF
13774 #line $LINENO "configure"
13775 /* confdefs.h.  */
13776 _ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h.  */
13780 $ac_includes_default
13781 int
13782 main ()
13783 {
13784 if ((long long int *) 0)
13785   return 0;
13786 if (sizeof (long long int))
13787   return 0;
13788   ;
13789   return 0;
13790 }
13791 _ACEOF
13792 rm -f conftest.$ac_objext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794   (eval $ac_compile) 2>&5
13795   ac_status=$?
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); } &&
13798          { ac_try='test -s conftest.$ac_objext'
13799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800   (eval $ac_try) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); }; }; then
13804   ac_cv_type_long_long_int=yes
13805 else
13806   echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13808
13809 ac_cv_type_long_long_int=no
13810 fi
13811 rm -f conftest.$ac_objext conftest.$ac_ext
13812 fi
13813 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13814 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13815
13816 echo "$as_me:$LINENO: checking size of long long int" >&5
13817 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13818 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13819   echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821   if test "$ac_cv_type_long_long_int" = yes; then
13822   # The cast to unsigned long works around a bug in the HP C Compiler
13823   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13824   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13825   # This bug is HP SR number 8606223364.
13826   if test "$cross_compiling" = yes; then
13827   # Depending upon the size, compute the lo and hi bounds.
13828 cat >conftest.$ac_ext <<_ACEOF
13829 #line $LINENO "configure"
13830 /* confdefs.h.  */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h.  */
13835 $ac_includes_default
13836 int
13837 main ()
13838 {
13839 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13840 test_array [0] = 0
13841
13842   ;
13843   return 0;
13844 }
13845 _ACEOF
13846 rm -f conftest.$ac_objext
13847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13848   (eval $ac_compile) 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); } &&
13852          { ac_try='test -s conftest.$ac_objext'
13853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854   (eval $ac_try) 2>&5
13855   ac_status=$?
13856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857   (exit $ac_status); }; }; then
13858   ac_lo=0 ac_mid=0
13859   while :; do
13860     cat >conftest.$ac_ext <<_ACEOF
13861 #line $LINENO "configure"
13862 /* confdefs.h.  */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h.  */
13867 $ac_includes_default
13868 int
13869 main ()
13870 {
13871 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13872 test_array [0] = 0
13873
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 rm -f conftest.$ac_objext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880   (eval $ac_compile) 2>&5
13881   ac_status=$?
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); } &&
13884          { ac_try='test -s conftest.$ac_objext'
13885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886   (eval $ac_try) 2>&5
13887   ac_status=$?
13888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889   (exit $ac_status); }; }; then
13890   ac_hi=$ac_mid; break
13891 else
13892   echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13894
13895 ac_lo=`expr $ac_mid + 1`
13896                     if test $ac_lo -le $ac_mid; then
13897                       ac_lo= ac_hi=
13898                       break
13899                     fi
13900                     ac_mid=`expr 2 '*' $ac_mid + 1`
13901 fi
13902 rm -f conftest.$ac_objext conftest.$ac_ext
13903   done
13904 else
13905   echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13907
13908 cat >conftest.$ac_ext <<_ACEOF
13909 #line $LINENO "configure"
13910 /* confdefs.h.  */
13911 _ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h.  */
13915 $ac_includes_default
13916 int
13917 main ()
13918 {
13919 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13920 test_array [0] = 0
13921
13922   ;
13923   return 0;
13924 }
13925 _ACEOF
13926 rm -f conftest.$ac_objext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13928   (eval $ac_compile) 2>&5
13929   ac_status=$?
13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931   (exit $ac_status); } &&
13932          { ac_try='test -s conftest.$ac_objext'
13933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934   (eval $ac_try) 2>&5
13935   ac_status=$?
13936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937   (exit $ac_status); }; }; then
13938   ac_hi=-1 ac_mid=-1
13939   while :; do
13940     cat >conftest.$ac_ext <<_ACEOF
13941 #line $LINENO "configure"
13942 /* confdefs.h.  */
13943 _ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h.  */
13947 $ac_includes_default
13948 int
13949 main ()
13950 {
13951 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13952 test_array [0] = 0
13953
13954   ;
13955   return 0;
13956 }
13957 _ACEOF
13958 rm -f conftest.$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960   (eval $ac_compile) 2>&5
13961   ac_status=$?
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); } &&
13964          { ac_try='test -s conftest.$ac_objext'
13965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966   (eval $ac_try) 2>&5
13967   ac_status=$?
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); }; }; then
13970   ac_lo=$ac_mid; break
13971 else
13972   echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13974
13975 ac_hi=`expr '(' $ac_mid ')' - 1`
13976                        if test $ac_mid -le $ac_hi; then
13977                          ac_lo= ac_hi=
13978                          break
13979                        fi
13980                        ac_mid=`expr 2 '*' $ac_mid`
13981 fi
13982 rm -f conftest.$ac_objext conftest.$ac_ext
13983   done
13984 else
13985   echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13987
13988 ac_lo= ac_hi=
13989 fi
13990 rm -f conftest.$ac_objext conftest.$ac_ext
13991 fi
13992 rm -f conftest.$ac_objext conftest.$ac_ext
13993 # Binary search between lo and hi bounds.
13994 while test "x$ac_lo" != "x$ac_hi"; do
13995   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13996   cat >conftest.$ac_ext <<_ACEOF
13997 #line $LINENO "configure"
13998 /* confdefs.h.  */
13999 _ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h.  */
14003 $ac_includes_default
14004 int
14005 main ()
14006 {
14007 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14008 test_array [0] = 0
14009
14010   ;
14011   return 0;
14012 }
14013 _ACEOF
14014 rm -f conftest.$ac_objext
14015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14016   (eval $ac_compile) 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); } &&
14020          { ac_try='test -s conftest.$ac_objext'
14021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022   (eval $ac_try) 2>&5
14023   ac_status=$?
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); }; }; then
14026   ac_hi=$ac_mid
14027 else
14028   echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14030
14031 ac_lo=`expr '(' $ac_mid ')' + 1`
14032 fi
14033 rm -f conftest.$ac_objext conftest.$ac_ext
14034 done
14035 case $ac_lo in
14036 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14037 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14038 See \`config.log' for more details." >&5
14039 echo "$as_me: error: cannot compute sizeof (long long int), 77
14040 See \`config.log' for more details." >&2;}
14041    { (exit 1); exit 1; }; } ;;
14042 esac
14043 else
14044   if test "$cross_compiling" = yes; then
14045   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14046 See \`config.log' for more details." >&5
14047 echo "$as_me: error: cannot run test program while cross compiling
14048 See \`config.log' for more details." >&2;}
14049    { (exit 1); exit 1; }; }
14050 else
14051   cat >conftest.$ac_ext <<_ACEOF
14052 #line $LINENO "configure"
14053 /* confdefs.h.  */
14054 _ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h.  */
14058 $ac_includes_default
14059 long longval () { return (long) (sizeof (long long int)); }
14060 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14061 #include <stdio.h>
14062 #include <stdlib.h>
14063 int
14064 main ()
14065 {
14066
14067   FILE *f = fopen ("conftest.val", "w");
14068   if (! f)
14069     exit (1);
14070   if (((long) (sizeof (long long int))) < 0)
14071     {
14072       long i = longval ();
14073       if (i != ((long) (sizeof (long long int))))
14074         exit (1);
14075       fprintf (f, "%ld\n", i);
14076     }
14077   else
14078     {
14079       unsigned long i = ulongval ();
14080       if (i != ((long) (sizeof (long long int))))
14081         exit (1);
14082       fprintf (f, "%lu\n", i);
14083     }
14084   exit (ferror (f) || fclose (f) != 0);
14085
14086   ;
14087   return 0;
14088 }
14089 _ACEOF
14090 rm -f conftest$ac_exeext
14091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14092   (eval $ac_link) 2>&5
14093   ac_status=$?
14094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14097   (eval $ac_try) 2>&5
14098   ac_status=$?
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); }; }; then
14101   ac_cv_sizeof_long_long_int=`cat conftest.val`
14102 else
14103   echo "$as_me: program exited with status $ac_status" >&5
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14106
14107 ( exit $ac_status )
14108 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14109 See \`config.log' for more details." >&5
14110 echo "$as_me: error: cannot compute sizeof (long long int), 77
14111 See \`config.log' for more details." >&2;}
14112    { (exit 1); exit 1; }; }
14113 fi
14114 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14115 fi
14116 fi
14117 rm -f conftest.val
14118 else
14119   ac_cv_sizeof_long_long_int=0
14120 fi
14121 fi
14122 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14123 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14124 cat >>confdefs.h <<_ACEOF
14125 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14126 _ACEOF
14127
14128
14129 echo "$as_me:$LINENO: checking for int *" >&5
14130 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14131 if test "${ac_cv_type_int_p+set}" = set; then
14132   echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134   cat >conftest.$ac_ext <<_ACEOF
14135 #line $LINENO "configure"
14136 /* confdefs.h.  */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h.  */
14141 $ac_includes_default
14142 int
14143 main ()
14144 {
14145 if ((int * *) 0)
14146   return 0;
14147 if (sizeof (int *))
14148   return 0;
14149   ;
14150   return 0;
14151 }
14152 _ACEOF
14153 rm -f conftest.$ac_objext
14154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14155   (eval $ac_compile) 2>&5
14156   ac_status=$?
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); } &&
14159          { ac_try='test -s conftest.$ac_objext'
14160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161   (eval $ac_try) 2>&5
14162   ac_status=$?
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); }; }; then
14165   ac_cv_type_int_p=yes
14166 else
14167   echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14169
14170 ac_cv_type_int_p=no
14171 fi
14172 rm -f conftest.$ac_objext conftest.$ac_ext
14173 fi
14174 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14175 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14176
14177 echo "$as_me:$LINENO: checking size of int *" >&5
14178 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14179 if test "${ac_cv_sizeof_int_p+set}" = set; then
14180   echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182   if test "$ac_cv_type_int_p" = yes; then
14183   # The cast to unsigned long works around a bug in the HP C Compiler
14184   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14185   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14186   # This bug is HP SR number 8606223364.
14187   if test "$cross_compiling" = yes; then
14188   # Depending upon the size, compute the lo and hi bounds.
14189 cat >conftest.$ac_ext <<_ACEOF
14190 #line $LINENO "configure"
14191 /* confdefs.h.  */
14192 _ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h.  */
14196 $ac_includes_default
14197 int
14198 main ()
14199 {
14200 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14201 test_array [0] = 0
14202
14203   ;
14204   return 0;
14205 }
14206 _ACEOF
14207 rm -f conftest.$ac_objext
14208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209   (eval $ac_compile) 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); } &&
14213          { ac_try='test -s conftest.$ac_objext'
14214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215   (eval $ac_try) 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); }; }; then
14219   ac_lo=0 ac_mid=0
14220   while :; do
14221     cat >conftest.$ac_ext <<_ACEOF
14222 #line $LINENO "configure"
14223 /* confdefs.h.  */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h.  */
14228 $ac_includes_default
14229 int
14230 main ()
14231 {
14232 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14233 test_array [0] = 0
14234
14235   ;
14236   return 0;
14237 }
14238 _ACEOF
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241   (eval $ac_compile) 2>&5
14242   ac_status=$?
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); } &&
14245          { ac_try='test -s conftest.$ac_objext'
14246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247   (eval $ac_try) 2>&5
14248   ac_status=$?
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); }; }; then
14251   ac_hi=$ac_mid; break
14252 else
14253   echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14255
14256 ac_lo=`expr $ac_mid + 1`
14257                     if test $ac_lo -le $ac_mid; then
14258                       ac_lo= ac_hi=
14259                       break
14260                     fi
14261                     ac_mid=`expr 2 '*' $ac_mid + 1`
14262 fi
14263 rm -f conftest.$ac_objext conftest.$ac_ext
14264   done
14265 else
14266   echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269 cat >conftest.$ac_ext <<_ACEOF
14270 #line $LINENO "configure"
14271 /* confdefs.h.  */
14272 _ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h.  */
14276 $ac_includes_default
14277 int
14278 main ()
14279 {
14280 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14281 test_array [0] = 0
14282
14283   ;
14284   return 0;
14285 }
14286 _ACEOF
14287 rm -f conftest.$ac_objext
14288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14289   (eval $ac_compile) 2>&5
14290   ac_status=$?
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); } &&
14293          { ac_try='test -s conftest.$ac_objext'
14294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295   (eval $ac_try) 2>&5
14296   ac_status=$?
14297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298   (exit $ac_status); }; }; then
14299   ac_hi=-1 ac_mid=-1
14300   while :; do
14301     cat >conftest.$ac_ext <<_ACEOF
14302 #line $LINENO "configure"
14303 /* confdefs.h.  */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h.  */
14308 $ac_includes_default
14309 int
14310 main ()
14311 {
14312 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14313 test_array [0] = 0
14314
14315   ;
14316   return 0;
14317 }
14318 _ACEOF
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321   (eval $ac_compile) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); } &&
14325          { ac_try='test -s conftest.$ac_objext'
14326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327   (eval $ac_try) 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; }; then
14331   ac_lo=$ac_mid; break
14332 else
14333   echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14335
14336 ac_hi=`expr '(' $ac_mid ')' - 1`
14337                        if test $ac_mid -le $ac_hi; then
14338                          ac_lo= ac_hi=
14339                          break
14340                        fi
14341                        ac_mid=`expr 2 '*' $ac_mid`
14342 fi
14343 rm -f conftest.$ac_objext conftest.$ac_ext
14344   done
14345 else
14346   echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14348
14349 ac_lo= ac_hi=
14350 fi
14351 rm -f conftest.$ac_objext conftest.$ac_ext
14352 fi
14353 rm -f conftest.$ac_objext conftest.$ac_ext
14354 # Binary search between lo and hi bounds.
14355 while test "x$ac_lo" != "x$ac_hi"; do
14356   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14357   cat >conftest.$ac_ext <<_ACEOF
14358 #line $LINENO "configure"
14359 /* confdefs.h.  */
14360 _ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h.  */
14364 $ac_includes_default
14365 int
14366 main ()
14367 {
14368 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14369 test_array [0] = 0
14370
14371   ;
14372   return 0;
14373 }
14374 _ACEOF
14375 rm -f conftest.$ac_objext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377   (eval $ac_compile) 2>&5
14378   ac_status=$?
14379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); } &&
14381          { ac_try='test -s conftest.$ac_objext'
14382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383   (eval $ac_try) 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); }; }; then
14387   ac_hi=$ac_mid
14388 else
14389   echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14391
14392 ac_lo=`expr '(' $ac_mid ')' + 1`
14393 fi
14394 rm -f conftest.$ac_objext conftest.$ac_ext
14395 done
14396 case $ac_lo in
14397 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14398 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14399 See \`config.log' for more details." >&5
14400 echo "$as_me: error: cannot compute sizeof (int *), 77
14401 See \`config.log' for more details." >&2;}
14402    { (exit 1); exit 1; }; } ;;
14403 esac
14404 else
14405   if test "$cross_compiling" = yes; then
14406   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14407 See \`config.log' for more details." >&5
14408 echo "$as_me: error: cannot run test program while cross compiling
14409 See \`config.log' for more details." >&2;}
14410    { (exit 1); exit 1; }; }
14411 else
14412   cat >conftest.$ac_ext <<_ACEOF
14413 #line $LINENO "configure"
14414 /* confdefs.h.  */
14415 _ACEOF
14416 cat confdefs.h >>conftest.$ac_ext
14417 cat >>conftest.$ac_ext <<_ACEOF
14418 /* end confdefs.h.  */
14419 $ac_includes_default
14420 long longval () { return (long) (sizeof (int *)); }
14421 unsigned long ulongval () { return (long) (sizeof (int *)); }
14422 #include <stdio.h>
14423 #include <stdlib.h>
14424 int
14425 main ()
14426 {
14427
14428   FILE *f = fopen ("conftest.val", "w");
14429   if (! f)
14430     exit (1);
14431   if (((long) (sizeof (int *))) < 0)
14432     {
14433       long i = longval ();
14434       if (i != ((long) (sizeof (int *))))
14435         exit (1);
14436       fprintf (f, "%ld\n", i);
14437     }
14438   else
14439     {
14440       unsigned long i = ulongval ();
14441       if (i != ((long) (sizeof (int *))))
14442         exit (1);
14443       fprintf (f, "%lu\n", i);
14444     }
14445   exit (ferror (f) || fclose (f) != 0);
14446
14447   ;
14448   return 0;
14449 }
14450 _ACEOF
14451 rm -f conftest$ac_exeext
14452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14453   (eval $ac_link) 2>&5
14454   ac_status=$?
14455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458   (eval $ac_try) 2>&5
14459   ac_status=$?
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); }; }; then
14462   ac_cv_sizeof_int_p=`cat conftest.val`
14463 else
14464   echo "$as_me: program exited with status $ac_status" >&5
14465 echo "$as_me: failed program was:" >&5
14466 sed 's/^/| /' conftest.$ac_ext >&5
14467
14468 ( exit $ac_status )
14469 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14470 See \`config.log' for more details." >&5
14471 echo "$as_me: error: cannot compute sizeof (int *), 77
14472 See \`config.log' for more details." >&2;}
14473    { (exit 1); exit 1; }; }
14474 fi
14475 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14476 fi
14477 fi
14478 rm -f conftest.val
14479 else
14480   ac_cv_sizeof_int_p=0
14481 fi
14482 fi
14483 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14484 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14485 cat >>confdefs.h <<_ACEOF
14486 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14487 _ACEOF
14488
14489
14490
14491 # Check for sys/types.h types
14492 echo "$as_me:$LINENO: checking for u_int type" >&5
14493 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14494 if test "${ac_cv_have_u_int+set}" = set; then
14495   echo $ECHO_N "(cached) $ECHO_C" >&6
14496 else
14497
14498     cat >conftest.$ac_ext <<_ACEOF
14499 #line $LINENO "configure"
14500 /* confdefs.h.  */
14501 _ACEOF
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h.  */
14505  #include <sys/types.h>
14506 int
14507 main ()
14508 {
14509  u_int a; a = 1;
14510   ;
14511   return 0;
14512 }
14513 _ACEOF
14514 rm -f conftest.$ac_objext
14515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14516   (eval $ac_compile) 2>&5
14517   ac_status=$?
14518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519   (exit $ac_status); } &&
14520          { ac_try='test -s conftest.$ac_objext'
14521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522   (eval $ac_try) 2>&5
14523   ac_status=$?
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); }; }; then
14526    ac_cv_have_u_int="yes"
14527 else
14528   echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14530
14531  ac_cv_have_u_int="no"
14532
14533 fi
14534 rm -f conftest.$ac_objext conftest.$ac_ext
14535
14536 fi
14537 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14538 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14539 if test "x$ac_cv_have_u_int" = "xyes" ; then
14540    cat >>confdefs.h <<\_ACEOF
14541 #define HAVE_U_INT 1
14542 _ACEOF
14543
14544    have_u_int=1
14545 fi
14546
14547 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14548 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14549 if test "${ac_cv_have_intmax_t+set}" = set; then
14550   echo $ECHO_N "(cached) $ECHO_C" >&6
14551 else
14552
14553    cat >conftest.$ac_ext <<_ACEOF
14554 #line $LINENO "configure"
14555 /* confdefs.h.  */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h.  */
14560  #include <sys/types.h>
14561 int
14562 main ()
14563 {
14564  intmax_t a; a = 1;
14565   ;
14566   return 0;
14567 }
14568 _ACEOF
14569 rm -f conftest.$ac_objext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571   (eval $ac_compile) 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); } &&
14575          { ac_try='test -s conftest.$ac_objext'
14576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577   (eval $ac_try) 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); }; }; then
14581    ac_cv_have_intmax_t="yes"
14582 else
14583   echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14585
14586
14587          cat >conftest.$ac_ext <<_ACEOF
14588 #line $LINENO "configure"
14589 /* confdefs.h.  */
14590 _ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h.  */
14594  #include <stdint.h>
14595 int
14596 main ()
14597 {
14598  intmax_t a; a = 1;
14599   ;
14600   return 0;
14601 }
14602 _ACEOF
14603 rm -f conftest.$ac_objext
14604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14605   (eval $ac_compile) 2>&5
14606   ac_status=$?
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); } &&
14609          { ac_try='test -s conftest.$ac_objext'
14610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611   (eval $ac_try) 2>&5
14612   ac_status=$?
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); }; }; then
14615    ac_cv_have_intmax_t="yes"
14616 else
14617   echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14619
14620  ac_cv_have_intmax_t="no"
14621
14622 fi
14623 rm -f conftest.$ac_objext conftest.$ac_ext
14624
14625
14626 fi
14627 rm -f conftest.$ac_objext conftest.$ac_ext
14628
14629
14630 fi
14631 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14632 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14633 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14634    cat >>confdefs.h <<\_ACEOF
14635 #define HAVE_INTMAX_T 1
14636 _ACEOF
14637
14638    have_intmax_t=1
14639 fi
14640
14641
14642 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14643 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14644 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14645   echo $ECHO_N "(cached) $ECHO_C" >&6
14646 else
14647
14648    cat >conftest.$ac_ext <<_ACEOF
14649 #line $LINENO "configure"
14650 /* confdefs.h.  */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h.  */
14655  #include <sys/types.h>
14656 int
14657 main ()
14658 {
14659  u_intmax_t a; a = 1;
14660   ;
14661   return 0;
14662 }
14663 _ACEOF
14664 rm -f conftest.$ac_objext
14665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14666   (eval $ac_compile) 2>&5
14667   ac_status=$?
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); } &&
14670          { ac_try='test -s conftest.$ac_objext'
14671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672   (eval $ac_try) 2>&5
14673   ac_status=$?
14674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); }; }; then
14676    ac_cv_have_u_intmax_t="yes"
14677 else
14678   echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14680
14681
14682          cat >conftest.$ac_ext <<_ACEOF
14683 #line $LINENO "configure"
14684 /* confdefs.h.  */
14685 _ACEOF
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h.  */
14689  #include <stdint.h>
14690 int
14691 main ()
14692 {
14693  u_intmax_t a; a = 1;
14694   ;
14695   return 0;
14696 }
14697 _ACEOF
14698 rm -f conftest.$ac_objext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14700   (eval $ac_compile) 2>&5
14701   ac_status=$?
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); } &&
14704          { ac_try='test -s conftest.$ac_objext'
14705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706   (eval $ac_try) 2>&5
14707   ac_status=$?
14708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709   (exit $ac_status); }; }; then
14710    ac_cv_have_u_intmax_t="yes"
14711 else
14712   echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14714
14715  ac_cv_have_u_intmax_t="no"
14716
14717 fi
14718 rm -f conftest.$ac_objext conftest.$ac_ext
14719
14720
14721 fi
14722 rm -f conftest.$ac_objext conftest.$ac_ext
14723
14724 fi
14725 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14726 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14727 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14728    cat >>confdefs.h <<\_ACEOF
14729 #define HAVE_U_INTMAX_T 1
14730 _ACEOF
14731
14732    have_u_intmax_t=1
14733 fi
14734
14735
14736 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14737 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14738 if test "${ac_cv_have_intxx_t+set}" = set; then
14739   echo $ECHO_N "(cached) $ECHO_C" >&6
14740 else
14741
14742    cat >conftest.$ac_ext <<_ACEOF
14743 #line $LINENO "configure"
14744 /* confdefs.h.  */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h.  */
14749  #include <sys/types.h>
14750 int
14751 main ()
14752 {
14753  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14754   ;
14755   return 0;
14756 }
14757 _ACEOF
14758 rm -f conftest.$ac_objext
14759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14760   (eval $ac_compile) 2>&5
14761   ac_status=$?
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); } &&
14764          { ac_try='test -s conftest.$ac_objext'
14765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766   (eval $ac_try) 2>&5
14767   ac_status=$?
14768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769   (exit $ac_status); }; }; then
14770    ac_cv_have_intxx_t="yes"
14771 else
14772   echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14774
14775  ac_cv_have_intxx_t="no"
14776
14777 fi
14778 rm -f conftest.$ac_objext conftest.$ac_ext
14779
14780 fi
14781 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14782 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14783 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14784    cat >>confdefs.h <<\_ACEOF
14785 #define HAVE_INTXX_T 1
14786 _ACEOF
14787
14788    have_intxx_t=1
14789 fi
14790
14791 echo "$as_me:$LINENO: checking for int64_t type" >&5
14792 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14793 if test "${ac_cv_have_int64_t+set}" = set; then
14794   echo $ECHO_N "(cached) $ECHO_C" >&6
14795 else
14796
14797    cat >conftest.$ac_ext <<_ACEOF
14798 #line $LINENO "configure"
14799 /* confdefs.h.  */
14800 _ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h.  */
14804  #include <sys/types.h>
14805 int
14806 main ()
14807 {
14808  int64_t a; a = 1;
14809   ;
14810   return 0;
14811 }
14812 _ACEOF
14813 rm -f conftest.$ac_objext
14814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14815   (eval $ac_compile) 2>&5
14816   ac_status=$?
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); } &&
14819          { ac_try='test -s conftest.$ac_objext'
14820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821   (eval $ac_try) 2>&5
14822   ac_status=$?
14823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824   (exit $ac_status); }; }; then
14825    ac_cv_have_int64_t="yes"
14826 else
14827   echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14829
14830  ac_cv_have_int64_t="no"
14831
14832 fi
14833 rm -f conftest.$ac_objext conftest.$ac_ext
14834
14835 fi
14836 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14837 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14838 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14839    cat >>confdefs.h <<\_ACEOF
14840 #define HAVE_INT64_T 1
14841 _ACEOF
14842
14843    have_int64_t=1
14844 fi
14845
14846 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14847 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14848 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14849   echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851
14852    cat >conftest.$ac_ext <<_ACEOF
14853 #line $LINENO "configure"
14854 /* confdefs.h.  */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h.  */
14859  #include <sys/types.h>
14860 int
14861 main ()
14862 {
14863  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14864   ;
14865   return 0;
14866 }
14867 _ACEOF
14868 rm -f conftest.$ac_objext
14869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14870   (eval $ac_compile) 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); } &&
14874          { ac_try='test -s conftest.$ac_objext'
14875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876   (eval $ac_try) 2>&5
14877   ac_status=$?
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); }; }; then
14880    ac_cv_have_u_intxx_t="yes"
14881 else
14882   echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14884
14885  ac_cv_have_u_intxx_t="no"
14886
14887 fi
14888 rm -f conftest.$ac_objext conftest.$ac_ext
14889
14890 fi
14891 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14892 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14893 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14894    cat >>confdefs.h <<\_ACEOF
14895 #define HAVE_U_INTXX_T 1
14896 _ACEOF
14897
14898    have_u_intxx_t=1
14899 fi
14900
14901 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14902 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14903 if test "${ac_cv_have_u_int64_t+set}" = set; then
14904   echo $ECHO_N "(cached) $ECHO_C" >&6
14905 else
14906
14907    cat >conftest.$ac_ext <<_ACEOF
14908 #line $LINENO "configure"
14909 /* confdefs.h.  */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h.  */
14914  #include <sys/types.h>
14915 int
14916 main ()
14917 {
14918  u_int64_t a; a = 1;
14919   ;
14920   return 0;
14921 }
14922 _ACEOF
14923 rm -f conftest.$ac_objext
14924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14925   (eval $ac_compile) 2>&5
14926   ac_status=$?
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); } &&
14929          { ac_try='test -s conftest.$ac_objext'
14930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931   (eval $ac_try) 2>&5
14932   ac_status=$?
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); }; }; then
14935    ac_cv_have_u_int64_t="yes"
14936 else
14937   echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14939
14940  ac_cv_have_u_int64_t="no"
14941
14942 fi
14943 rm -f conftest.$ac_objext conftest.$ac_ext
14944
14945 fi
14946 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14947 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14948 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14949    cat >>confdefs.h <<\_ACEOF
14950 #define HAVE_U_INT64_T 1
14951 _ACEOF
14952
14953    have_u_int64_t=1
14954 fi
14955
14956 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14957            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14958 then
14959    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14960 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14961    cat >conftest.$ac_ext <<_ACEOF
14962 #line $LINENO "configure"
14963 /* confdefs.h.  */
14964 _ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h.  */
14968  #include <sys/bitypes.h>
14969 int
14970 main ()
14971 {
14972  int8_t a; int16_t b; int32_t c;
14973         u_int8_t e; u_int16_t f; u_int32_t g;
14974         a = b = c = e = f = g = 1;
14975   ;
14976   return 0;
14977 }
14978 _ACEOF
14979 rm -f conftest.$ac_objext
14980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14981   (eval $ac_compile) 2>&5
14982   ac_status=$?
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); } &&
14985          { ac_try='test -s conftest.$ac_objext'
14986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987   (eval $ac_try) 2>&5
14988   ac_status=$?
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); }; }; then
14991    cat >>confdefs.h <<\_ACEOF
14992 #define HAVE_U_INTXX_T 1
14993 _ACEOF
14994
14995         cat >>confdefs.h <<\_ACEOF
14996 #define HAVE_INTXX_T 1
14997 _ACEOF
14998
14999         cat >>confdefs.h <<\_ACEOF
15000 #define HAVE_SYS_BITYPES_H 1
15001 _ACEOF
15002
15003         echo "$as_me:$LINENO: result: yes" >&5
15004 echo "${ECHO_T}yes" >&6
15005 else
15006   echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15008
15009  echo "$as_me:$LINENO: result: no" >&5
15010 echo "${ECHO_T}no" >&6
15011
15012 fi
15013 rm -f conftest.$ac_objext conftest.$ac_ext
15014 fi
15015
15016 if test -z "$have_u_intxx_t" ; then
15017    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15018 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15019 if test "${ac_cv_have_uintxx_t+set}" = set; then
15020   echo $ECHO_N "(cached) $ECHO_C" >&6
15021 else
15022
15023       cat >conftest.$ac_ext <<_ACEOF
15024 #line $LINENO "configure"
15025 /* confdefs.h.  */
15026 _ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h.  */
15030  #include <sys/types.h>
15031 int
15032 main ()
15033 {
15034  uint8_t a; uint16_t b;
15035            uint32_t c; a = b = c = 1;
15036   ;
15037   return 0;
15038 }
15039 _ACEOF
15040 rm -f conftest.$ac_objext
15041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042   (eval $ac_compile) 2>&5
15043   ac_status=$?
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); } &&
15046          { ac_try='test -s conftest.$ac_objext'
15047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048   (eval $ac_try) 2>&5
15049   ac_status=$?
15050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051   (exit $ac_status); }; }; then
15052    ac_cv_have_uintxx_t="yes"
15053 else
15054   echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15056
15057  ac_cv_have_uintxx_t="no"
15058
15059 fi
15060 rm -f conftest.$ac_objext conftest.$ac_ext
15061
15062 fi
15063 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15064 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15065    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15066       cat >>confdefs.h <<\_ACEOF
15067 #define HAVE_UINTXX_T 1
15068 _ACEOF
15069
15070    fi
15071 fi
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087 for ac_func in \
15088         fork \
15089         getcwd \
15090         gethostname \
15091         getpid \
15092         gettimeofday \
15093         setpgid \
15094         setpgrp \
15095         setsid \
15096         signal \
15097         strerror \
15098         strncmp \
15099         strncpy \
15100         vfprintf \
15101
15102 do
15103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15104 echo "$as_me:$LINENO: checking for $ac_func" >&5
15105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15106 if eval "test \"\${$as_ac_var+set}\" = set"; then
15107   echo $ECHO_N "(cached) $ECHO_C" >&6
15108 else
15109   cat >conftest.$ac_ext <<_ACEOF
15110 #line $LINENO "configure"
15111 /* confdefs.h.  */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h.  */
15116 /* System header to define __stub macros and hopefully few prototypes,
15117     which can conflict with char $ac_func (); below.
15118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15119     <limits.h> exists even on freestanding compilers.  */
15120 #ifdef __STDC__
15121 # include <limits.h>
15122 #else
15123 # include <assert.h>
15124 #endif
15125 /* Override any gcc2 internal prototype to avoid an error.  */
15126 #ifdef __cplusplus
15127 extern "C"
15128 {
15129 #endif
15130 /* We use char because int might match the return type of a gcc2
15131    builtin and then its argument prototype would still apply.  */
15132 char $ac_func ();
15133 /* The GNU C library defines this for functions which it implements
15134     to always fail with ENOSYS.  Some functions are actually named
15135     something starting with __ and the normal name is an alias.  */
15136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15137 choke me
15138 #else
15139 char (*f) () = $ac_func;
15140 #endif
15141 #ifdef __cplusplus
15142 }
15143 #endif
15144
15145 int
15146 main ()
15147 {
15148 return f != $ac_func;
15149   ;
15150   return 0;
15151 }
15152 _ACEOF
15153 rm -f conftest.$ac_objext conftest$ac_exeext
15154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15155   (eval $ac_link) 2>&5
15156   ac_status=$?
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); } &&
15159          { ac_try='test -s conftest$ac_exeext'
15160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161   (eval $ac_try) 2>&5
15162   ac_status=$?
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); }; }; then
15165   eval "$as_ac_var=yes"
15166 else
15167   echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15169
15170 eval "$as_ac_var=no"
15171 fi
15172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15173 fi
15174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15176 if test `eval echo '${'$as_ac_var'}'` = yes; then
15177   cat >>confdefs.h <<_ACEOF
15178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15179 _ACEOF
15180
15181 else
15182   echo 'configure: cannot find needed function.'; exit 1
15183
15184 fi
15185 done
15186
15187
15188
15189 for ac_func in fchdir
15190 do
15191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15192 echo "$as_me:$LINENO: checking for $ac_func" >&5
15193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15194 if eval "test \"\${$as_ac_var+set}\" = set"; then
15195   echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197   cat >conftest.$ac_ext <<_ACEOF
15198 #line $LINENO "configure"
15199 /* confdefs.h.  */
15200 _ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h.  */
15204 /* System header to define __stub macros and hopefully few prototypes,
15205     which can conflict with char $ac_func (); below.
15206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15207     <limits.h> exists even on freestanding compilers.  */
15208 #ifdef __STDC__
15209 # include <limits.h>
15210 #else
15211 # include <assert.h>
15212 #endif
15213 /* Override any gcc2 internal prototype to avoid an error.  */
15214 #ifdef __cplusplus
15215 extern "C"
15216 {
15217 #endif
15218 /* We use char because int might match the return type of a gcc2
15219    builtin and then its argument prototype would still apply.  */
15220 char $ac_func ();
15221 /* The GNU C library defines this for functions which it implements
15222     to always fail with ENOSYS.  Some functions are actually named
15223     something starting with __ and the normal name is an alias.  */
15224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15225 choke me
15226 #else
15227 char (*f) () = $ac_func;
15228 #endif
15229 #ifdef __cplusplus
15230 }
15231 #endif
15232
15233 int
15234 main ()
15235 {
15236 return f != $ac_func;
15237   ;
15238   return 0;
15239 }
15240 _ACEOF
15241 rm -f conftest.$ac_objext conftest$ac_exeext
15242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15243   (eval $ac_link) 2>&5
15244   ac_status=$?
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); } &&
15247          { ac_try='test -s conftest$ac_exeext'
15248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249   (eval $ac_try) 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); }; }; then
15253   eval "$as_ac_var=yes"
15254 else
15255   echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15257
15258 eval "$as_ac_var=no"
15259 fi
15260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15261 fi
15262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15264 if test `eval echo '${'$as_ac_var'}'` = yes; then
15265   cat >>confdefs.h <<_ACEOF
15266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15267 _ACEOF
15268  cat >>confdefs.h <<\_ACEOF
15269 #define HAVE_FCHDIR 1
15270 _ACEOF
15271
15272 fi
15273 done
15274
15275
15276 for ac_func in strtoll
15277 do
15278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15279 echo "$as_me:$LINENO: checking for $ac_func" >&5
15280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15281 if eval "test \"\${$as_ac_var+set}\" = set"; then
15282   echo $ECHO_N "(cached) $ECHO_C" >&6
15283 else
15284   cat >conftest.$ac_ext <<_ACEOF
15285 #line $LINENO "configure"
15286 /* confdefs.h.  */
15287 _ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h.  */
15291 /* System header to define __stub macros and hopefully few prototypes,
15292     which can conflict with char $ac_func (); below.
15293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15294     <limits.h> exists even on freestanding compilers.  */
15295 #ifdef __STDC__
15296 # include <limits.h>
15297 #else
15298 # include <assert.h>
15299 #endif
15300 /* Override any gcc2 internal prototype to avoid an error.  */
15301 #ifdef __cplusplus
15302 extern "C"
15303 {
15304 #endif
15305 /* We use char because int might match the return type of a gcc2
15306    builtin and then its argument prototype would still apply.  */
15307 char $ac_func ();
15308 /* The GNU C library defines this for functions which it implements
15309     to always fail with ENOSYS.  Some functions are actually named
15310     something starting with __ and the normal name is an alias.  */
15311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15312 choke me
15313 #else
15314 char (*f) () = $ac_func;
15315 #endif
15316 #ifdef __cplusplus
15317 }
15318 #endif
15319
15320 int
15321 main ()
15322 {
15323 return f != $ac_func;
15324   ;
15325   return 0;
15326 }
15327 _ACEOF
15328 rm -f conftest.$ac_objext conftest$ac_exeext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15330   (eval $ac_link) 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); } &&
15334          { ac_try='test -s conftest$ac_exeext'
15335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336   (eval $ac_try) 2>&5
15337   ac_status=$?
15338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); }; }; then
15340   eval "$as_ac_var=yes"
15341 else
15342   echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15344
15345 eval "$as_ac_var=no"
15346 fi
15347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15348 fi
15349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15351 if test `eval echo '${'$as_ac_var'}'` = yes; then
15352   cat >>confdefs.h <<_ACEOF
15353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15354 _ACEOF
15355  cat >>confdefs.h <<\_ACEOF
15356 #define HAVE_STRTOLL 1
15357 _ACEOF
15358
15359 fi
15360 done
15361
15362
15363
15364 for ac_func in chflags
15365 do
15366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15367 echo "$as_me:$LINENO: checking for $ac_func" >&5
15368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15369 if eval "test \"\${$as_ac_var+set}\" = set"; then
15370   echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372   cat >conftest.$ac_ext <<_ACEOF
15373 #line $LINENO "configure"
15374 /* confdefs.h.  */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h.  */
15379 /* System header to define __stub macros and hopefully few prototypes,
15380     which can conflict with char $ac_func (); below.
15381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15382     <limits.h> exists even on freestanding compilers.  */
15383 #ifdef __STDC__
15384 # include <limits.h>
15385 #else
15386 # include <assert.h>
15387 #endif
15388 /* Override any gcc2 internal prototype to avoid an error.  */
15389 #ifdef __cplusplus
15390 extern "C"
15391 {
15392 #endif
15393 /* We use char because int might match the return type of a gcc2
15394    builtin and then its argument prototype would still apply.  */
15395 char $ac_func ();
15396 /* The GNU C library defines this for functions which it implements
15397     to always fail with ENOSYS.  Some functions are actually named
15398     something starting with __ and the normal name is an alias.  */
15399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15400 choke me
15401 #else
15402 char (*f) () = $ac_func;
15403 #endif
15404 #ifdef __cplusplus
15405 }
15406 #endif
15407
15408 int
15409 main ()
15410 {
15411 return f != $ac_func;
15412   ;
15413   return 0;
15414 }
15415 _ACEOF
15416 rm -f conftest.$ac_objext conftest$ac_exeext
15417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15418   (eval $ac_link) 2>&5
15419   ac_status=$?
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); } &&
15422          { ac_try='test -s conftest$ac_exeext'
15423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424   (eval $ac_try) 2>&5
15425   ac_status=$?
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); }; }; then
15428   eval "$as_ac_var=yes"
15429 else
15430   echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15432
15433 eval "$as_ac_var=no"
15434 fi
15435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15436 fi
15437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15439 if test `eval echo '${'$as_ac_var'}'` = yes; then
15440   cat >>confdefs.h <<_ACEOF
15441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15442 _ACEOF
15443
15444 fi
15445 done
15446
15447
15448
15449
15450
15451
15452 for ac_func in snprintf vsnprintf gethostid getdomainname
15453 do
15454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15455 echo "$as_me:$LINENO: checking for $ac_func" >&5
15456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15457 if eval "test \"\${$as_ac_var+set}\" = set"; then
15458   echo $ECHO_N "(cached) $ECHO_C" >&6
15459 else
15460   cat >conftest.$ac_ext <<_ACEOF
15461 #line $LINENO "configure"
15462 /* confdefs.h.  */
15463 _ACEOF
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h.  */
15467 /* System header to define __stub macros and hopefully few prototypes,
15468     which can conflict with char $ac_func (); below.
15469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15470     <limits.h> exists even on freestanding compilers.  */
15471 #ifdef __STDC__
15472 # include <limits.h>
15473 #else
15474 # include <assert.h>
15475 #endif
15476 /* Override any gcc2 internal prototype to avoid an error.  */
15477 #ifdef __cplusplus
15478 extern "C"
15479 {
15480 #endif
15481 /* We use char because int might match the return type of a gcc2
15482    builtin and then its argument prototype would still apply.  */
15483 char $ac_func ();
15484 /* The GNU C library defines this for functions which it implements
15485     to always fail with ENOSYS.  Some functions are actually named
15486     something starting with __ and the normal name is an alias.  */
15487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15488 choke me
15489 #else
15490 char (*f) () = $ac_func;
15491 #endif
15492 #ifdef __cplusplus
15493 }
15494 #endif
15495
15496 int
15497 main ()
15498 {
15499 return f != $ac_func;
15500   ;
15501   return 0;
15502 }
15503 _ACEOF
15504 rm -f conftest.$ac_objext conftest$ac_exeext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15506   (eval $ac_link) 2>&5
15507   ac_status=$?
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); } &&
15510          { ac_try='test -s conftest$ac_exeext'
15511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512   (eval $ac_try) 2>&5
15513   ac_status=$?
15514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515   (exit $ac_status); }; }; then
15516   eval "$as_ac_var=yes"
15517 else
15518   echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15520
15521 eval "$as_ac_var=no"
15522 fi
15523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15524 fi
15525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15527 if test `eval echo '${'$as_ac_var'}'` = yes; then
15528   cat >>confdefs.h <<_ACEOF
15529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15530 _ACEOF
15531
15532 fi
15533 done
15534
15535
15536
15537
15538
15539
15540 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15541 do
15542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15543 echo "$as_me:$LINENO: checking for $ac_func" >&5
15544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15545 if eval "test \"\${$as_ac_var+set}\" = set"; then
15546   echo $ECHO_N "(cached) $ECHO_C" >&6
15547 else
15548   cat >conftest.$ac_ext <<_ACEOF
15549 #line $LINENO "configure"
15550 /* confdefs.h.  */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h.  */
15555 /* System header to define __stub macros and hopefully few prototypes,
15556     which can conflict with char $ac_func (); below.
15557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15558     <limits.h> exists even on freestanding compilers.  */
15559 #ifdef __STDC__
15560 # include <limits.h>
15561 #else
15562 # include <assert.h>
15563 #endif
15564 /* Override any gcc2 internal prototype to avoid an error.  */
15565 #ifdef __cplusplus
15566 extern "C"
15567 {
15568 #endif
15569 /* We use char because int might match the return type of a gcc2
15570    builtin and then its argument prototype would still apply.  */
15571 char $ac_func ();
15572 /* The GNU C library defines this for functions which it implements
15573     to always fail with ENOSYS.  Some functions are actually named
15574     something starting with __ and the normal name is an alias.  */
15575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15576 choke me
15577 #else
15578 char (*f) () = $ac_func;
15579 #endif
15580 #ifdef __cplusplus
15581 }
15582 #endif
15583
15584 int
15585 main ()
15586 {
15587 return f != $ac_func;
15588   ;
15589   return 0;
15590 }
15591 _ACEOF
15592 rm -f conftest.$ac_objext conftest$ac_exeext
15593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15594   (eval $ac_link) 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); } &&
15598          { ac_try='test -s conftest$ac_exeext'
15599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600   (eval $ac_try) 2>&5
15601   ac_status=$?
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); }; }; then
15604   eval "$as_ac_var=yes"
15605 else
15606   echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15608
15609 eval "$as_ac_var=no"
15610 fi
15611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15612 fi
15613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15615 if test `eval echo '${'$as_ac_var'}'` = yes; then
15616   cat >>confdefs.h <<_ACEOF
15617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15618 _ACEOF
15619
15620 fi
15621 done
15622
15623
15624 # If resolver functions are not in libc check for -lnsl or -lresolv.
15625 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15626 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15627 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15628   echo $ECHO_N "(cached) $ECHO_C" >&6
15629 else
15630   cat >conftest.$ac_ext <<_ACEOF
15631 #line $LINENO "configure"
15632 /* confdefs.h.  */
15633 _ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h.  */
15637 /* System header to define __stub macros and hopefully few prototypes,
15638     which can conflict with char gethostbyname_r (); below.
15639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15640     <limits.h> exists even on freestanding compilers.  */
15641 #ifdef __STDC__
15642 # include <limits.h>
15643 #else
15644 # include <assert.h>
15645 #endif
15646 /* Override any gcc2 internal prototype to avoid an error.  */
15647 #ifdef __cplusplus
15648 extern "C"
15649 {
15650 #endif
15651 /* We use char because int might match the return type of a gcc2
15652    builtin and then its argument prototype would still apply.  */
15653 char gethostbyname_r ();
15654 /* The GNU C library defines this for functions which it implements
15655     to always fail with ENOSYS.  Some functions are actually named
15656     something starting with __ and the normal name is an alias.  */
15657 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15658 choke me
15659 #else
15660 char (*f) () = gethostbyname_r;
15661 #endif
15662 #ifdef __cplusplus
15663 }
15664 #endif
15665
15666 int
15667 main ()
15668 {
15669 return f != gethostbyname_r;
15670   ;
15671   return 0;
15672 }
15673 _ACEOF
15674 rm -f conftest.$ac_objext conftest$ac_exeext
15675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15676   (eval $ac_link) 2>&5
15677   ac_status=$?
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); } &&
15680          { ac_try='test -s conftest$ac_exeext'
15681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682   (eval $ac_try) 2>&5
15683   ac_status=$?
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); }; }; then
15686   ac_cv_func_gethostbyname_r=yes
15687 else
15688   echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15690
15691 ac_cv_func_gethostbyname_r=no
15692 fi
15693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15694 fi
15695 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15696 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15697 if test $ac_cv_func_gethostbyname_r = yes; then
15698   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15699 echo "${ECHO_T}using libc's resolver" >&6
15700 else
15701
15702 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15703 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15704 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15705   echo $ECHO_N "(cached) $ECHO_C" >&6
15706 else
15707   ac_check_lib_save_LIBS=$LIBS
15708 LIBS="-lnsl  $LIBS"
15709 cat >conftest.$ac_ext <<_ACEOF
15710 #line $LINENO "configure"
15711 /* confdefs.h.  */
15712 _ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h.  */
15716
15717 /* Override any gcc2 internal prototype to avoid an error.  */
15718 #ifdef __cplusplus
15719 extern "C"
15720 #endif
15721 /* We use char because int might match the return type of a gcc2
15722    builtin and then its argument prototype would still apply.  */
15723 char gethostbyname_r ();
15724 int
15725 main ()
15726 {
15727 gethostbyname_r ();
15728   ;
15729   return 0;
15730 }
15731 _ACEOF
15732 rm -f conftest.$ac_objext conftest$ac_exeext
15733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15734   (eval $ac_link) 2>&5
15735   ac_status=$?
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); } &&
15738          { ac_try='test -s conftest$ac_exeext'
15739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740   (eval $ac_try) 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; }; then
15744   ac_cv_lib_nsl_gethostbyname_r=yes
15745 else
15746   echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15748
15749 ac_cv_lib_nsl_gethostbyname_r=no
15750 fi
15751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15752 LIBS=$ac_check_lib_save_LIBS
15753 fi
15754 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15755 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15756 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15757   cat >>confdefs.h <<_ACEOF
15758 #define HAVE_LIBNSL 1
15759 _ACEOF
15760
15761   LIBS="-lnsl $LIBS"
15762
15763 fi
15764
15765
15766 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15767 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15768 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15769   echo $ECHO_N "(cached) $ECHO_C" >&6
15770 else
15771   ac_check_lib_save_LIBS=$LIBS
15772 LIBS="-lresolv  $LIBS"
15773 cat >conftest.$ac_ext <<_ACEOF
15774 #line $LINENO "configure"
15775 /* confdefs.h.  */
15776 _ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h.  */
15780
15781 /* Override any gcc2 internal prototype to avoid an error.  */
15782 #ifdef __cplusplus
15783 extern "C"
15784 #endif
15785 /* We use char because int might match the return type of a gcc2
15786    builtin and then its argument prototype would still apply.  */
15787 char gethostbyname_r ();
15788 int
15789 main ()
15790 {
15791 gethostbyname_r ();
15792   ;
15793   return 0;
15794 }
15795 _ACEOF
15796 rm -f conftest.$ac_objext conftest$ac_exeext
15797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15798   (eval $ac_link) 2>&5
15799   ac_status=$?
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); } &&
15802          { ac_try='test -s conftest$ac_exeext'
15803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804   (eval $ac_try) 2>&5
15805   ac_status=$?
15806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807   (exit $ac_status); }; }; then
15808   ac_cv_lib_resolv_gethostbyname_r=yes
15809 else
15810   echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15812
15813 ac_cv_lib_resolv_gethostbyname_r=no
15814 fi
15815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15816 LIBS=$ac_check_lib_save_LIBS
15817 fi
15818 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15819 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15820 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15821   cat >>confdefs.h <<_ACEOF
15822 #define HAVE_LIBRESOLV 1
15823 _ACEOF
15824
15825   LIBS="-lresolv $LIBS"
15826
15827 fi
15828
15829 fi
15830
15831
15832
15833 # Find where sockets are (especially for Solaris)
15834 echo "$as_me:$LINENO: checking for socket" >&5
15835 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15836 if test "${ac_cv_func_socket+set}" = set; then
15837   echo $ECHO_N "(cached) $ECHO_C" >&6
15838 else
15839   cat >conftest.$ac_ext <<_ACEOF
15840 #line $LINENO "configure"
15841 /* confdefs.h.  */
15842 _ACEOF
15843 cat confdefs.h >>conftest.$ac_ext
15844 cat >>conftest.$ac_ext <<_ACEOF
15845 /* end confdefs.h.  */
15846 /* System header to define __stub macros and hopefully few prototypes,
15847     which can conflict with char socket (); below.
15848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15849     <limits.h> exists even on freestanding compilers.  */
15850 #ifdef __STDC__
15851 # include <limits.h>
15852 #else
15853 # include <assert.h>
15854 #endif
15855 /* Override any gcc2 internal prototype to avoid an error.  */
15856 #ifdef __cplusplus
15857 extern "C"
15858 {
15859 #endif
15860 /* We use char because int might match the return type of a gcc2
15861    builtin and then its argument prototype would still apply.  */
15862 char socket ();
15863 /* The GNU C library defines this for functions which it implements
15864     to always fail with ENOSYS.  Some functions are actually named
15865     something starting with __ and the normal name is an alias.  */
15866 #if defined (__stub_socket) || defined (__stub___socket)
15867 choke me
15868 #else
15869 char (*f) () = socket;
15870 #endif
15871 #ifdef __cplusplus
15872 }
15873 #endif
15874
15875 int
15876 main ()
15877 {
15878 return f != socket;
15879   ;
15880   return 0;
15881 }
15882 _ACEOF
15883 rm -f conftest.$ac_objext conftest$ac_exeext
15884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15885   (eval $ac_link) 2>&5
15886   ac_status=$?
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } &&
15889          { ac_try='test -s conftest$ac_exeext'
15890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891   (eval $ac_try) 2>&5
15892   ac_status=$?
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); }; }; then
15895   ac_cv_func_socket=yes
15896 else
15897   echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15899
15900 ac_cv_func_socket=no
15901 fi
15902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15903 fi
15904 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15905 echo "${ECHO_T}$ac_cv_func_socket" >&6
15906 if test $ac_cv_func_socket = yes; then
15907   echo "$as_me:$LINENO: result: using libc's socket" >&5
15908 echo "${ECHO_T}using libc's socket" >&6
15909 else
15910
15911 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15912 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15913 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15914   echo $ECHO_N "(cached) $ECHO_C" >&6
15915 else
15916   ac_check_lib_save_LIBS=$LIBS
15917 LIBS="-lxnet  $LIBS"
15918 cat >conftest.$ac_ext <<_ACEOF
15919 #line $LINENO "configure"
15920 /* confdefs.h.  */
15921 _ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h.  */
15925
15926 /* Override any gcc2 internal prototype to avoid an error.  */
15927 #ifdef __cplusplus
15928 extern "C"
15929 #endif
15930 /* We use char because int might match the return type of a gcc2
15931    builtin and then its argument prototype would still apply.  */
15932 char socket ();
15933 int
15934 main ()
15935 {
15936 socket ();
15937   ;
15938   return 0;
15939 }
15940 _ACEOF
15941 rm -f conftest.$ac_objext conftest$ac_exeext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15943   (eval $ac_link) 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); } &&
15947          { ac_try='test -s conftest$ac_exeext'
15948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949   (eval $ac_try) 2>&5
15950   ac_status=$?
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); }; }; then
15953   ac_cv_lib_xnet_socket=yes
15954 else
15955   echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15957
15958 ac_cv_lib_xnet_socket=no
15959 fi
15960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15961 LIBS=$ac_check_lib_save_LIBS
15962 fi
15963 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15964 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15965 if test $ac_cv_lib_xnet_socket = yes; then
15966   cat >>confdefs.h <<_ACEOF
15967 #define HAVE_LIBXNET 1
15968 _ACEOF
15969
15970   LIBS="-lxnet $LIBS"
15971
15972 fi
15973
15974
15975 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15976 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15977 if test "${ac_cv_lib_socket_socket+set}" = set; then
15978   echo $ECHO_N "(cached) $ECHO_C" >&6
15979 else
15980   ac_check_lib_save_LIBS=$LIBS
15981 LIBS="-lsocket  $LIBS"
15982 cat >conftest.$ac_ext <<_ACEOF
15983 #line $LINENO "configure"
15984 /* confdefs.h.  */
15985 _ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h.  */
15989
15990 /* Override any gcc2 internal prototype to avoid an error.  */
15991 #ifdef __cplusplus
15992 extern "C"
15993 #endif
15994 /* We use char because int might match the return type of a gcc2
15995    builtin and then its argument prototype would still apply.  */
15996 char socket ();
15997 int
15998 main ()
15999 {
16000 socket ();
16001   ;
16002   return 0;
16003 }
16004 _ACEOF
16005 rm -f conftest.$ac_objext conftest$ac_exeext
16006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16007   (eval $ac_link) 2>&5
16008   ac_status=$?
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); } &&
16011          { ac_try='test -s conftest$ac_exeext'
16012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013   (eval $ac_try) 2>&5
16014   ac_status=$?
16015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016   (exit $ac_status); }; }; then
16017   ac_cv_lib_socket_socket=yes
16018 else
16019   echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16021
16022 ac_cv_lib_socket_socket=no
16023 fi
16024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16025 LIBS=$ac_check_lib_save_LIBS
16026 fi
16027 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16028 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16029 if test $ac_cv_lib_socket_socket = yes; then
16030   cat >>confdefs.h <<_ACEOF
16031 #define HAVE_LIBSOCKET 1
16032 _ACEOF
16033
16034   LIBS="-lsocket $LIBS"
16035
16036 fi
16037
16038
16039 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16040 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16041 if test "${ac_cv_lib_inet_socket+set}" = set; then
16042   echo $ECHO_N "(cached) $ECHO_C" >&6
16043 else
16044   ac_check_lib_save_LIBS=$LIBS
16045 LIBS="-linet  $LIBS"
16046 cat >conftest.$ac_ext <<_ACEOF
16047 #line $LINENO "configure"
16048 /* confdefs.h.  */
16049 _ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h.  */
16053
16054 /* Override any gcc2 internal prototype to avoid an error.  */
16055 #ifdef __cplusplus
16056 extern "C"
16057 #endif
16058 /* We use char because int might match the return type of a gcc2
16059    builtin and then its argument prototype would still apply.  */
16060 char socket ();
16061 int
16062 main ()
16063 {
16064 socket ();
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   ac_cv_lib_inet_socket=yes
16082 else
16083   echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16085
16086 ac_cv_lib_inet_socket=no
16087 fi
16088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16089 LIBS=$ac_check_lib_save_LIBS
16090 fi
16091 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16092 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16093 if test $ac_cv_lib_inet_socket = yes; then
16094   cat >>confdefs.h <<_ACEOF
16095 #define HAVE_LIBINET 1
16096 _ACEOF
16097
16098   LIBS="-linet $LIBS"
16099
16100 fi
16101
16102 fi
16103
16104
16105
16106 for ac_func in inet_pton
16107 do
16108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16109 echo "$as_me:$LINENO: checking for $ac_func" >&5
16110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16111 if eval "test \"\${$as_ac_var+set}\" = set"; then
16112   echo $ECHO_N "(cached) $ECHO_C" >&6
16113 else
16114   cat >conftest.$ac_ext <<_ACEOF
16115 #line $LINENO "configure"
16116 /* confdefs.h.  */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h.  */
16121 /* System header to define __stub macros and hopefully few prototypes,
16122     which can conflict with char $ac_func (); below.
16123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16124     <limits.h> exists even on freestanding compilers.  */
16125 #ifdef __STDC__
16126 # include <limits.h>
16127 #else
16128 # include <assert.h>
16129 #endif
16130 /* Override any gcc2 internal prototype to avoid an error.  */
16131 #ifdef __cplusplus
16132 extern "C"
16133 {
16134 #endif
16135 /* We use char because int might match the return type of a gcc2
16136    builtin and then its argument prototype would still apply.  */
16137 char $ac_func ();
16138 /* The GNU C library defines this for functions which it implements
16139     to always fail with ENOSYS.  Some functions are actually named
16140     something starting with __ and the normal name is an alias.  */
16141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16142 choke me
16143 #else
16144 char (*f) () = $ac_func;
16145 #endif
16146 #ifdef __cplusplus
16147 }
16148 #endif
16149
16150 int
16151 main ()
16152 {
16153 return f != $ac_func;
16154   ;
16155   return 0;
16156 }
16157 _ACEOF
16158 rm -f conftest.$ac_objext conftest$ac_exeext
16159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16160   (eval $ac_link) 2>&5
16161   ac_status=$?
16162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163   (exit $ac_status); } &&
16164          { ac_try='test -s conftest$ac_exeext'
16165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166   (eval $ac_try) 2>&5
16167   ac_status=$?
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); }; }; then
16170   eval "$as_ac_var=yes"
16171 else
16172   echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16174
16175 eval "$as_ac_var=no"
16176 fi
16177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16178 fi
16179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16181 if test `eval echo '${'$as_ac_var'}'` = yes; then
16182   cat >>confdefs.h <<_ACEOF
16183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16184 _ACEOF
16185  cat >>confdefs.h <<\_ACEOF
16186 #define HAVE_INET_PTON 1
16187 _ACEOF
16188
16189 fi
16190 done
16191
16192
16193
16194 for ac_func in strftime
16195 do
16196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16197 echo "$as_me:$LINENO: checking for $ac_func" >&5
16198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16199 if eval "test \"\${$as_ac_var+set}\" = set"; then
16200   echo $ECHO_N "(cached) $ECHO_C" >&6
16201 else
16202   cat >conftest.$ac_ext <<_ACEOF
16203 #line $LINENO "configure"
16204 /* confdefs.h.  */
16205 _ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h.  */
16209 /* System header to define __stub macros and hopefully few prototypes,
16210     which can conflict with char $ac_func (); below.
16211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16212     <limits.h> exists even on freestanding compilers.  */
16213 #ifdef __STDC__
16214 # include <limits.h>
16215 #else
16216 # include <assert.h>
16217 #endif
16218 /* Override any gcc2 internal prototype to avoid an error.  */
16219 #ifdef __cplusplus
16220 extern "C"
16221 {
16222 #endif
16223 /* We use char because int might match the return type of a gcc2
16224    builtin and then its argument prototype would still apply.  */
16225 char $ac_func ();
16226 /* The GNU C library defines this for functions which it implements
16227     to always fail with ENOSYS.  Some functions are actually named
16228     something starting with __ and the normal name is an alias.  */
16229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16230 choke me
16231 #else
16232 char (*f) () = $ac_func;
16233 #endif
16234 #ifdef __cplusplus
16235 }
16236 #endif
16237
16238 int
16239 main ()
16240 {
16241 return f != $ac_func;
16242   ;
16243   return 0;
16244 }
16245 _ACEOF
16246 rm -f conftest.$ac_objext conftest$ac_exeext
16247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16248   (eval $ac_link) 2>&5
16249   ac_status=$?
16250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251   (exit $ac_status); } &&
16252          { ac_try='test -s conftest$ac_exeext'
16253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254   (eval $ac_try) 2>&5
16255   ac_status=$?
16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257   (exit $ac_status); }; }; then
16258   eval "$as_ac_var=yes"
16259 else
16260   echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16262
16263 eval "$as_ac_var=no"
16264 fi
16265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16266 fi
16267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16269 if test `eval echo '${'$as_ac_var'}'` = yes; then
16270   cat >>confdefs.h <<_ACEOF
16271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16272 _ACEOF
16273
16274 else
16275   # strftime is in -lintl on SCO UNIX.
16276 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16277 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16278 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16279   echo $ECHO_N "(cached) $ECHO_C" >&6
16280 else
16281   ac_check_lib_save_LIBS=$LIBS
16282 LIBS="-lintl  $LIBS"
16283 cat >conftest.$ac_ext <<_ACEOF
16284 #line $LINENO "configure"
16285 /* confdefs.h.  */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h.  */
16290
16291 /* Override any gcc2 internal prototype to avoid an error.  */
16292 #ifdef __cplusplus
16293 extern "C"
16294 #endif
16295 /* We use char because int might match the return type of a gcc2
16296    builtin and then its argument prototype would still apply.  */
16297 char strftime ();
16298 int
16299 main ()
16300 {
16301 strftime ();
16302   ;
16303   return 0;
16304 }
16305 _ACEOF
16306 rm -f conftest.$ac_objext conftest$ac_exeext
16307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16308   (eval $ac_link) 2>&5
16309   ac_status=$?
16310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311   (exit $ac_status); } &&
16312          { ac_try='test -s conftest$ac_exeext'
16313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314   (eval $ac_try) 2>&5
16315   ac_status=$?
16316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317   (exit $ac_status); }; }; then
16318   ac_cv_lib_intl_strftime=yes
16319 else
16320   echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16322
16323 ac_cv_lib_intl_strftime=no
16324 fi
16325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16326 LIBS=$ac_check_lib_save_LIBS
16327 fi
16328 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16329 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16330 if test $ac_cv_lib_intl_strftime = yes; then
16331   cat >>confdefs.h <<\_ACEOF
16332 #define HAVE_STRFTIME 1
16333 _ACEOF
16334
16335 LIBS="-lintl $LIBS"
16336 fi
16337
16338 fi
16339 done
16340
16341
16342 for ac_func in vprintf
16343 do
16344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16345 echo "$as_me:$LINENO: checking for $ac_func" >&5
16346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16347 if eval "test \"\${$as_ac_var+set}\" = set"; then
16348   echo $ECHO_N "(cached) $ECHO_C" >&6
16349 else
16350   cat >conftest.$ac_ext <<_ACEOF
16351 #line $LINENO "configure"
16352 /* confdefs.h.  */
16353 _ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h.  */
16357 /* System header to define __stub macros and hopefully few prototypes,
16358     which can conflict with char $ac_func (); below.
16359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16360     <limits.h> exists even on freestanding compilers.  */
16361 #ifdef __STDC__
16362 # include <limits.h>
16363 #else
16364 # include <assert.h>
16365 #endif
16366 /* Override any gcc2 internal prototype to avoid an error.  */
16367 #ifdef __cplusplus
16368 extern "C"
16369 {
16370 #endif
16371 /* We use char because int might match the return type of a gcc2
16372    builtin and then its argument prototype would still apply.  */
16373 char $ac_func ();
16374 /* The GNU C library defines this for functions which it implements
16375     to always fail with ENOSYS.  Some functions are actually named
16376     something starting with __ and the normal name is an alias.  */
16377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16378 choke me
16379 #else
16380 char (*f) () = $ac_func;
16381 #endif
16382 #ifdef __cplusplus
16383 }
16384 #endif
16385
16386 int
16387 main ()
16388 {
16389 return f != $ac_func;
16390   ;
16391   return 0;
16392 }
16393 _ACEOF
16394 rm -f conftest.$ac_objext conftest$ac_exeext
16395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16396   (eval $ac_link) 2>&5
16397   ac_status=$?
16398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399   (exit $ac_status); } &&
16400          { ac_try='test -s conftest$ac_exeext'
16401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402   (eval $ac_try) 2>&5
16403   ac_status=$?
16404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405   (exit $ac_status); }; }; then
16406   eval "$as_ac_var=yes"
16407 else
16408   echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16410
16411 eval "$as_ac_var=no"
16412 fi
16413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16414 fi
16415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16417 if test `eval echo '${'$as_ac_var'}'` = yes; then
16418   cat >>confdefs.h <<_ACEOF
16419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16420 _ACEOF
16421
16422 echo "$as_me:$LINENO: checking for _doprnt" >&5
16423 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16424 if test "${ac_cv_func__doprnt+set}" = set; then
16425   echo $ECHO_N "(cached) $ECHO_C" >&6
16426 else
16427   cat >conftest.$ac_ext <<_ACEOF
16428 #line $LINENO "configure"
16429 /* confdefs.h.  */
16430 _ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h.  */
16434 /* System header to define __stub macros and hopefully few prototypes,
16435     which can conflict with char _doprnt (); below.
16436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16437     <limits.h> exists even on freestanding compilers.  */
16438 #ifdef __STDC__
16439 # include <limits.h>
16440 #else
16441 # include <assert.h>
16442 #endif
16443 /* Override any gcc2 internal prototype to avoid an error.  */
16444 #ifdef __cplusplus
16445 extern "C"
16446 {
16447 #endif
16448 /* We use char because int might match the return type of a gcc2
16449    builtin and then its argument prototype would still apply.  */
16450 char _doprnt ();
16451 /* The GNU C library defines this for functions which it implements
16452     to always fail with ENOSYS.  Some functions are actually named
16453     something starting with __ and the normal name is an alias.  */
16454 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16455 choke me
16456 #else
16457 char (*f) () = _doprnt;
16458 #endif
16459 #ifdef __cplusplus
16460 }
16461 #endif
16462
16463 int
16464 main ()
16465 {
16466 return f != _doprnt;
16467   ;
16468   return 0;
16469 }
16470 _ACEOF
16471 rm -f conftest.$ac_objext conftest$ac_exeext
16472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16473   (eval $ac_link) 2>&5
16474   ac_status=$?
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); } &&
16477          { ac_try='test -s conftest$ac_exeext'
16478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16479   (eval $ac_try) 2>&5
16480   ac_status=$?
16481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482   (exit $ac_status); }; }; then
16483   ac_cv_func__doprnt=yes
16484 else
16485   echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16487
16488 ac_cv_func__doprnt=no
16489 fi
16490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16491 fi
16492 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16493 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16494 if test $ac_cv_func__doprnt = yes; then
16495
16496 cat >>confdefs.h <<\_ACEOF
16497 #define HAVE_DOPRNT 1
16498 _ACEOF
16499
16500 fi
16501
16502 fi
16503 done
16504
16505
16506 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16507 # for constant arguments.  Useless!
16508 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16509 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16510 if test "${ac_cv_working_alloca_h+set}" = set; then
16511   echo $ECHO_N "(cached) $ECHO_C" >&6
16512 else
16513   cat >conftest.$ac_ext <<_ACEOF
16514 #line $LINENO "configure"
16515 /* confdefs.h.  */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h.  */
16520 #include <alloca.h>
16521 int
16522 main ()
16523 {
16524 char *p = (char *) alloca (2 * sizeof (int));
16525   ;
16526   return 0;
16527 }
16528 _ACEOF
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16531   (eval $ac_link) 2>&5
16532   ac_status=$?
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); } &&
16535          { ac_try='test -s conftest$ac_exeext'
16536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537   (eval $ac_try) 2>&5
16538   ac_status=$?
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); }; }; then
16541   ac_cv_working_alloca_h=yes
16542 else
16543   echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16545
16546 ac_cv_working_alloca_h=no
16547 fi
16548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16549 fi
16550 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16551 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16552 if test $ac_cv_working_alloca_h = yes; then
16553
16554 cat >>confdefs.h <<\_ACEOF
16555 #define HAVE_ALLOCA_H 1
16556 _ACEOF
16557
16558 fi
16559
16560 echo "$as_me:$LINENO: checking for alloca" >&5
16561 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16562 if test "${ac_cv_func_alloca_works+set}" = set; then
16563   echo $ECHO_N "(cached) $ECHO_C" >&6
16564 else
16565   cat >conftest.$ac_ext <<_ACEOF
16566 #line $LINENO "configure"
16567 /* confdefs.h.  */
16568 _ACEOF
16569 cat confdefs.h >>conftest.$ac_ext
16570 cat >>conftest.$ac_ext <<_ACEOF
16571 /* end confdefs.h.  */
16572 #ifdef __GNUC__
16573 # define alloca __builtin_alloca
16574 #else
16575 # ifdef _MSC_VER
16576 #  include <malloc.h>
16577 #  define alloca _alloca
16578 # else
16579 #  if HAVE_ALLOCA_H
16580 #   include <alloca.h>
16581 #  else
16582 #   ifdef _AIX
16583  #pragma alloca
16584 #   else
16585 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16586 char *alloca ();
16587 #    endif
16588 #   endif
16589 #  endif
16590 # endif
16591 #endif
16592
16593 int
16594 main ()
16595 {
16596 char *p = (char *) alloca (1);
16597   ;
16598   return 0;
16599 }
16600 _ACEOF
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16603   (eval $ac_link) 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); } &&
16607          { ac_try='test -s conftest$ac_exeext'
16608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609   (eval $ac_try) 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); }; }; then
16613   ac_cv_func_alloca_works=yes
16614 else
16615   echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618 ac_cv_func_alloca_works=no
16619 fi
16620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16621 fi
16622 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16623 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16624
16625 if test $ac_cv_func_alloca_works = yes; then
16626
16627 cat >>confdefs.h <<\_ACEOF
16628 #define HAVE_ALLOCA 1
16629 _ACEOF
16630
16631 else
16632   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16633 # that cause trouble.  Some versions do not even contain alloca or
16634 # contain a buggy version.  If you still want to use their alloca,
16635 # use ar to extract alloca.o from them instead of compiling alloca.c.
16636
16637 ALLOCA=alloca.$ac_objext
16638
16639 cat >>confdefs.h <<\_ACEOF
16640 #define C_ALLOCA 1
16641 _ACEOF
16642
16643
16644 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16645 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16646 if test "${ac_cv_os_cray+set}" = set; then
16647   echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649   cat >conftest.$ac_ext <<_ACEOF
16650 #line $LINENO "configure"
16651 /* confdefs.h.  */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h.  */
16656 #if defined(CRAY) && ! defined(CRAY2)
16657 webecray
16658 #else
16659 wenotbecray
16660 #endif
16661
16662 _ACEOF
16663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16664   $EGREP "webecray" >/dev/null 2>&1; then
16665   ac_cv_os_cray=yes
16666 else
16667   ac_cv_os_cray=no
16668 fi
16669 rm -f conftest*
16670
16671 fi
16672 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16673 echo "${ECHO_T}$ac_cv_os_cray" >&6
16674 if test $ac_cv_os_cray = yes; then
16675   for ac_func in _getb67 GETB67 getb67; do
16676     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16677 echo "$as_me:$LINENO: checking for $ac_func" >&5
16678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16679 if eval "test \"\${$as_ac_var+set}\" = set"; then
16680   echo $ECHO_N "(cached) $ECHO_C" >&6
16681 else
16682   cat >conftest.$ac_ext <<_ACEOF
16683 #line $LINENO "configure"
16684 /* confdefs.h.  */
16685 _ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h.  */
16689 /* System header to define __stub macros and hopefully few prototypes,
16690     which can conflict with char $ac_func (); below.
16691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16692     <limits.h> exists even on freestanding compilers.  */
16693 #ifdef __STDC__
16694 # include <limits.h>
16695 #else
16696 # include <assert.h>
16697 #endif
16698 /* Override any gcc2 internal prototype to avoid an error.  */
16699 #ifdef __cplusplus
16700 extern "C"
16701 {
16702 #endif
16703 /* We use char because int might match the return type of a gcc2
16704    builtin and then its argument prototype would still apply.  */
16705 char $ac_func ();
16706 /* The GNU C library defines this for functions which it implements
16707     to always fail with ENOSYS.  Some functions are actually named
16708     something starting with __ and the normal name is an alias.  */
16709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16710 choke me
16711 #else
16712 char (*f) () = $ac_func;
16713 #endif
16714 #ifdef __cplusplus
16715 }
16716 #endif
16717
16718 int
16719 main ()
16720 {
16721 return f != $ac_func;
16722   ;
16723   return 0;
16724 }
16725 _ACEOF
16726 rm -f conftest.$ac_objext conftest$ac_exeext
16727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16728   (eval $ac_link) 2>&5
16729   ac_status=$?
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); } &&
16732          { ac_try='test -s conftest$ac_exeext'
16733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734   (eval $ac_try) 2>&5
16735   ac_status=$?
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); }; }; then
16738   eval "$as_ac_var=yes"
16739 else
16740   echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16742
16743 eval "$as_ac_var=no"
16744 fi
16745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16746 fi
16747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16749 if test `eval echo '${'$as_ac_var'}'` = yes; then
16750
16751 cat >>confdefs.h <<_ACEOF
16752 #define CRAY_STACKSEG_END $ac_func
16753 _ACEOF
16754
16755     break
16756 fi
16757
16758   done
16759 fi
16760
16761 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16762 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16763 if test "${ac_cv_c_stack_direction+set}" = set; then
16764   echo $ECHO_N "(cached) $ECHO_C" >&6
16765 else
16766   if test "$cross_compiling" = yes; then
16767   ac_cv_c_stack_direction=0
16768 else
16769   cat >conftest.$ac_ext <<_ACEOF
16770 #line $LINENO "configure"
16771 /* confdefs.h.  */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h.  */
16776 int
16777 find_stack_direction ()
16778 {
16779   static char *addr = 0;
16780   auto char dummy;
16781   if (addr == 0)
16782     {
16783       addr = &dummy;
16784       return find_stack_direction ();
16785     }
16786   else
16787     return (&dummy > addr) ? 1 : -1;
16788 }
16789
16790 int
16791 main ()
16792 {
16793   exit (find_stack_direction () < 0);
16794 }
16795 _ACEOF
16796 rm -f conftest$ac_exeext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798   (eval $ac_link) 2>&5
16799   ac_status=$?
16800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803   (eval $ac_try) 2>&5
16804   ac_status=$?
16805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); }; }; then
16807   ac_cv_c_stack_direction=1
16808 else
16809   echo "$as_me: program exited with status $ac_status" >&5
16810 echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16812
16813 ( exit $ac_status )
16814 ac_cv_c_stack_direction=-1
16815 fi
16816 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16817 fi
16818 fi
16819 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16820 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16821
16822 cat >>confdefs.h <<_ACEOF
16823 #define STACK_DIRECTION $ac_cv_c_stack_direction
16824 _ACEOF
16825
16826
16827 fi
16828
16829 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16830 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16831 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16832 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16833   echo $ECHO_N "(cached) $ECHO_C" >&6
16834 else
16835   ac_check_lib_save_LIBS=$LIBS
16836 LIBS="-lsun  $LIBS"
16837 cat >conftest.$ac_ext <<_ACEOF
16838 #line $LINENO "configure"
16839 /* confdefs.h.  */
16840 _ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h.  */
16844
16845 /* Override any gcc2 internal prototype to avoid an error.  */
16846 #ifdef __cplusplus
16847 extern "C"
16848 #endif
16849 /* We use char because int might match the return type of a gcc2
16850    builtin and then its argument prototype would still apply.  */
16851 char getmntent ();
16852 int
16853 main ()
16854 {
16855 getmntent ();
16856   ;
16857   return 0;
16858 }
16859 _ACEOF
16860 rm -f conftest.$ac_objext conftest$ac_exeext
16861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16862   (eval $ac_link) 2>&5
16863   ac_status=$?
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); } &&
16866          { ac_try='test -s conftest$ac_exeext'
16867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868   (eval $ac_try) 2>&5
16869   ac_status=$?
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); }; }; then
16872   ac_cv_lib_sun_getmntent=yes
16873 else
16874   echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16876
16877 ac_cv_lib_sun_getmntent=no
16878 fi
16879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16880 LIBS=$ac_check_lib_save_LIBS
16881 fi
16882 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16883 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16884 if test $ac_cv_lib_sun_getmntent = yes; then
16885   LIBS="-lsun $LIBS"
16886 else
16887   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16888 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16889 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16890   echo $ECHO_N "(cached) $ECHO_C" >&6
16891 else
16892   ac_check_lib_save_LIBS=$LIBS
16893 LIBS="-lseq  $LIBS"
16894 cat >conftest.$ac_ext <<_ACEOF
16895 #line $LINENO "configure"
16896 /* confdefs.h.  */
16897 _ACEOF
16898 cat confdefs.h >>conftest.$ac_ext
16899 cat >>conftest.$ac_ext <<_ACEOF
16900 /* end confdefs.h.  */
16901
16902 /* Override any gcc2 internal prototype to avoid an error.  */
16903 #ifdef __cplusplus
16904 extern "C"
16905 #endif
16906 /* We use char because int might match the return type of a gcc2
16907    builtin and then its argument prototype would still apply.  */
16908 char getmntent ();
16909 int
16910 main ()
16911 {
16912 getmntent ();
16913   ;
16914   return 0;
16915 }
16916 _ACEOF
16917 rm -f conftest.$ac_objext conftest$ac_exeext
16918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16919   (eval $ac_link) 2>&5
16920   ac_status=$?
16921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); } &&
16923          { ac_try='test -s conftest$ac_exeext'
16924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925   (eval $ac_try) 2>&5
16926   ac_status=$?
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); }; }; then
16929   ac_cv_lib_seq_getmntent=yes
16930 else
16931   echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16933
16934 ac_cv_lib_seq_getmntent=no
16935 fi
16936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16937 LIBS=$ac_check_lib_save_LIBS
16938 fi
16939 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16940 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16941 if test $ac_cv_lib_seq_getmntent = yes; then
16942   LIBS="-lseq $LIBS"
16943 else
16944   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16945 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16946 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16947   echo $ECHO_N "(cached) $ECHO_C" >&6
16948 else
16949   ac_check_lib_save_LIBS=$LIBS
16950 LIBS="-lgen  $LIBS"
16951 cat >conftest.$ac_ext <<_ACEOF
16952 #line $LINENO "configure"
16953 /* confdefs.h.  */
16954 _ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h.  */
16958
16959 /* Override any gcc2 internal prototype to avoid an error.  */
16960 #ifdef __cplusplus
16961 extern "C"
16962 #endif
16963 /* We use char because int might match the return type of a gcc2
16964    builtin and then its argument prototype would still apply.  */
16965 char getmntent ();
16966 int
16967 main ()
16968 {
16969 getmntent ();
16970   ;
16971   return 0;
16972 }
16973 _ACEOF
16974 rm -f conftest.$ac_objext conftest$ac_exeext
16975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16976   (eval $ac_link) 2>&5
16977   ac_status=$?
16978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979   (exit $ac_status); } &&
16980          { ac_try='test -s conftest$ac_exeext'
16981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982   (eval $ac_try) 2>&5
16983   ac_status=$?
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); }; }; then
16986   ac_cv_lib_gen_getmntent=yes
16987 else
16988   echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16990
16991 ac_cv_lib_gen_getmntent=no
16992 fi
16993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16994 LIBS=$ac_check_lib_save_LIBS
16995 fi
16996 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16997 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16998 if test $ac_cv_lib_gen_getmntent = yes; then
16999   LIBS="-lgen $LIBS"
17000 fi
17001
17002 fi
17003
17004 fi
17005
17006
17007 for ac_func in getmntent
17008 do
17009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17010 echo "$as_me:$LINENO: checking for $ac_func" >&5
17011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17012 if eval "test \"\${$as_ac_var+set}\" = set"; then
17013   echo $ECHO_N "(cached) $ECHO_C" >&6
17014 else
17015   cat >conftest.$ac_ext <<_ACEOF
17016 #line $LINENO "configure"
17017 /* confdefs.h.  */
17018 _ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h.  */
17022 /* System header to define __stub macros and hopefully few prototypes,
17023     which can conflict with char $ac_func (); below.
17024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17025     <limits.h> exists even on freestanding compilers.  */
17026 #ifdef __STDC__
17027 # include <limits.h>
17028 #else
17029 # include <assert.h>
17030 #endif
17031 /* Override any gcc2 internal prototype to avoid an error.  */
17032 #ifdef __cplusplus
17033 extern "C"
17034 {
17035 #endif
17036 /* We use char because int might match the return type of a gcc2
17037    builtin and then its argument prototype would still apply.  */
17038 char $ac_func ();
17039 /* The GNU C library defines this for functions which it implements
17040     to always fail with ENOSYS.  Some functions are actually named
17041     something starting with __ and the normal name is an alias.  */
17042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17043 choke me
17044 #else
17045 char (*f) () = $ac_func;
17046 #endif
17047 #ifdef __cplusplus
17048 }
17049 #endif
17050
17051 int
17052 main ()
17053 {
17054 return f != $ac_func;
17055   ;
17056   return 0;
17057 }
17058 _ACEOF
17059 rm -f conftest.$ac_objext conftest$ac_exeext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17061   (eval $ac_link) 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); } &&
17065          { ac_try='test -s conftest$ac_exeext'
17066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067   (eval $ac_try) 2>&5
17068   ac_status=$?
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); }; }; then
17071   eval "$as_ac_var=yes"
17072 else
17073   echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076 eval "$as_ac_var=no"
17077 fi
17078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17079 fi
17080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17082 if test `eval echo '${'$as_ac_var'}'` = yes; then
17083   cat >>confdefs.h <<_ACEOF
17084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17085 _ACEOF
17086
17087 fi
17088 done
17089
17090
17091 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17092 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17093 if test "${ac_cv_func_closedir_void+set}" = set; then
17094   echo $ECHO_N "(cached) $ECHO_C" >&6
17095 else
17096   if test "$cross_compiling" = yes; then
17097   ac_cv_func_closedir_void=yes
17098 else
17099   cat >conftest.$ac_ext <<_ACEOF
17100 #line $LINENO "configure"
17101 /* confdefs.h.  */
17102 _ACEOF
17103 cat confdefs.h >>conftest.$ac_ext
17104 cat >>conftest.$ac_ext <<_ACEOF
17105 /* end confdefs.h.  */
17106 $ac_includes_default
17107 #include <$ac_header_dirent>
17108 #ifndef __cplusplus
17109 int closedir ();
17110 #endif
17111
17112 int
17113 main ()
17114 {
17115 exit (closedir (opendir (".")) != 0);
17116   ;
17117   return 0;
17118 }
17119 _ACEOF
17120 rm -f conftest$ac_exeext
17121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17122   (eval $ac_link) 2>&5
17123   ac_status=$?
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127   (eval $ac_try) 2>&5
17128   ac_status=$?
17129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130   (exit $ac_status); }; }; then
17131   ac_cv_func_closedir_void=no
17132 else
17133   echo "$as_me: program exited with status $ac_status" >&5
17134 echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17136
17137 ( exit $ac_status )
17138 ac_cv_func_closedir_void=yes
17139 fi
17140 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17141 fi
17142 fi
17143 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17144 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17145 if test $ac_cv_func_closedir_void = yes; then
17146
17147 cat >>confdefs.h <<\_ACEOF
17148 #define CLOSEDIR_VOID 1
17149 _ACEOF
17150
17151 fi
17152
17153 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17154 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17155 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17156   echo $ECHO_N "(cached) $ECHO_C" >&6
17157 else
17158   if test "$cross_compiling" = yes; then
17159   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17160 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17161    { (exit 1); exit 1; }; }
17162 else
17163   cat >conftest.$ac_ext <<_ACEOF
17164 #line $LINENO "configure"
17165 /* confdefs.h.  */
17166 _ACEOF
17167 cat confdefs.h >>conftest.$ac_ext
17168 cat >>conftest.$ac_ext <<_ACEOF
17169 /* end confdefs.h.  */
17170 #if HAVE_UNISTD_H
17171 # include <unistd.h>
17172 #endif
17173
17174 int
17175 main ()
17176 {
17177 /* If this system has a BSD-style setpgrp which takes arguments,
17178   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17179   exit successfully. */
17180   exit (setpgrp (1,1) == -1 ? 0 : 1);
17181   ;
17182   return 0;
17183 }
17184 _ACEOF
17185 rm -f conftest$ac_exeext
17186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187   (eval $ac_link) 2>&5
17188   ac_status=$?
17189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192   (eval $ac_try) 2>&5
17193   ac_status=$?
17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); }; }; then
17196   ac_cv_func_setpgrp_void=no
17197 else
17198   echo "$as_me: program exited with status $ac_status" >&5
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17201
17202 ( exit $ac_status )
17203 ac_cv_func_setpgrp_void=yes
17204 fi
17205 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17206 fi
17207 fi
17208 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17209 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17210 if test $ac_cv_func_setpgrp_void = yes; then
17211
17212 cat >>confdefs.h <<\_ACEOF
17213 #define SETPGRP_VOID 1
17214 _ACEOF
17215
17216 fi
17217                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17218 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17219 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17220   echo $ECHO_N "(cached) $ECHO_C" >&6
17221 else
17222   # Some versions of Solaris, SCO, and the GNU C Library
17223    # have a broken or incompatible fnmatch.
17224    # So we run a test program.  If we are cross-compiling, take no chance.
17225    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17226    if test "$cross_compiling" = yes; then
17227   ac_cv_func_fnmatch_works=cross
17228 else
17229   cat >conftest.$ac_ext <<_ACEOF
17230 #line $LINENO "configure"
17231 /* confdefs.h.  */
17232 _ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h.  */
17236 #include <fnmatch.h>
17237 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17238 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17239
17240 int
17241 main ()
17242 {
17243 exit
17244            (!(y ("a*", "abc", 0)
17245               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17246               && y ("a\\\\bc", "abc", 0)
17247               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17248               && y ("*x", ".x", 0)
17249               && n ("*x", ".x", FNM_PERIOD)
17250               && 1));
17251   ;
17252   return 0;
17253 }
17254 _ACEOF
17255 rm -f conftest$ac_exeext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17257   (eval $ac_link) 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262   (eval $ac_try) 2>&5
17263   ac_status=$?
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); }; }; then
17266   ac_cv_func_fnmatch_works=yes
17267 else
17268   echo "$as_me: program exited with status $ac_status" >&5
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17271
17272 ( exit $ac_status )
17273 ac_cv_func_fnmatch_works=no
17274 fi
17275 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17276 fi
17277 fi
17278 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17279 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17280 if test $ac_cv_func_fnmatch_works = yes; then
17281
17282 cat >>confdefs.h <<\_ACEOF
17283 #define HAVE_FNMATCH 1
17284 _ACEOF
17285
17286 fi
17287
17288
17289
17290
17291
17292 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17293 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17294 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17295   echo $ECHO_N "(cached) $ECHO_C" >&6
17296 else
17297   ac_check_lib_save_LIBS=$LIBS
17298 LIBS="-lxpg4  $LIBS"
17299 cat >conftest.$ac_ext <<_ACEOF
17300 #line $LINENO "configure"
17301 /* confdefs.h.  */
17302 _ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h.  */
17306
17307 /* Override any gcc2 internal prototype to avoid an error.  */
17308 #ifdef __cplusplus
17309 extern "C"
17310 #endif
17311 /* We use char because int might match the return type of a gcc2
17312    builtin and then its argument prototype would still apply.  */
17313 char setlocale ();
17314 int
17315 main ()
17316 {
17317 setlocale ();
17318   ;
17319   return 0;
17320 }
17321 _ACEOF
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17324   (eval $ac_link) 2>&5
17325   ac_status=$?
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); } &&
17328          { ac_try='test -s conftest$ac_exeext'
17329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330   (eval $ac_try) 2>&5
17331   ac_status=$?
17332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333   (exit $ac_status); }; }; then
17334   ac_cv_lib_xpg4_setlocale=yes
17335 else
17336   echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17338
17339 ac_cv_lib_xpg4_setlocale=no
17340 fi
17341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17342 LIBS=$ac_check_lib_save_LIBS
17343 fi
17344 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17345 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17346 if test $ac_cv_lib_xpg4_setlocale = yes; then
17347   LIBS="$LIBS -lxpg4"
17348 fi
17349
17350
17351
17352
17353 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17354 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17355 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17356   echo $ECHO_N "(cached) $ECHO_C" >&6
17357 else
17358   ac_check_lib_save_LIBS=$LIBS
17359 LIBS="-lsun  $LIBS"
17360 cat >conftest.$ac_ext <<_ACEOF
17361 #line $LINENO "configure"
17362 /* confdefs.h.  */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h.  */
17367
17368 /* Override any gcc2 internal prototype to avoid an error.  */
17369 #ifdef __cplusplus
17370 extern "C"
17371 #endif
17372 /* We use char because int might match the return type of a gcc2
17373    builtin and then its argument prototype would still apply.  */
17374 char getpwnam ();
17375 int
17376 main ()
17377 {
17378 getpwnam ();
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385   (eval $ac_link) 2>&5
17386   ac_status=$?
17387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388   (exit $ac_status); } &&
17389          { ac_try='test -s conftest$ac_exeext'
17390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391   (eval $ac_try) 2>&5
17392   ac_status=$?
17393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394   (exit $ac_status); }; }; then
17395   ac_cv_lib_sun_getpwnam=yes
17396 else
17397   echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17399
17400 ac_cv_lib_sun_getpwnam=no
17401 fi
17402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17403 LIBS=$ac_check_lib_save_LIBS
17404 fi
17405 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17406 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17407 if test $ac_cv_lib_sun_getpwnam = yes; then
17408   cat >>confdefs.h <<_ACEOF
17409 #define HAVE_LIBSUN 1
17410 _ACEOF
17411
17412   LIBS="-lsun $LIBS"
17413
17414 fi
17415
17416
17417
17418 for ac_header in zlib.h
17419 do
17420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17422   echo "$as_me:$LINENO: checking for $ac_header" >&5
17423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17425   echo $ECHO_N "(cached) $ECHO_C" >&6
17426 fi
17427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17429 else
17430   # Is the header compilable?
17431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17433 cat >conftest.$ac_ext <<_ACEOF
17434 #line $LINENO "configure"
17435 /* confdefs.h.  */
17436 _ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h.  */
17440 $ac_includes_default
17441 #include <$ac_header>
17442 _ACEOF
17443 rm -f conftest.$ac_objext
17444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17445   (eval $ac_compile) 2>&5
17446   ac_status=$?
17447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448   (exit $ac_status); } &&
17449          { ac_try='test -s conftest.$ac_objext'
17450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451   (eval $ac_try) 2>&5
17452   ac_status=$?
17453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454   (exit $ac_status); }; }; then
17455   ac_header_compiler=yes
17456 else
17457   echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17459
17460 ac_header_compiler=no
17461 fi
17462 rm -f conftest.$ac_objext conftest.$ac_ext
17463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17464 echo "${ECHO_T}$ac_header_compiler" >&6
17465
17466 # Is the header present?
17467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17469 cat >conftest.$ac_ext <<_ACEOF
17470 #line $LINENO "configure"
17471 /* confdefs.h.  */
17472 _ACEOF
17473 cat confdefs.h >>conftest.$ac_ext
17474 cat >>conftest.$ac_ext <<_ACEOF
17475 /* end confdefs.h.  */
17476 #include <$ac_header>
17477 _ACEOF
17478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17479   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17480   ac_status=$?
17481   grep -v '^ *+' conftest.er1 >conftest.err
17482   rm -f conftest.er1
17483   cat conftest.err >&5
17484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485   (exit $ac_status); } >/dev/null; then
17486   if test -s conftest.err; then
17487     ac_cpp_err=$ac_c_preproc_warn_flag
17488   else
17489     ac_cpp_err=
17490   fi
17491 else
17492   ac_cpp_err=yes
17493 fi
17494 if test -z "$ac_cpp_err"; then
17495   ac_header_preproc=yes
17496 else
17497   echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17499
17500   ac_header_preproc=no
17501 fi
17502 rm -f conftest.err conftest.$ac_ext
17503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17504 echo "${ECHO_T}$ac_header_preproc" >&6
17505
17506 # So?  What about this header?
17507 case $ac_header_compiler:$ac_header_preproc in
17508   yes:no )
17509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17513     (
17514       cat <<\_ASBOX
17515 ## ------------------------------------ ##
17516 ## Report this to bug-autoconf@gnu.org. ##
17517 ## ------------------------------------ ##
17518 _ASBOX
17519     ) |
17520       sed "s/^/$as_me: WARNING:     /" >&2
17521     ;;
17522   no:yes )
17523     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17525     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17529     (
17530       cat <<\_ASBOX
17531 ## ------------------------------------ ##
17532 ## Report this to bug-autoconf@gnu.org. ##
17533 ## ------------------------------------ ##
17534 _ASBOX
17535     ) |
17536       sed "s/^/$as_me: WARNING:     /" >&2
17537     ;;
17538 esac
17539 echo "$as_me:$LINENO: checking for $ac_header" >&5
17540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17542   echo $ECHO_N "(cached) $ECHO_C" >&6
17543 else
17544   eval "$as_ac_Header=$ac_header_preproc"
17545 fi
17546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17548
17549 fi
17550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17551   cat >>confdefs.h <<_ACEOF
17552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17553 _ACEOF
17554
17555 fi
17556
17557 done
17558
17559 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17560 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17561 if test "${ac_cv_lib_z_deflate+set}" = set; then
17562   echo $ECHO_N "(cached) $ECHO_C" >&6
17563 else
17564   ac_check_lib_save_LIBS=$LIBS
17565 LIBS="-lz  $LIBS"
17566 cat >conftest.$ac_ext <<_ACEOF
17567 #line $LINENO "configure"
17568 /* confdefs.h.  */
17569 _ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h.  */
17573
17574 /* Override any gcc2 internal prototype to avoid an error.  */
17575 #ifdef __cplusplus
17576 extern "C"
17577 #endif
17578 /* We use char because int might match the return type of a gcc2
17579    builtin and then its argument prototype would still apply.  */
17580 char deflate ();
17581 int
17582 main ()
17583 {
17584 deflate ();
17585   ;
17586   return 0;
17587 }
17588 _ACEOF
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17591   (eval $ac_link) 2>&5
17592   ac_status=$?
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); } &&
17595          { ac_try='test -s conftest$ac_exeext'
17596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597   (eval $ac_try) 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); }; }; then
17601   ac_cv_lib_z_deflate=yes
17602 else
17603   echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606 ac_cv_lib_z_deflate=no
17607 fi
17608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17609 LIBS=$ac_check_lib_save_LIBS
17610 fi
17611 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17612 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17613 if test $ac_cv_lib_z_deflate = yes; then
17614   FDLIBS="-lz"
17615 fi
17616
17617 have_zlib=no
17618 if test x$FDLIBS = x-lz; then
17619   cat >>confdefs.h <<\_ACEOF
17620 #define HAVE_LIBZ 1
17621 _ACEOF
17622
17623   have_zlib=yes
17624 fi
17625
17626 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17627   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17628 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17629 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17630   echo $ECHO_N "(cached) $ECHO_C" >&6
17631 fi
17632 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17633 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17634 else
17635   # Is the header compilable?
17636 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
17637 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
17638 cat >conftest.$ac_ext <<_ACEOF
17639 #line $LINENO "configure"
17640 /* confdefs.h.  */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h.  */
17645 $ac_includes_default
17646 #include <sys/acl.h>
17647 _ACEOF
17648 rm -f conftest.$ac_objext
17649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17650   (eval $ac_compile) 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); } &&
17654          { ac_try='test -s conftest.$ac_objext'
17655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656   (eval $ac_try) 2>&5
17657   ac_status=$?
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); }; }; then
17660   ac_header_compiler=yes
17661 else
17662   echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17664
17665 ac_header_compiler=no
17666 fi
17667 rm -f conftest.$ac_objext conftest.$ac_ext
17668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17669 echo "${ECHO_T}$ac_header_compiler" >&6
17670
17671 # Is the header present?
17672 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
17673 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
17674 cat >conftest.$ac_ext <<_ACEOF
17675 #line $LINENO "configure"
17676 /* confdefs.h.  */
17677 _ACEOF
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h.  */
17681 #include <sys/acl.h>
17682 _ACEOF
17683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17684   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17685   ac_status=$?
17686   grep -v '^ *+' conftest.er1 >conftest.err
17687   rm -f conftest.er1
17688   cat conftest.err >&5
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); } >/dev/null; then
17691   if test -s conftest.err; then
17692     ac_cpp_err=$ac_c_preproc_warn_flag
17693   else
17694     ac_cpp_err=
17695   fi
17696 else
17697   ac_cpp_err=yes
17698 fi
17699 if test -z "$ac_cpp_err"; then
17700   ac_header_preproc=yes
17701 else
17702   echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17704
17705   ac_header_preproc=no
17706 fi
17707 rm -f conftest.err conftest.$ac_ext
17708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17709 echo "${ECHO_T}$ac_header_preproc" >&6
17710
17711 # So?  What about this header?
17712 case $ac_header_compiler:$ac_header_preproc in
17713   yes:no )
17714     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17715 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17716     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17717 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17718     (
17719       cat <<\_ASBOX
17720 ## ------------------------------------ ##
17721 ## Report this to bug-autoconf@gnu.org. ##
17722 ## ------------------------------------ ##
17723 _ASBOX
17724     ) |
17725       sed "s/^/$as_me: WARNING:     /" >&2
17726     ;;
17727   no:yes )
17728     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
17729 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
17730     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
17731 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
17732     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17733 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17734     (
17735       cat <<\_ASBOX
17736 ## ------------------------------------ ##
17737 ## Report this to bug-autoconf@gnu.org. ##
17738 ## ------------------------------------ ##
17739 _ASBOX
17740     ) |
17741       sed "s/^/$as_me: WARNING:     /" >&2
17742     ;;
17743 esac
17744 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17745 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17746 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17747   echo $ECHO_N "(cached) $ECHO_C" >&6
17748 else
17749   ac_cv_header_sys_acl_h=$ac_header_preproc
17750 fi
17751 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17752 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17753
17754 fi
17755
17756
17757 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
17758 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
17759 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
17760   echo $ECHO_N "(cached) $ECHO_C" >&6
17761 else
17762   ac_check_lib_save_LIBS=$LIBS
17763 LIBS="-lacl  $LIBS"
17764 cat >conftest.$ac_ext <<_ACEOF
17765 #line $LINENO "configure"
17766 /* confdefs.h.  */
17767 _ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h.  */
17771
17772 /* Override any gcc2 internal prototype to avoid an error.  */
17773 #ifdef __cplusplus
17774 extern "C"
17775 #endif
17776 /* We use char because int might match the return type of a gcc2
17777    builtin and then its argument prototype would still apply.  */
17778 char acl_get_file ();
17779 int
17780 main ()
17781 {
17782 acl_get_file ();
17783   ;
17784   return 0;
17785 }
17786 _ACEOF
17787 rm -f conftest.$ac_objext conftest$ac_exeext
17788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17789   (eval $ac_link) 2>&5
17790   ac_status=$?
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); } &&
17793          { ac_try='test -s conftest$ac_exeext'
17794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795   (eval $ac_try) 2>&5
17796   ac_status=$?
17797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798   (exit $ac_status); }; }; then
17799   ac_cv_lib_acl_acl_get_file=yes
17800 else
17801   echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17803
17804 ac_cv_lib_acl_acl_get_file=no
17805 fi
17806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17807 LIBS=$ac_check_lib_save_LIBS
17808 fi
17809 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
17810 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
17811 if test $ac_cv_lib_acl_acl_get_file = yes; then
17812   FDLIBS="-lacl $FDLIBS"
17813 fi
17814
17815 have_acl=no
17816 if test $ac_cv_lib_acl_acl_get_file = yes; then
17817    cat >>confdefs.h <<\_ACEOF
17818 #define HAVE_ACL 1
17819 _ACEOF
17820
17821    have_acl=yes
17822 fi
17823
17824 PTHREAD_LIB=""
17825 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17826 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17827 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17828   echo $ECHO_N "(cached) $ECHO_C" >&6
17829 else
17830   ac_check_lib_save_LIBS=$LIBS
17831 LIBS="-lpthread  $LIBS"
17832 cat >conftest.$ac_ext <<_ACEOF
17833 #line $LINENO "configure"
17834 /* confdefs.h.  */
17835 _ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h.  */
17839
17840 /* Override any gcc2 internal prototype to avoid an error.  */
17841 #ifdef __cplusplus
17842 extern "C"
17843 #endif
17844 /* We use char because int might match the return type of a gcc2
17845    builtin and then its argument prototype would still apply.  */
17846 char pthread_create ();
17847 int
17848 main ()
17849 {
17850 pthread_create ();
17851   ;
17852   return 0;
17853 }
17854 _ACEOF
17855 rm -f conftest.$ac_objext conftest$ac_exeext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17857   (eval $ac_link) 2>&5
17858   ac_status=$?
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); } &&
17861          { ac_try='test -s conftest$ac_exeext'
17862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863   (eval $ac_try) 2>&5
17864   ac_status=$?
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); }; }; then
17867   ac_cv_lib_pthread_pthread_create=yes
17868 else
17869   echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17871
17872 ac_cv_lib_pthread_pthread_create=no
17873 fi
17874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17875 LIBS=$ac_check_lib_save_LIBS
17876 fi
17877 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17878 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17879 if test $ac_cv_lib_pthread_pthread_create = yes; then
17880   PTHREAD_LIB="-lpthread"
17881 else
17882   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17883 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17884 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17885   echo $ECHO_N "(cached) $ECHO_C" >&6
17886 else
17887   ac_check_lib_save_LIBS=$LIBS
17888 LIBS="-lpthreads  $LIBS"
17889 cat >conftest.$ac_ext <<_ACEOF
17890 #line $LINENO "configure"
17891 /* confdefs.h.  */
17892 _ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h.  */
17896
17897 /* Override any gcc2 internal prototype to avoid an error.  */
17898 #ifdef __cplusplus
17899 extern "C"
17900 #endif
17901 /* We use char because int might match the return type of a gcc2
17902    builtin and then its argument prototype would still apply.  */
17903 char pthread_create ();
17904 int
17905 main ()
17906 {
17907 pthread_create ();
17908   ;
17909   return 0;
17910 }
17911 _ACEOF
17912 rm -f conftest.$ac_objext conftest$ac_exeext
17913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17914   (eval $ac_link) 2>&5
17915   ac_status=$?
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); } &&
17918          { ac_try='test -s conftest$ac_exeext'
17919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920   (eval $ac_try) 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); }; }; then
17924   ac_cv_lib_pthreads_pthread_create=yes
17925 else
17926   echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17928
17929 ac_cv_lib_pthreads_pthread_create=no
17930 fi
17931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17932 LIBS=$ac_check_lib_save_LIBS
17933 fi
17934 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17935 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17936 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17937   PTHREAD_LIB="-lpthreads"
17938 else
17939   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17940 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17941 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17942   echo $ECHO_N "(cached) $ECHO_C" >&6
17943 else
17944   ac_check_lib_save_LIBS=$LIBS
17945 LIBS="-lc_r  $LIBS"
17946 cat >conftest.$ac_ext <<_ACEOF
17947 #line $LINENO "configure"
17948 /* confdefs.h.  */
17949 _ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h.  */
17953
17954 /* Override any gcc2 internal prototype to avoid an error.  */
17955 #ifdef __cplusplus
17956 extern "C"
17957 #endif
17958 /* We use char because int might match the return type of a gcc2
17959    builtin and then its argument prototype would still apply.  */
17960 char pthread_create ();
17961 int
17962 main ()
17963 {
17964 pthread_create ();
17965   ;
17966   return 0;
17967 }
17968 _ACEOF
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17971   (eval $ac_link) 2>&5
17972   ac_status=$?
17973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974   (exit $ac_status); } &&
17975          { ac_try='test -s conftest$ac_exeext'
17976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977   (eval $ac_try) 2>&5
17978   ac_status=$?
17979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980   (exit $ac_status); }; }; then
17981   ac_cv_lib_c_r_pthread_create=yes
17982 else
17983   echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17985
17986 ac_cv_lib_c_r_pthread_create=no
17987 fi
17988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17989 LIBS=$ac_check_lib_save_LIBS
17990 fi
17991 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17992 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17993 if test $ac_cv_lib_c_r_pthread_create = yes; then
17994   PTHREAD_LIB="-lc_r"
17995 else
17996   echo "$as_me:$LINENO: checking for pthread_create" >&5
17997 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17998 if test "${ac_cv_func_pthread_create+set}" = set; then
17999   echo $ECHO_N "(cached) $ECHO_C" >&6
18000 else
18001   cat >conftest.$ac_ext <<_ACEOF
18002 #line $LINENO "configure"
18003 /* confdefs.h.  */
18004 _ACEOF
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h.  */
18008 /* System header to define __stub macros and hopefully few prototypes,
18009     which can conflict with char pthread_create (); below.
18010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18011     <limits.h> exists even on freestanding compilers.  */
18012 #ifdef __STDC__
18013 # include <limits.h>
18014 #else
18015 # include <assert.h>
18016 #endif
18017 /* Override any gcc2 internal prototype to avoid an error.  */
18018 #ifdef __cplusplus
18019 extern "C"
18020 {
18021 #endif
18022 /* We use char because int might match the return type of a gcc2
18023    builtin and then its argument prototype would still apply.  */
18024 char pthread_create ();
18025 /* The GNU C library defines this for functions which it implements
18026     to always fail with ENOSYS.  Some functions are actually named
18027     something starting with __ and the normal name is an alias.  */
18028 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18029 choke me
18030 #else
18031 char (*f) () = pthread_create;
18032 #endif
18033 #ifdef __cplusplus
18034 }
18035 #endif
18036
18037 int
18038 main ()
18039 {
18040 return f != pthread_create;
18041   ;
18042   return 0;
18043 }
18044 _ACEOF
18045 rm -f conftest.$ac_objext conftest$ac_exeext
18046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18047   (eval $ac_link) 2>&5
18048   ac_status=$?
18049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050   (exit $ac_status); } &&
18051          { ac_try='test -s conftest$ac_exeext'
18052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053   (eval $ac_try) 2>&5
18054   ac_status=$?
18055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056   (exit $ac_status); }; }; then
18057   ac_cv_func_pthread_create=yes
18058 else
18059   echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062 ac_cv_func_pthread_create=no
18063 fi
18064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18065 fi
18066 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18067 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18068
18069
18070 fi
18071
18072
18073 fi
18074
18075
18076 fi
18077
18078
18079
18080 cat >>confdefs.h <<\_ACEOF
18081 #define FDLIBS 1
18082 _ACEOF
18083
18084
18085
18086 CFLAGS=${CFLAGS--O}
18087 LDFLAGS=${LDFLAGS--O}
18088 DB_LIBS="${SQL_LFLAGS}"
18089
18090 CPPFLAGS="$CPPFLAGS"
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105 OBJLIST=
18106
18107
18108 lld="lld"
18109 llu="llu"
18110
18111 WCFLAGS=
18112 WLDFLAGS=
18113
18114 #
18115 # Finally we set appropriate distribution specific
18116 #  variables and defaults
18117 #
18118 # PFILES are platform specific files
18119 PFILES="platforms/Makefile"
18120 PSCMD="ps -e"
18121 WIN32=
18122 MACOSX=
18123 hostname=`uname -n | cut -d '.' -f 1`
18124 case "$DISTNAME" in
18125 aix)
18126         DISTVER=`uname -r`
18127         PSCMD="ps -e -o pid,comm"
18128         PFILES="${PFILES} \
18129            platforms/aix/Makefile"
18130         TAPEDRIVE="/dev/rmt0.1"
18131   ;;
18132 alpha)
18133         DISTVER=`uname -r`
18134         PTHREAD_LIB="-lpthread -lexc"
18135         if test "${CC}" = "gcc" ; then
18136            lld="lld"
18137            llu="llu"
18138         else
18139            lld="ld"
18140            llu="lu"
18141         fi
18142         TAPEDRIVE="/dev/nrmt0"
18143   ;;
18144 bsdi)
18145         DISTVER=`uname -a |awk '{print $3}'`
18146         TAPEDRIVE="/dev/nrmt0"
18147         PTHREAD_LIB="-pthread"
18148         CFLAGS="${CFLAGS} -pthread"
18149         PSCMD="ps -x -o pid,command"
18150         lld="qd"
18151         llu="qu"
18152         PFILES="${PFILES} \
18153             platforms/bsdi/Makefile \
18154             platforms/bsdi/bacula-fd \
18155             platforms/bsdi/bacula-sd \
18156             platforms/bsdi/bacula-dir"
18157         largefile_support="yes"
18158   ;;
18159 cygwin)
18160         DISTVER=`uname -a |awk '{print $3}'`
18161         TAPEDRIVE="/dev/nrst0"
18162         WIN32=win32
18163         WCFLAGS="-mwindows"
18164         WLDFLAGS="-mwindows"
18165   ;;
18166 darwin)
18167         DISTVER=`uname -r`
18168         TAPEDRIVE="/dev/nst0"
18169         PSCMD="ps -e -o pid,command"
18170         MACOSX=macosx
18171         PFILES="${PFILES} \
18172            platforms/darwin/Makefile"
18173   ;;
18174 debian)
18175         DISTVER=`cat /etc/debian_version`
18176         TAPEDRIVE="/dev/nrst0"
18177         PSCMD="ps -e -o pid,command"
18178   ;;
18179 freebsd)
18180         DISTVER=`uname -a |awk '{print $3}'`
18181         VER=`echo $DISTVER | cut -c 1`
18182         if test x$VER = x4 ; then
18183            PTHREAD_LIB="-pthread"
18184            CFLAGS="${CFLAGS} -pthread"
18185         fi
18186         lld="qd"
18187         llu="qu"
18188         TAPEDRIVE="/dev/nrsa0"
18189         PSCMD="ps -x -o pid,command"
18190         PFILES="${PFILES} \
18191             platforms/freebsd/Makefile \
18192             platforms/freebsd/bacula-fd \
18193             platforms/freebsd/bacula-sd \
18194             platforms/freebsd/bacula-dir"
18195         largefile_support="yes"
18196   ;;
18197 hpux)
18198         PSCMD="UNIX95=1 ps -e -o pid,comm"
18199         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18200         DISTVER=`uname -r`
18201         TAPEDRIVE="/dev/rmt/0hnb"
18202   ;;
18203 irix)
18204         DISTVER=`uname -r`
18205         TAPEDRIVE="/dev/rmt/0cbn"
18206         PSCMD="ps -e -o pid,comm"
18207         PFILES="${PFILES} \
18208             platforms/irix/Makefile \
18209             platforms/irix/bacula-fd \
18210             platforms/irix/bacula-sd \
18211             platforms/irix/bacula-dir"
18212   ;;
18213 netbsd)
18214         DISTVER=`uname -a |awk '{print $3}'`
18215         lld="qd"
18216         llu="qu"
18217         TAPEDRIVE="/dev/nrst0"
18218         PSCMD="ps -a -o pid,command"
18219         PTHREAD_LIB="-pthread"
18220         CFLAGS="${CFLAGS} -pthread"
18221   ;;
18222 openbsd)
18223         DISTVER=`uname -a |awk '{print $3}'`
18224         lld="qd"
18225         llu="qu"
18226         TAPEDRIVE="/dev/nrst0"
18227         PSCMD="ps -a -o pid,command"
18228         PTHREAD_LIB="-pthread"
18229         CFLAGS="${CFLAGS} -pthread"
18230         PFILES="${PFILES} \
18231             platforms/openbsd/Makefile \
18232             platforms/openbsd/bacula-fd \
18233             platforms/openbsd/bacula-sd \
18234             platforms/openbsd/bacula-dir"
18235   ;;
18236 redhat)
18237         if test `cat /etc/redhat-release | grep release |\
18238                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18239            DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
18240                     cut -f 6 -d ' '`
18241         else
18242             DISTVER=`cat /etc/redhat-release | grep release |\
18243                      cut -f 5 -d ' '`
18244         fi
18245         TAPEDRIVE="/dev/nst0"
18246         PSCMD="ps -e -o pid,command"
18247         PFILES="${PFILES} \
18248             platforms/redhat/Makefile \
18249             platforms/redhat/bacula-fd \
18250             platforms/redhat/bacula-sd \
18251             platforms/redhat/bacula-dir \
18252             platforms/redhat/bacula.spec \
18253             "
18254         hostname=`hostname -s`
18255   ;;
18256 mandrake)
18257         DISTVER=`cat /etc/mandrake-release | grep release |\
18258            cut -f 5 -d ' '`
18259         TAPEDRIVE="/dev/nst0"
18260         PSCMD="ps -e -o pid,command"
18261         PFILES="${PFILES} \
18262             platforms/mandrake/Makefile \
18263             platforms/mandrake/bacula-fd \
18264             platforms/mandrake/bacula-sd \
18265             platforms/mandrake/bacula-dir \
18266             platforms/mandrake/bacula.spec \
18267             "
18268   ;;
18269 gentoo)
18270         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18271         TAPEDRIVE="/dev/nst0"
18272         PSCMD="ps -e -o pid,command"
18273         PFILES="${PFILES} \
18274             platforms/gentoo/Makefile \
18275             platforms/gentoo/bacula-fd \
18276             platforms/gentoo/bacula-sd \
18277             platforms/gentoo/bacula-dir"
18278   ;;
18279 slackware)
18280         DISTVER=`cat /etc/slackware-version`
18281         TAPEDRIVE="/dev/nst0"
18282         PSCMD="ps -e -o pid,command"
18283         PFILES="${PFILES} \
18284             platforms/slackware/Makefile \
18285             platforms/slackware/rc.bacula-fd \
18286             platforms/slackware/rc.bacula-sd \
18287             platforms/slackware/rc.bacula-dir\
18288             platforms/slackware/functions.bacula"
18289   ;;
18290 solaris)
18291         DISTVER=`uname -r`
18292         TAPEDRIVE="/dev/rmt/0cbn"
18293         PSCMD="ps -e -o pid,comm"
18294         PFILES="${PFILES} \
18295             platforms/solaris/Makefile \
18296             platforms/solaris/bacula-fd \
18297             platforms/solaris/bacula-sd \
18298             platforms/solaris/bacula-dir"
18299         if test x$DISTVER = x5.6 ; then
18300             cat >>confdefs.h <<\_ACEOF
18301 #define HAVE_OLD_SOCKOPT 1
18302 _ACEOF
18303
18304         fi
18305   ;;
18306 suse)
18307         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18308             cut -f 3 -d ' '`
18309         TAPEDRIVE="/dev/nst0"
18310         PSCMD="ps -e -o pid,command"
18311         PFILES="${PFILES} \
18312             platforms/suse/Makefile \
18313             platforms/suse/bacula-fd \
18314             platforms/suse/bacula-sd \
18315             platforms/suse/bacula-dir \
18316             platforms/suse/bacula \
18317             platforms/suse/bacula.spec"
18318   ;;
18319 suse5)
18320         DISTNAME=suse
18321         DISTVER=5.x
18322         TAPEDRIVE="/dev/nst0"
18323         PSCMD="ps -e -o pid,command"
18324         PFILES="${PFILES} \
18325             platforms/suse/Makefile \
18326             platforms/suse/bacula-fd \
18327             platforms/suse/bacula-sd \
18328             platforms/suse/bacula-dir"
18329   ;;
18330 unknown)
18331         DISTVER=unknown
18332         TAPEDRIVE="/dev/nst0"
18333   ;;
18334 *)
18335   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18336   ;;
18337 esac
18338
18339
18340
18341 LIBS="$PTHREAD_LIB $LIBS"
18342
18343 cat >>confdefs.h <<_ACEOF
18344 #define lld "$lld"
18345 _ACEOF
18346
18347 cat >>confdefs.h <<_ACEOF
18348 #define llu "$llu"
18349 _ACEOF
18350
18351
18352
18353
18354
18355
18356
18357
18358 MCOMMON=./autoconf/Make.common
18359
18360
18361 if test "x${subsysdir}" = "x${sbindir}" ; then
18362    echo " "
18363    echo " "
18364    echo "You have set both --sbindir and --with-subsys-dir"
18365    echo "  equal to: ${subsysdir} "
18366    echo "This is not permitted. Please reconfigure."
18367    echo " "
18368    echo "Aborting configuration ..."
18369    echo " "
18370    echo " "
18371    exit 1
18372 fi
18373
18374                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18375           ac_config_commands="$ac_config_commands default"
18376 cat >confcache <<\_ACEOF
18377 # This file is a shell script that caches the results of configure
18378 # tests run on this system so they can be shared between configure
18379 # scripts and configure runs, see configure's option --config-cache.
18380 # It is not useful on other systems.  If it contains results you don't
18381 # want to keep, you may remove or edit it.
18382 #
18383 # config.status only pays attention to the cache file if you give it
18384 # the --recheck option to rerun configure.
18385 #
18386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18388 # following values.
18389
18390 _ACEOF
18391
18392 # The following way of writing the cache mishandles newlines in values,
18393 # but we know of no workaround that is simple, portable, and efficient.
18394 # So, don't put newlines in cache variables' values.
18395 # Ultrix sh set writes to stderr and can't be redirected directly,
18396 # and sets the high bit in the cache file unless we assign to the vars.
18397 {
18398   (set) 2>&1 |
18399     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18400     *ac_space=\ *)
18401       # `set' does not quote correctly, so add quotes (double-quote
18402       # substitution turns \\\\ into \\, and sed turns \\ into \).
18403       sed -n \
18404         "s/'/'\\\\''/g;
18405           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18406       ;;
18407     *)
18408       # `set' quotes correctly as required by POSIX, so do not add quotes.
18409       sed -n \
18410         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18411       ;;
18412     esac;
18413 } |
18414   sed '
18415      t clear
18416      : clear
18417      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18418      t end
18419      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18420      : end' >>confcache
18421 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18422   if test -w $cache_file; then
18423     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18424     cat confcache >$cache_file
18425   else
18426     echo "not updating unwritable cache $cache_file"
18427   fi
18428 fi
18429 rm -f confcache
18430
18431 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18432 # Let make expand exec_prefix.
18433 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18434
18435 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18436 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18437 # trailing colons and then remove the whole line if VPATH becomes empty
18438 # (actually we leave an empty line to preserve line numbers).
18439 if test "x$srcdir" = x.; then
18440   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18441 s/:*\$(srcdir):*/:/;
18442 s/:*\${srcdir}:*/:/;
18443 s/:*@srcdir@:*/:/;
18444 s/^\([^=]*=[    ]*\):*/\1/;
18445 s/:*$//;
18446 s/^[^=]*=[      ]*$//;
18447 }'
18448 fi
18449
18450 DEFS=-DHAVE_CONFIG_H
18451
18452 ac_libobjs=
18453 ac_ltlibobjs=
18454 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18455   # 1. Remove the extension, and $U if already installed.
18456   ac_i=`echo "$ac_i" |
18457          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18458   # 2. Add them.
18459   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18460   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18461 done
18462 LIBOBJS=$ac_libobjs
18463
18464 LTLIBOBJS=$ac_ltlibobjs
18465
18466
18467
18468 : ${CONFIG_STATUS=./config.status}
18469 ac_clean_files_save=$ac_clean_files
18470 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18471 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18472 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18473 cat >$CONFIG_STATUS <<_ACEOF
18474 #! $SHELL
18475 # Generated by $as_me.
18476 # Run this file to recreate the current configuration.
18477 # Compiler output produced by configure, useful for debugging
18478 # configure, is in config.log if it exists.
18479
18480 debug=false
18481 ac_cs_recheck=false
18482 ac_cs_silent=false
18483 SHELL=\${CONFIG_SHELL-$SHELL}
18484 _ACEOF
18485
18486 cat >>$CONFIG_STATUS <<\_ACEOF
18487 ## --------------------- ##
18488 ## M4sh Initialization.  ##
18489 ## --------------------- ##
18490
18491 # Be Bourne compatible
18492 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18493   emulate sh
18494   NULLCMD=:
18495   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18496   # is contrary to our usage.  Disable this feature.
18497   alias -g '${1+"$@"}'='"$@"'
18498 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18499   set -o posix
18500 fi
18501
18502 # Support unset when possible.
18503 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18504   as_unset=unset
18505 else
18506   as_unset=false
18507 fi
18508
18509
18510 # Work around bugs in pre-3.0 UWIN ksh.
18511 $as_unset ENV MAIL MAILPATH
18512 PS1='$ '
18513 PS2='> '
18514 PS4='+ '
18515
18516 # NLS nuisances.
18517 for as_var in \
18518   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18519   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18520   LC_TELEPHONE LC_TIME
18521 do
18522   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18523     eval $as_var=C; export $as_var
18524   else
18525     $as_unset $as_var
18526   fi
18527 done
18528
18529 # Required to use basename.
18530 if expr a : '\(a\)' >/dev/null 2>&1; then
18531   as_expr=expr
18532 else
18533   as_expr=false
18534 fi
18535
18536 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18537   as_basename=basename
18538 else
18539   as_basename=false
18540 fi
18541
18542
18543 # Name of the executable.
18544 as_me=`$as_basename "$0" ||
18545 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18546          X"$0" : 'X\(//\)$' \| \
18547          X"$0" : 'X\(/\)$' \| \
18548          .     : '\(.\)' 2>/dev/null ||
18549 echo X/"$0" |
18550     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18551           /^X\/\(\/\/\)$/{ s//\1/; q; }
18552           /^X\/\(\/\).*/{ s//\1/; q; }
18553           s/.*/./; q'`
18554
18555
18556 # PATH needs CR, and LINENO needs CR and PATH.
18557 # Avoid depending upon Character Ranges.
18558 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18559 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18560 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18561 as_cr_digits='0123456789'
18562 as_cr_alnum=$as_cr_Letters$as_cr_digits
18563
18564 # The user is always right.
18565 if test "${PATH_SEPARATOR+set}" != set; then
18566   echo "#! /bin/sh" >conf$$.sh
18567   echo  "exit 0"   >>conf$$.sh
18568   chmod +x conf$$.sh
18569   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18570     PATH_SEPARATOR=';'
18571   else
18572     PATH_SEPARATOR=:
18573   fi
18574   rm -f conf$$.sh
18575 fi
18576
18577
18578   as_lineno_1=$LINENO
18579   as_lineno_2=$LINENO
18580   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18581   test "x$as_lineno_1" != "x$as_lineno_2" &&
18582   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18583   # Find who we are.  Look in the path if we contain no path at all
18584   # relative or not.
18585   case $0 in
18586     *[\\/]* ) as_myself=$0 ;;
18587     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18588 for as_dir in $PATH
18589 do
18590   IFS=$as_save_IFS
18591   test -z "$as_dir" && as_dir=.
18592   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18593 done
18594
18595        ;;
18596   esac
18597   # We did not find ourselves, most probably we were run as `sh COMMAND'
18598   # in which case we are not to be found in the path.
18599   if test "x$as_myself" = x; then
18600     as_myself=$0
18601   fi
18602   if test ! -f "$as_myself"; then
18603     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18604 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18605    { (exit 1); exit 1; }; }
18606   fi
18607   case $CONFIG_SHELL in
18608   '')
18609     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18610 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18611 do
18612   IFS=$as_save_IFS
18613   test -z "$as_dir" && as_dir=.
18614   for as_base in sh bash ksh sh5; do
18615          case $as_dir in
18616          /*)
18617            if ("$as_dir/$as_base" -c '
18618   as_lineno_1=$LINENO
18619   as_lineno_2=$LINENO
18620   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18621   test "x$as_lineno_1" != "x$as_lineno_2" &&
18622   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18623              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18624              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18625              CONFIG_SHELL=$as_dir/$as_base
18626              export CONFIG_SHELL
18627              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18628            fi;;
18629          esac
18630        done
18631 done
18632 ;;
18633   esac
18634
18635   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18636   # uniformly replaced by the line number.  The first 'sed' inserts a
18637   # line-number line before each line; the second 'sed' does the real
18638   # work.  The second script uses 'N' to pair each line-number line
18639   # with the numbered line, and appends trailing '-' during
18640   # substitution so that $LINENO is not a special case at line end.
18641   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18642   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18643   sed '=' <$as_myself |
18644     sed '
18645       N
18646       s,$,-,
18647       : loop
18648       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18649       t loop
18650       s,-$,,
18651       s,^['$as_cr_digits']*\n,,
18652     ' >$as_me.lineno &&
18653   chmod +x $as_me.lineno ||
18654     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18655 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18656    { (exit 1); exit 1; }; }
18657
18658   # Don't try to exec as it changes $[0], causing all sort of problems
18659   # (the dirname of $[0] is not the place where we might find the
18660   # original and so on.  Autoconf is especially sensible to this).
18661   . ./$as_me.lineno
18662   # Exit status is that of the last command.
18663   exit
18664 }
18665
18666
18667 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18668   *c*,-n*) ECHO_N= ECHO_C='
18669 ' ECHO_T='      ' ;;
18670   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18671   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18672 esac
18673
18674 if expr a : '\(a\)' >/dev/null 2>&1; then
18675   as_expr=expr
18676 else
18677   as_expr=false
18678 fi
18679
18680 rm -f conf$$ conf$$.exe conf$$.file
18681 echo >conf$$.file
18682 if ln -s conf$$.file conf$$ 2>/dev/null; then
18683   # We could just check for DJGPP; but this test a) works b) is more generic
18684   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18685   if test -f conf$$.exe; then
18686     # Don't use ln at all; we don't have any links
18687     as_ln_s='cp -p'
18688   else
18689     as_ln_s='ln -s'
18690   fi
18691 elif ln conf$$.file conf$$ 2>/dev/null; then
18692   as_ln_s=ln
18693 else
18694   as_ln_s='cp -p'
18695 fi
18696 rm -f conf$$ conf$$.exe conf$$.file
18697
18698 if mkdir -p . 2>/dev/null; then
18699   as_mkdir_p=:
18700 else
18701   as_mkdir_p=false
18702 fi
18703
18704 as_executable_p="test -f"
18705
18706 # Sed expression to map a string onto a valid CPP name.
18707 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18708
18709 # Sed expression to map a string onto a valid variable name.
18710 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18711
18712
18713 # IFS
18714 # We need space, tab and new line, in precisely that order.
18715 as_nl='
18716 '
18717 IFS="   $as_nl"
18718
18719 # CDPATH.
18720 $as_unset CDPATH
18721
18722 exec 6>&1
18723
18724 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18725 # report actual input values of CONFIG_FILES etc. instead of their
18726 # values after options handling.  Logging --version etc. is OK.
18727 exec 5>>config.log
18728 {
18729   echo
18730   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18731 ## Running $as_me. ##
18732 _ASBOX
18733 } >&5
18734 cat >&5 <<_CSEOF
18735
18736 This file was extended by $as_me, which was
18737 generated by GNU Autoconf 2.57.  Invocation command line was
18738
18739   CONFIG_FILES    = $CONFIG_FILES
18740   CONFIG_HEADERS  = $CONFIG_HEADERS
18741   CONFIG_LINKS    = $CONFIG_LINKS
18742   CONFIG_COMMANDS = $CONFIG_COMMANDS
18743   $ $0 $@
18744
18745 _CSEOF
18746 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18747 echo >&5
18748 _ACEOF
18749
18750 # Files that config.status was made for.
18751 if test -n "$ac_config_files"; then
18752   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18753 fi
18754
18755 if test -n "$ac_config_headers"; then
18756   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18757 fi
18758
18759 if test -n "$ac_config_links"; then
18760   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18761 fi
18762
18763 if test -n "$ac_config_commands"; then
18764   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18765 fi
18766
18767 cat >>$CONFIG_STATUS <<\_ACEOF
18768
18769 ac_cs_usage="\
18770 \`$as_me' instantiates files from templates according to the
18771 current configuration.
18772
18773 Usage: $0 [OPTIONS] [FILE]...
18774
18775   -h, --help       print this help, then exit
18776   -V, --version    print version number, then exit
18777   -q, --quiet      do not print progress messages
18778   -d, --debug      don't remove temporary files
18779       --recheck    update $as_me by reconfiguring in the same conditions
18780   --file=FILE[:TEMPLATE]
18781                    instantiate the configuration file FILE
18782   --header=FILE[:TEMPLATE]
18783                    instantiate the configuration header FILE
18784
18785 Configuration files:
18786 $config_files
18787
18788 Configuration headers:
18789 $config_headers
18790
18791 Configuration commands:
18792 $config_commands
18793
18794 Report bugs to <bug-autoconf@gnu.org>."
18795 _ACEOF
18796
18797 cat >>$CONFIG_STATUS <<_ACEOF
18798 ac_cs_version="\\
18799 config.status
18800 configured by $0, generated by GNU Autoconf 2.57,
18801   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18802
18803 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18804 Free Software Foundation, Inc.
18805 This config.status script is free software; the Free Software Foundation
18806 gives unlimited permission to copy, distribute and modify it."
18807 srcdir=$srcdir
18808 INSTALL="$INSTALL"
18809 _ACEOF
18810
18811 cat >>$CONFIG_STATUS <<\_ACEOF
18812 # If no file are specified by the user, then we need to provide default
18813 # value.  By we need to know if files were specified by the user.
18814 ac_need_defaults=:
18815 while test $# != 0
18816 do
18817   case $1 in
18818   --*=*)
18819     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18820     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18821     ac_shift=:
18822     ;;
18823   -*)
18824     ac_option=$1
18825     ac_optarg=$2
18826     ac_shift=shift
18827     ;;
18828   *) # This is not an option, so the user has probably given explicit
18829      # arguments.
18830      ac_option=$1
18831      ac_need_defaults=false;;
18832   esac
18833
18834   case $ac_option in
18835   # Handling of the options.
18836 _ACEOF
18837 cat >>$CONFIG_STATUS <<\_ACEOF
18838   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18839     ac_cs_recheck=: ;;
18840   --version | --vers* | -V )
18841     echo "$ac_cs_version"; exit 0 ;;
18842   --he | --h)
18843     # Conflict between --help and --header
18844     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18845 Try \`$0 --help' for more information." >&5
18846 echo "$as_me: error: ambiguous option: $1
18847 Try \`$0 --help' for more information." >&2;}
18848    { (exit 1); exit 1; }; };;
18849   --help | --hel | -h )
18850     echo "$ac_cs_usage"; exit 0 ;;
18851   --debug | --d* | -d )
18852     debug=: ;;
18853   --file | --fil | --fi | --f )
18854     $ac_shift
18855     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18856     ac_need_defaults=false;;
18857   --header | --heade | --head | --hea )
18858     $ac_shift
18859     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18860     ac_need_defaults=false;;
18861   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18862   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18863     ac_cs_silent=: ;;
18864
18865   # This is an error.
18866   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18867 Try \`$0 --help' for more information." >&5
18868 echo "$as_me: error: unrecognized option: $1
18869 Try \`$0 --help' for more information." >&2;}
18870    { (exit 1); exit 1; }; } ;;
18871
18872   *) ac_config_targets="$ac_config_targets $1" ;;
18873
18874   esac
18875   shift
18876 done
18877
18878 ac_configure_extra_args=
18879
18880 if $ac_cs_silent; then
18881   exec 6>/dev/null
18882   ac_configure_extra_args="$ac_configure_extra_args --silent"
18883 fi
18884
18885 _ACEOF
18886 cat >>$CONFIG_STATUS <<_ACEOF
18887 if \$ac_cs_recheck; then
18888   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18889   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18890 fi
18891
18892 _ACEOF
18893
18894
18895
18896
18897
18898 cat >>$CONFIG_STATUS <<\_ACEOF
18899 for ac_config_target in $ac_config_targets
18900 do
18901   case "$ac_config_target" in
18902   # Handling of arguments.
18903   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18904   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18905   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18906   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18907   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18908   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18909   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18910   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18911   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18912   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18913   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18914   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18915   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18916   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18917   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18918   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18919   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18920   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18921   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18922   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18923   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18924   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18925   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18926   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18927   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18928   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18929   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18930   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18931   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18932   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18933   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18934   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18935   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18936   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18937   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18938   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18939   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
18940   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18941   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18942   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18943   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18944   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18945   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18946   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18947   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18948   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18949   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18950   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18951   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18952   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18953   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18954   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18955   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18956   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18957   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18958   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18959   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18960   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18961   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18962   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18963   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18964   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18965   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18966   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18967   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18968   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18969   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18970   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18971   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18972   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18973   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18974   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18975   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18976   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18977   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18978   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18979   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18980   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18981   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18982   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18983   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18984   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18985   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18986   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
18987   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18988   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
18989   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
18990   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18991   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18992   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18993   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18994 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18995    { (exit 1); exit 1; }; };;
18996   esac
18997 done
18998
18999 # If the user did not use the arguments to specify the items to instantiate,
19000 # then the envvar interface is used.  Set only those that are not.
19001 # We use the long form for the default assignment because of an extremely
19002 # bizarre bug on SunOS 4.1.3.
19003 if $ac_need_defaults; then
19004   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19005   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19006   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19007 fi
19008
19009 # Have a temporary directory for convenience.  Make it in the build tree
19010 # simply because there is no reason to put it here, and in addition,
19011 # creating and moving files from /tmp can sometimes cause problems.
19012 # Create a temporary directory, and hook for its removal unless debugging.
19013 $debug ||
19014 {
19015   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19016   trap '{ (exit 1); exit 1; }' 1 2 13 15
19017 }
19018
19019 # Create a (secure) tmp directory for tmp files.
19020
19021 {
19022   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19023   test -n "$tmp" && test -d "$tmp"
19024 }  ||
19025 {
19026   tmp=./confstat$$-$RANDOM
19027   (umask 077 && mkdir $tmp)
19028 } ||
19029 {
19030    echo "$me: cannot create a temporary directory in ." >&2
19031    { (exit 1); exit 1; }
19032 }
19033
19034 _ACEOF
19035
19036 cat >>$CONFIG_STATUS <<_ACEOF
19037
19038 #
19039 # CONFIG_FILES section.
19040 #
19041
19042 # No need to generate the scripts if there are no CONFIG_FILES.
19043 # This happens for instance when ./config.status config.h
19044 if test -n "\$CONFIG_FILES"; then
19045   # Protect against being on the right side of a sed subst in config.status.
19046   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19047    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19048 s,@SHELL@,$SHELL,;t t
19049 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19050 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19051 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19052 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19053 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19054 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19055 s,@exec_prefix@,$exec_prefix,;t t
19056 s,@prefix@,$prefix,;t t
19057 s,@program_transform_name@,$program_transform_name,;t t
19058 s,@bindir@,$bindir,;t t
19059 s,@sbindir@,$sbindir,;t t
19060 s,@libexecdir@,$libexecdir,;t t
19061 s,@datadir@,$datadir,;t t
19062 s,@sysconfdir@,$sysconfdir,;t t
19063 s,@sharedstatedir@,$sharedstatedir,;t t
19064 s,@localstatedir@,$localstatedir,;t t
19065 s,@libdir@,$libdir,;t t
19066 s,@includedir@,$includedir,;t t
19067 s,@oldincludedir@,$oldincludedir,;t t
19068 s,@infodir@,$infodir,;t t
19069 s,@mandir@,$mandir,;t t
19070 s,@build_alias@,$build_alias,;t t
19071 s,@host_alias@,$host_alias,;t t
19072 s,@target_alias@,$target_alias,;t t
19073 s,@DEFS@,$DEFS,;t t
19074 s,@ECHO_C@,$ECHO_C,;t t
19075 s,@ECHO_N@,$ECHO_N,;t t
19076 s,@ECHO_T@,$ECHO_T,;t t
19077 s,@LIBS@,$LIBS,;t t
19078 s,@BUILD_DIR@,$BUILD_DIR,;t t
19079 s,@TRUEPRG@,$TRUEPRG,;t t
19080 s,@FALSEPRG@,$FALSEPRG,;t t
19081 s,@VERSION@,$VERSION,;t t
19082 s,@DATE@,$DATE,;t t
19083 s,@LSMDATE@,$LSMDATE,;t t
19084 s,@CC@,$CC,;t t
19085 s,@CFLAGS@,$CFLAGS,;t t
19086 s,@LDFLAGS@,$LDFLAGS,;t t
19087 s,@CPPFLAGS@,$CPPFLAGS,;t t
19088 s,@ac_ct_CC@,$ac_ct_CC,;t t
19089 s,@EXEEXT@,$EXEEXT,;t t
19090 s,@OBJEXT@,$OBJEXT,;t t
19091 s,@CXX@,$CXX,;t t
19092 s,@CXXFLAGS@,$CXXFLAGS,;t t
19093 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19094 s,@CPP@,$CPP,;t t
19095 s,@EGREP@,$EGREP,;t t
19096 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19097 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19098 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19099 s,@RANLIB@,$RANLIB,;t t
19100 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19101 s,@MV@,$MV,;t t
19102 s,@RM@,$RM,;t t
19103 s,@CP@,$CP,;t t
19104 s,@SED@,$SED,;t t
19105 s,@AWK@,$AWK,;t t
19106 s,@ECHO@,$ECHO,;t t
19107 s,@CMP@,$CMP,;t t
19108 s,@TBL@,$TBL,;t t
19109 s,@AR@,$AR,;t t
19110 s,@OPENSSL@,$OPENSSL,;t t
19111 s,@MTX@,$MTX,;t t
19112 s,@PKGCONFIG@,$PKGCONFIG,;t t
19113 s,@WXCONFIG@,$WXCONFIG,;t t
19114 s,@ARFLAGS@,$ARFLAGS,;t t
19115 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19116 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19117 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19118 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19119 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19120 s,@build@,$build,;t t
19121 s,@build_cpu@,$build_cpu,;t t
19122 s,@build_vendor@,$build_vendor,;t t
19123 s,@build_os@,$build_os,;t t
19124 s,@host@,$host,;t t
19125 s,@host_cpu@,$host_cpu,;t t
19126 s,@host_vendor@,$host_vendor,;t t
19127 s,@host_os@,$host_os,;t t
19128 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19129 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19130 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19131 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19132 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19133 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19134 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19135 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19136 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19137 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19138 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19139 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19140 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19141 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19142 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19143 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19144 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19145 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19146 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19147 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19148 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19149 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19150 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19151 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19152 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19153 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19154 s,@MSGFMT@,$MSGFMT,;t t
19155 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19156 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19157 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19158 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19159 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19160 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19161 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19162 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19163 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19164 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19165 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19166 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19167 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19168 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19169 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19170 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19171 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19172 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19173 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19174 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19175 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19176 s,@GNOME_DIR@,$GNOME_DIR,;t t
19177 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19178 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19179 s,@WX_DIR@,$WX_DIR,;t t
19180 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19181 s,@STATIC_FD@,$STATIC_FD,;t t
19182 s,@STATIC_SD@,$STATIC_SD,;t t
19183 s,@STATIC_DIR@,$STATIC_DIR,;t t
19184 s,@STATIC_CONS@,$STATIC_CONS,;t t
19185 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19186 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19187 s,@ALL_DIRS@,$ALL_DIRS,;t t
19188 s,@CONS_INC@,$CONS_INC,;t t
19189 s,@CONS_OBJ@,$CONS_OBJ,;t t
19190 s,@CONS_SRC@,$CONS_SRC,;t t
19191 s,@CONS_LIBS@,$CONS_LIBS,;t t
19192 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19193 s,@READLINE_SRC@,$READLINE_SRC,;t t
19194 s,@working_dir@,$working_dir,;t t
19195 s,@scriptdir@,$scriptdir,;t t
19196 s,@dump_email@,$dump_email,;t t
19197 s,@job_email@,$job_email,;t t
19198 s,@smtp_host@,$smtp_host,;t t
19199 s,@piddir@,$piddir,;t t
19200 s,@subsysdir@,$subsysdir,;t t
19201 s,@baseport@,$baseport,;t t
19202 s,@dir_port@,$dir_port,;t t
19203 s,@fd_port@,$fd_port,;t t
19204 s,@sd_port@,$sd_port,;t t
19205 s,@dir_password@,$dir_password,;t t
19206 s,@fd_password@,$fd_password,;t t
19207 s,@sd_password@,$sd_password,;t t
19208 s,@dir_user@,$dir_user,;t t
19209 s,@dir_group@,$dir_group,;t t
19210 s,@sd_user@,$sd_user,;t t
19211 s,@sd_group@,$sd_group,;t t
19212 s,@fd_user@,$fd_user,;t t
19213 s,@fd_group@,$fd_group,;t t
19214 s,@SBINPERM@,$SBINPERM,;t t
19215 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19216 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19217 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19218 s,@cats@,$cats,;t t
19219 s,@DB_NAME@,$DB_NAME,;t t
19220 s,@GETCONF@,$GETCONF,;t t
19221 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19222 s,@X_CFLAGS@,$X_CFLAGS,;t t
19223 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19224 s,@X_LIBS@,$X_LIBS,;t t
19225 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19226 s,@LIBOBJS@,$LIBOBJS,;t t
19227 s,@ALLOCA@,$ALLOCA,;t t
19228 s,@FDLIBS@,$FDLIBS,;t t
19229 s,@DEBUG@,$DEBUG,;t t
19230 s,@DINCLUDE@,$DINCLUDE,;t t
19231 s,@DLIB@,$DLIB,;t t
19232 s,@DB_LIBS@,$DB_LIBS,;t t
19233 s,@WCFLAGS@,$WCFLAGS,;t t
19234 s,@WLDFLAGS@,$WLDFLAGS,;t t
19235 s,@OBJLIST@,$OBJLIST,;t t
19236 s,@hostname@,$hostname,;t t
19237 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19238 s,@PSCMD@,$PSCMD,;t t
19239 s,@WIN32@,$WIN32,;t t
19240 s,@MACOSX@,$MACOSX,;t t
19241 s,@DISTNAME@,$DISTNAME,;t t
19242 s,@DISTVER@,$DISTVER,;t t
19243 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19244 /@MCOMMON@/r $MCOMMON
19245 s,@MCOMMON@,,;t t
19246 CEOF
19247
19248 _ACEOF
19249
19250   cat >>$CONFIG_STATUS <<\_ACEOF
19251   # Split the substitutions into bite-sized pieces for seds with
19252   # small command number limits, like on Digital OSF/1 and HP-UX.
19253   ac_max_sed_lines=48
19254   ac_sed_frag=1 # Number of current file.
19255   ac_beg=1 # First line for current file.
19256   ac_end=$ac_max_sed_lines # Line after last line for current file.
19257   ac_more_lines=:
19258   ac_sed_cmds=
19259   while $ac_more_lines; do
19260     if test $ac_beg -gt 1; then
19261       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19262     else
19263       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19264     fi
19265     if test ! -s $tmp/subs.frag; then
19266       ac_more_lines=false
19267     else
19268       # The purpose of the label and of the branching condition is to
19269       # speed up the sed processing (if there are no `@' at all, there
19270       # is no need to browse any of the substitutions).
19271       # These are the two extra sed commands mentioned above.
19272       (echo ':t
19273   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19274       if test -z "$ac_sed_cmds"; then
19275         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19276       else
19277         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19278       fi
19279       ac_sed_frag=`expr $ac_sed_frag + 1`
19280       ac_beg=$ac_end
19281       ac_end=`expr $ac_end + $ac_max_sed_lines`
19282     fi
19283   done
19284   if test -z "$ac_sed_cmds"; then
19285     ac_sed_cmds=cat
19286   fi
19287 fi # test -n "$CONFIG_FILES"
19288
19289 _ACEOF
19290 cat >>$CONFIG_STATUS <<\_ACEOF
19291 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19292   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19293   case $ac_file in
19294   - | *:- | *:-:* ) # input from stdin
19295         cat >$tmp/stdin
19296         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19297         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19298   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19299         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19300   * )   ac_file_in=$ac_file.in ;;
19301   esac
19302
19303   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19304   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19306          X"$ac_file" : 'X\(//\)[^/]' \| \
19307          X"$ac_file" : 'X\(//\)$' \| \
19308          X"$ac_file" : 'X\(/\)' \| \
19309          .     : '\(.\)' 2>/dev/null ||
19310 echo X"$ac_file" |
19311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19312           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19313           /^X\(\/\/\)$/{ s//\1/; q; }
19314           /^X\(\/\).*/{ s//\1/; q; }
19315           s/.*/./; q'`
19316   { if $as_mkdir_p; then
19317     mkdir -p "$ac_dir"
19318   else
19319     as_dir="$ac_dir"
19320     as_dirs=
19321     while test ! -d "$as_dir"; do
19322       as_dirs="$as_dir $as_dirs"
19323       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19325          X"$as_dir" : 'X\(//\)[^/]' \| \
19326          X"$as_dir" : 'X\(//\)$' \| \
19327          X"$as_dir" : 'X\(/\)' \| \
19328          .     : '\(.\)' 2>/dev/null ||
19329 echo X"$as_dir" |
19330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19331           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19332           /^X\(\/\/\)$/{ s//\1/; q; }
19333           /^X\(\/\).*/{ s//\1/; q; }
19334           s/.*/./; q'`
19335     done
19336     test ! -n "$as_dirs" || mkdir $as_dirs
19337   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19338 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19339    { (exit 1); exit 1; }; }; }
19340
19341   ac_builddir=.
19342
19343 if test "$ac_dir" != .; then
19344   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19345   # A "../" for each directory in $ac_dir_suffix.
19346   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19347 else
19348   ac_dir_suffix= ac_top_builddir=
19349 fi
19350
19351 case $srcdir in
19352   .)  # No --srcdir option.  We are building in place.
19353     ac_srcdir=.
19354     if test -z "$ac_top_builddir"; then
19355        ac_top_srcdir=.
19356     else
19357        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19358     fi ;;
19359   [\\/]* | ?:[\\/]* )  # Absolute path.
19360     ac_srcdir=$srcdir$ac_dir_suffix;
19361     ac_top_srcdir=$srcdir ;;
19362   *) # Relative path.
19363     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19364     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19365 esac
19366 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19367 # absolute.
19368 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19369 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19370 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19371 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19372
19373
19374   case $INSTALL in
19375   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19376   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19377   esac
19378
19379   if test x"$ac_file" != x-; then
19380     { echo "$as_me:$LINENO: creating $ac_file" >&5
19381 echo "$as_me: creating $ac_file" >&6;}
19382     rm -f "$ac_file"
19383   fi
19384   # Let's still pretend it is `configure' which instantiates (i.e., don't
19385   # use $as_me), people would be surprised to read:
19386   #    /* config.h.  Generated by config.status.  */
19387   if test x"$ac_file" = x-; then
19388     configure_input=
19389   else
19390     configure_input="$ac_file.  "
19391   fi
19392   configure_input=$configure_input"Generated from `echo $ac_file_in |
19393                                      sed 's,.*/,,'` by configure."
19394
19395   # First look for the input files in the build tree, otherwise in the
19396   # src tree.
19397   ac_file_inputs=`IFS=:
19398     for f in $ac_file_in; do
19399       case $f in
19400       -) echo $tmp/stdin ;;
19401       [\\/$]*)
19402          # Absolute (can't be DOS-style, as IFS=:)
19403          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19404 echo "$as_me: error: cannot find input file: $f" >&2;}
19405    { (exit 1); exit 1; }; }
19406          echo $f;;
19407       *) # Relative
19408          if test -f "$f"; then
19409            # Build tree
19410            echo $f
19411          elif test -f "$srcdir/$f"; then
19412            # Source tree
19413            echo $srcdir/$f
19414          else
19415            # /dev/null tree
19416            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19417 echo "$as_me: error: cannot find input file: $f" >&2;}
19418    { (exit 1); exit 1; }; }
19419          fi;;
19420       esac
19421     done` || { (exit 1); exit 1; }
19422 _ACEOF
19423 cat >>$CONFIG_STATUS <<_ACEOF
19424   sed "$ac_vpsub
19425 $extrasub
19426 _ACEOF
19427 cat >>$CONFIG_STATUS <<\_ACEOF
19428 :t
19429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19430 s,@configure_input@,$configure_input,;t t
19431 s,@srcdir@,$ac_srcdir,;t t
19432 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19433 s,@top_srcdir@,$ac_top_srcdir,;t t
19434 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19435 s,@builddir@,$ac_builddir,;t t
19436 s,@abs_builddir@,$ac_abs_builddir,;t t
19437 s,@top_builddir@,$ac_top_builddir,;t t
19438 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19439 s,@INSTALL@,$ac_INSTALL,;t t
19440 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19441   rm -f $tmp/stdin
19442   if test x"$ac_file" != x-; then
19443     mv $tmp/out $ac_file
19444   else
19445     cat $tmp/out
19446     rm -f $tmp/out
19447   fi
19448
19449 done
19450 _ACEOF
19451 cat >>$CONFIG_STATUS <<\_ACEOF
19452
19453 #
19454 # CONFIG_HEADER section.
19455 #
19456
19457 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19458 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19459 #
19460 # ac_d sets the value in "#define NAME VALUE" lines.
19461 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19462 ac_dB='[        ].*$,\1#\2'
19463 ac_dC=' '
19464 ac_dD=',;t'
19465 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19466 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19467 ac_uB='$,\1#\2define\3'
19468 ac_uC=' '
19469 ac_uD=',;t'
19470
19471 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19472   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19473   case $ac_file in
19474   - | *:- | *:-:* ) # input from stdin
19475         cat >$tmp/stdin
19476         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19477         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19478   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19479         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19480   * )   ac_file_in=$ac_file.in ;;
19481   esac
19482
19483   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19484 echo "$as_me: creating $ac_file" >&6;}
19485
19486   # First look for the input files in the build tree, otherwise in the
19487   # src tree.
19488   ac_file_inputs=`IFS=:
19489     for f in $ac_file_in; do
19490       case $f in
19491       -) echo $tmp/stdin ;;
19492       [\\/$]*)
19493          # Absolute (can't be DOS-style, as IFS=:)
19494          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19495 echo "$as_me: error: cannot find input file: $f" >&2;}
19496    { (exit 1); exit 1; }; }
19497          echo $f;;
19498       *) # Relative
19499          if test -f "$f"; then
19500            # Build tree
19501            echo $f
19502          elif test -f "$srcdir/$f"; then
19503            # Source tree
19504            echo $srcdir/$f
19505          else
19506            # /dev/null tree
19507            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19508 echo "$as_me: error: cannot find input file: $f" >&2;}
19509    { (exit 1); exit 1; }; }
19510          fi;;
19511       esac
19512     done` || { (exit 1); exit 1; }
19513   # Remove the trailing spaces.
19514   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19515
19516 _ACEOF
19517
19518 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19519 # `conftest.undefs', that substitutes the proper values into
19520 # config.h.in to produce config.h.  The first handles `#define'
19521 # templates, and the second `#undef' templates.
19522 # And first: Protect against being on the right side of a sed subst in
19523 # config.status.  Protect against being in an unquoted here document
19524 # in config.status.
19525 rm -f conftest.defines conftest.undefs
19526 # Using a here document instead of a string reduces the quoting nightmare.
19527 # Putting comments in sed scripts is not portable.
19528 #
19529 # `end' is used to avoid that the second main sed command (meant for
19530 # 0-ary CPP macros) applies to n-ary macro definitions.
19531 # See the Autoconf documentation for `clear'.
19532 cat >confdef2sed.sed <<\_ACEOF
19533 s/[\\&,]/\\&/g
19534 s,[\\$`],\\&,g
19535 t clear
19536 : clear
19537 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19538 t end
19539 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19540 : end
19541 _ACEOF
19542 # If some macros were called several times there might be several times
19543 # the same #defines, which is useless.  Nevertheless, we may not want to
19544 # sort them, since we want the *last* AC-DEFINE to be honored.
19545 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19546 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19547 rm -f confdef2sed.sed
19548
19549 # This sed command replaces #undef with comments.  This is necessary, for
19550 # example, in the case of _POSIX_SOURCE, which is predefined and required
19551 # on some systems where configure will not decide to define it.
19552 cat >>conftest.undefs <<\_ACEOF
19553 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19554 _ACEOF
19555
19556 # Break up conftest.defines because some shells have a limit on the size
19557 # of here documents, and old seds have small limits too (100 cmds).
19558 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19559 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19560 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19561 echo '  :' >>$CONFIG_STATUS
19562 rm -f conftest.tail
19563 while grep . conftest.defines >/dev/null
19564 do
19565   # Write a limited-size here document to $tmp/defines.sed.
19566   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19567   # Speed up: don't consider the non `#define' lines.
19568   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19569   # Work around the forget-to-reset-the-flag bug.
19570   echo 't clr' >>$CONFIG_STATUS
19571   echo ': clr' >>$CONFIG_STATUS
19572   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19573   echo 'CEOF
19574   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19575   rm -f $tmp/in
19576   mv $tmp/out $tmp/in
19577 ' >>$CONFIG_STATUS
19578   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19579   rm -f conftest.defines
19580   mv conftest.tail conftest.defines
19581 done
19582 rm -f conftest.defines
19583 echo '  fi # grep' >>$CONFIG_STATUS
19584 echo >>$CONFIG_STATUS
19585
19586 # Break up conftest.undefs because some shells have a limit on the size
19587 # of here documents, and old seds have small limits too (100 cmds).
19588 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19589 rm -f conftest.tail
19590 while grep . conftest.undefs >/dev/null
19591 do
19592   # Write a limited-size here document to $tmp/undefs.sed.
19593   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19594   # Speed up: don't consider the non `#undef'
19595   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19596   # Work around the forget-to-reset-the-flag bug.
19597   echo 't clr' >>$CONFIG_STATUS
19598   echo ': clr' >>$CONFIG_STATUS
19599   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19600   echo 'CEOF
19601   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19602   rm -f $tmp/in
19603   mv $tmp/out $tmp/in
19604 ' >>$CONFIG_STATUS
19605   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19606   rm -f conftest.undefs
19607   mv conftest.tail conftest.undefs
19608 done
19609 rm -f conftest.undefs
19610
19611 cat >>$CONFIG_STATUS <<\_ACEOF
19612   # Let's still pretend it is `configure' which instantiates (i.e., don't
19613   # use $as_me), people would be surprised to read:
19614   #    /* config.h.  Generated by config.status.  */
19615   if test x"$ac_file" = x-; then
19616     echo "/* Generated by configure.  */" >$tmp/config.h
19617   else
19618     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19619   fi
19620   cat $tmp/in >>$tmp/config.h
19621   rm -f $tmp/in
19622   if test x"$ac_file" != x-; then
19623     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19624       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19625 echo "$as_me: $ac_file is unchanged" >&6;}
19626     else
19627       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19629          X"$ac_file" : 'X\(//\)[^/]' \| \
19630          X"$ac_file" : 'X\(//\)$' \| \
19631          X"$ac_file" : 'X\(/\)' \| \
19632          .     : '\(.\)' 2>/dev/null ||
19633 echo X"$ac_file" |
19634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19635           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19636           /^X\(\/\/\)$/{ s//\1/; q; }
19637           /^X\(\/\).*/{ s//\1/; q; }
19638           s/.*/./; q'`
19639       { if $as_mkdir_p; then
19640     mkdir -p "$ac_dir"
19641   else
19642     as_dir="$ac_dir"
19643     as_dirs=
19644     while test ! -d "$as_dir"; do
19645       as_dirs="$as_dir $as_dirs"
19646       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19648          X"$as_dir" : 'X\(//\)[^/]' \| \
19649          X"$as_dir" : 'X\(//\)$' \| \
19650          X"$as_dir" : 'X\(/\)' \| \
19651          .     : '\(.\)' 2>/dev/null ||
19652 echo X"$as_dir" |
19653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19654           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19655           /^X\(\/\/\)$/{ s//\1/; q; }
19656           /^X\(\/\).*/{ s//\1/; q; }
19657           s/.*/./; q'`
19658     done
19659     test ! -n "$as_dirs" || mkdir $as_dirs
19660   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19661 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19662    { (exit 1); exit 1; }; }; }
19663
19664       rm -f $ac_file
19665       mv $tmp/config.h $ac_file
19666     fi
19667   else
19668     cat $tmp/config.h
19669     rm -f $tmp/config.h
19670   fi
19671 done
19672 _ACEOF
19673 cat >>$CONFIG_STATUS <<\_ACEOF
19674
19675 #
19676 # CONFIG_COMMANDS section.
19677 #
19678 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19679   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19680   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19681   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19682 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19683          X"$ac_dest" : 'X\(//\)[^/]' \| \
19684          X"$ac_dest" : 'X\(//\)$' \| \
19685          X"$ac_dest" : 'X\(/\)' \| \
19686          .     : '\(.\)' 2>/dev/null ||
19687 echo X"$ac_dest" |
19688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19689           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19690           /^X\(\/\/\)$/{ s//\1/; q; }
19691           /^X\(\/\).*/{ s//\1/; q; }
19692           s/.*/./; q'`
19693   ac_builddir=.
19694
19695 if test "$ac_dir" != .; then
19696   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19697   # A "../" for each directory in $ac_dir_suffix.
19698   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19699 else
19700   ac_dir_suffix= ac_top_builddir=
19701 fi
19702
19703 case $srcdir in
19704   .)  # No --srcdir option.  We are building in place.
19705     ac_srcdir=.
19706     if test -z "$ac_top_builddir"; then
19707        ac_top_srcdir=.
19708     else
19709        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19710     fi ;;
19711   [\\/]* | ?:[\\/]* )  # Absolute path.
19712     ac_srcdir=$srcdir$ac_dir_suffix;
19713     ac_top_srcdir=$srcdir ;;
19714   *) # Relative path.
19715     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19716     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19717 esac
19718 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19719 # absolute.
19720 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19721 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19722 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19723 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19724
19725
19726   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19727 echo "$as_me: executing $ac_dest commands" >&6;}
19728   case $ac_dest in
19729     default ) (echo "Doing make of dependencies"; make depend;)
19730  ;;
19731   esac
19732 done
19733 _ACEOF
19734
19735 cat >>$CONFIG_STATUS <<\_ACEOF
19736
19737 { (exit 0); exit 0; }
19738 _ACEOF
19739 chmod +x $CONFIG_STATUS
19740 ac_clean_files=$ac_clean_files_save
19741
19742
19743 # configure is writing to config.log, and then calls config.status.
19744 # config.status does its own redirection, appending to config.log.
19745 # Unfortunately, on DOS this fails, as config.log is still kept open
19746 # by configure, so config.status won't be able to write to it; its
19747 # output is simply discarded.  So we exec the FD to /dev/null,
19748 # effectively closing config.log, so it can be properly (re)opened and
19749 # appended to by config.status.  When coming back to configure, we
19750 # need to make the FD available again.
19751 if test "$no_create" != yes; then
19752   ac_cs_success=:
19753   ac_config_status_args=
19754   test "$silent" = yes &&
19755     ac_config_status_args="$ac_config_status_args --quiet"
19756   exec 5>/dev/null
19757   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19758   exec 5>>config.log
19759   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19760   # would make configure fail if this is the last instruction.
19761   $ac_cs_success || { (exit 1); exit 1; }
19762 fi
19763
19764
19765 cd scripts
19766 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19767 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19768 cd ..
19769
19770 c=src/cats
19771
19772 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
19773 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
19774
19775 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
19776 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
19777
19778 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
19779 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
19780
19781 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
19782 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
19783
19784 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
19785 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
19786
19787 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19788 chmod 755 $c/sqlite
19789 chmod 755 $c/mysql
19790
19791 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19792    largefile_support="yes"
19793 fi
19794
19795 #
19796 # A whole lot of hand springs to get the compiler version.
19797 #  This is because gcc changed the output in version 3.0
19798 #
19799 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19800 if test "x${CCVERSION}" = "x" ; then
19801   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19802 fi
19803 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19804 if test x"${CXXVERSION}" = x ; then
19805   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19806 fi
19807
19808 if test "x${subsysdir}" = "x${sbindir}" ; then
19809    echo " "
19810    echo " "
19811    echo "You have set --sbindir and --with-subsys-dir"
19812    echo "  both equal to: ${subsysdir} "
19813    echo "  This is not permitted. Please reconfigure."
19814    echo "Aborting configuration ..."
19815    echo " "
19816    echo " "
19817    exit 1
19818 fi
19819
19820 echo "
19821 Configuration on `date`:
19822
19823   Host:                       $host -- ${DISTNAME} ${DISTVER}
19824   Bacula version:             ${VERSION} (${DATE})
19825   Source code location:       ${srcdir}
19826   Install binaries:           ${sbindir}
19827   Install config files:       ${sysconfdir}
19828   Scripts directory:          ${scriptdir}
19829   Working directory:          ${working_dir}
19830   PID directory:              ${piddir}
19831   Subsys directory:           ${subsysdir}
19832   C Compiler:                 ${CC} ${CCVERSION}
19833   C++ Compiler:               ${CXX} ${CXXVERSION}
19834   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19835   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19836   Libraries:                  ${LIBS}
19837   Statically Linked Tools:    ${support_static_tools}
19838   Statically Linked FD:       ${support_static_fd}
19839   Statically Linked SD:       ${support_static_sd}
19840   Statically Linked DIR:      ${support_static_dir}
19841   Statically Linked CONS:     ${support_static_cons}
19842   Database type:              ${db_name}
19843   Database lib:               ${DB_LIBS}
19844
19845   Job Output Email:           ${job_email}
19846   Traceback Email:            ${dump_email}
19847   SMTP Host Address:          ${smtp_host}
19848
19849   Director Port:              ${dir_port}
19850   File daemon Port:           ${fd_port}
19851   Storage daemon Port:        ${sd_port}
19852
19853   Director User:              ${dir_user}
19854   Director Group:             ${dir_group}
19855   Storage Daemon User:        ${sd_user}
19856   Storage DaemonGroup:        ${sd_group}
19857   File Daemon User:           ${fd_user}
19858   File Daemon Group:          ${fd_group}
19859
19860   SQL binaries Directory      ${SQL_BINDIR}
19861
19862   Large file support:         $largefile_support
19863   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19864   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19865   TCP Wrappers support:       ${TCPW_MSG}
19866   ZLIB support:               ${have_zlib}
19867   enable-smartalloc:          ${support_smartalloc}
19868   enable-gnome:               ${support_gnome} ${gnome_version}
19869   enable-wx-console:          ${support_wx_console}
19870   client-only:                ${build_client_only}
19871   ACL support:                ${have_acl}
19872
19873   " > config.out
19874
19875 cat config.out
19876
19877 # old stuff
19878 # cweb support:               ${got_cweb} ${CWEB_SRC}
19879 # gmp support:                ${got_gmp} ${GMP_SRC}