]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
- Set WANT_AUTOCONF to 2.5 before running autoconf and autoheader in the main Makefil...
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC 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'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 X features:
843   --x-includes=DIR    X include files are in DIR
844   --x-libraries=DIR   X library files are in DIR
845
846 System types:
847   --build=BUILD     configure for building on BUILD [guessed]
848   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853
854   cat <<\_ACEOF
855
856 Optional Features:
857   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
858   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
859   --enable-gnome          enable build of gnome-console GUI disabled
860   --enable-wx-console     enable build of wxWidgets console disabled
861   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
862   --enable-smartalloc     enable smartalloc debugging support disabled
863   --enable-static-tools   enable static tape tools disabled
864   --enable-static-fd      enable static File daemon disabled
865   --enable-static-sd      enable static Storage daemon disabled
866   --enable-static-dir     enable static Director disabled
867   --enable-static-cons    enable static Console disabled
868   --enable-client-only    build client (File daemon) only disabled
869   --disable-conio            disable conio support enabled
870
871   --disable-readline      disable readline support disable
872
873   --disable-largefile     omit support for large files
874
875 Optional Packages:
876   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878   --with-gnome-includes   Specify location of GNOME headers
879   --with-gnome-libs       Specify location of GNOME libs
880   --with-gnome            Specify prefix for GNOME files
881  --with-readline=DIR             specify readline library directory
882   --with-tcp-wrappers=DIR        enable tcpwrappers support
883   --with-working-dir=PATH        specify path of Bacula working directory
884   --with-scriptdir=PATH    specify path of Bacula scripts directory
885   --with-dump-email=EMAIL        dump email address
886   --with-job-email=EMAIL         job output email address
887   --with-smtp-host=HOST          SMTP mail host address
888   --with-pid-dir=PATH            specify location of Bacula pid files
889   --with-subsys-dir=PATH         specify location of Bacula subsys file
890   --with-baseport=PORT           specify base port address for daemons
891   --with-dir-password=PASSWORD   specify Director's password
892   --with-fd-password=PASSWORD    specify Client's password
893   --with-sd-password=PASSWORD    specify Storage daemon's password
894   --with-dir-user=USER           specify user for Director daemon
895   --with-dir-group=GROUP                 specify group for Director daemon
896   --with-sd-user=USER            specify user for Storage daemon
897   --with-sd-group=GROUP          specify group for Storage daemon
898   --with-fd-user=USER            specify user for File daemon
899   --with-fd-group=GROUP          specify group for File daemon
900   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
901   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
902                           base install directory, defaults to /usr/local/pgsql
903
904   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
905                           install directory, default is to search through
906                           a number of common places for the MySQL files.
907
908   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
909                           install directory, default is to search through
910                           a number of common places for the MySQL files.
911
912   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
913                           install directory, default is to search through
914                           a number of common places for the SQLite files.
915   --with-x                use the X Window System
916
917 Some influential environment variables:
918   CC          C compiler command
919   CFLAGS      C compiler flags
920   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
921               nonstandard directory <lib dir>
922   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
923               headers in a nonstandard directory <include dir>
924   CXX         C++ compiler command
925   CXXFLAGS    C++ compiler flags
926   CPP         C preprocessor
927
928 Use these variables to override the choices made by `configure' or to help
929 it to find libraries and programs with nonstandard names/locations.
930
931 _ACEOF
932 fi
933
934 if test "$ac_init_help" = "recursive"; then
935   # If there are subdirs, report their specific --help.
936   ac_popdir=`pwd`
937   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
938     test -d $ac_dir || continue
939     ac_builddir=.
940
941 if test "$ac_dir" != .; then
942   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
943   # A "../" for each directory in $ac_dir_suffix.
944   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
945 else
946   ac_dir_suffix= ac_top_builddir=
947 fi
948
949 case $srcdir in
950   .)  # No --srcdir option.  We are building in place.
951     ac_srcdir=.
952     if test -z "$ac_top_builddir"; then
953        ac_top_srcdir=.
954     else
955        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
956     fi ;;
957   [\\/]* | ?:[\\/]* )  # Absolute path.
958     ac_srcdir=$srcdir$ac_dir_suffix;
959     ac_top_srcdir=$srcdir ;;
960   *) # Relative path.
961     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
962     ac_top_srcdir=$ac_top_builddir$srcdir ;;
963 esac
964
965 # Do not use `cd foo && pwd` to compute absolute paths, because
966 # the directories may not exist.
967 case `pwd` in
968 .) ac_abs_builddir="$ac_dir";;
969 *)
970   case "$ac_dir" in
971   .) ac_abs_builddir=`pwd`;;
972   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
973   *) ac_abs_builddir=`pwd`/"$ac_dir";;
974   esac;;
975 esac
976 case $ac_abs_builddir in
977 .) ac_abs_top_builddir=${ac_top_builddir}.;;
978 *)
979   case ${ac_top_builddir}. in
980   .) ac_abs_top_builddir=$ac_abs_builddir;;
981   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
982   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
983   esac;;
984 esac
985 case $ac_abs_builddir in
986 .) ac_abs_srcdir=$ac_srcdir;;
987 *)
988   case $ac_srcdir in
989   .) ac_abs_srcdir=$ac_abs_builddir;;
990   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
991   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
992   esac;;
993 esac
994 case $ac_abs_builddir in
995 .) ac_abs_top_srcdir=$ac_top_srcdir;;
996 *)
997   case $ac_top_srcdir in
998   .) ac_abs_top_srcdir=$ac_abs_builddir;;
999   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1000   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1001   esac;;
1002 esac
1003
1004     cd $ac_dir
1005     # Check for guested configure; otherwise get Cygnus style configure.
1006     if test -f $ac_srcdir/configure.gnu; then
1007       echo
1008       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1009     elif test -f $ac_srcdir/configure; then
1010       echo
1011       $SHELL $ac_srcdir/configure  --help=recursive
1012     elif test -f $ac_srcdir/configure.ac ||
1013            test -f $ac_srcdir/configure.in; then
1014       echo
1015       $ac_configure --help
1016     else
1017       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1018     fi
1019     cd $ac_popdir
1020   done
1021 fi
1022
1023 test -n "$ac_init_help" && exit 0
1024 if $ac_init_version; then
1025   cat <<\_ACEOF
1026
1027 Copyright (C) 2003 Free Software Foundation, Inc.
1028 This configure script is free software; the Free Software Foundation
1029 gives unlimited permission to copy, distribute and modify it.
1030 _ACEOF
1031   exit 0
1032 fi
1033 exec 5>config.log
1034 cat >&5 <<_ACEOF
1035 This file contains any messages produced by compilers while
1036 running configure, to aid debugging if configure makes a mistake.
1037
1038 It was created by $as_me, which was
1039 generated by GNU Autoconf 2.59.  Invocation command line was
1040
1041   $ $0 $@
1042
1043 _ACEOF
1044 {
1045 cat <<_ASUNAME
1046 ## --------- ##
1047 ## Platform. ##
1048 ## --------- ##
1049
1050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1055
1056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1057 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1058
1059 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1060 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1062 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1063 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1064 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1065 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1066
1067 _ASUNAME
1068
1069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1070 for as_dir in $PATH
1071 do
1072   IFS=$as_save_IFS
1073   test -z "$as_dir" && as_dir=.
1074   echo "PATH: $as_dir"
1075 done
1076
1077 } >&5
1078
1079 cat >&5 <<_ACEOF
1080
1081
1082 ## ----------- ##
1083 ## Core tests. ##
1084 ## ----------- ##
1085
1086 _ACEOF
1087
1088
1089 # Keep a trace of the command line.
1090 # Strip out --no-create and --no-recursion so they do not pile up.
1091 # Strip out --silent because we don't want to record it for future runs.
1092 # Also quote any args containing shell meta-characters.
1093 # Make two passes to allow for proper duplicate-argument suppression.
1094 ac_configure_args=
1095 ac_configure_args0=
1096 ac_configure_args1=
1097 ac_sep=
1098 ac_must_keep_next=false
1099 for ac_pass in 1 2
1100 do
1101   for ac_arg
1102   do
1103     case $ac_arg in
1104     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1105     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106     | -silent | --silent | --silen | --sile | --sil)
1107       continue ;;
1108     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1109       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1110     esac
1111     case $ac_pass in
1112     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1113     2)
1114       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1115       if test $ac_must_keep_next = true; then
1116         ac_must_keep_next=false # Got value, back to normal.
1117       else
1118         case $ac_arg in
1119           *=* | --config-cache | -C | -disable-* | --disable-* \
1120           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1121           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1122           | -with-* | --with-* | -without-* | --without-* | --x)
1123             case "$ac_configure_args0 " in
1124               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1125             esac
1126             ;;
1127           -* ) ac_must_keep_next=true ;;
1128         esac
1129       fi
1130       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1131       # Get rid of the leading space.
1132       ac_sep=" "
1133       ;;
1134     esac
1135   done
1136 done
1137 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1138 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1139
1140 # When interrupted or exit'd, cleanup temporary files, and complete
1141 # config.log.  We remove comments because anyway the quotes in there
1142 # would cause problems or look ugly.
1143 # WARNING: Be sure not to use single quotes in there, as some shells,
1144 # such as our DU 5.0 friend, will then `close' the trap.
1145 trap 'exit_status=$?
1146   # Save into config.log some information that might help in debugging.
1147   {
1148     echo
1149
1150     cat <<\_ASBOX
1151 ## ---------------- ##
1152 ## Cache variables. ##
1153 ## ---------------- ##
1154 _ASBOX
1155     echo
1156     # The following way of writing the cache mishandles newlines in values,
1157 {
1158   (set) 2>&1 |
1159     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1160     *ac_space=\ *)
1161       sed -n \
1162         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1163           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1164       ;;
1165     *)
1166       sed -n \
1167         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1168       ;;
1169     esac;
1170 }
1171     echo
1172
1173     cat <<\_ASBOX
1174 ## ----------------- ##
1175 ## Output variables. ##
1176 ## ----------------- ##
1177 _ASBOX
1178     echo
1179     for ac_var in $ac_subst_vars
1180     do
1181       eval ac_val=$`echo $ac_var`
1182       echo "$ac_var='"'"'$ac_val'"'"'"
1183     done | sort
1184     echo
1185
1186     if test -n "$ac_subst_files"; then
1187       cat <<\_ASBOX
1188 ## ------------- ##
1189 ## Output files. ##
1190 ## ------------- ##
1191 _ASBOX
1192       echo
1193       for ac_var in $ac_subst_files
1194       do
1195         eval ac_val=$`echo $ac_var`
1196         echo "$ac_var='"'"'$ac_val'"'"'"
1197       done | sort
1198       echo
1199     fi
1200
1201     if test -s confdefs.h; then
1202       cat <<\_ASBOX
1203 ## ----------- ##
1204 ## confdefs.h. ##
1205 ## ----------- ##
1206 _ASBOX
1207       echo
1208       sed "/^$/d" confdefs.h | sort
1209       echo
1210     fi
1211     test "$ac_signal" != 0 &&
1212       echo "$as_me: caught signal $ac_signal"
1213     echo "$as_me: exit $exit_status"
1214   } >&5
1215   rm -f core *.core &&
1216   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1217     exit $exit_status
1218      ' 0
1219 for ac_signal in 1 2 13 15; do
1220   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1221 done
1222 ac_signal=0
1223
1224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1225 rm -rf conftest* confdefs.h
1226 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1227 echo >confdefs.h
1228
1229 # Predefined preprocessor variables.
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_NAME "$PACKAGE_NAME"
1233 _ACEOF
1234
1235
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1238 _ACEOF
1239
1240
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1243 _ACEOF
1244
1245
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_STRING "$PACKAGE_STRING"
1248 _ACEOF
1249
1250
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1253 _ACEOF
1254
1255
1256 # Let the site file select an alternate cache file if it wants to.
1257 # Prefer explicitly selected file to automatically selected ones.
1258 if test -z "$CONFIG_SITE"; then
1259   if test "x$prefix" != xNONE; then
1260     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1261   else
1262     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1263   fi
1264 fi
1265 for ac_site_file in $CONFIG_SITE; do
1266   if test -r "$ac_site_file"; then
1267     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1268 echo "$as_me: loading site script $ac_site_file" >&6;}
1269     sed 's/^/| /' "$ac_site_file" >&5
1270     . "$ac_site_file"
1271   fi
1272 done
1273
1274 if test -r "$cache_file"; then
1275   # Some versions of bash will fail to source /dev/null (special
1276   # files actually), so we avoid doing that.
1277   if test -f "$cache_file"; then
1278     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1279 echo "$as_me: loading cache $cache_file" >&6;}
1280     case $cache_file in
1281       [\\/]* | ?:[\\/]* ) . $cache_file;;
1282       *)                      . ./$cache_file;;
1283     esac
1284   fi
1285 else
1286   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1287 echo "$as_me: creating cache $cache_file" >&6;}
1288   >$cache_file
1289 fi
1290
1291 # Check that the precious variables saved in the cache have kept the same
1292 # value.
1293 ac_cache_corrupted=false
1294 for ac_var in `(set) 2>&1 |
1295                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1296   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1297   eval ac_new_set=\$ac_env_${ac_var}_set
1298   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1299   eval ac_new_val="\$ac_env_${ac_var}_value"
1300   case $ac_old_set,$ac_new_set in
1301     set,)
1302       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1303 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1304       ac_cache_corrupted=: ;;
1305     ,set)
1306       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1307 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1308       ac_cache_corrupted=: ;;
1309     ,);;
1310     *)
1311       if test "x$ac_old_val" != "x$ac_new_val"; then
1312         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1313 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1314         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1315 echo "$as_me:   former value:  $ac_old_val" >&2;}
1316         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1317 echo "$as_me:   current value: $ac_new_val" >&2;}
1318         ac_cache_corrupted=:
1319       fi;;
1320   esac
1321   # Pass precious variables to config.status.
1322   if test "$ac_new_set" = set; then
1323     case $ac_new_val in
1324     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1325       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1326     *) ac_arg=$ac_var=$ac_new_val ;;
1327     esac
1328     case " $ac_configure_args " in
1329       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1330       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1331     esac
1332   fi
1333 done
1334 if $ac_cache_corrupted; then
1335   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1336 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1337   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1338 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1339    { (exit 1); exit 1; }; }
1340 fi
1341
1342 ac_ext=c
1343 ac_cpp='$CPP $CPPFLAGS'
1344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366 BUILD_DIR=`pwd`
1367 cd ..
1368 TOP_DIR=`pwd`
1369 cd ${BUILD_DIR}
1370
1371 ac_aux_dir=
1372 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1373   if test -f $ac_dir/install-sh; then
1374     ac_aux_dir=$ac_dir
1375     ac_install_sh="$ac_aux_dir/install-sh -c"
1376     break
1377   elif test -f $ac_dir/install.sh; then
1378     ac_aux_dir=$ac_dir
1379     ac_install_sh="$ac_aux_dir/install.sh -c"
1380     break
1381   elif test -f $ac_dir/shtool; then
1382     ac_aux_dir=$ac_dir
1383     ac_install_sh="$ac_aux_dir/shtool install -c"
1384     break
1385   fi
1386 done
1387 if test -z "$ac_aux_dir"; then
1388   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1389 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1390    { (exit 1); exit 1; }; }
1391 fi
1392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1395
1396           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1397
1398
1399
1400
1401
1402 for ac_prog in true
1403 do
1404   # Extract the first word of "$ac_prog", so it can be a program name with args.
1405 set dummy $ac_prog; ac_word=$2
1406 echo "$as_me:$LINENO: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1409   echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411   case $TRUEPRG in
1412   [\\/]* | ?:[\\/]*)
1413   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1414   ;;
1415   *)
1416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1417 for as_dir in $PATH
1418 do
1419   IFS=$as_save_IFS
1420   test -z "$as_dir" && as_dir=.
1421   for ac_exec_ext in '' $ac_executable_extensions; do
1422   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1423     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1425     break 2
1426   fi
1427 done
1428 done
1429
1430   ;;
1431 esac
1432 fi
1433 TRUEPRG=$ac_cv_path_TRUEPRG
1434
1435 if test -n "$TRUEPRG"; then
1436   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1437 echo "${ECHO_T}$TRUEPRG" >&6
1438 else
1439   echo "$as_me:$LINENO: result: no" >&5
1440 echo "${ECHO_T}no" >&6
1441 fi
1442
1443   test -n "$TRUEPRG" && break
1444 done
1445 test -n "$TRUEPRG" || TRUEPRG=":"
1446
1447 for ac_prog in false
1448 do
1449   # Extract the first word of "$ac_prog", so it can be a program name with args.
1450 set dummy $ac_prog; ac_word=$2
1451 echo "$as_me:$LINENO: checking for $ac_word" >&5
1452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1454   echo $ECHO_N "(cached) $ECHO_C" >&6
1455 else
1456   case $FALSEPRG in
1457   [\\/]* | ?:[\\/]*)
1458   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1459   ;;
1460   *)
1461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1462 for as_dir in $PATH
1463 do
1464   IFS=$as_save_IFS
1465   test -z "$as_dir" && as_dir=.
1466   for ac_exec_ext in '' $ac_executable_extensions; do
1467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1468     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1470     break 2
1471   fi
1472 done
1473 done
1474
1475   ;;
1476 esac
1477 fi
1478 FALSEPRG=$ac_cv_path_FALSEPRG
1479
1480 if test -n "$FALSEPRG"; then
1481   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1482 echo "${ECHO_T}$FALSEPRG" >&6
1483 else
1484   echo "$as_me:$LINENO: result: no" >&5
1485 echo "${ECHO_T}no" >&6
1486 fi
1487
1488   test -n "$FALSEPRG" && break
1489 done
1490 test -n "$FALSEPRG" || FALSEPRG=":"
1491
1492
1493 #AC_CANONICAL_HOST
1494
1495 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1496 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1497 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1498 echo "configuring for bacula $VERSION ($DATE)"
1499
1500
1501
1502 ac_ext=c
1503 ac_cpp='$CPP $CPPFLAGS'
1504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1507 if test -n "$ac_tool_prefix"; then
1508   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1509 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_CC+set}" = set; then
1513   echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515   if test -n "$CC"; then
1516   ac_cv_prog_CC="$CC" # Let the user override the test.
1517 else
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 for as_dir in $PATH
1520 do
1521   IFS=$as_save_IFS
1522   test -z "$as_dir" && as_dir=.
1523   for ac_exec_ext in '' $ac_executable_extensions; do
1524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527     break 2
1528   fi
1529 done
1530 done
1531
1532 fi
1533 fi
1534 CC=$ac_cv_prog_CC
1535 if test -n "$CC"; then
1536   echo "$as_me:$LINENO: result: $CC" >&5
1537 echo "${ECHO_T}$CC" >&6
1538 else
1539   echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1541 fi
1542
1543 fi
1544 if test -z "$ac_cv_prog_CC"; then
1545   ac_ct_CC=$CC
1546   # Extract the first word of "gcc", so it can be a program name with args.
1547 set dummy gcc; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1551   echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553   if test -n "$ac_ct_CC"; then
1554   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1555 else
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 for as_dir in $PATH
1558 do
1559   IFS=$as_save_IFS
1560   test -z "$as_dir" && as_dir=.
1561   for ac_exec_ext in '' $ac_executable_extensions; do
1562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563     ac_cv_prog_ac_ct_CC="gcc"
1564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565     break 2
1566   fi
1567 done
1568 done
1569
1570 fi
1571 fi
1572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1573 if test -n "$ac_ct_CC"; then
1574   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1575 echo "${ECHO_T}$ac_ct_CC" >&6
1576 else
1577   echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1579 fi
1580
1581   CC=$ac_ct_CC
1582 else
1583   CC="$ac_cv_prog_CC"
1584 fi
1585
1586 if test -z "$CC"; then
1587   if test -n "$ac_tool_prefix"; then
1588   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1589 set dummy ${ac_tool_prefix}cc; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_CC+set}" = set; then
1593   echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595   if test -n "$CC"; then
1596   ac_cv_prog_CC="$CC" # Let the user override the test.
1597 else
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1600 do
1601   IFS=$as_save_IFS
1602   test -z "$as_dir" && as_dir=.
1603   for ac_exec_ext in '' $ac_executable_extensions; do
1604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605     ac_cv_prog_CC="${ac_tool_prefix}cc"
1606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607     break 2
1608   fi
1609 done
1610 done
1611
1612 fi
1613 fi
1614 CC=$ac_cv_prog_CC
1615 if test -n "$CC"; then
1616   echo "$as_me:$LINENO: result: $CC" >&5
1617 echo "${ECHO_T}$CC" >&6
1618 else
1619   echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1621 fi
1622
1623 fi
1624 if test -z "$ac_cv_prog_CC"; then
1625   ac_ct_CC=$CC
1626   # Extract the first word of "cc", so it can be a program name with args.
1627 set dummy cc; ac_word=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1631   echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633   if test -n "$ac_ct_CC"; then
1634   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1635 else
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 for as_dir in $PATH
1638 do
1639   IFS=$as_save_IFS
1640   test -z "$as_dir" && as_dir=.
1641   for ac_exec_ext in '' $ac_executable_extensions; do
1642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643     ac_cv_prog_ac_ct_CC="cc"
1644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645     break 2
1646   fi
1647 done
1648 done
1649
1650 fi
1651 fi
1652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1653 if test -n "$ac_ct_CC"; then
1654   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1655 echo "${ECHO_T}$ac_ct_CC" >&6
1656 else
1657   echo "$as_me:$LINENO: result: no" >&5
1658 echo "${ECHO_T}no" >&6
1659 fi
1660
1661   CC=$ac_ct_CC
1662 else
1663   CC="$ac_cv_prog_CC"
1664 fi
1665
1666 fi
1667 if test -z "$CC"; then
1668   # Extract the first word of "cc", so it can be a program name with args.
1669 set dummy cc; ac_word=$2
1670 echo "$as_me:$LINENO: checking for $ac_word" >&5
1671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672 if test "${ac_cv_prog_CC+set}" = set; then
1673   echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675   if test -n "$CC"; then
1676   ac_cv_prog_CC="$CC" # Let the user override the test.
1677 else
1678   ac_prog_rejected=no
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1681 do
1682   IFS=$as_save_IFS
1683   test -z "$as_dir" && as_dir=.
1684   for ac_exec_ext in '' $ac_executable_extensions; do
1685   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1687        ac_prog_rejected=yes
1688        continue
1689      fi
1690     ac_cv_prog_CC="cc"
1691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692     break 2
1693   fi
1694 done
1695 done
1696
1697 if test $ac_prog_rejected = yes; then
1698   # We found a bogon in the path, so make sure we never use it.
1699   set dummy $ac_cv_prog_CC
1700   shift
1701   if test $# != 0; then
1702     # We chose a different compiler from the bogus one.
1703     # However, it has the same basename, so the bogon will be chosen
1704     # first if we set CC to just the basename; use the full file name.
1705     shift
1706     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1707   fi
1708 fi
1709 fi
1710 fi
1711 CC=$ac_cv_prog_CC
1712 if test -n "$CC"; then
1713   echo "$as_me:$LINENO: result: $CC" >&5
1714 echo "${ECHO_T}$CC" >&6
1715 else
1716   echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1718 fi
1719
1720 fi
1721 if test -z "$CC"; then
1722   if test -n "$ac_tool_prefix"; then
1723   for ac_prog in cl
1724   do
1725     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1727 echo "$as_me:$LINENO: checking for $ac_word" >&5
1728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729 if test "${ac_cv_prog_CC+set}" = set; then
1730   echo $ECHO_N "(cached) $ECHO_C" >&6
1731 else
1732   if test -n "$CC"; then
1733   ac_cv_prog_CC="$CC" # Let the user override the test.
1734 else
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1737 do
1738   IFS=$as_save_IFS
1739   test -z "$as_dir" && as_dir=.
1740   for ac_exec_ext in '' $ac_executable_extensions; do
1741   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744     break 2
1745   fi
1746 done
1747 done
1748
1749 fi
1750 fi
1751 CC=$ac_cv_prog_CC
1752 if test -n "$CC"; then
1753   echo "$as_me:$LINENO: result: $CC" >&5
1754 echo "${ECHO_T}$CC" >&6
1755 else
1756   echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 fi
1759
1760     test -n "$CC" && break
1761   done
1762 fi
1763 if test -z "$CC"; then
1764   ac_ct_CC=$CC
1765   for ac_prog in cl
1766 do
1767   # Extract the first word of "$ac_prog", so it can be a program name with args.
1768 set dummy $ac_prog; ac_word=$2
1769 echo "$as_me:$LINENO: checking for $ac_word" >&5
1770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1772   echo $ECHO_N "(cached) $ECHO_C" >&6
1773 else
1774   if test -n "$ac_ct_CC"; then
1775   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1776 else
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 for as_dir in $PATH
1779 do
1780   IFS=$as_save_IFS
1781   test -z "$as_dir" && as_dir=.
1782   for ac_exec_ext in '' $ac_executable_extensions; do
1783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784     ac_cv_prog_ac_ct_CC="$ac_prog"
1785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786     break 2
1787   fi
1788 done
1789 done
1790
1791 fi
1792 fi
1793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1794 if test -n "$ac_ct_CC"; then
1795   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1796 echo "${ECHO_T}$ac_ct_CC" >&6
1797 else
1798   echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1800 fi
1801
1802   test -n "$ac_ct_CC" && break
1803 done
1804
1805   CC=$ac_ct_CC
1806 fi
1807
1808 fi
1809
1810
1811 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1812 See \`config.log' for more details." >&5
1813 echo "$as_me: error: no acceptable C compiler found in \$PATH
1814 See \`config.log' for more details." >&2;}
1815    { (exit 1); exit 1; }; }
1816
1817 # Provide some information about the compiler.
1818 echo "$as_me:$LINENO:" \
1819      "checking for C compiler version" >&5
1820 ac_compiler=`set X $ac_compile; echo $2`
1821 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1822   (eval $ac_compiler --version </dev/null >&5) 2>&5
1823   ac_status=$?
1824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825   (exit $ac_status); }
1826 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1827   (eval $ac_compiler -v </dev/null >&5) 2>&5
1828   ac_status=$?
1829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830   (exit $ac_status); }
1831 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1832   (eval $ac_compiler -V </dev/null >&5) 2>&5
1833   ac_status=$?
1834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835   (exit $ac_status); }
1836
1837 cat >conftest.$ac_ext <<_ACEOF
1838 /* confdefs.h.  */
1839 _ACEOF
1840 cat confdefs.h >>conftest.$ac_ext
1841 cat >>conftest.$ac_ext <<_ACEOF
1842 /* end confdefs.h.  */
1843
1844 int
1845 main ()
1846 {
1847
1848   ;
1849   return 0;
1850 }
1851 _ACEOF
1852 ac_clean_files_save=$ac_clean_files
1853 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1854 # Try to create an executable without -o first, disregard a.out.
1855 # It will help us diagnose broken compilers, and finding out an intuition
1856 # of exeext.
1857 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1858 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1859 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1860 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1861   (eval $ac_link_default) 2>&5
1862   ac_status=$?
1863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864   (exit $ac_status); }; then
1865   # Find the output, starting from the most likely.  This scheme is
1866 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1867 # resort.
1868
1869 # Be careful to initialize this variable, since it used to be cached.
1870 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1871 ac_cv_exeext=
1872 # b.out is created by i960 compilers.
1873 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1874 do
1875   test -f "$ac_file" || continue
1876   case $ac_file in
1877     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1878         ;;
1879     conftest.$ac_ext )
1880         # This is the source file.
1881         ;;
1882     [ab].out )
1883         # We found the default executable, but exeext='' is most
1884         # certainly right.
1885         break;;
1886     *.* )
1887         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1888         # FIXME: I believe we export ac_cv_exeext for Libtool,
1889         # but it would be cool to find out if it's true.  Does anybody
1890         # maintain Libtool? --akim.
1891         export ac_cv_exeext
1892         break;;
1893     * )
1894         break;;
1895   esac
1896 done
1897 else
1898   echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: C compiler cannot create executables
1904 See \`config.log' for more details." >&2;}
1905    { (exit 77); exit 77; }; }
1906 fi
1907
1908 ac_exeext=$ac_cv_exeext
1909 echo "$as_me:$LINENO: result: $ac_file" >&5
1910 echo "${ECHO_T}$ac_file" >&6
1911
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 the C compiler works" >&5
1915 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1916 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1917 # If not cross compiling, check that we can run a simple program.
1918 if test "$cross_compiling" != yes; then
1919   if { ac_try='./$ac_file'
1920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1921   (eval $ac_try) 2>&5
1922   ac_status=$?
1923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924   (exit $ac_status); }; }; then
1925     cross_compiling=no
1926   else
1927     if test "$cross_compiling" = maybe; then
1928         cross_compiling=yes
1929     else
1930         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1931 If you meant to cross compile, use \`--host'.
1932 See \`config.log' for more details." >&5
1933 echo "$as_me: error: cannot run C compiled programs.
1934 If you meant to cross compile, use \`--host'.
1935 See \`config.log' for more details." >&2;}
1936    { (exit 1); exit 1; }; }
1937     fi
1938   fi
1939 fi
1940 echo "$as_me:$LINENO: result: yes" >&5
1941 echo "${ECHO_T}yes" >&6
1942
1943 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1944 ac_clean_files=$ac_clean_files_save
1945 # Check the compiler produces executables we can run.  If not, either
1946 # the compiler is broken, or we cross compile.
1947 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1948 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1949 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1950 echo "${ECHO_T}$cross_compiling" >&6
1951
1952 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1953 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1955   (eval $ac_link) 2>&5
1956   ac_status=$?
1957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958   (exit $ac_status); }; then
1959   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1960 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1961 # work properly (i.e., refer to `conftest.exe'), while it won't with
1962 # `rm'.
1963 for ac_file in conftest.exe conftest conftest.*; do
1964   test -f "$ac_file" || continue
1965   case $ac_file in
1966     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1967     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1968           export ac_cv_exeext
1969           break;;
1970     * ) break;;
1971   esac
1972 done
1973 else
1974   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1975 See \`config.log' for more details." >&5
1976 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1977 See \`config.log' for more details." >&2;}
1978    { (exit 1); exit 1; }; }
1979 fi
1980
1981 rm -f conftest$ac_cv_exeext
1982 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1983 echo "${ECHO_T}$ac_cv_exeext" >&6
1984
1985 rm -f conftest.$ac_ext
1986 EXEEXT=$ac_cv_exeext
1987 ac_exeext=$EXEEXT
1988 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1989 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1990 if test "${ac_cv_objext+set}" = set; then
1991   echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993   cat >conftest.$ac_ext <<_ACEOF
1994 /* confdefs.h.  */
1995 _ACEOF
1996 cat confdefs.h >>conftest.$ac_ext
1997 cat >>conftest.$ac_ext <<_ACEOF
1998 /* end confdefs.h.  */
1999
2000 int
2001 main ()
2002 {
2003
2004   ;
2005   return 0;
2006 }
2007 _ACEOF
2008 rm -f conftest.o conftest.obj
2009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2010   (eval $ac_compile) 2>&5
2011   ac_status=$?
2012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013   (exit $ac_status); }; then
2014   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2015   case $ac_file in
2016     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2017     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2018        break;;
2019   esac
2020 done
2021 else
2022   echo "$as_me: failed program was:" >&5
2023 sed 's/^/| /' conftest.$ac_ext >&5
2024
2025 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2026 See \`config.log' for more details." >&5
2027 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2028 See \`config.log' for more details." >&2;}
2029    { (exit 1); exit 1; }; }
2030 fi
2031
2032 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2033 fi
2034 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2035 echo "${ECHO_T}$ac_cv_objext" >&6
2036 OBJEXT=$ac_cv_objext
2037 ac_objext=$OBJEXT
2038 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2039 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2040 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2041   echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043   cat >conftest.$ac_ext <<_ACEOF
2044 /* confdefs.h.  */
2045 _ACEOF
2046 cat confdefs.h >>conftest.$ac_ext
2047 cat >>conftest.$ac_ext <<_ACEOF
2048 /* end confdefs.h.  */
2049
2050 int
2051 main ()
2052 {
2053 #ifndef __GNUC__
2054        choke me
2055 #endif
2056
2057   ;
2058   return 0;
2059 }
2060 _ACEOF
2061 rm -f conftest.$ac_objext
2062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2063   (eval $ac_compile) 2>conftest.er1
2064   ac_status=$?
2065   grep -v '^ *+' conftest.er1 >conftest.err
2066   rm -f conftest.er1
2067   cat conftest.err >&5
2068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069   (exit $ac_status); } &&
2070          { ac_try='test -z "$ac_c_werror_flag"
2071                          || test ! -s conftest.err'
2072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2073   (eval $ac_try) 2>&5
2074   ac_status=$?
2075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076   (exit $ac_status); }; } &&
2077          { ac_try='test -s conftest.$ac_objext'
2078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079   (eval $ac_try) 2>&5
2080   ac_status=$?
2081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082   (exit $ac_status); }; }; then
2083   ac_compiler_gnu=yes
2084 else
2085   echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2087
2088 ac_compiler_gnu=no
2089 fi
2090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2091 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2092
2093 fi
2094 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2095 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2096 GCC=`test $ac_compiler_gnu = yes && echo yes`
2097 ac_test_CFLAGS=${CFLAGS+set}
2098 ac_save_CFLAGS=$CFLAGS
2099 CFLAGS="-g"
2100 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2101 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2102 if test "${ac_cv_prog_cc_g+set}" = set; then
2103   echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105   cat >conftest.$ac_ext <<_ACEOF
2106 /* confdefs.h.  */
2107 _ACEOF
2108 cat confdefs.h >>conftest.$ac_ext
2109 cat >>conftest.$ac_ext <<_ACEOF
2110 /* end confdefs.h.  */
2111
2112 int
2113 main ()
2114 {
2115
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 rm -f conftest.$ac_objext
2121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122   (eval $ac_compile) 2>conftest.er1
2123   ac_status=$?
2124   grep -v '^ *+' conftest.er1 >conftest.err
2125   rm -f conftest.er1
2126   cat conftest.err >&5
2127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128   (exit $ac_status); } &&
2129          { ac_try='test -z "$ac_c_werror_flag"
2130                          || test ! -s conftest.err'
2131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2132   (eval $ac_try) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }; } &&
2136          { ac_try='test -s conftest.$ac_objext'
2137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138   (eval $ac_try) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }; }; then
2142   ac_cv_prog_cc_g=yes
2143 else
2144   echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 ac_cv_prog_cc_g=no
2148 fi
2149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2150 fi
2151 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2152 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2153 if test "$ac_test_CFLAGS" = set; then
2154   CFLAGS=$ac_save_CFLAGS
2155 elif test $ac_cv_prog_cc_g = yes; then
2156   if test "$GCC" = yes; then
2157     CFLAGS="-g -O2"
2158   else
2159     CFLAGS="-g"
2160   fi
2161 else
2162   if test "$GCC" = yes; then
2163     CFLAGS="-O2"
2164   else
2165     CFLAGS=
2166   fi
2167 fi
2168 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2169 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2170 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   ac_cv_prog_cc_stdc=no
2174 ac_save_CC=$CC
2175 cat >conftest.$ac_ext <<_ACEOF
2176 /* confdefs.h.  */
2177 _ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h.  */
2181 #include <stdarg.h>
2182 #include <stdio.h>
2183 #include <sys/types.h>
2184 #include <sys/stat.h>
2185 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2186 struct buf { int x; };
2187 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2188 static char *e (p, i)
2189      char **p;
2190      int i;
2191 {
2192   return p[i];
2193 }
2194 static char *f (char * (*g) (char **, int), char **p, ...)
2195 {
2196   char *s;
2197   va_list v;
2198   va_start (v,p);
2199   s = g (p, va_arg (v,int));
2200   va_end (v);
2201   return s;
2202 }
2203
2204 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2205    function prototypes and stuff, but not '\xHH' hex character constants.
2206    These don't provoke an error unfortunately, instead are silently treated
2207    as 'x'.  The following induces an error, until -std1 is added to get
2208    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2209    array size at least.  It's necessary to write '\x00'==0 to get something
2210    that's true only with -std1.  */
2211 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2212
2213 int test (int i, double x);
2214 struct s1 {int (*f) (int a);};
2215 struct s2 {int (*f) (double a);};
2216 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2217 int argc;
2218 char **argv;
2219 int
2220 main ()
2221 {
2222 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2223   ;
2224   return 0;
2225 }
2226 _ACEOF
2227 # Don't try gcc -ansi; that turns off useful extensions and
2228 # breaks some systems' header files.
2229 # AIX                   -qlanglvl=ansi
2230 # Ultrix and OSF/1      -std1
2231 # HP-UX 10.20 and later -Ae
2232 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2233 # SVR4                  -Xc -D__EXTENSIONS__
2234 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2235 do
2236   CC="$ac_save_CC $ac_arg"
2237   rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239   (eval $ac_compile) 2>conftest.er1
2240   ac_status=$?
2241   grep -v '^ *+' conftest.er1 >conftest.err
2242   rm -f conftest.er1
2243   cat conftest.err >&5
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); } &&
2246          { ac_try='test -z "$ac_c_werror_flag"
2247                          || test ! -s conftest.err'
2248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249   (eval $ac_try) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }; } &&
2253          { ac_try='test -s conftest.$ac_objext'
2254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255   (eval $ac_try) 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; }; then
2259   ac_cv_prog_cc_stdc=$ac_arg
2260 break
2261 else
2262   echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2264
2265 fi
2266 rm -f conftest.err conftest.$ac_objext
2267 done
2268 rm -f conftest.$ac_ext conftest.$ac_objext
2269 CC=$ac_save_CC
2270
2271 fi
2272
2273 case "x$ac_cv_prog_cc_stdc" in
2274   x|xno)
2275     echo "$as_me:$LINENO: result: none needed" >&5
2276 echo "${ECHO_T}none needed" >&6 ;;
2277   *)
2278     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2279 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2280     CC="$CC $ac_cv_prog_cc_stdc" ;;
2281 esac
2282
2283 # Some people use a C++ compiler to compile C.  Since we use `exit',
2284 # in C++ we need to declare it.  In case someone uses the same compiler
2285 # for both compiling C and C++ we need to have the C++ compiler decide
2286 # the declaration of exit, since it's the most demanding environment.
2287 cat >conftest.$ac_ext <<_ACEOF
2288 #ifndef __cplusplus
2289   choke me
2290 #endif
2291 _ACEOF
2292 rm -f conftest.$ac_objext
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294   (eval $ac_compile) 2>conftest.er1
2295   ac_status=$?
2296   grep -v '^ *+' conftest.er1 >conftest.err
2297   rm -f conftest.er1
2298   cat conftest.err >&5
2299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300   (exit $ac_status); } &&
2301          { ac_try='test -z "$ac_c_werror_flag"
2302                          || test ! -s conftest.err'
2303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304   (eval $ac_try) 2>&5
2305   ac_status=$?
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); }; } &&
2308          { ac_try='test -s conftest.$ac_objext'
2309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310   (eval $ac_try) 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); }; }; then
2314   for ac_declaration in \
2315    '' \
2316    'extern "C" void std::exit (int) throw (); using std::exit;' \
2317    'extern "C" void std::exit (int); using std::exit;' \
2318    'extern "C" void exit (int) throw ();' \
2319    'extern "C" void exit (int);' \
2320    'void exit (int);'
2321 do
2322   cat >conftest.$ac_ext <<_ACEOF
2323 /* confdefs.h.  */
2324 _ACEOF
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h.  */
2328 $ac_declaration
2329 #include <stdlib.h>
2330 int
2331 main ()
2332 {
2333 exit (42);
2334   ;
2335   return 0;
2336 }
2337 _ACEOF
2338 rm -f conftest.$ac_objext
2339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2340   (eval $ac_compile) 2>conftest.er1
2341   ac_status=$?
2342   grep -v '^ *+' conftest.er1 >conftest.err
2343   rm -f conftest.er1
2344   cat conftest.err >&5
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); } &&
2347          { ac_try='test -z "$ac_c_werror_flag"
2348                          || test ! -s conftest.err'
2349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350   (eval $ac_try) 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); }; } &&
2354          { ac_try='test -s conftest.$ac_objext'
2355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356   (eval $ac_try) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); }; }; then
2360   :
2361 else
2362   echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 continue
2366 fi
2367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2368   cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h.  */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h.  */
2374 $ac_declaration
2375 int
2376 main ()
2377 {
2378 exit (42);
2379   ;
2380   return 0;
2381 }
2382 _ACEOF
2383 rm -f conftest.$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385   (eval $ac_compile) 2>conftest.er1
2386   ac_status=$?
2387   grep -v '^ *+' conftest.er1 >conftest.err
2388   rm -f conftest.er1
2389   cat conftest.err >&5
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); } &&
2392          { ac_try='test -z "$ac_c_werror_flag"
2393                          || test ! -s conftest.err'
2394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395   (eval $ac_try) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; } &&
2399          { ac_try='test -s conftest.$ac_objext'
2400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401   (eval $ac_try) 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; }; then
2405   break
2406 else
2407   echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2409
2410 fi
2411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412 done
2413 rm -f conftest*
2414 if test -n "$ac_declaration"; then
2415   echo '#ifdef __cplusplus' >>confdefs.h
2416   echo $ac_declaration      >>confdefs.h
2417   echo '#endif'             >>confdefs.h
2418 fi
2419
2420 else
2421   echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2423
2424 fi
2425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2426 ac_ext=c
2427 ac_cpp='$CPP $CPPFLAGS'
2428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431
2432 ac_ext=cc
2433 ac_cpp='$CXXCPP $CPPFLAGS'
2434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2437 if test -n "$ac_tool_prefix"; then
2438   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2439   do
2440     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2441 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2442 echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2444 if test "${ac_cv_prog_CXX+set}" = set; then
2445   echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447   if test -n "$CXX"; then
2448   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2449 else
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2452 do
2453   IFS=$as_save_IFS
2454   test -z "$as_dir" && as_dir=.
2455   for ac_exec_ext in '' $ac_executable_extensions; do
2456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459     break 2
2460   fi
2461 done
2462 done
2463
2464 fi
2465 fi
2466 CXX=$ac_cv_prog_CXX
2467 if test -n "$CXX"; then
2468   echo "$as_me:$LINENO: result: $CXX" >&5
2469 echo "${ECHO_T}$CXX" >&6
2470 else
2471   echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6
2473 fi
2474
2475     test -n "$CXX" && break
2476   done
2477 fi
2478 if test -z "$CXX"; then
2479   ac_ct_CXX=$CXX
2480   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2481 do
2482   # Extract the first word of "$ac_prog", so it can be a program name with args.
2483 set dummy $ac_prog; ac_word=$2
2484 echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2486 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2487   echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489   if test -n "$ac_ct_CXX"; then
2490   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495   IFS=$as_save_IFS
2496   test -z "$as_dir" && as_dir=.
2497   for ac_exec_ext in '' $ac_executable_extensions; do
2498   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499     ac_cv_prog_ac_ct_CXX="$ac_prog"
2500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501     break 2
2502   fi
2503 done
2504 done
2505
2506 fi
2507 fi
2508 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2509 if test -n "$ac_ct_CXX"; then
2510   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2511 echo "${ECHO_T}$ac_ct_CXX" >&6
2512 else
2513   echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6
2515 fi
2516
2517   test -n "$ac_ct_CXX" && break
2518 done
2519 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2520
2521   CXX=$ac_ct_CXX
2522 fi
2523
2524
2525 # Provide some information about the compiler.
2526 echo "$as_me:$LINENO:" \
2527      "checking for C++ compiler version" >&5
2528 ac_compiler=`set X $ac_compile; echo $2`
2529 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2530   (eval $ac_compiler --version </dev/null >&5) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }
2534 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2535   (eval $ac_compiler -v </dev/null >&5) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }
2539 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2540   (eval $ac_compiler -V </dev/null >&5) 2>&5
2541   ac_status=$?
2542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543   (exit $ac_status); }
2544
2545 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2546 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2547 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2548   echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550   cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h.  */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h.  */
2556
2557 int
2558 main ()
2559 {
2560 #ifndef __GNUC__
2561        choke me
2562 #endif
2563
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 rm -f conftest.$ac_objext
2569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570   (eval $ac_compile) 2>conftest.er1
2571   ac_status=$?
2572   grep -v '^ *+' conftest.er1 >conftest.err
2573   rm -f conftest.er1
2574   cat conftest.err >&5
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); } &&
2577          { ac_try='test -z "$ac_cxx_werror_flag"
2578                          || test ! -s conftest.err'
2579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580   (eval $ac_try) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; } &&
2584          { ac_try='test -s conftest.$ac_objext'
2585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586   (eval $ac_try) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; }; then
2590   ac_compiler_gnu=yes
2591 else
2592   echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2594
2595 ac_compiler_gnu=no
2596 fi
2597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2598 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2599
2600 fi
2601 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2602 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2603 GXX=`test $ac_compiler_gnu = yes && echo yes`
2604 ac_test_CXXFLAGS=${CXXFLAGS+set}
2605 ac_save_CXXFLAGS=$CXXFLAGS
2606 CXXFLAGS="-g"
2607 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2608 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2609 if test "${ac_cv_prog_cxx_g+set}" = set; then
2610   echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612   cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618
2619 int
2620 main ()
2621 {
2622
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629   (eval $ac_compile) 2>conftest.er1
2630   ac_status=$?
2631   grep -v '^ *+' conftest.er1 >conftest.err
2632   rm -f conftest.er1
2633   cat conftest.err >&5
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); } &&
2636          { ac_try='test -z "$ac_cxx_werror_flag"
2637                          || test ! -s conftest.err'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; } &&
2643          { ac_try='test -s conftest.$ac_objext'
2644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645   (eval $ac_try) 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; }; then
2649   ac_cv_prog_cxx_g=yes
2650 else
2651   echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 ac_cv_prog_cxx_g=no
2655 fi
2656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2657 fi
2658 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2660 if test "$ac_test_CXXFLAGS" = set; then
2661   CXXFLAGS=$ac_save_CXXFLAGS
2662 elif test $ac_cv_prog_cxx_g = yes; then
2663   if test "$GXX" = yes; then
2664     CXXFLAGS="-g -O2"
2665   else
2666     CXXFLAGS="-g"
2667   fi
2668 else
2669   if test "$GXX" = yes; then
2670     CXXFLAGS="-O2"
2671   else
2672     CXXFLAGS=
2673   fi
2674 fi
2675 for ac_declaration in \
2676    '' \
2677    'extern "C" void std::exit (int) throw (); using std::exit;' \
2678    'extern "C" void std::exit (int); using std::exit;' \
2679    'extern "C" void exit (int) throw ();' \
2680    'extern "C" void exit (int);' \
2681    'void exit (int);'
2682 do
2683   cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h.  */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h.  */
2689 $ac_declaration
2690 #include <stdlib.h>
2691 int
2692 main ()
2693 {
2694 exit (42);
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701   (eval $ac_compile) 2>conftest.er1
2702   ac_status=$?
2703   grep -v '^ *+' conftest.er1 >conftest.err
2704   rm -f conftest.er1
2705   cat conftest.err >&5
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); } &&
2708          { ac_try='test -z "$ac_cxx_werror_flag"
2709                          || test ! -s conftest.err'
2710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711   (eval $ac_try) 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); }; } &&
2715          { ac_try='test -s conftest.$ac_objext'
2716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717   (eval $ac_try) 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }; }; then
2721   :
2722 else
2723   echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2725
2726 continue
2727 fi
2728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729   cat >conftest.$ac_ext <<_ACEOF
2730 /* confdefs.h.  */
2731 _ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h.  */
2735 $ac_declaration
2736 int
2737 main ()
2738 {
2739 exit (42);
2740   ;
2741   return 0;
2742 }
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746   (eval $ac_compile) 2>conftest.er1
2747   ac_status=$?
2748   grep -v '^ *+' conftest.er1 >conftest.err
2749   rm -f conftest.er1
2750   cat conftest.err >&5
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); } &&
2753          { ac_try='test -z "$ac_cxx_werror_flag"
2754                          || test ! -s conftest.err'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; } &&
2760          { ac_try='test -s conftest.$ac_objext'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766   break
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 fi
2772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2773 done
2774 rm -f conftest*
2775 if test -n "$ac_declaration"; then
2776   echo '#ifdef __cplusplus' >>confdefs.h
2777   echo $ac_declaration      >>confdefs.h
2778   echo '#endif'             >>confdefs.h
2779 fi
2780
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786
2787 if test "x$CC" != xcc; then
2788   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2789 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2790 else
2791   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2792 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2793 fi
2794 set dummy $CC; ac_cc=`echo $2 |
2795                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2796 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2797   echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799   cat >conftest.$ac_ext <<_ACEOF
2800 /* confdefs.h.  */
2801 _ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h.  */
2805
2806 int
2807 main ()
2808 {
2809
2810   ;
2811   return 0;
2812 }
2813 _ACEOF
2814 # Make sure it works both with $CC and with simple cc.
2815 # We do the test twice because some compilers refuse to overwrite an
2816 # existing .o file with -o, though they will create one.
2817 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2818 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819   (eval $ac_try) 2>&5
2820   ac_status=$?
2821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822   (exit $ac_status); } &&
2823    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824   (eval $ac_try) 2>&5
2825   ac_status=$?
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); };
2828 then
2829   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2830   if test "x$CC" != xcc; then
2831     # Test first that cc exists at all.
2832     if { ac_try='cc -c conftest.$ac_ext >&5'
2833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834   (eval $ac_try) 2>&5
2835   ac_status=$?
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); }; }; then
2838       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2839       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840   (eval $ac_try) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } &&
2844          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); };
2849       then
2850         # cc works too.
2851         :
2852       else
2853         # cc exists but doesn't like -o.
2854         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2855       fi
2856     fi
2857   fi
2858 else
2859   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2860 fi
2861 rm -f conftest*
2862
2863 fi
2864 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2865   echo "$as_me:$LINENO: result: yes" >&5
2866 echo "${ECHO_T}yes" >&6
2867 else
2868   echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2870
2871 cat >>confdefs.h <<\_ACEOF
2872 #define NO_MINUS_C_MINUS_O 1
2873 _ACEOF
2874
2875 fi
2876
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2883 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2884 # On Suns, sometimes $CPP names a directory.
2885 if test -n "$CPP" && test -d "$CPP"; then
2886   CPP=
2887 fi
2888 if test -z "$CPP"; then
2889   if test "${ac_cv_prog_CPP+set}" = set; then
2890   echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892       # Double quotes because CPP needs to be expanded
2893     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2894     do
2895       ac_preproc_ok=false
2896 for ac_c_preproc_warn_flag in '' yes
2897 do
2898   # Use a header file that comes with gcc, so configuring glibc
2899   # with a fresh cross-compiler works.
2900   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2901   # <limits.h> exists even on freestanding compilers.
2902   # On the NeXT, cc -E runs the code through the compiler's parser,
2903   # not just through cpp. "Syntax error" is here to catch this case.
2904   cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910 #ifdef __STDC__
2911 # include <limits.h>
2912 #else
2913 # include <assert.h>
2914 #endif
2915                      Syntax error
2916 _ACEOF
2917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2918   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2919   ac_status=$?
2920   grep -v '^ *+' conftest.er1 >conftest.err
2921   rm -f conftest.er1
2922   cat conftest.err >&5
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); } >/dev/null; then
2925   if test -s conftest.err; then
2926     ac_cpp_err=$ac_c_preproc_warn_flag
2927     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2928   else
2929     ac_cpp_err=
2930   fi
2931 else
2932   ac_cpp_err=yes
2933 fi
2934 if test -z "$ac_cpp_err"; then
2935   :
2936 else
2937   echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2939
2940   # Broken: fails on valid input.
2941 continue
2942 fi
2943 rm -f conftest.err conftest.$ac_ext
2944
2945   # OK, works on sane cases.  Now check whether non-existent headers
2946   # can be detected and how.
2947   cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h.  */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h.  */
2953 #include <ac_nonexistent.h>
2954 _ACEOF
2955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2957   ac_status=$?
2958   grep -v '^ *+' conftest.er1 >conftest.err
2959   rm -f conftest.er1
2960   cat conftest.err >&5
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); } >/dev/null; then
2963   if test -s conftest.err; then
2964     ac_cpp_err=$ac_c_preproc_warn_flag
2965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2966   else
2967     ac_cpp_err=
2968   fi
2969 else
2970   ac_cpp_err=yes
2971 fi
2972 if test -z "$ac_cpp_err"; then
2973   # Broken: success on invalid input.
2974 continue
2975 else
2976   echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979   # Passes both tests.
2980 ac_preproc_ok=:
2981 break
2982 fi
2983 rm -f conftest.err conftest.$ac_ext
2984
2985 done
2986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2987 rm -f conftest.err conftest.$ac_ext
2988 if $ac_preproc_ok; then
2989   break
2990 fi
2991
2992     done
2993     ac_cv_prog_CPP=$CPP
2994
2995 fi
2996   CPP=$ac_cv_prog_CPP
2997 else
2998   ac_cv_prog_CPP=$CPP
2999 fi
3000 echo "$as_me:$LINENO: result: $CPP" >&5
3001 echo "${ECHO_T}$CPP" >&6
3002 ac_preproc_ok=false
3003 for ac_c_preproc_warn_flag in '' yes
3004 do
3005   # Use a header file that comes with gcc, so configuring glibc
3006   # with a fresh cross-compiler works.
3007   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3008   # <limits.h> exists even on freestanding compilers.
3009   # On the NeXT, cc -E runs the code through the compiler's parser,
3010   # not just through cpp. "Syntax error" is here to catch this case.
3011   cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017 #ifdef __STDC__
3018 # include <limits.h>
3019 #else
3020 # include <assert.h>
3021 #endif
3022                      Syntax error
3023 _ACEOF
3024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3026   ac_status=$?
3027   grep -v '^ *+' conftest.er1 >conftest.err
3028   rm -f conftest.er1
3029   cat conftest.err >&5
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } >/dev/null; then
3032   if test -s conftest.err; then
3033     ac_cpp_err=$ac_c_preproc_warn_flag
3034     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3035   else
3036     ac_cpp_err=
3037   fi
3038 else
3039   ac_cpp_err=yes
3040 fi
3041 if test -z "$ac_cpp_err"; then
3042   :
3043 else
3044   echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047   # Broken: fails on valid input.
3048 continue
3049 fi
3050 rm -f conftest.err conftest.$ac_ext
3051
3052   # OK, works on sane cases.  Now check whether non-existent headers
3053   # can be detected and how.
3054   cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h.  */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h.  */
3060 #include <ac_nonexistent.h>
3061 _ACEOF
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } >/dev/null; then
3070   if test -s conftest.err; then
3071     ac_cpp_err=$ac_c_preproc_warn_flag
3072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3073   else
3074     ac_cpp_err=
3075   fi
3076 else
3077   ac_cpp_err=yes
3078 fi
3079 if test -z "$ac_cpp_err"; then
3080   # Broken: success on invalid input.
3081 continue
3082 else
3083   echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3085
3086   # Passes both tests.
3087 ac_preproc_ok=:
3088 break
3089 fi
3090 rm -f conftest.err conftest.$ac_ext
3091
3092 done
3093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3094 rm -f conftest.err conftest.$ac_ext
3095 if $ac_preproc_ok; then
3096   :
3097 else
3098   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3099 See \`config.log' for more details." >&5
3100 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3101 See \`config.log' for more details." >&2;}
3102    { (exit 1); exit 1; }; }
3103 fi
3104
3105 ac_ext=c
3106 ac_cpp='$CPP $CPPFLAGS'
3107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110
3111
3112 echo "$as_me:$LINENO: checking for egrep" >&5
3113 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3114 if test "${ac_cv_prog_egrep+set}" = set; then
3115   echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3118     then ac_cv_prog_egrep='grep -E'
3119     else ac_cv_prog_egrep='egrep'
3120     fi
3121 fi
3122 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3123 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3124  EGREP=$ac_cv_prog_egrep
3125
3126
3127 if test $ac_cv_c_compiler_gnu = yes; then
3128     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3129 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3130 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3131   echo $ECHO_N "(cached) $ECHO_C" >&6
3132 else
3133     ac_pattern="Autoconf.*'x'"
3134   cat >conftest.$ac_ext <<_ACEOF
3135 /* confdefs.h.  */
3136 _ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h.  */
3140 #include <sgtty.h>
3141 Autoconf TIOCGETP
3142 _ACEOF
3143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3144   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3145   ac_cv_prog_gcc_traditional=yes
3146 else
3147   ac_cv_prog_gcc_traditional=no
3148 fi
3149 rm -f conftest*
3150
3151
3152   if test $ac_cv_prog_gcc_traditional = no; then
3153     cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h.  */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h.  */
3159 #include <termio.h>
3160 Autoconf TCGETA
3161 _ACEOF
3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3163   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3164   ac_cv_prog_gcc_traditional=yes
3165 fi
3166 rm -f conftest*
3167
3168   fi
3169 fi
3170 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3171 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3172   if test $ac_cv_prog_gcc_traditional = yes; then
3173     CC="$CC -traditional"
3174   fi
3175 fi
3176
3177 if test x$CC = xgcc
3178 then
3179    cat >>confdefs.h <<\_ACEOF
3180 #define HAVE_GCC 1
3181 _ACEOF
3182
3183 fi
3184
3185 # Find a good install program.  We prefer a C program (faster),
3186 # so one script is as good as another.  But avoid the broken or
3187 # incompatible versions:
3188 # SysV /etc/install, /usr/sbin/install
3189 # SunOS /usr/etc/install
3190 # IRIX /sbin/install
3191 # AIX /bin/install
3192 # AmigaOS /C/install, which installs bootblocks on floppy discs
3193 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3194 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3195 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3196 # OS/2's system install, which has a completely different semantic
3197 # ./install, which can be erroneously created by make from ./install.sh.
3198 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3199 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3200 if test -z "$INSTALL"; then
3201 if test "${ac_cv_path_install+set}" = set; then
3202   echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207   IFS=$as_save_IFS
3208   test -z "$as_dir" && as_dir=.
3209   # Account for people who put trailing slashes in PATH elements.
3210 case $as_dir/ in
3211   ./ | .// | /cC/* | \
3212   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3213   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3214   /usr/ucb/* ) ;;
3215   *)
3216     # OSF1 and SCO ODT 3.0 have their own names for install.
3217     # Don't use installbsd from OSF since it installs stuff as root
3218     # by default.
3219     for ac_prog in ginstall scoinst install; do
3220       for ac_exec_ext in '' $ac_executable_extensions; do
3221         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3222           if test $ac_prog = install &&
3223             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3224             # AIX install.  It has an incompatible calling convention.
3225             :
3226           elif test $ac_prog = install &&
3227             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3228             # program-specific install script used by HP pwplus--don't use.
3229             :
3230           else
3231             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3232             break 3
3233           fi
3234         fi
3235       done
3236     done
3237     ;;
3238 esac
3239 done
3240
3241
3242 fi
3243   if test "${ac_cv_path_install+set}" = set; then
3244     INSTALL=$ac_cv_path_install
3245   else
3246     # As a last resort, use the slow shell script.  We don't cache a
3247     # path for INSTALL within a source directory, because that will
3248     # break other packages using the cache if that directory is
3249     # removed, or if the path is relative.
3250     INSTALL=$ac_install_sh
3251   fi
3252 fi
3253 echo "$as_me:$LINENO: result: $INSTALL" >&5
3254 echo "${ECHO_T}$INSTALL" >&6
3255
3256 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3257 # It thinks the first close brace ends the variable substitution.
3258 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3259
3260 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3261
3262 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3263
3264 if test -n "$ac_tool_prefix"; then
3265   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3266 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3267 echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3269 if test "${ac_cv_prog_RANLIB+set}" = set; then
3270   echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272   if test -n "$RANLIB"; then
3273   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3277 do
3278   IFS=$as_save_IFS
3279   test -z "$as_dir" && as_dir=.
3280   for ac_exec_ext in '' $ac_executable_extensions; do
3281   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284     break 2
3285   fi
3286 done
3287 done
3288
3289 fi
3290 fi
3291 RANLIB=$ac_cv_prog_RANLIB
3292 if test -n "$RANLIB"; then
3293   echo "$as_me:$LINENO: result: $RANLIB" >&5
3294 echo "${ECHO_T}$RANLIB" >&6
3295 else
3296   echo "$as_me:$LINENO: result: no" >&5
3297 echo "${ECHO_T}no" >&6
3298 fi
3299
3300 fi
3301 if test -z "$ac_cv_prog_RANLIB"; then
3302   ac_ct_RANLIB=$RANLIB
3303   # Extract the first word of "ranlib", so it can be a program name with args.
3304 set dummy ranlib; ac_word=$2
3305 echo "$as_me:$LINENO: checking for $ac_word" >&5
3306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3308   echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310   if test -n "$ac_ct_RANLIB"; then
3311   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3315 do
3316   IFS=$as_save_IFS
3317   test -z "$as_dir" && as_dir=.
3318   for ac_exec_ext in '' $ac_executable_extensions; do
3319   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320     ac_cv_prog_ac_ct_RANLIB="ranlib"
3321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322     break 2
3323   fi
3324 done
3325 done
3326
3327   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3328 fi
3329 fi
3330 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3331 if test -n "$ac_ct_RANLIB"; then
3332   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3333 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3334 else
3335   echo "$as_me:$LINENO: result: no" >&5
3336 echo "${ECHO_T}no" >&6
3337 fi
3338
3339   RANLIB=$ac_ct_RANLIB
3340 else
3341   RANLIB="$ac_cv_prog_RANLIB"
3342 fi
3343
3344 # Extract the first word of "mv", so it can be a program name with args.
3345 set dummy mv; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_path_MV+set}" = set; then
3349   echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351   case $MV in
3352   [\\/]* | ?:[\\/]*)
3353   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3354   ;;
3355   *)
3356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359   IFS=$as_save_IFS
3360   test -z "$as_dir" && as_dir=.
3361   for ac_exec_ext in '' $ac_executable_extensions; do
3362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365     break 2
3366   fi
3367 done
3368 done
3369
3370   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3371   ;;
3372 esac
3373 fi
3374 MV=$ac_cv_path_MV
3375
3376 if test -n "$MV"; then
3377   echo "$as_me:$LINENO: result: $MV" >&5
3378 echo "${ECHO_T}$MV" >&6
3379 else
3380   echo "$as_me:$LINENO: result: no" >&5
3381 echo "${ECHO_T}no" >&6
3382 fi
3383
3384 # Extract the first word of "rm", so it can be a program name with args.
3385 set dummy rm; ac_word=$2
3386 echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388 if test "${ac_cv_path_RM+set}" = set; then
3389   echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391   case $RM in
3392   [\\/]* | ?:[\\/]*)
3393   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3394   ;;
3395   *)
3396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399   IFS=$as_save_IFS
3400   test -z "$as_dir" && as_dir=.
3401   for ac_exec_ext in '' $ac_executable_extensions; do
3402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405     break 2
3406   fi
3407 done
3408 done
3409
3410   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3411   ;;
3412 esac
3413 fi
3414 RM=$ac_cv_path_RM
3415
3416 if test -n "$RM"; then
3417   echo "$as_me:$LINENO: result: $RM" >&5
3418 echo "${ECHO_T}$RM" >&6
3419 else
3420   echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422 fi
3423
3424 # Extract the first word of "cp", so it can be a program name with args.
3425 set dummy cp; ac_word=$2
3426 echo "$as_me:$LINENO: checking for $ac_word" >&5
3427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3428 if test "${ac_cv_path_CP+set}" = set; then
3429   echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
3431   case $CP in
3432   [\\/]* | ?:[\\/]*)
3433   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3434   ;;
3435   *)
3436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439   IFS=$as_save_IFS
3440   test -z "$as_dir" && as_dir=.
3441   for ac_exec_ext in '' $ac_executable_extensions; do
3442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3445     break 2
3446   fi
3447 done
3448 done
3449
3450   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3451   ;;
3452 esac
3453 fi
3454 CP=$ac_cv_path_CP
3455
3456 if test -n "$CP"; then
3457   echo "$as_me:$LINENO: result: $CP" >&5
3458 echo "${ECHO_T}$CP" >&6
3459 else
3460   echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6
3462 fi
3463
3464 # Extract the first word of "sed", so it can be a program name with args.
3465 set dummy sed; ac_word=$2
3466 echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468 if test "${ac_cv_path_SED+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   case $SED in
3472   [\\/]* | ?:[\\/]*)
3473   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3474   ;;
3475   *)
3476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479   IFS=$as_save_IFS
3480   test -z "$as_dir" && as_dir=.
3481   for ac_exec_ext in '' $ac_executable_extensions; do
3482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485     break 2
3486   fi
3487 done
3488 done
3489
3490   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3491   ;;
3492 esac
3493 fi
3494 SED=$ac_cv_path_SED
3495
3496 if test -n "$SED"; then
3497   echo "$as_me:$LINENO: result: $SED" >&5
3498 echo "${ECHO_T}$SED" >&6
3499 else
3500   echo "$as_me:$LINENO: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3502 fi
3503
3504 # Extract the first word of "awk", so it can be a program name with args.
3505 set dummy awk; ac_word=$2
3506 echo "$as_me:$LINENO: checking for $ac_word" >&5
3507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3508 if test "${ac_cv_path_AWK+set}" = set; then
3509   echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511   case $AWK in
3512   [\\/]* | ?:[\\/]*)
3513   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3514   ;;
3515   *)
3516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519   IFS=$as_save_IFS
3520   test -z "$as_dir" && as_dir=.
3521   for ac_exec_ext in '' $ac_executable_extensions; do
3522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525     break 2
3526   fi
3527 done
3528 done
3529
3530   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3531   ;;
3532 esac
3533 fi
3534 AWK=$ac_cv_path_AWK
3535
3536 if test -n "$AWK"; then
3537   echo "$as_me:$LINENO: result: $AWK" >&5
3538 echo "${ECHO_T}$AWK" >&6
3539 else
3540   echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3542 fi
3543
3544 # Extract the first word of "echo", so it can be a program name with args.
3545 set dummy echo; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_path_ECHO+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   case $ECHO in
3552   [\\/]* | ?:[\\/]*)
3553   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3554   ;;
3555   *)
3556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559   IFS=$as_save_IFS
3560   test -z "$as_dir" && as_dir=.
3561   for ac_exec_ext in '' $ac_executable_extensions; do
3562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565     break 2
3566   fi
3567 done
3568 done
3569
3570   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3571   ;;
3572 esac
3573 fi
3574 ECHO=$ac_cv_path_ECHO
3575
3576 if test -n "$ECHO"; then
3577   echo "$as_me:$LINENO: result: $ECHO" >&5
3578 echo "${ECHO_T}$ECHO" >&6
3579 else
3580   echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3582 fi
3583
3584 # Extract the first word of "cmp", so it can be a program name with args.
3585 set dummy cmp; ac_word=$2
3586 echo "$as_me:$LINENO: checking for $ac_word" >&5
3587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3588 if test "${ac_cv_path_CMP+set}" = set; then
3589   echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591   case $CMP in
3592   [\\/]* | ?:[\\/]*)
3593   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3594   ;;
3595   *)
3596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599   IFS=$as_save_IFS
3600   test -z "$as_dir" && as_dir=.
3601   for ac_exec_ext in '' $ac_executable_extensions; do
3602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3603     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605     break 2
3606   fi
3607 done
3608 done
3609
3610   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3611   ;;
3612 esac
3613 fi
3614 CMP=$ac_cv_path_CMP
3615
3616 if test -n "$CMP"; then
3617   echo "$as_me:$LINENO: result: $CMP" >&5
3618 echo "${ECHO_T}$CMP" >&6
3619 else
3620   echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6
3622 fi
3623
3624 # Extract the first word of "tbl", so it can be a program name with args.
3625 set dummy tbl; ac_word=$2
3626 echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3628 if test "${ac_cv_path_TBL+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   case $TBL in
3632   [\\/]* | ?:[\\/]*)
3633   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3634   ;;
3635   *)
3636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639   IFS=$as_save_IFS
3640   test -z "$as_dir" && as_dir=.
3641   for ac_exec_ext in '' $ac_executable_extensions; do
3642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645     break 2
3646   fi
3647 done
3648 done
3649
3650   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3651   ;;
3652 esac
3653 fi
3654 TBL=$ac_cv_path_TBL
3655
3656 if test -n "$TBL"; then
3657   echo "$as_me:$LINENO: result: $TBL" >&5
3658 echo "${ECHO_T}$TBL" >&6
3659 else
3660   echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3662 fi
3663
3664 # Extract the first word of "ar", so it can be a program name with args.
3665 set dummy ar; ac_word=$2
3666 echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668 if test "${ac_cv_path_AR+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   case $AR in
3672   [\\/]* | ?:[\\/]*)
3673   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3674   ;;
3675   *)
3676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679   IFS=$as_save_IFS
3680   test -z "$as_dir" && as_dir=.
3681   for ac_exec_ext in '' $ac_executable_extensions; do
3682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685     break 2
3686   fi
3687 done
3688 done
3689
3690   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3691   ;;
3692 esac
3693 fi
3694 AR=$ac_cv_path_AR
3695
3696 if test -n "$AR"; then
3697   echo "$as_me:$LINENO: result: $AR" >&5
3698 echo "${ECHO_T}$AR" >&6
3699 else
3700   echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3702 fi
3703
3704 # Extract the first word of "openssl", so it can be a program name with args.
3705 set dummy openssl; ac_word=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_path_OPENSSL+set}" = set; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   case $OPENSSL in
3712   [\\/]* | ?:[\\/]*)
3713   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3714   ;;
3715   *)
3716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719   IFS=$as_save_IFS
3720   test -z "$as_dir" && as_dir=.
3721   for ac_exec_ext in '' $ac_executable_extensions; do
3722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725     break 2
3726   fi
3727 done
3728 done
3729
3730   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3731   ;;
3732 esac
3733 fi
3734 OPENSSL=$ac_cv_path_OPENSSL
3735
3736 if test -n "$OPENSSL"; then
3737   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3738 echo "${ECHO_T}$OPENSSL" >&6
3739 else
3740   echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3742 fi
3743
3744 # Extract the first word of "mtx", so it can be a program name with args.
3745 set dummy mtx; ac_word=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_path_MTX+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   case $MTX in
3752   [\\/]* | ?:[\\/]*)
3753   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3754   ;;
3755   *)
3756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3758 do
3759   IFS=$as_save_IFS
3760   test -z "$as_dir" && as_dir=.
3761   for ac_exec_ext in '' $ac_executable_extensions; do
3762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3765     break 2
3766   fi
3767 done
3768 done
3769
3770   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3771   ;;
3772 esac
3773 fi
3774 MTX=$ac_cv_path_MTX
3775
3776 if test -n "$MTX"; then
3777   echo "$as_me:$LINENO: result: $MTX" >&5
3778 echo "${ECHO_T}$MTX" >&6
3779 else
3780   echo "$as_me:$LINENO: result: no" >&5
3781 echo "${ECHO_T}no" >&6
3782 fi
3783
3784 # Extract the first word of "pkg-config", so it can be a program name with args.
3785 set dummy pkg-config; ac_word=$2
3786 echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   case $PKGCONFIG in
3792   [\\/]* | ?:[\\/]*)
3793   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3794   ;;
3795   *)
3796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 for as_dir in $PATH
3798 do
3799   IFS=$as_save_IFS
3800   test -z "$as_dir" && as_dir=.
3801   for ac_exec_ext in '' $ac_executable_extensions; do
3802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3805     break 2
3806   fi
3807 done
3808 done
3809
3810   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3811   ;;
3812 esac
3813 fi
3814 PKGCONFIG=$ac_cv_path_PKGCONFIG
3815
3816 if test -n "$PKGCONFIG"; then
3817   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3818 echo "${ECHO_T}$PKGCONFIG" >&6
3819 else
3820   echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6
3822 fi
3823
3824 # Extract the first word of "wx-config", so it can be a program name with args.
3825 set dummy wx-config; ac_word=$2
3826 echo "$as_me:$LINENO: checking for $ac_word" >&5
3827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3828 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   case $WXCONFIG in
3832   [\\/]* | ?:[\\/]*)
3833   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3834   ;;
3835   *)
3836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH
3838 do
3839   IFS=$as_save_IFS
3840   test -z "$as_dir" && as_dir=.
3841   for ac_exec_ext in '' $ac_executable_extensions; do
3842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845     break 2
3846   fi
3847 done
3848 done
3849
3850   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3851   ;;
3852 esac
3853 fi
3854 WXCONFIG=$ac_cv_path_WXCONFIG
3855
3856 if test -n "$WXCONFIG"; then
3857   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3858 echo "${ECHO_T}$WXCONFIG" >&6
3859 else
3860   echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6
3862 fi
3863
3864
3865 test -n "$ARFLAG" || ARFLAGS="cr"
3866
3867
3868 MAKE_SHELL=/bin/sh
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878 # Make sure we can run config.sub.
3879 $ac_config_sub sun4 >/dev/null 2>&1 ||
3880   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3881 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3882    { (exit 1); exit 1; }; }
3883
3884 echo "$as_me:$LINENO: checking build system type" >&5
3885 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3886 if test "${ac_cv_build+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   ac_cv_build_alias=$build_alias
3890 test -z "$ac_cv_build_alias" &&
3891   ac_cv_build_alias=`$ac_config_guess`
3892 test -z "$ac_cv_build_alias" &&
3893   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3894 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3895    { (exit 1); exit 1; }; }
3896 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3897   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3898 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3899    { (exit 1); exit 1; }; }
3900
3901 fi
3902 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3903 echo "${ECHO_T}$ac_cv_build" >&6
3904 build=$ac_cv_build
3905 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3906 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3907 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3908
3909
3910
3911 echo "$as_me:$LINENO: checking host system type" >&5
3912 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3913 if test "${ac_cv_host+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   ac_cv_host_alias=$host_alias
3917 test -z "$ac_cv_host_alias" &&
3918   ac_cv_host_alias=$ac_cv_build_alias
3919 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3920   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3921 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3922    { (exit 1); exit 1; }; }
3923
3924 fi
3925 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3926 echo "${ECHO_T}$ac_cv_host" >&6
3927 host=$ac_cv_host
3928 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3929 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3930 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3931
3932
3933 case $host_os in
3934   *cygwin* ) CYGWIN=yes;;
3935          * ) CYGWIN=no;;
3936 esac
3937
3938 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3939 then
3940
3941
3942 if $TRUEPRG; then
3943   HAVE_SUN_OS_TRUE=
3944   HAVE_SUN_OS_FALSE='#'
3945 else
3946   HAVE_SUN_OS_TRUE='#'
3947   HAVE_SUN_OS_FALSE=
3948 fi
3949         cat >>confdefs.h <<\_ACEOF
3950 #define HAVE_SUN_OS 1
3951 _ACEOF
3952
3953 else
3954
3955
3956 if $FALSEPRG; then
3957   HAVE_SUN_OS_TRUE=
3958   HAVE_SUN_OS_FALSE='#'
3959 else
3960   HAVE_SUN_OS_TRUE='#'
3961   HAVE_SUN_OS_FALSE=
3962 fi
3963 fi
3964
3965 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3966 then
3967
3968
3969 if $TRUEPRG; then
3970   HAVE_OSF1_OS_TRUE=
3971   HAVE_OSF1_OS_FALSE='#'
3972 else
3973   HAVE_OSF1_OS_TRUE='#'
3974   HAVE_OSF1_OS_FALSE=
3975 fi
3976         cat >>confdefs.h <<\_ACEOF
3977 #define HAVE_OSF1_OS 1
3978 _ACEOF
3979
3980 else
3981
3982
3983 if $FALSEPRG; then
3984   HAVE_OSF1_OS_TRUE=
3985   HAVE_OSF1_OS_FALSE='#'
3986 else
3987   HAVE_OSF1_OS_TRUE='#'
3988   HAVE_OSF1_OS_FALSE=
3989 fi
3990 fi
3991
3992 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3993 then
3994
3995
3996 if $TRUEPRG; then
3997   HAVE_AIX_OS_TRUE=
3998   HAVE_AIX_OS_FALSE='#'
3999 else
4000   HAVE_AIX_OS_TRUE='#'
4001   HAVE_AIX_OS_FALSE=
4002 fi
4003         cat >>confdefs.h <<\_ACEOF
4004 #define HAVE_AIX_OS 1
4005 _ACEOF
4006
4007 else
4008
4009
4010 if $FALSEPRG; then
4011   HAVE_AIX_OS_TRUE=
4012   HAVE_AIX_OS_FALSE='#'
4013 else
4014   HAVE_AIX_OS_TRUE='#'
4015   HAVE_AIX_OS_FALSE=
4016 fi
4017 fi
4018
4019 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4020 then
4021
4022
4023 if $TRUEPRG; then
4024   HAVE_HPUX_OS_TRUE=
4025   HAVE_HPUX_OS_FALSE='#'
4026 else
4027   HAVE_HPUX_OS_TRUE='#'
4028   HAVE_HPUX_OS_FALSE=
4029 fi
4030         cat >>confdefs.h <<\_ACEOF
4031 #define HAVE_HPUX_OS 1
4032 _ACEOF
4033
4034 else
4035
4036
4037 if $FALSEPRG; then
4038   HAVE_HPUX_OS_TRUE=
4039   HAVE_HPUX_OS_FALSE='#'
4040 else
4041   HAVE_HPUX_OS_TRUE='#'
4042   HAVE_HPUX_OS_FALSE=
4043 fi
4044 fi
4045
4046 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4047 then
4048
4049
4050 if $TRUEPRG; then
4051   HAVE_LINUX_OS_TRUE=
4052   HAVE_LINUX_OS_FALSE='#'
4053 else
4054   HAVE_LINUX_OS_TRUE='#'
4055   HAVE_LINUX_OS_FALSE=
4056 fi
4057         cat >>confdefs.h <<\_ACEOF
4058 #define HAVE_LINUX_OS 1
4059 _ACEOF
4060
4061 else
4062
4063
4064 if $FALSEPRG; then
4065   HAVE_LINUX_OS_TRUE=
4066   HAVE_LINUX_OS_FALSE='#'
4067 else
4068   HAVE_LINUX_OS_TRUE='#'
4069   HAVE_LINUX_OS_FALSE=
4070 fi
4071 fi
4072
4073 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4074 then
4075
4076
4077 if $TRUEPRG; then
4078   HAVE_FREEBSD_OS_TRUE=
4079   HAVE_FREEBSD_OS_FALSE='#'
4080 else
4081   HAVE_FREEBSD_OS_TRUE='#'
4082   HAVE_FREEBSD_OS_FALSE=
4083 fi
4084         cat >>confdefs.h <<\_ACEOF
4085 #define HAVE_FREEBSD_OS 1
4086 _ACEOF
4087
4088 else
4089
4090
4091 if $FALSEPRG; then
4092   HAVE_FREEBSD_OS_TRUE=
4093   HAVE_FREEBSD_OS_FALSE='#'
4094 else
4095   HAVE_FREEBSD_OS_TRUE='#'
4096   HAVE_FREEBSD_OS_FALSE=
4097 fi
4098 fi
4099
4100 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4101 then
4102
4103
4104 if $TRUEPRG; then
4105   HAVE_NETBSD_OS_TRUE=
4106   HAVE_NETBSD_OS_FALSE='#'
4107 else
4108   HAVE_NETBSD_OS_TRUE='#'
4109   HAVE_NETBSD_OS_FALSE=
4110 fi
4111         cat >>confdefs.h <<\_ACEOF
4112 #define HAVE_NETBSD_OS 1
4113 _ACEOF
4114
4115 else
4116
4117
4118 if $FALSEPRG; then
4119   HAVE_NETBSD_OS_TRUE=
4120   HAVE_NETBSD_OS_FALSE='#'
4121 else
4122   HAVE_NETBSD_OS_TRUE='#'
4123   HAVE_NETBSD_OS_FALSE=
4124 fi
4125 fi
4126
4127 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4128 then
4129
4130
4131 if $TRUEPRG; then
4132   HAVE_OPENBSD_OS_TRUE=
4133   HAVE_OPENBSD_OS_FALSE='#'
4134 else
4135   HAVE_OPENBSD_OS_TRUE='#'
4136   HAVE_OPENBSD_OS_FALSE=
4137 fi
4138         cat >>confdefs.h <<\_ACEOF
4139 #define HAVE_OPENBSD_OS 1
4140 _ACEOF
4141
4142 else
4143
4144
4145 if $FALSEPRG; then
4146   HAVE_OPENBSD_OS_TRUE=
4147   HAVE_OPENBSD_OS_FALSE='#'
4148 else
4149   HAVE_OPENBSD_OS_TRUE='#'
4150   HAVE_OPENBSD_OS_FALSE=
4151 fi
4152 fi
4153
4154 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4155 then
4156
4157
4158 if $TRUEPRG; then
4159   HAVE_BSDI_OS_TRUE=
4160   HAVE_BSDI_OS_FALSE='#'
4161 else
4162   HAVE_BSDI_OS_TRUE='#'
4163   HAVE_BSDI_OS_FALSE=
4164 fi
4165         cat >>confdefs.h <<\_ACEOF
4166 #define HAVE_BSDI_OS 1
4167 _ACEOF
4168
4169 else
4170
4171
4172 if $FALSEPRG; then
4173   HAVE_BSDI_OS_TRUE=
4174   HAVE_BSDI_OS_FALSE='#'
4175 else
4176   HAVE_BSDI_OS_TRUE='#'
4177   HAVE_BSDI_OS_FALSE=
4178 fi
4179 fi
4180
4181 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4182 then
4183
4184
4185 if $TRUEPRG; then
4186   HAVE_SGI_OS_TRUE=
4187   HAVE_SGI_OS_FALSE='#'
4188 else
4189   HAVE_SGI_OS_TRUE='#'
4190   HAVE_SGI_OS_FALSE=
4191 fi
4192         cat >>confdefs.h <<\_ACEOF
4193 #define HAVE_SGI_OS 1
4194 _ACEOF
4195
4196 else
4197
4198
4199 if $FALSEPRG; then
4200   HAVE_SGI_OS_TRUE=
4201   HAVE_SGI_OS_FALSE='#'
4202 else
4203   HAVE_SGI_OS_TRUE='#'
4204   HAVE_SGI_OS_FALSE=
4205 fi
4206 fi
4207
4208 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4209 then
4210
4211
4212 if $TRUEPRG; then
4213   HAVE_IRIX_OS_TRUE=
4214   HAVE_IRIX_OS_FALSE='#'
4215 else
4216   HAVE_IRIX_OS_TRUE='#'
4217   HAVE_IRIX_OS_FALSE=
4218 fi
4219         cat >>confdefs.h <<\_ACEOF
4220 #define HAVE_IRIX_OS 1
4221 _ACEOF
4222
4223 else
4224
4225
4226 if $FALSEPRG; then
4227   HAVE_IRIX_OS_TRUE=
4228   HAVE_IRIX_OS_FALSE='#'
4229 else
4230   HAVE_IRIX_OS_TRUE='#'
4231   HAVE_IRIX_OS_FALSE=
4232 fi
4233 fi
4234
4235 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4236 then
4237
4238
4239 if $TRUEPRG; then
4240   HAVE_DARWIN_OS_TRUE=
4241   HAVE_DARWIN_OS_FALSE='#'
4242 else
4243   HAVE_DARWIN_OS_TRUE='#'
4244   HAVE_DARWIN_OS_FALSE=
4245 fi
4246     cat >>confdefs.h <<\_ACEOF
4247 #define HAVE_DARWIN_OS 1
4248 _ACEOF
4249
4250 else
4251
4252
4253 if $FALSEPRG; then
4254   HAVE_DARWIN_OS_TRUE=
4255   HAVE_DARWIN_OS_FALSE='#'
4256 else
4257   HAVE_DARWIN_OS_TRUE='#'
4258   HAVE_DARWIN_OS_FALSE=
4259 fi
4260 fi
4261
4262
4263 # -----------------------------------------------------------
4264 # ----------------------------------------------------------
4265 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4266 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4267 if test "x$DISTNAME" != "x"
4268 then
4269         echo "distname set to $DISTNAME"
4270 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4271 then
4272         DISTNAME=alpha
4273 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4274 then
4275         DISTNAME=aix
4276 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4277 then
4278         DISTNAME=hpux
4279 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4280 then
4281         DISTNAME=solaris
4282 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4283 then
4284         DISTNAME=freebsd
4285 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4286 then
4287         DISTNAME=netbsd
4288 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4289 then
4290         DISTNAME=openbsd
4291 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4292 then
4293         DISTNAME=irix
4294 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4295 then
4296         DISTNAME=bsdi
4297 elif test -f /etc/SuSE-release
4298 then
4299         DISTNAME=suse
4300 elif test -d /etc/SuSEconfig
4301 then
4302         DISTNAME=suse5
4303 elif test -f /etc/mandrake-release
4304 then
4305         DISTNAME=mandrake
4306 elif test -f /etc/whitebox-release
4307 then
4308        DISTNAME=redhat
4309 elif test -f /etc/redhat-release
4310 then
4311         DISTNAME=redhat
4312 elif test -f /etc/gentoo-release
4313 then
4314         DISTNAME=gentoo
4315 elif test -f /etc/debian_version
4316 then
4317         DISTNAME=debian
4318 elif test -f /etc/slackware-version
4319 then
4320         DISTNAME=slackware
4321 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4322 then
4323     DISTNAME=darwin
4324 elif test -f /etc/engarde-version
4325 then
4326         DISTNAME=engarde
4327 elif test "$CYGWIN" = yes
4328 then
4329         DISTNAME=cygwin
4330         cat >>confdefs.h <<\_ACEOF
4331 #define HAVE_CYGWIN 1
4332 _ACEOF
4333
4334 else
4335         DISTNAME=unknown
4336 fi
4337 echo "$as_me:$LINENO: result: done" >&5
4338 echo "${ECHO_T}done" >&6
4339
4340
4341 # -----------------------------------------------------------
4342 # ----------------------------------------------------------
4343
4344
4345
4346 if false; then
4347   INSIDE_GNOME_COMMON_TRUE=
4348   INSIDE_GNOME_COMMON_FALSE='#'
4349 else
4350   INSIDE_GNOME_COMMON_TRUE='#'
4351   INSIDE_GNOME_COMMON_FALSE=
4352 fi
4353
4354         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4355
4356         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4357
4358
4359 # ------------------------------------------------------------------
4360 #  If the user has not set --prefix, we set our default to nothing.
4361 #  In this case, if the user has not set --sysconfdir, we set it
4362 #  to the package default of /etc/bacula.  If either --prefix or
4363 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4364 # ------------------------------------------------------------------
4365 if test x${prefix} = xNONE ; then
4366     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4367         sysconfdir=/etc/bacula
4368     fi
4369     prefix=
4370 fi
4371 sysconfdir=`eval echo ${sysconfdir}`
4372
4373 # -------------------------------------------------------------------------
4374 #  If the user has not set --exec-prefix, we default to ${prefix}
4375 # -------------------------------------------------------------------------
4376 if test x${exec_prefix} = xNONE ; then
4377     exec_prefix=${prefix}
4378 fi
4379
4380 # ------------------------------------------------------------------
4381 # If the user has not set --sbindir, we set our default as /sbin
4382 # ------------------------------------------------------------------
4383 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4384     sbindir=${exec_prefix}/sbin
4385 fi
4386 sbindir=`eval echo ${sbindir}`
4387
4388 # ------------------------------------------------------------------
4389 # All list of languages for which a translation exist. Each
4390 #  language is separated by a space.
4391 # ------------------------------------------------------------------
4392 ALL_LINGUAS=""
4393
4394 for ac_prog in msgfmt
4395 do
4396   # Extract the first word of "$ac_prog", so it can be a program name with args.
4397 set dummy $ac_prog; ac_word=$2
4398 echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400 if test "${ac_cv_path_MSGFMT+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   case $MSGFMT in
4404   [\\/]* | ?:[\\/]*)
4405   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4406   ;;
4407   *)
4408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411   IFS=$as_save_IFS
4412   test -z "$as_dir" && as_dir=.
4413   for ac_exec_ext in '' $ac_executable_extensions; do
4414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417     break 2
4418   fi
4419 done
4420 done
4421
4422   ;;
4423 esac
4424 fi
4425 MSGFMT=$ac_cv_path_MSGFMT
4426
4427 if test -n "$MSGFMT"; then
4428   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4429 echo "${ECHO_T}$MSGFMT" >&6
4430 else
4431   echo "$as_me:$LINENO: result: no" >&5
4432 echo "${ECHO_T}no" >&6
4433 fi
4434
4435   test -n "$MSGFMT" && break
4436 done
4437 test -n "$MSGFMT" || MSGFMT="no"
4438
4439 if test "$MSGFMT" = "no"
4440 then
4441    echo 'msgfmt program not found, disabling NLS !'
4442    USE_NLS=no
4443    USE_INCLUDED_LIBINTL=no
4444 #else
4445 #   AM_GNU_GETTEXT
4446 fi
4447
4448
4449 support_mysql=no
4450 support_sqlite=no
4451 support_postgresql=no
4452 support_smartalloc=yes
4453 support_readline=yes
4454 support_conio=yes
4455 support_gnome=no
4456 support_wx_console=no
4457 gnome_version=
4458 support_static_tools=no
4459 support_static_fd=no
4460 support_static_sd=no
4461 support_static_dir=no
4462 support_static_cons=no
4463 build_client_only=no
4464 cats=
4465 db_name=Internal
4466 DB_NAME=bdb
4467
4468
4469 # -------------------------------------------
4470 # gnome (default off)
4471 # -------------------------------------------
4472 # Check whether --enable-gnome or --disable-gnome was given.
4473 if test "${enable_gnome+set}" = set; then
4474   enableval="$enable_gnome"
4475   if test x$enableval = xyes; then
4476     support_gnome=yes
4477   fi
4478 fi;
4479
4480 GNOME_DIR=
4481 if test x$support_gnome = xyes; then
4482   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4483   pkg=$?
4484   if test $pkg = 0; then
4485      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4486      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4487      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4488      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4489
4490
4491
4492
4493      GNOME_DIR=src/gnome2-console
4494      gnome_version="Version 2.x"
4495   else
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4508 if test "${with_gnome_includes+set}" = set; then
4509   withval="$with_gnome_includes"
4510
4511         CFLAGS="$CFLAGS -I$withval"
4512
4513 fi;
4514
4515
4516 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4517 if test "${with_gnome_libs+set}" = set; then
4518   withval="$with_gnome_libs"
4519
4520         LDFLAGS="$LDFLAGS -L$withval"
4521         gnome_prefix=$withval
4522
4523 fi;
4524
4525
4526 # Check whether --with-gnome or --without-gnome was given.
4527 if test "${with_gnome+set}" = set; then
4528   withval="$with_gnome"
4529   if test x$withval = xyes; then
4530                         want_gnome=yes
4531                                                                         :
4532                 else
4533                         if test "x$withval" = xno; then
4534                                 want_gnome=no
4535                         else
4536                                 want_gnome=yes
4537                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4538                                 CFLAGS="$CFLAGS -I$withval/include"
4539                                 gnome_prefix=$withval/lib
4540                         fi
4541                 fi
4542 else
4543   want_gnome=yes
4544 fi;
4545
4546         if test "x$want_gnome" = xyes; then
4547
4548             # Extract the first word of "gnome-config", so it can be a program name with args.
4549 set dummy gnome-config; ac_word=$2
4550 echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4552 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   case $GNOME_CONFIG in
4556   [\\/]* | ?:[\\/]*)
4557   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4558   ;;
4559   *)
4560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563   IFS=$as_save_IFS
4564   test -z "$as_dir" && as_dir=.
4565   for ac_exec_ext in '' $ac_executable_extensions; do
4566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569     break 2
4570   fi
4571 done
4572 done
4573
4574   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4575   ;;
4576 esac
4577 fi
4578 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4579
4580 if test -n "$GNOME_CONFIG"; then
4581   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4582 echo "${ECHO_T}$GNOME_CONFIG" >&6
4583 else
4584   echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4586 fi
4587
4588             if test "$GNOME_CONFIG" = "no"; then
4589               no_gnome_config="yes"
4590             else
4591               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4592 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4593               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4594                 echo "$as_me:$LINENO: result: yes" >&5
4595 echo "${ECHO_T}yes" >&6
4596
4597
4598         # Extract the first word of "orbit-config", so it can be a program name with args.
4599 set dummy orbit-config; ac_word=$2
4600 echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4603   echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605   case $ORBIT_CONFIG in
4606   [\\/]* | ?:[\\/]*)
4607   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4608   ;;
4609   *)
4610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4612 do
4613   IFS=$as_save_IFS
4614   test -z "$as_dir" && as_dir=.
4615   for ac_exec_ext in '' $ac_executable_extensions; do
4616   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4617     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619     break 2
4620   fi
4621 done
4622 done
4623
4624   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4625   ;;
4626 esac
4627 fi
4628 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4629
4630 if test -n "$ORBIT_CONFIG"; then
4631   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4632 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4633 else
4634   echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4636 fi
4637
4638         # Extract the first word of "orbit-idl", so it can be a program name with args.
4639 set dummy orbit-idl; ac_word=$2
4640 echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4642 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645   case $ORBIT_IDL in
4646   [\\/]* | ?:[\\/]*)
4647   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4648   ;;
4649   *)
4650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655   for ac_exec_ext in '' $ac_executable_extensions; do
4656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659     break 2
4660   fi
4661 done
4662 done
4663
4664   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4665   ;;
4666 esac
4667 fi
4668 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4669
4670 if test -n "$ORBIT_IDL"; then
4671   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4672 echo "${ECHO_T}$ORBIT_IDL" >&6
4673 else
4674   echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6
4676 fi
4677
4678         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4679 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4680 if test "${gnome_cv_orbit_found+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683
4684                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4685                         gnome_cv_orbit_found=no
4686                 else
4687                         gnome_cv_orbit_found=yes
4688                 fi
4689
4690 fi
4691 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4692 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4693
4694
4695 if test x$gnome_cv_orbit_found = xyes; then
4696   HAVE_ORBIT_TRUE=
4697   HAVE_ORBIT_FALSE='#'
4698 else
4699   HAVE_ORBIT_TRUE='#'
4700   HAVE_ORBIT_FALSE=
4701 fi
4702         if test x$gnome_cv_orbit_found = xyes; then
4703
4704                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4705                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4706
4707
4708         else
4709                 if test xfail = xfailure; then
4710                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4711 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4712    { (exit 1); exit 1; }; }
4713                 fi
4714         fi
4715
4716         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4717 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4718 if test "${gnome_cv_gnorba_found+set}" = set; then
4719   echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721
4722                 gnome_cv_gnorba_found=no
4723                 if test x$gnome_cv_orbit_found = xyes; then
4724                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4725                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4726                         if test -n "$GNORBA_LIBS"; then
4727                                 gnome_cv_gnorba_found=yes
4728                         fi
4729                 fi
4730
4731 fi
4732 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4733 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4734
4735
4736 if test x$gnome_cv_gnorba_found = xyes; then
4737   HAVE_GNORBA_TRUE=
4738   HAVE_GNORBA_FALSE='#'
4739 else
4740   HAVE_GNORBA_TRUE='#'
4741   HAVE_GNORBA_FALSE=
4742 fi
4743         if test x$gnome_cv_orbit_found = xyes; then
4744
4745                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4746                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4747
4748
4749         else
4750                 if test xfail = xfailure; then
4751                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4752 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4753    { (exit 1); exit 1; }; }
4754                 fi
4755         fi
4756
4757                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4758                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4759                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4760                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4761                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4762                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4763                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4764
4765               else
4766                 echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6
4768                 no_gnome_config="yes"
4769               fi
4770             fi
4771
4772             if test x$exec_prefix = xNONE; then
4773                 if test x$prefix = xNONE; then
4774                     gnome_prefix=$ac_default_prefix/lib
4775                 else
4776                     gnome_prefix=$prefix/lib
4777                 fi
4778             else
4779                 gnome_prefix=`eval echo \`echo $libdir\``
4780             fi
4781
4782             if test "$no_gnome_config" = "yes"; then
4783               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4784 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4785               if test -f $gnome_prefix/gnomeConf.sh; then
4786                 echo "$as_me:$LINENO: result: found" >&5
4787 echo "${ECHO_T}found" >&6
4788                 echo "loading gnome configuration from" \
4789                      "$gnome_prefix/gnomeConf.sh"
4790                 . $gnome_prefix/gnomeConf.sh
4791
4792               else
4793                 echo "$as_me:$LINENO: result: not found" >&5
4794 echo "${ECHO_T}not found" >&6
4795                 if test xfail = xfail; then
4796                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4797 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4798    { (exit 1); exit 1; }; }
4799                 fi
4800               fi
4801             fi
4802         fi
4803
4804         if test -n ""; then
4805           n=""
4806           for i in $n; do
4807             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4808 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4809             case $i in
4810               applets)
4811
4812                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4813                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4814 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4815               docklets)
4816
4817                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4818                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4819 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4820               capplet)
4821
4822                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4823                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4824 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4825               *)
4826                 echo "$as_me:$LINENO: result: unknown library" >&5
4827 echo "${ECHO_T}unknown library" >&6
4828             esac
4829             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4830             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4831           done
4832         fi
4833
4834
4835      GNOME_DIR=src/gnome-console
4836      gnome_version="Version 1.4"
4837   fi
4838 fi
4839
4840
4841
4842 # -------------------------------------------
4843 # wx-console (default off)
4844 # -------------------------------------------
4845 # Check whether --enable-wx-console or --disable-wx-console was given.
4846 if test "${enable_wx_console+set}" = set; then
4847   enableval="$enable_wx_console"
4848   if test x$enableval = xyes; then
4849     support_wx_console=yes
4850   fi
4851 fi;
4852
4853 WX_DIR=
4854 if test x$support_wx_console = xyes; then
4855   abc=`$WXCONFIG --cppflags`
4856   pkg=$?
4857   if test $pkg = 0; then
4858      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4859      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4860
4861
4862      WX_DIR=src/wx-console
4863   else
4864      echo " "
4865      echo "wx-config program not found. wx-console disabled."
4866      echo " "
4867      support_wx_console=no
4868   fi
4869 fi
4870
4871
4872
4873 # -------------------------------------------
4874 # tray-monitor (default off)
4875 # -------------------------------------------
4876 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4877 if test "${enable_tray_monitor+set}" = set; then
4878   enableval="$enable_tray_monitor"
4879   if test x$enableval = xyes; then
4880     support_tray_monitor=yes
4881   fi
4882 fi;
4883
4884 TRAY_MONITOR_DIR=
4885 if test x$support_tray_monitor = xyes; then
4886   abc=`$PKGCONFIG --exists gtk+-2.0`
4887   pkg=$?
4888   if test $pkg = 0; then
4889      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4890      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4891
4892
4893      TRAY_MONITOR_DIR=src/tray-monitor
4894      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4895      pkg=$?
4896      if test $pkg = 0; then
4897         cat >>confdefs.h <<\_ACEOF
4898 #define HAVE_GTK_2_4 1
4899 _ACEOF
4900
4901      fi
4902   fi
4903 fi
4904
4905
4906 # -------------------------------------------
4907 # smartalloc (default off)
4908 # -------------------------------------------
4909 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4910 if test "${enable_smartalloc+set}" = set; then
4911   enableval="$enable_smartalloc"
4912   if test x$enableval = xno; then
4913     support_smartalloc=no
4914   fi
4915 fi;
4916
4917 if test x$support_smartalloc = xyes; then
4918    cat >>confdefs.h <<\_ACEOF
4919 #define SMARTALLOC 1
4920 _ACEOF
4921
4922 fi
4923
4924 # -------------------------------------------
4925 # static-tools (default off)
4926 # -------------------------------------------
4927 # Check whether --enable-static-tools or --disable-static-tools was given.
4928 if test "${enable_static_tools+set}" = set; then
4929   enableval="$enable_static_tools"
4930   if test x$enableval = xyes; then
4931      support_static_tools=yes
4932    fi
4933 fi;
4934
4935 TTOOL_LDFLAGS=
4936 if test x$support_static_tools = xyes; then
4937    TTOOL_LDFLAGS="-static"
4938 fi
4939
4940
4941 # -------------------------------------------
4942 # static-fd    (default off)
4943 # -------------------------------------------
4944 # Check whether --enable-static-fd or --disable-static-fd was given.
4945 if test "${enable_static_fd+set}" = set; then
4946   enableval="$enable_static_fd"
4947   if test x$enableval = xyes; then
4948      support_static_fd=yes
4949    fi
4950 fi;
4951
4952 STATIC_FD=
4953 if test x$support_static_fd = xyes; then
4954    STATIC_FD="static-bacula-fd"
4955 fi
4956
4957
4958 # -------------------------------------------
4959 # static-sd    (default off)
4960 # -------------------------------------------
4961 # Check whether --enable-static-sd or --disable-static-sd was given.
4962 if test "${enable_static_sd+set}" = set; then
4963   enableval="$enable_static_sd"
4964   if test x$enableval = xyes; then
4965      support_static_sd=yes
4966    fi
4967 fi;
4968
4969 STATIC_SD=
4970 if test x$support_static_sd = xyes; then
4971    STATIC_SD="static-bacula-sd"
4972 fi
4973
4974
4975 # -------------------------------------------
4976 # static-dir   (default off)
4977 # -------------------------------------------
4978 # Check whether --enable-static-dir or --disable-static-dir was given.
4979 if test "${enable_static_dir+set}" = set; then
4980   enableval="$enable_static_dir"
4981   if test x$enableval = xyes; then
4982      support_static_dir=yes
4983    fi
4984 fi;
4985
4986 STATIC_DIR=
4987 if test x$support_static_dir = xyes; then
4988    STATIC_DIR="static-bacula-dir"
4989 fi
4990
4991
4992 # -------------------------------------------
4993 # static-cons  (default off)
4994 # -------------------------------------------
4995 # Check whether --enable-static-cons or --disable-static-cons was given.
4996 if test "${enable_static_cons+set}" = set; then
4997   enableval="$enable_static_cons"
4998   if test x$enableval = xyes; then
4999      support_static_cons=yes
5000    fi
5001 fi;
5002
5003 STATIC_CONS=
5004 STATIC_GNOME_CONS=
5005 STATIC_WX_CONS=
5006 if test x$support_static_cons = xyes; then
5007    STATIC_CONS="static-bconsole"
5008    STATIC_GNOME_CONS="static-gnome-console"
5009    STATIC_WX_CONS="static-wx-console"
5010 fi
5011
5012
5013
5014
5015 # -------------------------------------------
5016 # client_only  (default off)
5017 # -------------------------------------------
5018 # Check whether --enable-client-only or --disable-client-only was given.
5019 if test "${enable_client_only+set}" = set; then
5020   enableval="$enable_client_only"
5021   if test x$enableval = xyes; then
5022      build_client_only=yes
5023     db_name=None
5024     DB_NAME=none
5025    fi
5026 fi;
5027 if test x$build_client_only = xno; then
5028    ALL_DIRS="subdirs"
5029 else
5030    ALL_DIRS=""
5031 fi
5032
5033
5034 # ---------------------------------------------------
5035 # Check for conio (Bacula readline substitute)(
5036 # ---------------------------------------------------
5037 # this allows you to turn it completely off
5038 # Check whether --enable-conio or --disable-conio was given.
5039 if test "${enable_conio+set}" = set; then
5040   enableval="$enable_conio"
5041   if test x$enableval = xno; then
5042     support_conio=no
5043   fi
5044 fi;
5045
5046 got_conio="no"
5047 if test x$support_conio = xyes; then
5048    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5049 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5050 if test "${ac_cv_header_stdc+set}" = set; then
5051   echo $ECHO_N "(cached) $ECHO_C" >&6
5052 else
5053   cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h.  */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h.  */
5059 #include <stdlib.h>
5060 #include <stdarg.h>
5061 #include <string.h>
5062 #include <float.h>
5063
5064 int
5065 main ()
5066 {
5067
5068   ;
5069   return 0;
5070 }
5071 _ACEOF
5072 rm -f conftest.$ac_objext
5073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5074   (eval $ac_compile) 2>conftest.er1
5075   ac_status=$?
5076   grep -v '^ *+' conftest.er1 >conftest.err
5077   rm -f conftest.er1
5078   cat conftest.err >&5
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); } &&
5081          { ac_try='test -z "$ac_c_werror_flag"
5082                          || test ! -s conftest.err'
5083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084   (eval $ac_try) 2>&5
5085   ac_status=$?
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); }; } &&
5088          { ac_try='test -s conftest.$ac_objext'
5089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090   (eval $ac_try) 2>&5
5091   ac_status=$?
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); }; }; then
5094   ac_cv_header_stdc=yes
5095 else
5096   echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5098
5099 ac_cv_header_stdc=no
5100 fi
5101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5102
5103 if test $ac_cv_header_stdc = yes; then
5104   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5105   cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h.  */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h.  */
5111 #include <string.h>
5112
5113 _ACEOF
5114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5115   $EGREP "memchr" >/dev/null 2>&1; then
5116   :
5117 else
5118   ac_cv_header_stdc=no
5119 fi
5120 rm -f conftest*
5121
5122 fi
5123
5124 if test $ac_cv_header_stdc = yes; then
5125   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5126   cat >conftest.$ac_ext <<_ACEOF
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132 #include <stdlib.h>
5133
5134 _ACEOF
5135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5136   $EGREP "free" >/dev/null 2>&1; then
5137   :
5138 else
5139   ac_cv_header_stdc=no
5140 fi
5141 rm -f conftest*
5142
5143 fi
5144
5145 if test $ac_cv_header_stdc = yes; then
5146   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5147   if test "$cross_compiling" = yes; then
5148   :
5149 else
5150   cat >conftest.$ac_ext <<_ACEOF
5151 /* confdefs.h.  */
5152 _ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h.  */
5156 #include <ctype.h>
5157 #if ((' ' & 0x0FF) == 0x020)
5158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5160 #else
5161 # define ISLOWER(c) \
5162                    (('a' <= (c) && (c) <= 'i') \
5163                      || ('j' <= (c) && (c) <= 'r') \
5164                      || ('s' <= (c) && (c) <= 'z'))
5165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5166 #endif
5167
5168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5169 int
5170 main ()
5171 {
5172   int i;
5173   for (i = 0; i < 256; i++)
5174     if (XOR (islower (i), ISLOWER (i))
5175         || toupper (i) != TOUPPER (i))
5176       exit(2);
5177   exit (0);
5178 }
5179 _ACEOF
5180 rm -f conftest$ac_exeext
5181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5182   (eval $ac_link) 2>&5
5183   ac_status=$?
5184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187   (eval $ac_try) 2>&5
5188   ac_status=$?
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); }; }; then
5191   :
5192 else
5193   echo "$as_me: program exited with status $ac_status" >&5
5194 echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5196
5197 ( exit $ac_status )
5198 ac_cv_header_stdc=no
5199 fi
5200 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5201 fi
5202 fi
5203 fi
5204 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5205 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5206 if test $ac_cv_header_stdc = yes; then
5207
5208 cat >>confdefs.h <<\_ACEOF
5209 #define STDC_HEADERS 1
5210 _ACEOF
5211
5212 fi
5213
5214 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5225                   inttypes.h stdint.h unistd.h
5226 do
5227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5228 echo "$as_me:$LINENO: checking for $ac_header" >&5
5229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5231   echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233   cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h.  */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h.  */
5239 $ac_includes_default
5240
5241 #include <$ac_header>
5242 _ACEOF
5243 rm -f conftest.$ac_objext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5245   (eval $ac_compile) 2>conftest.er1
5246   ac_status=$?
5247   grep -v '^ *+' conftest.er1 >conftest.err
5248   rm -f conftest.er1
5249   cat conftest.err >&5
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); } &&
5252          { ac_try='test -z "$ac_c_werror_flag"
5253                          || test ! -s conftest.err'
5254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255   (eval $ac_try) 2>&5
5256   ac_status=$?
5257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); }; } &&
5259          { ac_try='test -s conftest.$ac_objext'
5260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261   (eval $ac_try) 2>&5
5262   ac_status=$?
5263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264   (exit $ac_status); }; }; then
5265   eval "$as_ac_Header=yes"
5266 else
5267   echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5269
5270 eval "$as_ac_Header=no"
5271 fi
5272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5273 fi
5274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5277   cat >>confdefs.h <<_ACEOF
5278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5279 _ACEOF
5280
5281 fi
5282
5283 done
5284
5285
5286 if test "${ac_cv_header_termcap_h+set}" = set; then
5287   echo "$as_me:$LINENO: checking for termcap.h" >&5
5288 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5289 if test "${ac_cv_header_termcap_h+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 fi
5292 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5293 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5294 else
5295   # Is the header compilable?
5296 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5297 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5298 cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h.  */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h.  */
5304 $ac_includes_default
5305 #include <termcap.h>
5306 _ACEOF
5307 rm -f conftest.$ac_objext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309   (eval $ac_compile) 2>conftest.er1
5310   ac_status=$?
5311   grep -v '^ *+' conftest.er1 >conftest.err
5312   rm -f conftest.er1
5313   cat conftest.err >&5
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); } &&
5316          { ac_try='test -z "$ac_c_werror_flag"
5317                          || test ! -s conftest.err'
5318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319   (eval $ac_try) 2>&5
5320   ac_status=$?
5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322   (exit $ac_status); }; } &&
5323          { ac_try='test -s conftest.$ac_objext'
5324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325   (eval $ac_try) 2>&5
5326   ac_status=$?
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); }; }; then
5329   ac_header_compiler=yes
5330 else
5331   echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5333
5334 ac_header_compiler=no
5335 fi
5336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5338 echo "${ECHO_T}$ac_header_compiler" >&6
5339
5340 # Is the header present?
5341 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5342 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5343 cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h.  */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h.  */
5349 #include <termcap.h>
5350 _ACEOF
5351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5352   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5353   ac_status=$?
5354   grep -v '^ *+' conftest.er1 >conftest.err
5355   rm -f conftest.er1
5356   cat conftest.err >&5
5357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358   (exit $ac_status); } >/dev/null; then
5359   if test -s conftest.err; then
5360     ac_cpp_err=$ac_c_preproc_warn_flag
5361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5362   else
5363     ac_cpp_err=
5364   fi
5365 else
5366   ac_cpp_err=yes
5367 fi
5368 if test -z "$ac_cpp_err"; then
5369   ac_header_preproc=yes
5370 else
5371   echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5373
5374   ac_header_preproc=no
5375 fi
5376 rm -f conftest.err conftest.$ac_ext
5377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5378 echo "${ECHO_T}$ac_header_preproc" >&6
5379
5380 # So?  What about this header?
5381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5382   yes:no: )
5383     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5384 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5385     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5386 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5387     ac_header_preproc=yes
5388     ;;
5389   no:yes:* )
5390     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5391 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5392     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5393 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5394     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5395 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5396     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5397 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5398     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5399 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5400     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5401 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5402     (
5403       cat <<\_ASBOX
5404 ## ------------------------------------------ ##
5405 ## Report this to the AC_PACKAGE_NAME lists.  ##
5406 ## ------------------------------------------ ##
5407 _ASBOX
5408     ) |
5409       sed "s/^/$as_me: WARNING:     /" >&2
5410     ;;
5411 esac
5412 echo "$as_me:$LINENO: checking for termcap.h" >&5
5413 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5414 if test "${ac_cv_header_termcap_h+set}" = set; then
5415   echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417   ac_cv_header_termcap_h=$ac_header_preproc
5418 fi
5419 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5420 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5421
5422 fi
5423 if test $ac_cv_header_termcap_h = yes; then
5424    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5425 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5426 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429   ac_check_lib_save_LIBS=$LIBS
5430 LIBS="-ltermcap  $LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h.  */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h.  */
5437
5438 /* Override any gcc2 internal prototype to avoid an error.  */
5439 #ifdef __cplusplus
5440 extern "C"
5441 #endif
5442 /* We use char because int might match the return type of a gcc2
5443    builtin and then its argument prototype would still apply.  */
5444 char tgetent ();
5445 int
5446 main ()
5447 {
5448 tgetent ();
5449   ;
5450   return 0;
5451 }
5452 _ACEOF
5453 rm -f conftest.$ac_objext conftest$ac_exeext
5454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5455   (eval $ac_link) 2>conftest.er1
5456   ac_status=$?
5457   grep -v '^ *+' conftest.er1 >conftest.err
5458   rm -f conftest.er1
5459   cat conftest.err >&5
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); } &&
5462          { ac_try='test -z "$ac_c_werror_flag"
5463                          || test ! -s conftest.err'
5464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465   (eval $ac_try) 2>&5
5466   ac_status=$?
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); }; } &&
5469          { ac_try='test -s conftest$ac_exeext'
5470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471   (eval $ac_try) 2>&5
5472   ac_status=$?
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); }; }; then
5475   ac_cv_lib_termcap_tgetent=yes
5476 else
5477   echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5479
5480 ac_cv_lib_termcap_tgetent=no
5481 fi
5482 rm -f conftest.err conftest.$ac_objext \
5483       conftest$ac_exeext conftest.$ac_ext
5484 LIBS=$ac_check_lib_save_LIBS
5485 fi
5486 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5487 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5488 if test $ac_cv_lib_termcap_tgetent = yes; then
5489    CONS_LIBS="-ltermcap"
5490          CONS_OBJ="conio.o"
5491          CONS_SRC="conio.c"
5492          got_conio="yes"
5493          support_readline=no
5494
5495 cat >>confdefs.h <<\_ACEOF
5496 #define HAVE_CONIO 1
5497 _ACEOF
5498
5499
5500 else
5501    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5502 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5503 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5504   echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506   ac_check_lib_save_LIBS=$LIBS
5507 LIBS="-lncurses  $LIBS"
5508 cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h.  */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h.  */
5514
5515 /* Override any gcc2 internal prototype to avoid an error.  */
5516 #ifdef __cplusplus
5517 extern "C"
5518 #endif
5519 /* We use char because int might match the return type of a gcc2
5520    builtin and then its argument prototype would still apply.  */
5521 char tgetent ();
5522 int
5523 main ()
5524 {
5525 tgetent ();
5526   ;
5527   return 0;
5528 }
5529 _ACEOF
5530 rm -f conftest.$ac_objext conftest$ac_exeext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5532   (eval $ac_link) 2>conftest.er1
5533   ac_status=$?
5534   grep -v '^ *+' conftest.er1 >conftest.err
5535   rm -f conftest.er1
5536   cat conftest.err >&5
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); } &&
5539          { ac_try='test -z "$ac_c_werror_flag"
5540                          || test ! -s conftest.err'
5541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542   (eval $ac_try) 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); }; } &&
5546          { ac_try='test -s conftest$ac_exeext'
5547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548   (eval $ac_try) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; }; then
5552   ac_cv_lib_ncurses_tgetent=yes
5553 else
5554   echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5556
5557 ac_cv_lib_ncurses_tgetent=no
5558 fi
5559 rm -f conftest.err conftest.$ac_objext \
5560       conftest$ac_exeext conftest.$ac_ext
5561 LIBS=$ac_check_lib_save_LIBS
5562 fi
5563 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5564 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5565 if test $ac_cv_lib_ncurses_tgetent = yes; then
5566    CONS_LIBS="-lncurses"
5567            CONS_OBJ="conio.o"
5568            CONS_SRC="conio.c"
5569            got_conio="yes"
5570            support_readline=no
5571
5572 cat >>confdefs.h <<\_ACEOF
5573 #define HAVE_CONIO 1
5574 _ACEOF
5575
5576
5577 else
5578    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5579 fi
5580
5581
5582 fi
5583
5584
5585 else
5586   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5587 fi
5588
5589
5590 fi
5591
5592
5593 # ---------------------------------------------------
5594 # Check for readline support/directory (default off)
5595 # ---------------------------------------------------
5596 # this allows you to turn it completely off
5597 # Check whether --enable-readline or --disable-readline was given.
5598 if test "${enable_readline+set}" = set; then
5599   enableval="$enable_readline"
5600   if test x$enableval = xno; then
5601     support_readline=no
5602   fi
5603 fi;
5604
5605 got_readline="no"
5606 READLINE_SRC=
5607 if test x$support_readline = xyes; then
5608
5609 # Check whether --with-readline or --without-readline was given.
5610 if test "${with_readline+set}" = set; then
5611   withval="$with_readline"
5612
5613         case "$with_readline" in
5614         no) : ;;
5615         yes|*)
5616           if test "$with_readline" != "yes"; then
5617             CONS_INC="-I${with_readline}"
5618             CONS_LDFLAGS="-L$with_readline"
5619           else
5620              with_readline="/usr/include/readline"
5621           fi
5622           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5624   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5625 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 fi
5629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5631 else
5632   # Is the header compilable?
5633 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5634 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5635 cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h.  */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h.  */
5641 $ac_includes_default
5642 #include <${with_readline}/readline.h>
5643 _ACEOF
5644 rm -f conftest.$ac_objext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646   (eval $ac_compile) 2>conftest.er1
5647   ac_status=$?
5648   grep -v '^ *+' conftest.er1 >conftest.err
5649   rm -f conftest.er1
5650   cat conftest.err >&5
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); } &&
5653          { ac_try='test -z "$ac_c_werror_flag"
5654                          || test ! -s conftest.err'
5655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656   (eval $ac_try) 2>&5
5657   ac_status=$?
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); }; } &&
5660          { ac_try='test -s conftest.$ac_objext'
5661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662   (eval $ac_try) 2>&5
5663   ac_status=$?
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); }; }; then
5666   ac_header_compiler=yes
5667 else
5668   echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5670
5671 ac_header_compiler=no
5672 fi
5673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5675 echo "${ECHO_T}$ac_header_compiler" >&6
5676
5677 # Is the header present?
5678 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5679 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5680 cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h.  */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h.  */
5686 #include <${with_readline}/readline.h>
5687 _ACEOF
5688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5690   ac_status=$?
5691   grep -v '^ *+' conftest.er1 >conftest.err
5692   rm -f conftest.er1
5693   cat conftest.err >&5
5694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695   (exit $ac_status); } >/dev/null; then
5696   if test -s conftest.err; then
5697     ac_cpp_err=$ac_c_preproc_warn_flag
5698     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5699   else
5700     ac_cpp_err=
5701   fi
5702 else
5703   ac_cpp_err=yes
5704 fi
5705 if test -z "$ac_cpp_err"; then
5706   ac_header_preproc=yes
5707 else
5708   echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5710
5711   ac_header_preproc=no
5712 fi
5713 rm -f conftest.err conftest.$ac_ext
5714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5715 echo "${ECHO_T}$ac_header_preproc" >&6
5716
5717 # So?  What about this header?
5718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5719   yes:no: )
5720     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5721 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5722     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
5723 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
5724     ac_header_preproc=yes
5725     ;;
5726   no:yes:* )
5727     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5728 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5729     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
5730 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
5731     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
5732 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
5733     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
5734 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5735     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5736 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5737     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
5738 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
5739     (
5740       cat <<\_ASBOX
5741 ## ------------------------------------------ ##
5742 ## Report this to the AC_PACKAGE_NAME lists.  ##
5743 ## ------------------------------------------ ##
5744 _ASBOX
5745     ) |
5746       sed "s/^/$as_me: WARNING:     /" >&2
5747     ;;
5748 esac
5749 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5750 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754   eval "$as_ac_Header=\$ac_header_preproc"
5755 fi
5756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5758
5759 fi
5760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5761    cat >>confdefs.h <<\_ACEOF
5762 #define HAVE_READLINE 1
5763 _ACEOF
5764
5765                CONS_LIBS="-lreadline -ltermcap"
5766                got_readline="yes"
5767
5768 else
5769    echo " "
5770                echo "readline.h not found. readline turned off ..."
5771                echo " "
5772
5773
5774 fi
5775
5776
5777           ;;
5778         esac
5779
5780 else
5781
5782        # check for standard readline library
5783        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5784   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5785 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5786 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 fi
5789 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5790 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5791 else
5792   # Is the header compilable?
5793 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5794 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h.  */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h.  */
5801 $ac_includes_default
5802 #include </usr/include/readline/readline.h>
5803 _ACEOF
5804 rm -f conftest.$ac_objext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806   (eval $ac_compile) 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } &&
5813          { ac_try='test -z "$ac_c_werror_flag"
5814                          || test ! -s conftest.err'
5815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816   (eval $ac_try) 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); }; } &&
5820          { ac_try='test -s conftest.$ac_objext'
5821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822   (eval $ac_try) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); }; }; then
5826   ac_header_compiler=yes
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 ac_header_compiler=no
5832 fi
5833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5835 echo "${ECHO_T}$ac_header_compiler" >&6
5836
5837 # Is the header present?
5838 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5839 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h.  */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h.  */
5846 #include </usr/include/readline/readline.h>
5847 _ACEOF
5848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5850   ac_status=$?
5851   grep -v '^ *+' conftest.er1 >conftest.err
5852   rm -f conftest.er1
5853   cat conftest.err >&5
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } >/dev/null; then
5856   if test -s conftest.err; then
5857     ac_cpp_err=$ac_c_preproc_warn_flag
5858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5859   else
5860     ac_cpp_err=
5861   fi
5862 else
5863   ac_cpp_err=yes
5864 fi
5865 if test -z "$ac_cpp_err"; then
5866   ac_header_preproc=yes
5867 else
5868   echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5870
5871   ac_header_preproc=no
5872 fi
5873 rm -f conftest.err conftest.$ac_ext
5874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5875 echo "${ECHO_T}$ac_header_preproc" >&6
5876
5877 # So?  What about this header?
5878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5879   yes:no: )
5880     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5881 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5882     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
5883 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
5884     ac_header_preproc=yes
5885     ;;
5886   no:yes:* )
5887     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5888 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5889     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
5890 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
5891     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
5892 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
5893     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
5894 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5895     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5896 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5897     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
5898 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
5899     (
5900       cat <<\_ASBOX
5901 ## ------------------------------------------ ##
5902 ## Report this to the AC_PACKAGE_NAME lists.  ##
5903 ## ------------------------------------------ ##
5904 _ASBOX
5905     ) |
5906       sed "s/^/$as_me: WARNING:     /" >&2
5907     ;;
5908 esac
5909 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5910 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5911 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5915 fi
5916 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5917 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5918
5919 fi
5920 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5921    cat >>confdefs.h <<\_ACEOF
5922 #define HAVE_READLINE 1
5923 _ACEOF
5924
5925            got_readline="yes"
5926            CONS_INC="-I/usr/include/readline"
5927            CONS_LIBS="-lreadline -ltermcap"
5928
5929 else
5930
5931            # Did not find standard library, so try Bacula's default
5932             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5934   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5935 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5937   echo $ECHO_N "(cached) $ECHO_C" >&6
5938 fi
5939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5941 else
5942   # Is the header compilable?
5943 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5944 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5945 cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h.  */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h.  */
5951 $ac_includes_default
5952 #include <${TOP_DIR}/depkgs/readline/readline.h>
5953 _ACEOF
5954 rm -f conftest.$ac_objext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5956   (eval $ac_compile) 2>conftest.er1
5957   ac_status=$?
5958   grep -v '^ *+' conftest.er1 >conftest.err
5959   rm -f conftest.er1
5960   cat conftest.err >&5
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); } &&
5963          { ac_try='test -z "$ac_c_werror_flag"
5964                          || test ! -s conftest.err'
5965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966   (eval $ac_try) 2>&5
5967   ac_status=$?
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); }; } &&
5970          { ac_try='test -s conftest.$ac_objext'
5971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972   (eval $ac_try) 2>&5
5973   ac_status=$?
5974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); }; }; then
5976   ac_header_compiler=yes
5977 else
5978   echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5980
5981 ac_header_compiler=no
5982 fi
5983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5985 echo "${ECHO_T}$ac_header_compiler" >&6
5986
5987 # Is the header present?
5988 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5989 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5990 cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h.  */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h.  */
5996 #include <${TOP_DIR}/depkgs/readline/readline.h>
5997 _ACEOF
5998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6000   ac_status=$?
6001   grep -v '^ *+' conftest.er1 >conftest.err
6002   rm -f conftest.er1
6003   cat conftest.err >&5
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } >/dev/null; then
6006   if test -s conftest.err; then
6007     ac_cpp_err=$ac_c_preproc_warn_flag
6008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6009   else
6010     ac_cpp_err=
6011   fi
6012 else
6013   ac_cpp_err=yes
6014 fi
6015 if test -z "$ac_cpp_err"; then
6016   ac_header_preproc=yes
6017 else
6018   echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6020
6021   ac_header_preproc=no
6022 fi
6023 rm -f conftest.err conftest.$ac_ext
6024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6025 echo "${ECHO_T}$ac_header_preproc" >&6
6026
6027 # So?  What about this header?
6028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6029   yes:no: )
6030     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6031 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6032     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6033 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6034     ac_header_preproc=yes
6035     ;;
6036   no:yes:* )
6037     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6038 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6039     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6040 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6041     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6042 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6043     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6044 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6045     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6046 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6047     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6048 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6049     (
6050       cat <<\_ASBOX
6051 ## ------------------------------------------ ##
6052 ## Report this to the AC_PACKAGE_NAME lists.  ##
6053 ## ------------------------------------------ ##
6054 _ASBOX
6055     ) |
6056       sed "s/^/$as_me: WARNING:     /" >&2
6057     ;;
6058 esac
6059 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6060 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6062   echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064   eval "$as_ac_Header=\$ac_header_preproc"
6065 fi
6066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6068
6069 fi
6070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6071    cat >>confdefs.h <<\_ACEOF
6072 #define HAVE_READLINE 1
6073 _ACEOF
6074
6075                  got_readline="yes"
6076                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6077                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6078                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6079                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6080
6081 else
6082    echo " "
6083                 echo "readline.h not found. readline turned off ..."
6084                 echo " "
6085
6086
6087 fi
6088
6089
6090
6091
6092 fi
6093
6094
6095
6096
6097 fi;
6098 fi
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109 # Minimal stuff for readline Makefile configuration
6110 MAKE_SHELL=/bin/sh
6111
6112 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6113 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6114 if test "${ac_cv_header_stat_broken+set}" = set; then
6115   echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117   cat >conftest.$ac_ext <<_ACEOF
6118 /* confdefs.h.  */
6119 _ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h.  */
6123 #include <sys/types.h>
6124 #include <sys/stat.h>
6125
6126 #if defined(S_ISBLK) && defined(S_IFDIR)
6127 # if S_ISBLK (S_IFDIR)
6128 You lose.
6129 # endif
6130 #endif
6131
6132 #if defined(S_ISBLK) && defined(S_IFCHR)
6133 # if S_ISBLK (S_IFCHR)
6134 You lose.
6135 # endif
6136 #endif
6137
6138 #if defined(S_ISLNK) && defined(S_IFREG)
6139 # if S_ISLNK (S_IFREG)
6140 You lose.
6141 # endif
6142 #endif
6143
6144 #if defined(S_ISSOCK) && defined(S_IFREG)
6145 # if S_ISSOCK (S_IFREG)
6146 You lose.
6147 # endif
6148 #endif
6149
6150 _ACEOF
6151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152   $EGREP "You lose" >/dev/null 2>&1; then
6153   ac_cv_header_stat_broken=yes
6154 else
6155   ac_cv_header_stat_broken=no
6156 fi
6157 rm -f conftest*
6158
6159 fi
6160 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6161 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6162 if test $ac_cv_header_stat_broken = yes; then
6163
6164 cat >>confdefs.h <<\_ACEOF
6165 #define STAT_MACROS_BROKEN 1
6166 _ACEOF
6167
6168 fi
6169
6170
6171
6172
6173
6174
6175 ac_header_dirent=no
6176 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6177   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6178 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6179 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6181   echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183   cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h.  */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h.  */
6189 #include <sys/types.h>
6190 #include <$ac_hdr>
6191
6192 int
6193 main ()
6194 {
6195 if ((DIR *) 0)
6196 return 0;
6197   ;
6198   return 0;
6199 }
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203   (eval $ac_compile) 2>conftest.er1
6204   ac_status=$?
6205   grep -v '^ *+' conftest.er1 >conftest.err
6206   rm -f conftest.er1
6207   cat conftest.err >&5
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); } &&
6210          { ac_try='test -z "$ac_c_werror_flag"
6211                          || test ! -s conftest.err'
6212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213   (eval $ac_try) 2>&5
6214   ac_status=$?
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); }; } &&
6217          { ac_try='test -s conftest.$ac_objext'
6218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219   (eval $ac_try) 2>&5
6220   ac_status=$?
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); }; }; then
6223   eval "$as_ac_Header=yes"
6224 else
6225   echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6227
6228 eval "$as_ac_Header=no"
6229 fi
6230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6231 fi
6232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6235   cat >>confdefs.h <<_ACEOF
6236 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6237 _ACEOF
6238
6239 ac_header_dirent=$ac_hdr; break
6240 fi
6241
6242 done
6243 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6244 if test $ac_header_dirent = dirent.h; then
6245   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6246 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6247 if test "${ac_cv_search_opendir+set}" = set; then
6248   echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250   ac_func_search_save_LIBS=$LIBS
6251 ac_cv_search_opendir=no
6252 cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h.  */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h.  */
6258
6259 /* Override any gcc2 internal prototype to avoid an error.  */
6260 #ifdef __cplusplus
6261 extern "C"
6262 #endif
6263 /* We use char because int might match the return type of a gcc2
6264    builtin and then its argument prototype would still apply.  */
6265 char opendir ();
6266 int
6267 main ()
6268 {
6269 opendir ();
6270   ;
6271   return 0;
6272 }
6273 _ACEOF
6274 rm -f conftest.$ac_objext conftest$ac_exeext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6276   (eval $ac_link) 2>conftest.er1
6277   ac_status=$?
6278   grep -v '^ *+' conftest.er1 >conftest.err
6279   rm -f conftest.er1
6280   cat conftest.err >&5
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); } &&
6283          { ac_try='test -z "$ac_c_werror_flag"
6284                          || test ! -s conftest.err'
6285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286   (eval $ac_try) 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   ac_cv_search_opendir="none required"
6297 else
6298   echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6300
6301 fi
6302 rm -f conftest.err conftest.$ac_objext \
6303       conftest$ac_exeext conftest.$ac_ext
6304 if test "$ac_cv_search_opendir" = no; then
6305   for ac_lib in dir; do
6306     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6307     cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h.  */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h.  */
6313
6314 /* Override any gcc2 internal prototype to avoid an error.  */
6315 #ifdef __cplusplus
6316 extern "C"
6317 #endif
6318 /* We use char because int might match the return type of a gcc2
6319    builtin and then its argument prototype would still apply.  */
6320 char opendir ();
6321 int
6322 main ()
6323 {
6324 opendir ();
6325   ;
6326   return 0;
6327 }
6328 _ACEOF
6329 rm -f conftest.$ac_objext conftest$ac_exeext
6330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6331   (eval $ac_link) 2>conftest.er1
6332   ac_status=$?
6333   grep -v '^ *+' conftest.er1 >conftest.err
6334   rm -f conftest.er1
6335   cat conftest.err >&5
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); } &&
6338          { ac_try='test -z "$ac_c_werror_flag"
6339                          || test ! -s conftest.err'
6340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341   (eval $ac_try) 2>&5
6342   ac_status=$?
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); }; } &&
6345          { ac_try='test -s conftest$ac_exeext'
6346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347   (eval $ac_try) 2>&5
6348   ac_status=$?
6349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); }; }; then
6351   ac_cv_search_opendir="-l$ac_lib"
6352 break
6353 else
6354   echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6356
6357 fi
6358 rm -f conftest.err conftest.$ac_objext \
6359       conftest$ac_exeext conftest.$ac_ext
6360   done
6361 fi
6362 LIBS=$ac_func_search_save_LIBS
6363 fi
6364 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6365 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6366 if test "$ac_cv_search_opendir" != no; then
6367   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6368
6369 fi
6370
6371 else
6372   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6373 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6374 if test "${ac_cv_search_opendir+set}" = set; then
6375   echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377   ac_func_search_save_LIBS=$LIBS
6378 ac_cv_search_opendir=no
6379 cat >conftest.$ac_ext <<_ACEOF
6380 /* confdefs.h.  */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h.  */
6385
6386 /* Override any gcc2 internal prototype to avoid an error.  */
6387 #ifdef __cplusplus
6388 extern "C"
6389 #endif
6390 /* We use char because int might match the return type of a gcc2
6391    builtin and then its argument prototype would still apply.  */
6392 char opendir ();
6393 int
6394 main ()
6395 {
6396 opendir ();
6397   ;
6398   return 0;
6399 }
6400 _ACEOF
6401 rm -f conftest.$ac_objext conftest$ac_exeext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6403   (eval $ac_link) 2>conftest.er1
6404   ac_status=$?
6405   grep -v '^ *+' conftest.er1 >conftest.err
6406   rm -f conftest.er1
6407   cat conftest.err >&5
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); } &&
6410          { ac_try='test -z "$ac_c_werror_flag"
6411                          || test ! -s conftest.err'
6412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413   (eval $ac_try) 2>&5
6414   ac_status=$?
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); }; } &&
6417          { ac_try='test -s conftest$ac_exeext'
6418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419   (eval $ac_try) 2>&5
6420   ac_status=$?
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); }; }; then
6423   ac_cv_search_opendir="none required"
6424 else
6425   echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6427
6428 fi
6429 rm -f conftest.err conftest.$ac_objext \
6430       conftest$ac_exeext conftest.$ac_ext
6431 if test "$ac_cv_search_opendir" = no; then
6432   for ac_lib in x; do
6433     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6434     cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h.  */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h.  */
6440
6441 /* Override any gcc2 internal prototype to avoid an error.  */
6442 #ifdef __cplusplus
6443 extern "C"
6444 #endif
6445 /* We use char because int might match the return type of a gcc2
6446    builtin and then its argument prototype would still apply.  */
6447 char opendir ();
6448 int
6449 main ()
6450 {
6451 opendir ();
6452   ;
6453   return 0;
6454 }
6455 _ACEOF
6456 rm -f conftest.$ac_objext conftest$ac_exeext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6458   (eval $ac_link) 2>conftest.er1
6459   ac_status=$?
6460   grep -v '^ *+' conftest.er1 >conftest.err
6461   rm -f conftest.er1
6462   cat conftest.err >&5
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); } &&
6465          { ac_try='test -z "$ac_c_werror_flag"
6466                          || test ! -s conftest.err'
6467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468   (eval $ac_try) 2>&5
6469   ac_status=$?
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); }; } &&
6472          { ac_try='test -s conftest$ac_exeext'
6473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474   (eval $ac_try) 2>&5
6475   ac_status=$?
6476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477   (exit $ac_status); }; }; then
6478   ac_cv_search_opendir="-l$ac_lib"
6479 break
6480 else
6481   echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6483
6484 fi
6485 rm -f conftest.err conftest.$ac_objext \
6486       conftest$ac_exeext conftest.$ac_ext
6487   done
6488 fi
6489 LIBS=$ac_func_search_save_LIBS
6490 fi
6491 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6492 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6493 if test "$ac_cv_search_opendir" != no; then
6494   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6495
6496 fi
6497
6498 fi
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6509 do
6510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6511 echo "$as_me:$LINENO: checking for $ac_func" >&5
6512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6513 if eval "test \"\${$as_ac_var+set}\" = set"; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516   cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h.  */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h.  */
6522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6524 #define $ac_func innocuous_$ac_func
6525
6526 /* System header to define __stub macros and hopefully few prototypes,
6527     which can conflict with char $ac_func (); below.
6528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6529     <limits.h> exists even on freestanding compilers.  */
6530
6531 #ifdef __STDC__
6532 # include <limits.h>
6533 #else
6534 # include <assert.h>
6535 #endif
6536
6537 #undef $ac_func
6538
6539 /* Override any gcc2 internal prototype to avoid an error.  */
6540 #ifdef __cplusplus
6541 extern "C"
6542 {
6543 #endif
6544 /* We use char because int might match the return type of a gcc2
6545    builtin and then its argument prototype would still apply.  */
6546 char $ac_func ();
6547 /* The GNU C library defines this for functions which it implements
6548     to always fail with ENOSYS.  Some functions are actually named
6549     something starting with __ and the normal name is an alias.  */
6550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6551 choke me
6552 #else
6553 char (*f) () = $ac_func;
6554 #endif
6555 #ifdef __cplusplus
6556 }
6557 #endif
6558
6559 int
6560 main ()
6561 {
6562 return f != $ac_func;
6563   ;
6564   return 0;
6565 }
6566 _ACEOF
6567 rm -f conftest.$ac_objext conftest$ac_exeext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6569   (eval $ac_link) 2>conftest.er1
6570   ac_status=$?
6571   grep -v '^ *+' conftest.er1 >conftest.err
6572   rm -f conftest.er1
6573   cat conftest.err >&5
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); } &&
6576          { ac_try='test -z "$ac_c_werror_flag"
6577                          || test ! -s conftest.err'
6578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579   (eval $ac_try) 2>&5
6580   ac_status=$?
6581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582   (exit $ac_status); }; } &&
6583          { ac_try='test -s conftest$ac_exeext'
6584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585   (eval $ac_try) 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); }; }; then
6589   eval "$as_ac_var=yes"
6590 else
6591   echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 eval "$as_ac_var=no"
6595 fi
6596 rm -f conftest.err conftest.$ac_objext \
6597       conftest$ac_exeext conftest.$ac_ext
6598 fi
6599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6601 if test `eval echo '${'$as_ac_var'}'` = yes; then
6602   cat >>confdefs.h <<_ACEOF
6603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6604 _ACEOF
6605
6606 fi
6607 done
6608
6609
6610
6611 for ac_func in nanosleep nl_langinfo
6612 do
6613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6614 echo "$as_me:$LINENO: checking for $ac_func" >&5
6615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6616 if eval "test \"\${$as_ac_var+set}\" = set"; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619   cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h.  */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h.  */
6625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6627 #define $ac_func innocuous_$ac_func
6628
6629 /* System header to define __stub macros and hopefully few prototypes,
6630     which can conflict with char $ac_func (); below.
6631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6632     <limits.h> exists even on freestanding compilers.  */
6633
6634 #ifdef __STDC__
6635 # include <limits.h>
6636 #else
6637 # include <assert.h>
6638 #endif
6639
6640 #undef $ac_func
6641
6642 /* Override any gcc2 internal prototype to avoid an error.  */
6643 #ifdef __cplusplus
6644 extern "C"
6645 {
6646 #endif
6647 /* We use char because int might match the return type of a gcc2
6648    builtin and then its argument prototype would still apply.  */
6649 char $ac_func ();
6650 /* The GNU C library defines this for functions which it implements
6651     to always fail with ENOSYS.  Some functions are actually named
6652     something starting with __ and the normal name is an alias.  */
6653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6654 choke me
6655 #else
6656 char (*f) () = $ac_func;
6657 #endif
6658 #ifdef __cplusplus
6659 }
6660 #endif
6661
6662 int
6663 main ()
6664 {
6665 return f != $ac_func;
6666   ;
6667   return 0;
6668 }
6669 _ACEOF
6670 rm -f conftest.$ac_objext conftest$ac_exeext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672   (eval $ac_link) 2>conftest.er1
6673   ac_status=$?
6674   grep -v '^ *+' conftest.er1 >conftest.err
6675   rm -f conftest.er1
6676   cat conftest.err >&5
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); } &&
6679          { ac_try='test -z "$ac_c_werror_flag"
6680                          || test ! -s conftest.err'
6681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682   (eval $ac_try) 2>&5
6683   ac_status=$?
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); }; } &&
6686          { ac_try='test -s conftest$ac_exeext'
6687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688   (eval $ac_try) 2>&5
6689   ac_status=$?
6690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691   (exit $ac_status); }; }; then
6692   eval "$as_ac_var=yes"
6693 else
6694   echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6696
6697 eval "$as_ac_var=no"
6698 fi
6699 rm -f conftest.err conftest.$ac_objext \
6700       conftest$ac_exeext conftest.$ac_ext
6701 fi
6702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6704 if test `eval echo '${'$as_ac_var'}'` = yes; then
6705   cat >>confdefs.h <<_ACEOF
6706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6707 _ACEOF
6708
6709 fi
6710 done
6711
6712
6713 for ac_header in varargs.h
6714 do
6715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6717   echo "$as_me:$LINENO: checking for $ac_header" >&5
6718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6720   echo $ECHO_N "(cached) $ECHO_C" >&6
6721 fi
6722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6724 else
6725   # Is the header compilable?
6726 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6728 cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h.  */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h.  */
6734 $ac_includes_default
6735 #include <$ac_header>
6736 _ACEOF
6737 rm -f conftest.$ac_objext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739   (eval $ac_compile) 2>conftest.er1
6740   ac_status=$?
6741   grep -v '^ *+' conftest.er1 >conftest.err
6742   rm -f conftest.er1
6743   cat conftest.err >&5
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); } &&
6746          { ac_try='test -z "$ac_c_werror_flag"
6747                          || test ! -s conftest.err'
6748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749   (eval $ac_try) 2>&5
6750   ac_status=$?
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); }; } &&
6753          { ac_try='test -s conftest.$ac_objext'
6754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755   (eval $ac_try) 2>&5
6756   ac_status=$?
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); }; }; then
6759   ac_header_compiler=yes
6760 else
6761   echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6763
6764 ac_header_compiler=no
6765 fi
6766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6768 echo "${ECHO_T}$ac_header_compiler" >&6
6769
6770 # Is the header present?
6771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6773 cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h.  */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h.  */
6779 #include <$ac_header>
6780 _ACEOF
6781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6782   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6783   ac_status=$?
6784   grep -v '^ *+' conftest.er1 >conftest.err
6785   rm -f conftest.er1
6786   cat conftest.err >&5
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); } >/dev/null; then
6789   if test -s conftest.err; then
6790     ac_cpp_err=$ac_c_preproc_warn_flag
6791     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6792   else
6793     ac_cpp_err=
6794   fi
6795 else
6796   ac_cpp_err=yes
6797 fi
6798 if test -z "$ac_cpp_err"; then
6799   ac_header_preproc=yes
6800 else
6801   echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6803
6804   ac_header_preproc=no
6805 fi
6806 rm -f conftest.err conftest.$ac_ext
6807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6808 echo "${ECHO_T}$ac_header_preproc" >&6
6809
6810 # So?  What about this header?
6811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6812   yes:no: )
6813     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6817     ac_header_preproc=yes
6818     ;;
6819   no:yes:* )
6820     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6822     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6823 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6824     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6826     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6827 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6830     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6832     (
6833       cat <<\_ASBOX
6834 ## ------------------------------------------ ##
6835 ## Report this to the AC_PACKAGE_NAME lists.  ##
6836 ## ------------------------------------------ ##
6837 _ASBOX
6838     ) |
6839       sed "s/^/$as_me: WARNING:     /" >&2
6840     ;;
6841 esac
6842 echo "$as_me:$LINENO: checking for $ac_header" >&5
6843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6845   echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847   eval "$as_ac_Header=\$ac_header_preproc"
6848 fi
6849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6851
6852 fi
6853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6854   cat >>confdefs.h <<_ACEOF
6855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6856 _ACEOF
6857
6858 fi
6859
6860 done
6861
6862
6863 # End of readline/conio stuff
6864 # -----------------------------------------------------------------------
6865
6866
6867 # ---------------------------------------------------
6868 # Check for GMP support/directory
6869 # ---------------------------------------------------
6870 #GMP_SRC=
6871 #local_gmp="no"
6872 #AC_ARG_WITH(gmp,
6873 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6874 #  [
6875 #     case "$with_gmp" in
6876 #     no) : ;;
6877 #     yes|*)
6878 #       if test "$with_gmp" != "yes"; then
6879 #         GMP_INC="-I$with_gmp"
6880 #         GMP_LIBS="-lgmp"
6881 #         GMP_LDFLAGS="-L$with_gmp"
6882 #       else
6883 #          with_gmp="/usr/include"
6884 #       fi
6885 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6886 #          [ AC_MSG_RESULT(yes)
6887 #            AC_DEFINE(HAVE_GMP)
6888 #            GMP_LIBS="-lgmp"
6889 #            got_gmp="yes"
6890 #          ],
6891 #          [ AC_MSG_ERROR([*** gmp library missing])
6892 #          ]
6893 #       )
6894 #       ;;
6895 #     esac
6896 #  ],[
6897 #    # check for standard gmp library
6898 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6899 #    [ AC_MSG_RESULT(yes)
6900 #      AC_DEFINE(HAVE_GMP)
6901 #      got_gmp="yes"
6902 #      GMP_INC=
6903 #      GMP_LIBS="-lgmp"
6904 #    ], [
6905 #      # Did not find standard library, so use our own
6906 #      AC_MSG_RESULT(yes)
6907 #      AC_DEFINE(HAVE_GMP)
6908 #      got_gmp="yes"
6909 #      local_gmp="yes"
6910 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6911 #      GMP_LIBS="-lgmp"
6912 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6913 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6914 #    ])
6915 #  ]
6916 #)
6917 #AC_SUBST(GMP_INC)
6918 #AC_SUBST(GMP_LIBS)
6919 #AC_SUBST(GMP_LDFLAGS)
6920 #AC_SUBST(GMP_SRC)
6921
6922 # End of GMP stuff
6923 # -----------------------------------------------------------------------
6924
6925
6926 # ---------------------------------------------------
6927 # Check for CWEB support/directory
6928 # ---------------------------------------------------
6929 #CWEB_SRC=
6930 #CWEB=/bin
6931 #local_cweb="no"
6932 #AC_ARG_WITH(cweb,
6933 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6934 #  [
6935 #     case "$with_cweb" in
6936 #     no) : ;;
6937 #     yes|*)
6938 #       if test "$with_cweb" != "yes"; then
6939 #         CWEB_INC="-I$with_cweb"
6940 #         CWEB_LIBS="-lcweb"
6941 #         CWEB_LDFLAGS="-L$with_cweb"
6942 #       else
6943 #          with_cweb="/usr/include"
6944 #       fi
6945 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6946 #          [ AC_MSG_RESULT(yes)
6947 #            AC_DEFINE(HAVE_CWEB)
6948 #            CWEB_LIBS="-lcweb"
6949 #            got_cweb="yes"
6950 #          ],
6951 #          [ AC_MSG_ERROR([*** cweb library missing])
6952 #          ]
6953 #       )
6954 #       ;;
6955 #     esac
6956 #  ],[
6957 #    # check for standard cweb library
6958 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6959 #    [ AC_MSG_RESULT(yes)
6960 #      AC_DEFINE(HAVE_CWEB)
6961 #      got_cweb="yes"
6962 #      CWEB_INC=
6963 #      CWEB_LIBS="-lcweb"
6964 #    ], [
6965 #      # Did not find starndard library, so use our own
6966 #      AC_MSG_RESULT(yes)
6967 #      AC_DEFINE(HAVE_CWEB)
6968 #      got_cweb="yes"
6969 #      local_cweb="yes"
6970 #      CWEB=${TOP_DIR}/depkgs/cweb
6971 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6972 #      CWEB_LIBS="-lcweb"
6973 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6974 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6975 #    ])
6976 #  ]
6977 #)
6978 #AC_SUBST(CWEB)
6979 #AC_SUBST(CWEB_INC)
6980 #AC_SUBST(CWEB_LIBS)
6981 #AC_SUBST(CWEB_LDFLAGS)
6982 #AC_SUBST(CWEB_SRC)
6983
6984 # End of CWEB stuff
6985 # -----------------------------------------------------------------------
6986
6987
6988
6989 # -----------------------------------------------------------
6990 # Check whether user wants TCP wrappers support (default off)
6991 # -----------------------------------------------------------
6992 TCPW_MSG="no"
6993
6994 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6995 if test "${with_tcp_wrappers+set}" = set; then
6996   withval="$with_tcp_wrappers"
6997
6998     if test "x$withval" != "xno" ; then
6999        saved_LIBS="$LIBS"
7000        LIBS="$saved_LIBS -lwrap"
7001        echo "$as_me:$LINENO: checking for libwrap" >&5
7002 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7003        cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h.  */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h.  */
7009  #include <tcpd.h>
7010              int deny_severity = 0;
7011              int allow_severity = 0;
7012              struct request_info *req;
7013 int
7014 main ()
7015 {
7016  hosts_access(req);
7017   ;
7018   return 0;
7019 }
7020 _ACEOF
7021 rm -f conftest.$ac_objext conftest$ac_exeext
7022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7023   (eval $ac_link) 2>conftest.er1
7024   ac_status=$?
7025   grep -v '^ *+' conftest.er1 >conftest.err
7026   rm -f conftest.er1
7027   cat conftest.err >&5
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); } &&
7030          { ac_try='test -z "$ac_c_werror_flag"
7031                          || test ! -s conftest.err'
7032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033   (eval $ac_try) 2>&5
7034   ac_status=$?
7035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036   (exit $ac_status); }; } &&
7037          { ac_try='test -s conftest$ac_exeext'
7038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039   (eval $ac_try) 2>&5
7040   ac_status=$?
7041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042   (exit $ac_status); }; }; then
7043
7044             echo "$as_me:$LINENO: result: yes" >&5
7045 echo "${ECHO_T}yes" >&6
7046             cat >>confdefs.h <<\_ACEOF
7047 #define HAVE_LIBWRAP 1
7048 _ACEOF
7049
7050             TCPW_MSG="yes"
7051
7052 else
7053   echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7055
7056
7057             LIBS="$saved_LIBS -lwrap -lnsl"
7058             cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h.  */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h.  */
7064  #include <tcpd.h>
7065                  int deny_severity = 0;
7066                  int allow_severity = 0;
7067                  struct request_info *req;
7068 int
7069 main ()
7070 {
7071  hosts_access(req);
7072   ;
7073   return 0;
7074 }
7075 _ACEOF
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078   (eval $ac_link) 2>conftest.er1
7079   ac_status=$?
7080   grep -v '^ *+' conftest.er1 >conftest.err
7081   rm -f conftest.er1
7082   cat conftest.err >&5
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); } &&
7085          { ac_try='test -z "$ac_c_werror_flag"
7086                          || test ! -s conftest.err'
7087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088   (eval $ac_try) 2>&5
7089   ac_status=$?
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); }; } &&
7092          { ac_try='test -s conftest$ac_exeext'
7093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094   (eval $ac_try) 2>&5
7095   ac_status=$?
7096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); }; }; then
7098
7099                  echo "$as_me:$LINENO: result: yes" >&5
7100 echo "${ECHO_T}yes" >&6
7101                  cat >>confdefs.h <<\_ACEOF
7102 #define HAVE_LIBWRAP 1
7103 _ACEOF
7104
7105                  TCPW_MSG="yes"
7106
7107 else
7108   echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7110
7111 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7112 echo "$as_me: error: *** libwrap missing" >&2;}
7113    { (exit 1); exit 1; }; }
7114
7115 fi
7116 rm -f conftest.err conftest.$ac_objext \
7117       conftest$ac_exeext conftest.$ac_ext
7118
7119 fi
7120 rm -f conftest.err conftest.$ac_objext \
7121       conftest$ac_exeext conftest.$ac_ext
7122     fi
7123
7124
7125 fi;
7126
7127 # ------------------------------------------
7128 # Where to place working dir
7129 # ------------------------------------------
7130 working_dir=`eval echo ${prefix}/var/bacula/working`
7131
7132 # Check whether --with-working-dir or --without-working-dir was given.
7133 if test "${with_working_dir+set}" = set; then
7134   withval="$with_working_dir"
7135
7136        if test "x$withval" != "xno" ; then
7137               working_dir=$withval
7138        fi
7139
7140
7141 fi;
7142
7143
7144
7145
7146 # ------------------------------------------
7147 # Where to place scriptdir (script files)
7148 # ------------------------------------------
7149 scriptdir=`eval echo ${sysconfdir}`
7150
7151 # Check whether --with-scriptdir or --without-scriptdir was given.
7152 if test "${with_scriptdir+set}" = set; then
7153   withval="$with_scriptdir"
7154
7155        if test "x$withval" != "xno" ; then
7156               scriptdir=$withval
7157        fi
7158
7159
7160 fi;
7161
7162
7163
7164
7165 # ------------------------------------------
7166 # Where to send dump email
7167 # ------------------------------------------
7168 dump_email=root@localhost
7169
7170 # Check whether --with-dump-email or --without-dump-email was given.
7171 if test "${with_dump_email+set}" = set; then
7172   withval="$with_dump_email"
7173
7174        if test "x$withval" != "xno" ; then
7175               dump_email=$withval
7176        fi
7177
7178
7179 fi;
7180
7181
7182
7183 # ------------------------------------------
7184 # Where to send job email
7185 # ------------------------------------------
7186 job_email=root@localhost
7187
7188 # Check whether --with-job-email or --without-job-email was given.
7189 if test "${with_job_email+set}" = set; then
7190   withval="$with_job_email"
7191
7192        if test "x$withval" != "xno" ; then
7193               job_email=$withval
7194        fi
7195
7196
7197 fi;
7198
7199
7200
7201 # ------------------------------------------
7202 # Where to find smtp host
7203 # ------------------------------------------
7204 smtp_host=localhost
7205
7206 # Check whether --with-smtp_host or --without-smtp_host was given.
7207 if test "${with_smtp_host+set}" = set; then
7208   withval="$with_smtp_host"
7209
7210        if test "x$withval" != "xno" ; then
7211               smtp_host=$withval
7212        fi
7213
7214
7215 fi;
7216
7217
7218
7219
7220 # ------------------------------------
7221 # Where to place pid files
7222 # ------------------------------------
7223 piddir=/var/run
7224
7225 # Check whether --with-pid-dir or --without-pid-dir was given.
7226 if test "${with_pid_dir+set}" = set; then
7227   withval="$with_pid_dir"
7228
7229         if test "x$withval" != "xno" ; then
7230             piddir=$withval
7231         fi
7232
7233
7234 fi;
7235
7236 cat >>confdefs.h <<_ACEOF
7237 #define _PATH_BACULA_PIDDIR "$piddir"
7238 _ACEOF
7239
7240
7241
7242
7243 # ------------------------------------
7244 # Where to place subsys "lock file"
7245 # ------------------------------------
7246 subsysdir=/var/run/subsys
7247
7248 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7249 if test "${with_subsys_dir+set}" = set; then
7250   withval="$with_subsys_dir"
7251
7252         if test "x$withval" != "xno" ; then
7253             subsysdir=$withval
7254         fi
7255
7256
7257 fi;
7258
7259
7260
7261
7262
7263 # ------------------------------------
7264 # Where to start assigning ports
7265 # ------------------------------------
7266 baseport=9101
7267
7268 # Check whether --with-baseport or --without-baseport was given.
7269 if test "${with_baseport+set}" = set; then
7270   withval="$with_baseport"
7271
7272         if test "x$withval" != "xno" ; then
7273              baseport=$withval
7274         fi
7275
7276
7277 fi;
7278
7279
7280 dir_port=`expr $baseport`
7281 fd_port=`expr $baseport + 1`
7282 sd_port=`expr $fd_port + 1`
7283
7284
7285
7286
7287
7288
7289 # ------------------------------------------
7290 # Generate passwords
7291 # ------------------------------------------
7292 dir_password=
7293
7294 # Check whether --with-dir-password or --without-dir-password was given.
7295 if test "${with_dir_password+set}" = set; then
7296   withval="$with_dir_password"
7297
7298        if test "x$withval" != "xno" ; then
7299            dir_password=$withval
7300        fi
7301
7302
7303 fi;
7304
7305 if test "x$dir_password" = "x" ; then
7306    if test "x$OPENSSL" = "xnone" ; then
7307 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7308       key=`autoconf/randpass 33`
7309    else
7310       key=`openssl rand -base64 33`
7311    fi
7312    dir_password=$key
7313 fi
7314
7315 fd_password=
7316
7317 # Check whether --with-fd-password or --without-fd-password was given.
7318 if test "${with_fd_password+set}" = set; then
7319   withval="$with_fd_password"
7320
7321        if test "x$withval" != "xno" ; then
7322            fd_password=$withval
7323        fi
7324
7325
7326 fi;
7327
7328 if test "x$fd_password" = "x" ; then
7329    if test "x$OPENSSL" = "xnone" ; then
7330 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7331       key=`autoconf/randpass 37`
7332    else
7333       key=`openssl rand -base64 33`
7334    fi
7335    fd_password=$key
7336 fi
7337
7338 sd_password=
7339
7340 # Check whether --with-sd-password or --without-sd-password was given.
7341 if test "${with_sd_password+set}" = set; then
7342   withval="$with_sd_password"
7343
7344        if test "x$withval" != "xno" ; then
7345            sd_password=$withval
7346        fi
7347
7348
7349 fi;
7350
7351 if test "x$sd_password" = "x" ; then
7352    if test "x$OPENSSL" = "xnone" ; then
7353 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7354       key=`autoconf/randpass 41`
7355    else
7356       key=`openssl rand -base64 33`
7357    fi
7358    sd_password=$key
7359 fi
7360
7361
7362
7363
7364
7365
7366
7367 #
7368 # Handle users and groups for each daemon
7369 #
7370 dir_user=
7371
7372 # Check whether --with-dir_user or --without-dir_user was given.
7373 if test "${with_dir_user+set}" = set; then
7374   withval="$with_dir_user"
7375
7376         if test "x$withval" != "x" ; then
7377              dir_user=$withval
7378         fi
7379
7380
7381 fi;
7382
7383 dir_group=
7384
7385 # Check whether --with-dir_group or --without-dir_group was given.
7386 if test "${with_dir_group+set}" = set; then
7387   withval="$with_dir_group"
7388
7389         if test "x$withval" != "x" ; then
7390              dir_group=$withval
7391         fi
7392
7393
7394 fi;
7395
7396 sd_user=
7397
7398 # Check whether --with-sd_user or --without-sd_user was given.
7399 if test "${with_sd_user+set}" = set; then
7400   withval="$with_sd_user"
7401
7402         if test "x$withval" != "x" ; then
7403              sd_user=$withval
7404         fi
7405
7406
7407 fi;
7408
7409 sd_group=
7410
7411 # Check whether --with-sd_group or --without-sd_group was given.
7412 if test "${with_sd_group+set}" = set; then
7413   withval="$with_sd_group"
7414
7415         if test "x$withval" != "x" ; then
7416              sd_group=$withval
7417         fi
7418
7419
7420 fi;
7421
7422 fd_user=
7423
7424 # Check whether --with-fd_user or --without-fd_user was given.
7425 if test "${with_fd_user+set}" = set; then
7426   withval="$with_fd_user"
7427
7428         if test "x$withval" != "x" ; then
7429              fd_user=$withval
7430         fi
7431
7432
7433 fi;
7434
7435 fd_group=
7436
7437 # Check whether --with-fd_group or --without-fd_group was given.
7438 if test "${with_fd_group+set}" = set; then
7439   withval="$with_fd_group"
7440
7441         if test "x$withval" != "x" ; then
7442              fd_group=$withval
7443         fi
7444
7445
7446 fi;
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458 #
7459 # allow setting default executable permissions
7460 #
7461 SBINPERM=0754
7462
7463 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7464 if test "${with_sbin_perm+set}" = set; then
7465   withval="$with_sbin_perm"
7466
7467         if test "x$withval" != "x" ; then
7468             SBINPERM=$withval
7469         fi
7470
7471
7472 fi;
7473
7474
7475
7476 # ------------------------------------------------
7477 # Bacula check for various SQL database engines
7478 # ------------------------------------------------
7479
7480 db_found=no
7481 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7482 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7483
7484 # Check whether --with-postgresql or --without-postgresql was given.
7485 if test "${with_postgresql+set}" = set; then
7486   withval="$with_postgresql"
7487
7488   if test "$withval" != "no"; then
7489       if test "$db_found" = "yes"; then
7490           echo "$as_me:$LINENO: result: error" >&5
7491 echo "${ECHO_T}error" >&6
7492           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7493 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7494    { (exit 1); exit 1; }; };
7495       fi
7496       if test "$withval" = "yes"; then
7497           if test -f /usr/local/include/libpq-fe.h; then
7498               POSTGRESQL_INCDIR=/usr/local/include
7499               POSTGRESQL_LIBDIR=/usr/local/lib
7500               POSTGRESQL_BINDIR=/usr/local/bin
7501           elif test -f /usr/include/libpq-fe.h; then
7502               POSTGRESQL_INCDIR=/usr/include
7503               POSTGRESQL_LIBDIR=/usr/lib
7504               POSTGRESQL_BINDIR=/usr/bin
7505           elif test -f /usr/include/pgsql/libpq-fe.h; then
7506               POSTGRESQL_INCDIR=/usr/include/pgsql
7507               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7508               POSTGRESQL_BINDIR=/usr/bin
7509           elif test -f /usr/include/postgresql/libpq-fe.h; then
7510               POSTGRESQL_INCDIR=/usr/include/postgresql
7511               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7512               POSTGRESQL_BINDIR=/usr/bin
7513           else
7514               echo "$as_me:$LINENO: result: no" >&5
7515 echo "${ECHO_T}no" >&6
7516               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7517 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7518    { (exit 1); exit 1; }; }
7519           fi
7520       elif test -f $withval/include/libpq-fe.h; then
7521           POSTGRESQL_INCDIR=$withval/include
7522           POSTGRESQL_LIBDIR=$withval/lib
7523           POSTGRESQL_BINDIR=$withval/bin
7524       else
7525           echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6
7527           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7528 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7529    { (exit 1); exit 1; }; }
7530       fi
7531       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7532       echo "$as_me:$LINENO: checking for crypt" >&5
7533 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7534 if test "${ac_cv_func_crypt+set}" = set; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537   cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h.  */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h.  */
7543 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
7544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7545 #define crypt innocuous_crypt
7546
7547 /* System header to define __stub macros and hopefully few prototypes,
7548     which can conflict with char crypt (); below.
7549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7550     <limits.h> exists even on freestanding compilers.  */
7551
7552 #ifdef __STDC__
7553 # include <limits.h>
7554 #else
7555 # include <assert.h>
7556 #endif
7557
7558 #undef crypt
7559
7560 /* Override any gcc2 internal prototype to avoid an error.  */
7561 #ifdef __cplusplus
7562 extern "C"
7563 {
7564 #endif
7565 /* We use char because int might match the return type of a gcc2
7566    builtin and then its argument prototype would still apply.  */
7567 char crypt ();
7568 /* The GNU C library defines this for functions which it implements
7569     to always fail with ENOSYS.  Some functions are actually named
7570     something starting with __ and the normal name is an alias.  */
7571 #if defined (__stub_crypt) || defined (__stub___crypt)
7572 choke me
7573 #else
7574 char (*f) () = crypt;
7575 #endif
7576 #ifdef __cplusplus
7577 }
7578 #endif
7579
7580 int
7581 main ()
7582 {
7583 return f != crypt;
7584   ;
7585   return 0;
7586 }
7587 _ACEOF
7588 rm -f conftest.$ac_objext conftest$ac_exeext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7590   (eval $ac_link) 2>conftest.er1
7591   ac_status=$?
7592   grep -v '^ *+' conftest.er1 >conftest.err
7593   rm -f conftest.er1
7594   cat conftest.err >&5
7595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); } &&
7597          { ac_try='test -z "$ac_c_werror_flag"
7598                          || test ! -s conftest.err'
7599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600   (eval $ac_try) 2>&5
7601   ac_status=$?
7602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603   (exit $ac_status); }; } &&
7604          { ac_try='test -s conftest$ac_exeext'
7605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606   (eval $ac_try) 2>&5
7607   ac_status=$?
7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); }; }; then
7610   ac_cv_func_crypt=yes
7611 else
7612   echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7614
7615 ac_cv_func_crypt=no
7616 fi
7617 rm -f conftest.err conftest.$ac_objext \
7618       conftest$ac_exeext conftest.$ac_ext
7619 fi
7620 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7621 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7622 if test $ac_cv_func_crypt = yes; then
7623   :
7624 else
7625   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7626 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7627 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7628   echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630   ac_check_lib_save_LIBS=$LIBS
7631 LIBS="-lcrypt  $LIBS"
7632 cat >conftest.$ac_ext <<_ACEOF
7633 /* confdefs.h.  */
7634 _ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h.  */
7638
7639 /* Override any gcc2 internal prototype to avoid an error.  */
7640 #ifdef __cplusplus
7641 extern "C"
7642 #endif
7643 /* We use char because int might match the return type of a gcc2
7644    builtin and then its argument prototype would still apply.  */
7645 char crypt ();
7646 int
7647 main ()
7648 {
7649 crypt ();
7650   ;
7651   return 0;
7652 }
7653 _ACEOF
7654 rm -f conftest.$ac_objext conftest$ac_exeext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656   (eval $ac_link) 2>conftest.er1
7657   ac_status=$?
7658   grep -v '^ *+' conftest.er1 >conftest.err
7659   rm -f conftest.er1
7660   cat conftest.err >&5
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); } &&
7663          { ac_try='test -z "$ac_c_werror_flag"
7664                          || test ! -s conftest.err'
7665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666   (eval $ac_try) 2>&5
7667   ac_status=$?
7668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669   (exit $ac_status); }; } &&
7670          { ac_try='test -s conftest$ac_exeext'
7671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672   (eval $ac_try) 2>&5
7673   ac_status=$?
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); }; }; then
7676   ac_cv_lib_crypt_crypt=yes
7677 else
7678   echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7680
7681 ac_cv_lib_crypt_crypt=no
7682 fi
7683 rm -f conftest.err conftest.$ac_objext \
7684       conftest$ac_exeext conftest.$ac_ext
7685 LIBS=$ac_check_lib_save_LIBS
7686 fi
7687 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7688 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7689 if test $ac_cv_lib_crypt_crypt = yes; then
7690   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7691 fi
7692
7693 fi
7694
7695       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7696       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7697       SQL_BINDIR=$POSTGRESQL_BINDIR
7698       cat >>confdefs.h <<\_ACEOF
7699 #define HAVE_POSTGRESQL 1
7700 _ACEOF
7701
7702       echo "$as_me:$LINENO: result: yes" >&5
7703 echo "${ECHO_T}yes" >&6
7704       db_found=yes
7705       support_postgresql=yes
7706       db_name=PostgreSQL
7707       DB_NAME=postgresql
7708   else
7709       echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6
7711   fi
7712
7713 else
7714
7715   echo "$as_me:$LINENO: result: no" >&5
7716 echo "${ECHO_T}no" >&6
7717
7718 fi;
7719
7720
7721
7722
7723
7724
7725
7726 db_found=no
7727 echo "$as_me:$LINENO: checking for MySQL support" >&5
7728 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7729
7730 # Check whether --with-mysql or --without-mysql was given.
7731 if test "${with_mysql+set}" = set; then
7732   withval="$with_mysql"
7733
7734   if test "$withval" != "no"; then
7735         if test "$withval" = "yes"; then
7736                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7737                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7738                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7739                         MYSQL_BINDIR=/usr/local/mysql/bin
7740                 elif test -f /usr/include/mysql/mysql.h; then
7741                         MYSQL_INCDIR=/usr/include/mysql
7742                         MYSQL_LIBDIR=/usr/lib/mysql
7743                         MYSQL_BINDIR=/usr/bin
7744                 elif test -f /usr/include/mysql.h; then
7745                         MYSQL_INCDIR=/usr/include
7746                         MYSQL_LIBDIR=/usr/lib
7747                         MYSQL_BINDIR=/usr/bin
7748                 elif test -f /usr/local/include/mysql/mysql.h; then
7749                         MYSQL_INCDIR=/usr/local/include/mysql
7750                         MYSQL_LIBDIR=/usr/local/lib/mysql
7751                         MYSQL_BINDIR=/usr/local/bin
7752                 elif test -f /usr/local/include/mysql.h; then
7753                         MYSQL_INCDIR=/usr/local/include
7754                         MYSQL_LIBDIR=/usr/local/lib
7755                         MYSQL_BINDIR=/usr/local/bin
7756                 else
7757                    echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6
7759                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7760 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7761    { (exit 1); exit 1; }; }
7762                 fi
7763         else
7764                 if test -f $withval/include/mysql/mysql.h; then
7765                         MYSQL_INCDIR=$withval/include/mysql
7766                         MYSQL_LIBDIR=$withval/lib/mysql
7767                         MYSQL_BINDIR=$withval/bin
7768                 elif test -f $withval/include/mysql.h; then
7769                         MYSQL_INCDIR=$withval/include
7770                         MYSQL_LIBDIR=$withval/lib
7771                         MYSQL_BINDIR=$withval/bin
7772                 else
7773                    echo "$as_me:$LINENO: result: no" >&5
7774 echo "${ECHO_T}no" >&6
7775                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7776 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7777    { (exit 1); exit 1; }; }
7778                 fi
7779         fi
7780     SQL_INCLUDE=-I$MYSQL_INCDIR
7781     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7782        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7783        cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_THREAD_SAFE_MYSQL 1
7785 _ACEOF
7786
7787     else
7788        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7789     fi
7790     SQL_BINDIR=$MYSQL_BINDIR
7791
7792     cat >>confdefs.h <<\_ACEOF
7793 #define HAVE_MYSQL 1
7794 _ACEOF
7795
7796     echo "$as_me:$LINENO: result: yes" >&5
7797 echo "${ECHO_T}yes" >&6
7798     db_found=yes
7799     support_mysql=yes
7800     db_name=MySQL
7801     DB_NAME=mysql
7802
7803   else
7804         echo "$as_me:$LINENO: result: no" >&5
7805 echo "${ECHO_T}no" >&6
7806   fi
7807
7808
7809 fi;
7810
7811
7812 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7813 if test "${with_embedded_mysql+set}" = set; then
7814   withval="$with_embedded_mysql"
7815
7816   if test "$withval" != "no"; then
7817         if test "$withval" = "yes"; then
7818                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7819                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7820                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7821                         MYSQL_BINDIR=/usr/local/mysql/bin
7822                 elif test -f /usr/include/mysql/mysql.h; then
7823                         MYSQL_INCDIR=/usr/include/mysql
7824                         MYSQL_LIBDIR=/usr/lib/mysql
7825                         MYSQL_BINDIR=/usr/bin
7826                 elif test -f /usr/include/mysql.h; then
7827                         MYSQL_INCDIR=/usr/include
7828                         MYSQL_LIBDIR=/usr/lib
7829                         MYSQL_BINDIR=/usr/bin
7830                 elif test -f /usr/local/include/mysql/mysql.h; then
7831                         MYSQL_INCDIR=/usr/local/include/mysql
7832                         MYSQL_LIBDIR=/usr/local/lib/mysql
7833                         MYSQL_BINDIR=/usr/local/bin
7834                 elif test -f /usr/local/include/mysql.h; then
7835                         MYSQL_INCDIR=/usr/local/include
7836                         MYSQL_LIBDIR=/usr/local/lib
7837                         MYSQL_BINDIR=/usr/local/bin
7838                 else
7839                    echo "$as_me:$LINENO: result: no" >&5
7840 echo "${ECHO_T}no" >&6
7841                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7842 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7843    { (exit 1); exit 1; }; }
7844                 fi
7845         else
7846                 if test -f $withval/include/mysql/mysql.h; then
7847                         MYSQL_INCDIR=$withval/include/mysql
7848                         MYSQL_LIBDIR=$withval/lib/mysql
7849                         MYSQL_BINDIR=$withval/bin
7850                 elif test -f $withval/include/mysql.h; then
7851                         MYSQL_INCDIR=$withval/include
7852                         MYSQL_LIBDIR=$withval/lib
7853                         MYSQL_BINDIR=$withval/bin
7854                 else
7855                    echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6
7857                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7858 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7859    { (exit 1); exit 1; }; }
7860                 fi
7861         fi
7862     SQL_INCLUDE=-I$MYSQL_INCDIR
7863     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7864     SQL_BINDIR=$MYSQL_BINDIR
7865
7866     cat >>confdefs.h <<\_ACEOF
7867 #define HAVE_MYSQL 1
7868 _ACEOF
7869
7870     cat >>confdefs.h <<\_ACEOF
7871 #define HAVE_EMBEDDED_MYSQL 1
7872 _ACEOF
7873
7874     echo "$as_me:$LINENO: result: yes" >&5
7875 echo "${ECHO_T}yes" >&6
7876     db_found=yes
7877     support_mysql=yes
7878     db_name=MySQL
7879     DB_NAME=mysql
7880
7881   else
7882         echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6
7884   fi
7885
7886
7887 fi;
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897 db_found=no
7898 echo "$as_me:$LINENO: checking for SQLite support" >&5
7899 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7900
7901 # Check whether --with-sqlite or --without-sqlite was given.
7902 if test "${with_sqlite+set}" = set; then
7903   withval="$with_sqlite"
7904
7905   if test "$withval" != "no"; then
7906      if test "$withval" = "yes"; then
7907         if test -f /usr/local/include/sqlite.h; then
7908            SQLITE_INCDIR=/usr/local/include
7909            SQLITE_LIBDIR=/usr/local/lib
7910            SQLITE_BINDIR=/usr/local/bin
7911         elif test -f /usr/include/sqlite.h; then
7912            SQLITE_INCDIR=/usr/include
7913            SQLITE_LIBDIR=/usr/lib
7914            SQLITE_BINDIR=/usr/bin
7915         else
7916            echo "$as_me:$LINENO: result: no" >&5
7917 echo "${ECHO_T}no" >&6
7918            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7919 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7920    { (exit 1); exit 1; }; }
7921         fi
7922      else
7923         if test -f $withval/sqlite.h; then
7924            SQLITE_INCDIR=$withval
7925            SQLITE_LIBDIR=$withval
7926            SQLITE_BINDIR=$withval
7927         else
7928            echo "$as_me:$LINENO: result: no" >&5
7929 echo "${ECHO_T}no" >&6
7930            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7931 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7932    { (exit 1); exit 1; }; }
7933         fi
7934      fi
7935      SQL_INCLUDE=-I$SQLITE_INCDIR
7936      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7937      SQL_BINDIR=$SQLITE_BINDIR
7938
7939      cat >>confdefs.h <<\_ACEOF
7940 #define HAVE_SQLITE 1
7941 _ACEOF
7942
7943      echo "$as_me:$LINENO: result: yes" >&5
7944 echo "${ECHO_T}yes" >&6
7945      db_found=yes
7946      support_sqlite=yes
7947      db_name=SQLite
7948      DB_NAME=sqlite
7949
7950   else
7951      echo "$as_me:$LINENO: result: no" >&5
7952 echo "${ECHO_T}no" >&6
7953   fi
7954
7955 else
7956
7957   echo "$as_me:$LINENO: result: no" >&5
7958 echo "${ECHO_T}no" >&6
7959
7960 fi;
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970 cat >>confdefs.h <<\_ACEOF
7971 #define PROTOTYPES 1
7972 _ACEOF
7973
7974
7975 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7976     if test -z "$CCOPTS"; then
7977         CCOPTS='-g -O2 -Wall'
7978     fi
7979     CFLAGS="$CCOPTS"
7980 fi
7981
7982
7983
7984
7985 largefile_support="no"
7986
7987    # Check whether --enable-largefile or --disable-largefile was given.
7988 if test "${enable_largefile+set}" = set; then
7989   enableval="$enable_largefile"
7990
7991 fi;
7992    if test "$enable_largefile" != no; then
7993      if test -n "$ac_tool_prefix"; then
7994   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7995 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7996 echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7998 if test "${ac_cv_prog_GETCONF+set}" = set; then
7999   echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001   if test -n "$GETCONF"; then
8002   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007   IFS=$as_save_IFS
8008   test -z "$as_dir" && as_dir=.
8009   for ac_exec_ext in '' $ac_executable_extensions; do
8010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8011     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013     break 2
8014   fi
8015 done
8016 done
8017
8018 fi
8019 fi
8020 GETCONF=$ac_cv_prog_GETCONF
8021 if test -n "$GETCONF"; then
8022   echo "$as_me:$LINENO: result: $GETCONF" >&5
8023 echo "${ECHO_T}$GETCONF" >&6
8024 else
8025   echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6
8027 fi
8028
8029 fi
8030 if test -z "$ac_cv_prog_GETCONF"; then
8031   ac_ct_GETCONF=$GETCONF
8032   # Extract the first word of "getconf", so it can be a program name with args.
8033 set dummy getconf; ac_word=$2
8034 echo "$as_me:$LINENO: checking for $ac_word" >&5
8035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8036 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8037   echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039   if test -n "$ac_ct_GETCONF"; then
8040   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045   IFS=$as_save_IFS
8046   test -z "$as_dir" && as_dir=.
8047   for ac_exec_ext in '' $ac_executable_extensions; do
8048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8049     ac_cv_prog_ac_ct_GETCONF="getconf"
8050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8051     break 2
8052   fi
8053 done
8054 done
8055
8056 fi
8057 fi
8058 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8059 if test -n "$ac_ct_GETCONF"; then
8060   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8061 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8062 else
8063   echo "$as_me:$LINENO: result: no" >&5
8064 echo "${ECHO_T}no" >&6
8065 fi
8066
8067   GETCONF=$ac_ct_GETCONF
8068 else
8069   GETCONF="$ac_cv_prog_GETCONF"
8070 fi
8071
8072      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8073 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8074 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8075   echo $ECHO_N "(cached) $ECHO_C" >&6
8076 else
8077   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8078         ac_cv_sys_largefile_CFLAGS=no
8079         case "$host_os" in
8080            # IRIX 6.2 and later require cc -n32.
8081            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8082              if test "$GCC" != yes; then
8083                ac_cv_sys_largefile_CFLAGS=-n32
8084              fi
8085              ac_save_CC="$CC"
8086              CC="$CC $ac_cv_sys_largefile_CFLAGS"
8087              cat >conftest.$ac_ext <<_ACEOF
8088 /* confdefs.h.  */
8089 _ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h.  */
8093
8094 int
8095 main ()
8096 {
8097
8098   ;
8099   return 0;
8100 }
8101 _ACEOF
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104   (eval $ac_link) 2>conftest.er1
8105   ac_status=$?
8106   grep -v '^ *+' conftest.er1 >conftest.err
8107   rm -f conftest.er1
8108   cat conftest.err >&5
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } &&
8111          { ac_try='test -z "$ac_c_werror_flag"
8112                          || test ! -s conftest.err'
8113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114   (eval $ac_try) 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); }; } &&
8118          { ac_try='test -s conftest$ac_exeext'
8119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120   (eval $ac_try) 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); }; }; then
8124   :
8125 else
8126   echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8128
8129 ac_cv_sys_largefile_CFLAGS=no
8130 fi
8131 rm -f conftest.err conftest.$ac_objext \
8132       conftest$ac_exeext conftest.$ac_ext
8133              CC="$ac_save_CC"
8134            esac
8135       }
8136 fi
8137 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8138 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8139      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8140 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8141 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8142   echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8145         ac_cv_sys_largefile_LDFLAGS=no
8146
8147       }
8148 fi
8149 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8150 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8151      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8152 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8153 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8154   echo $ECHO_N "(cached) $ECHO_C" >&6
8155 else
8156   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8157         ac_cv_sys_largefile_LIBS=no
8158
8159       }
8160 fi
8161 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8162 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8163
8164      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8165        case "$ac_flag" in
8166        no) ;;
8167        -D_FILE_OFFSET_BITS=*) ;;
8168        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8169        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8170        -D?* | -I?*)
8171          case "$ac_flag" in
8172    no) ;;
8173    ?*)
8174      case "$CPPFLAGS" in
8175      '') CPPFLAGS="$ac_flag" ;;
8176      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8177      esac ;;
8178    esac ;;
8179        *)
8180          case "$ac_flag" in
8181    no) ;;
8182    ?*)
8183      case "$CFLAGS" in
8184      '') CFLAGS="$ac_flag" ;;
8185      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8186      esac ;;
8187    esac ;;
8188        esac
8189      done
8190      case "$ac_cv_sys_largefile_LDFLAGS" in
8191    no) ;;
8192    ?*)
8193      case "$LDFLAGS" in
8194      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8195      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8196      esac ;;
8197    esac
8198      case "$ac_cv_sys_largefile_LIBS" in
8199    no) ;;
8200    ?*)
8201      case "$LIBS" in
8202      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8203      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8204      esac ;;
8205    esac
8206      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8207 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8208 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8209   echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211   ac_cv_sys_file_offset_bits=no
8212       case "$host_os" in
8213         # HP-UX 10.20 and later
8214         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8215           ac_cv_sys_file_offset_bits=64 ;;
8216         esac
8217       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8218         case "$ac_flag" in
8219         -D_FILE_OFFSET_BITS)
8220           ac_cv_sys_file_offset_bits=1 ;;
8221         -D_FILE_OFFSET_BITS=*)
8222           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8223         esac
8224       done
8225
8226 fi
8227 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8228 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8229    if test "$ac_cv_sys_file_offset_bits" != no; then
8230
8231 cat >>confdefs.h <<_ACEOF
8232 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8233 _ACEOF
8234
8235    fi
8236      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8237 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8238 if test "${ac_cv_sys_largefile_source+set}" = set; then
8239   echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241   ac_cv_sys_largefile_source=no
8242       case "$host_os" in
8243         # HP-UX 10.20 and later
8244         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8245           ac_cv_sys_largefile_source=1 ;;
8246         esac
8247       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8248         case "$ac_flag" in
8249         -D_LARGEFILE_SOURCE)
8250           ac_cv_sys_largefile_source=1 ;;
8251         -D_LARGEFILE_SOURCE=*)
8252           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8253         esac
8254       done
8255
8256 fi
8257 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8258 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8259    if test "$ac_cv_sys_largefile_source" != no; then
8260
8261 cat >>confdefs.h <<_ACEOF
8262 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8263 _ACEOF
8264
8265    fi
8266      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8267 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8268 if test "${ac_cv_sys_large_files+set}" = set; then
8269   echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271   ac_cv_sys_large_files=no
8272       case "$host_os" in
8273         # AIX 4.2 and later
8274         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
8275           ac_cv_sys_large_files=1 ;;
8276         esac
8277       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8278         case "$ac_flag" in
8279         -D_LARGE_FILES)
8280           ac_cv_sys_large_files=1 ;;
8281         -D_LARGE_FILES=*)
8282           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8283         esac
8284       done
8285
8286 fi
8287 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8288 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8289    if test "$ac_cv_sys_large_files" != no; then
8290
8291 cat >>confdefs.h <<_ACEOF
8292 #define _LARGE_FILES $ac_cv_sys_large_files
8293 _ACEOF
8294
8295    fi
8296    fi
8297
8298
8299
8300 echo "$as_me:$LINENO: checking for X" >&5
8301 echo $ECHO_N "checking for X... $ECHO_C" >&6
8302
8303
8304 # Check whether --with-x or --without-x was given.
8305 if test "${with_x+set}" = set; then
8306   withval="$with_x"
8307
8308 fi;
8309 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8310 if test "x$with_x" = xno; then
8311   # The user explicitly disabled X.
8312   have_x=disabled
8313 else
8314   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8315     # Both variables are already set.
8316     have_x=yes
8317   else
8318     if test "${ac_cv_have_x+set}" = set; then
8319   echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321   # One or both of the vars are not set, and there is no cached value.
8322 ac_x_includes=no ac_x_libraries=no
8323 rm -fr conftest.dir
8324 if mkdir conftest.dir; then
8325   cd conftest.dir
8326   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8327   cat >Imakefile <<'_ACEOF'
8328 acfindx:
8329         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8330 _ACEOF
8331   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8332     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8333     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8334     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8335     for ac_extension in a so sl; do
8336       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8337          test -f $ac_im_libdir/libX11.$ac_extension; then
8338         ac_im_usrlibdir=$ac_im_libdir; break
8339       fi
8340     done
8341     # Screen out bogus values from the imake configuration.  They are
8342     # bogus both because they are the default anyway, and because
8343     # using them would break gcc on systems where it needs fixed includes.
8344     case $ac_im_incroot in
8345         /usr/include) ;;
8346         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8347     esac
8348     case $ac_im_usrlibdir in
8349         /usr/lib | /lib) ;;
8350         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8351     esac
8352   fi
8353   cd ..
8354   rm -fr conftest.dir
8355 fi
8356
8357 # Standard set of common directories for X headers.
8358 # Check X11 before X11Rn because it is often a symlink to the current release.
8359 ac_x_header_dirs='
8360 /usr/X11/include
8361 /usr/X11R6/include
8362 /usr/X11R5/include
8363 /usr/X11R4/include
8364
8365 /usr/include/X11
8366 /usr/include/X11R6
8367 /usr/include/X11R5
8368 /usr/include/X11R4
8369
8370 /usr/local/X11/include
8371 /usr/local/X11R6/include
8372 /usr/local/X11R5/include
8373 /usr/local/X11R4/include
8374
8375 /usr/local/include/X11
8376 /usr/local/include/X11R6
8377 /usr/local/include/X11R5
8378 /usr/local/include/X11R4
8379
8380 /usr/X386/include
8381 /usr/x386/include
8382 /usr/XFree86/include/X11
8383
8384 /usr/include
8385 /usr/local/include
8386 /usr/unsupported/include
8387 /usr/athena/include
8388 /usr/local/x11r5/include
8389 /usr/lpp/Xamples/include
8390
8391 /usr/openwin/include
8392 /usr/openwin/share/include'
8393
8394 if test "$ac_x_includes" = no; then
8395   # Guess where to find include files, by looking for Intrinsic.h.
8396   # First, try using that file with no special directory specified.
8397   cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h.  */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h.  */
8403 #include <X11/Intrinsic.h>
8404 _ACEOF
8405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8406   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8407   ac_status=$?
8408   grep -v '^ *+' conftest.er1 >conftest.err
8409   rm -f conftest.er1
8410   cat conftest.err >&5
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } >/dev/null; then
8413   if test -s conftest.err; then
8414     ac_cpp_err=$ac_c_preproc_warn_flag
8415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8416   else
8417     ac_cpp_err=
8418   fi
8419 else
8420   ac_cpp_err=yes
8421 fi
8422 if test -z "$ac_cpp_err"; then
8423   # We can compile using X headers with no special include directory.
8424 ac_x_includes=
8425 else
8426   echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8428
8429   for ac_dir in $ac_x_header_dirs; do
8430   if test -r "$ac_dir/X11/Intrinsic.h"; then
8431     ac_x_includes=$ac_dir
8432     break
8433   fi
8434 done
8435 fi
8436 rm -f conftest.err conftest.$ac_ext
8437 fi # $ac_x_includes = no
8438
8439 if test "$ac_x_libraries" = no; then
8440   # Check for the libraries.
8441   # See if we find them without any special options.
8442   # Don't add to $LIBS permanently.
8443   ac_save_LIBS=$LIBS
8444   LIBS="-lXt $LIBS"
8445   cat >conftest.$ac_ext <<_ACEOF
8446 /* confdefs.h.  */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h.  */
8451 #include <X11/Intrinsic.h>
8452 int
8453 main ()
8454 {
8455 XtMalloc (0)
8456   ;
8457   return 0;
8458 }
8459 _ACEOF
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8462   (eval $ac_link) 2>conftest.er1
8463   ac_status=$?
8464   grep -v '^ *+' conftest.er1 >conftest.err
8465   rm -f conftest.er1
8466   cat conftest.err >&5
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); } &&
8469          { ac_try='test -z "$ac_c_werror_flag"
8470                          || test ! -s conftest.err'
8471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472   (eval $ac_try) 2>&5
8473   ac_status=$?
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); }; } &&
8476          { ac_try='test -s conftest$ac_exeext'
8477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478   (eval $ac_try) 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }; }; then
8482   LIBS=$ac_save_LIBS
8483 # We can link X programs with no special library path.
8484 ac_x_libraries=
8485 else
8486   echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8488
8489 LIBS=$ac_save_LIBS
8490 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8491 do
8492   # Don't even attempt the hair of trying to link an X program!
8493   for ac_extension in a so sl; do
8494     if test -r $ac_dir/libXt.$ac_extension; then
8495       ac_x_libraries=$ac_dir
8496       break 2
8497     fi
8498   done
8499 done
8500 fi
8501 rm -f conftest.err conftest.$ac_objext \
8502       conftest$ac_exeext conftest.$ac_ext
8503 fi # $ac_x_libraries = no
8504
8505 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8506   # Didn't find X anywhere.  Cache the known absence of X.
8507   ac_cv_have_x="have_x=no"
8508 else
8509   # Record where we found X for the cache.
8510   ac_cv_have_x="have_x=yes \
8511                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8512 fi
8513 fi
8514
8515   fi
8516   eval "$ac_cv_have_x"
8517 fi # $with_x != no
8518
8519 if test "$have_x" != yes; then
8520   echo "$as_me:$LINENO: result: $have_x" >&5
8521 echo "${ECHO_T}$have_x" >&6
8522   no_x=yes
8523 else
8524   # If each of the values was on the command line, it overrides each guess.
8525   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8526   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8527   # Update the cache value to reflect the command line values.
8528   ac_cv_have_x="have_x=yes \
8529                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8530   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8531 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8532 fi
8533
8534 if test "$no_x" = yes; then
8535   # Not all programs may use this symbol, but it does not hurt to define it.
8536
8537 cat >>confdefs.h <<\_ACEOF
8538 #define X_DISPLAY_MISSING 1
8539 _ACEOF
8540
8541   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8542 else
8543   if test -n "$x_includes"; then
8544     X_CFLAGS="$X_CFLAGS -I$x_includes"
8545   fi
8546
8547   # It would also be nice to do this for all -L options, not just this one.
8548   if test -n "$x_libraries"; then
8549     X_LIBS="$X_LIBS -L$x_libraries"
8550     # For Solaris; some versions of Sun CC require a space after -R and
8551     # others require no space.  Words are not sufficient . . . .
8552     case `(uname -sr) 2>/dev/null` in
8553     "SunOS 5"*)
8554       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8555 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8556       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8557       cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8563
8564 int
8565 main ()
8566 {
8567
8568   ;
8569   return 0;
8570 }
8571 _ACEOF
8572 rm -f conftest.$ac_objext conftest$ac_exeext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574   (eval $ac_link) 2>conftest.er1
8575   ac_status=$?
8576   grep -v '^ *+' conftest.er1 >conftest.err
8577   rm -f conftest.er1
8578   cat conftest.err >&5
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); } &&
8581          { ac_try='test -z "$ac_c_werror_flag"
8582                          || test ! -s conftest.err'
8583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584   (eval $ac_try) 2>&5
8585   ac_status=$?
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); }; } &&
8588          { ac_try='test -s conftest$ac_exeext'
8589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590   (eval $ac_try) 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); }; }; then
8594   ac_R_nospace=yes
8595 else
8596   echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 ac_R_nospace=no
8600 fi
8601 rm -f conftest.err conftest.$ac_objext \
8602       conftest$ac_exeext conftest.$ac_ext
8603       if test $ac_R_nospace = yes; then
8604         echo "$as_me:$LINENO: result: no" >&5
8605 echo "${ECHO_T}no" >&6
8606         X_LIBS="$X_LIBS -R$x_libraries"
8607       else
8608         LIBS="$ac_xsave_LIBS -R $x_libraries"
8609         cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h.  */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h.  */
8615
8616 int
8617 main ()
8618 {
8619
8620   ;
8621   return 0;
8622 }
8623 _ACEOF
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8626   (eval $ac_link) 2>conftest.er1
8627   ac_status=$?
8628   grep -v '^ *+' conftest.er1 >conftest.err
8629   rm -f conftest.er1
8630   cat conftest.err >&5
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); } &&
8633          { ac_try='test -z "$ac_c_werror_flag"
8634                          || test ! -s conftest.err'
8635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636   (eval $ac_try) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; } &&
8640          { ac_try='test -s conftest$ac_exeext'
8641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642   (eval $ac_try) 2>&5
8643   ac_status=$?
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); }; }; then
8646   ac_R_space=yes
8647 else
8648   echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8650
8651 ac_R_space=no
8652 fi
8653 rm -f conftest.err conftest.$ac_objext \
8654       conftest$ac_exeext conftest.$ac_ext
8655         if test $ac_R_space = yes; then
8656           echo "$as_me:$LINENO: result: yes" >&5
8657 echo "${ECHO_T}yes" >&6
8658           X_LIBS="$X_LIBS -R $x_libraries"
8659         else
8660           echo "$as_me:$LINENO: result: neither works" >&5
8661 echo "${ECHO_T}neither works" >&6
8662         fi
8663       fi
8664       LIBS=$ac_xsave_LIBS
8665     esac
8666   fi
8667
8668   # Check for system-dependent libraries X programs must link with.
8669   # Do this before checking for the system-independent R6 libraries
8670   # (-lICE), since we may need -lsocket or whatever for X linking.
8671
8672   if test "$ISC" = yes; then
8673     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8674   else
8675     # Martyn Johnson says this is needed for Ultrix, if the X
8676     # libraries were built with DECnet support.  And Karl Berry says
8677     # the Alpha needs dnet_stub (dnet does not exist).
8678     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8679     cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h.  */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h.  */
8685
8686 /* Override any gcc2 internal prototype to avoid an error.  */
8687 #ifdef __cplusplus
8688 extern "C"
8689 #endif
8690 /* We use char because int might match the return type of a gcc2
8691    builtin and then its argument prototype would still apply.  */
8692 char XOpenDisplay ();
8693 int
8694 main ()
8695 {
8696 XOpenDisplay ();
8697   ;
8698   return 0;
8699 }
8700 _ACEOF
8701 rm -f conftest.$ac_objext conftest$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703   (eval $ac_link) 2>conftest.er1
8704   ac_status=$?
8705   grep -v '^ *+' conftest.er1 >conftest.err
8706   rm -f conftest.er1
8707   cat conftest.err >&5
8708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709   (exit $ac_status); } &&
8710          { ac_try='test -z "$ac_c_werror_flag"
8711                          || test ! -s conftest.err'
8712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713   (eval $ac_try) 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; } &&
8717          { ac_try='test -s conftest$ac_exeext'
8718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719   (eval $ac_try) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; }; then
8723   :
8724 else
8725   echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8727
8728 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8729 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8730 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8731   echo $ECHO_N "(cached) $ECHO_C" >&6
8732 else
8733   ac_check_lib_save_LIBS=$LIBS
8734 LIBS="-ldnet  $LIBS"
8735 cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h.  */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h.  */
8741
8742 /* Override any gcc2 internal prototype to avoid an error.  */
8743 #ifdef __cplusplus
8744 extern "C"
8745 #endif
8746 /* We use char because int might match the return type of a gcc2
8747    builtin and then its argument prototype would still apply.  */
8748 char dnet_ntoa ();
8749 int
8750 main ()
8751 {
8752 dnet_ntoa ();
8753   ;
8754   return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759   (eval $ac_link) 2>conftest.er1
8760   ac_status=$?
8761   grep -v '^ *+' conftest.er1 >conftest.err
8762   rm -f conftest.er1
8763   cat conftest.err >&5
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); } &&
8766          { ac_try='test -z "$ac_c_werror_flag"
8767                          || test ! -s conftest.err'
8768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769   (eval $ac_try) 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); }; } &&
8773          { ac_try='test -s conftest$ac_exeext'
8774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775   (eval $ac_try) 2>&5
8776   ac_status=$?
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); }; }; then
8779   ac_cv_lib_dnet_dnet_ntoa=yes
8780 else
8781   echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8783
8784 ac_cv_lib_dnet_dnet_ntoa=no
8785 fi
8786 rm -f conftest.err conftest.$ac_objext \
8787       conftest$ac_exeext conftest.$ac_ext
8788 LIBS=$ac_check_lib_save_LIBS
8789 fi
8790 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8791 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8792 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8793   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8794 fi
8795
8796     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8797       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8798 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8799 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8800   echo $ECHO_N "(cached) $ECHO_C" >&6
8801 else
8802   ac_check_lib_save_LIBS=$LIBS
8803 LIBS="-ldnet_stub  $LIBS"
8804 cat >conftest.$ac_ext <<_ACEOF
8805 /* confdefs.h.  */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h.  */
8810
8811 /* Override any gcc2 internal prototype to avoid an error.  */
8812 #ifdef __cplusplus
8813 extern "C"
8814 #endif
8815 /* We use char because int might match the return type of a gcc2
8816    builtin and then its argument prototype would still apply.  */
8817 char dnet_ntoa ();
8818 int
8819 main ()
8820 {
8821 dnet_ntoa ();
8822   ;
8823   return 0;
8824 }
8825 _ACEOF
8826 rm -f conftest.$ac_objext conftest$ac_exeext
8827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8828   (eval $ac_link) 2>conftest.er1
8829   ac_status=$?
8830   grep -v '^ *+' conftest.er1 >conftest.err
8831   rm -f conftest.er1
8832   cat conftest.err >&5
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); } &&
8835          { ac_try='test -z "$ac_c_werror_flag"
8836                          || test ! -s conftest.err'
8837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838   (eval $ac_try) 2>&5
8839   ac_status=$?
8840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841   (exit $ac_status); }; } &&
8842          { ac_try='test -s conftest$ac_exeext'
8843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844   (eval $ac_try) 2>&5
8845   ac_status=$?
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); }; }; then
8848   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8849 else
8850   echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8852
8853 ac_cv_lib_dnet_stub_dnet_ntoa=no
8854 fi
8855 rm -f conftest.err conftest.$ac_objext \
8856       conftest$ac_exeext conftest.$ac_ext
8857 LIBS=$ac_check_lib_save_LIBS
8858 fi
8859 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8860 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8861 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8862   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8863 fi
8864
8865     fi
8866 fi
8867 rm -f conftest.err conftest.$ac_objext \
8868       conftest$ac_exeext conftest.$ac_ext
8869     LIBS="$ac_xsave_LIBS"
8870
8871     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8872     # to get the SysV transport functions.
8873     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8874     # needs -lnsl.
8875     # The nsl library prevents programs from opening the X display
8876     # on Irix 5.2, according to T.E. Dickey.
8877     # The functions gethostbyname, getservbyname, and inet_addr are
8878     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8879     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8880 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8881 if test "${ac_cv_func_gethostbyname+set}" = set; then
8882   echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884   cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h.  */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h.  */
8890 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8892 #define gethostbyname innocuous_gethostbyname
8893
8894 /* System header to define __stub macros and hopefully few prototypes,
8895     which can conflict with char gethostbyname (); below.
8896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8897     <limits.h> exists even on freestanding compilers.  */
8898
8899 #ifdef __STDC__
8900 # include <limits.h>
8901 #else
8902 # include <assert.h>
8903 #endif
8904
8905 #undef gethostbyname
8906
8907 /* Override any gcc2 internal prototype to avoid an error.  */
8908 #ifdef __cplusplus
8909 extern "C"
8910 {
8911 #endif
8912 /* We use char because int might match the return type of a gcc2
8913    builtin and then its argument prototype would still apply.  */
8914 char gethostbyname ();
8915 /* The GNU C library defines this for functions which it implements
8916     to always fail with ENOSYS.  Some functions are actually named
8917     something starting with __ and the normal name is an alias.  */
8918 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8919 choke me
8920 #else
8921 char (*f) () = gethostbyname;
8922 #endif
8923 #ifdef __cplusplus
8924 }
8925 #endif
8926
8927 int
8928 main ()
8929 {
8930 return f != gethostbyname;
8931   ;
8932   return 0;
8933 }
8934 _ACEOF
8935 rm -f conftest.$ac_objext conftest$ac_exeext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8937   (eval $ac_link) 2>conftest.er1
8938   ac_status=$?
8939   grep -v '^ *+' conftest.er1 >conftest.err
8940   rm -f conftest.er1
8941   cat conftest.err >&5
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); } &&
8944          { ac_try='test -z "$ac_c_werror_flag"
8945                          || test ! -s conftest.err'
8946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947   (eval $ac_try) 2>&5
8948   ac_status=$?
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); }; } &&
8951          { ac_try='test -s conftest$ac_exeext'
8952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953   (eval $ac_try) 2>&5
8954   ac_status=$?
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); }; }; then
8957   ac_cv_func_gethostbyname=yes
8958 else
8959   echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8961
8962 ac_cv_func_gethostbyname=no
8963 fi
8964 rm -f conftest.err conftest.$ac_objext \
8965       conftest$ac_exeext conftest.$ac_ext
8966 fi
8967 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8968 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8969
8970     if test $ac_cv_func_gethostbyname = no; then
8971       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8972 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8973 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8974   echo $ECHO_N "(cached) $ECHO_C" >&6
8975 else
8976   ac_check_lib_save_LIBS=$LIBS
8977 LIBS="-lnsl  $LIBS"
8978 cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h.  */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h.  */
8984
8985 /* Override any gcc2 internal prototype to avoid an error.  */
8986 #ifdef __cplusplus
8987 extern "C"
8988 #endif
8989 /* We use char because int might match the return type of a gcc2
8990    builtin and then its argument prototype would still apply.  */
8991 char gethostbyname ();
8992 int
8993 main ()
8994 {
8995 gethostbyname ();
8996   ;
8997   return 0;
8998 }
8999 _ACEOF
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002   (eval $ac_link) 2>conftest.er1
9003   ac_status=$?
9004   grep -v '^ *+' conftest.er1 >conftest.err
9005   rm -f conftest.er1
9006   cat conftest.err >&5
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); } &&
9009          { ac_try='test -z "$ac_c_werror_flag"
9010                          || test ! -s conftest.err'
9011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012   (eval $ac_try) 2>&5
9013   ac_status=$?
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); }; } &&
9016          { ac_try='test -s conftest$ac_exeext'
9017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018   (eval $ac_try) 2>&5
9019   ac_status=$?
9020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021   (exit $ac_status); }; }; then
9022   ac_cv_lib_nsl_gethostbyname=yes
9023 else
9024   echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9026
9027 ac_cv_lib_nsl_gethostbyname=no
9028 fi
9029 rm -f conftest.err conftest.$ac_objext \
9030       conftest$ac_exeext conftest.$ac_ext
9031 LIBS=$ac_check_lib_save_LIBS
9032 fi
9033 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9034 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9035 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9036   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9037 fi
9038
9039       if test $ac_cv_lib_nsl_gethostbyname = no; then
9040         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9041 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9042 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9043   echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045   ac_check_lib_save_LIBS=$LIBS
9046 LIBS="-lbsd  $LIBS"
9047 cat >conftest.$ac_ext <<_ACEOF
9048 /* confdefs.h.  */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h.  */
9053
9054 /* Override any gcc2 internal prototype to avoid an error.  */
9055 #ifdef __cplusplus
9056 extern "C"
9057 #endif
9058 /* We use char because int might match the return type of a gcc2
9059    builtin and then its argument prototype would still apply.  */
9060 char gethostbyname ();
9061 int
9062 main ()
9063 {
9064 gethostbyname ();
9065   ;
9066   return 0;
9067 }
9068 _ACEOF
9069 rm -f conftest.$ac_objext conftest$ac_exeext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9071   (eval $ac_link) 2>conftest.er1
9072   ac_status=$?
9073   grep -v '^ *+' conftest.er1 >conftest.err
9074   rm -f conftest.er1
9075   cat conftest.err >&5
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); } &&
9078          { ac_try='test -z "$ac_c_werror_flag"
9079                          || test ! -s conftest.err'
9080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081   (eval $ac_try) 2>&5
9082   ac_status=$?
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); }; } &&
9085          { ac_try='test -s conftest$ac_exeext'
9086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087   (eval $ac_try) 2>&5
9088   ac_status=$?
9089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090   (exit $ac_status); }; }; then
9091   ac_cv_lib_bsd_gethostbyname=yes
9092 else
9093   echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9095
9096 ac_cv_lib_bsd_gethostbyname=no
9097 fi
9098 rm -f conftest.err conftest.$ac_objext \
9099       conftest$ac_exeext conftest.$ac_ext
9100 LIBS=$ac_check_lib_save_LIBS
9101 fi
9102 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9103 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9104 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9105   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9106 fi
9107
9108       fi
9109     fi
9110
9111     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9112     # socket/setsockopt and other routines are undefined under SCO ODT
9113     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9114     # on later versions), says Simon Leinen: it contains gethostby*
9115     # variants that don't use the name server (or something).  -lsocket
9116     # must be given before -lnsl if both are needed.  We assume that
9117     # if connect needs -lnsl, so does gethostbyname.
9118     echo "$as_me:$LINENO: checking for connect" >&5
9119 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9120 if test "${ac_cv_func_connect+set}" = set; then
9121   echo $ECHO_N "(cached) $ECHO_C" >&6
9122 else
9123   cat >conftest.$ac_ext <<_ACEOF
9124 /* confdefs.h.  */
9125 _ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h.  */
9129 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9131 #define connect innocuous_connect
9132
9133 /* System header to define __stub macros and hopefully few prototypes,
9134     which can conflict with char connect (); below.
9135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9136     <limits.h> exists even on freestanding compilers.  */
9137
9138 #ifdef __STDC__
9139 # include <limits.h>
9140 #else
9141 # include <assert.h>
9142 #endif
9143
9144 #undef connect
9145
9146 /* Override any gcc2 internal prototype to avoid an error.  */
9147 #ifdef __cplusplus
9148 extern "C"
9149 {
9150 #endif
9151 /* We use char because int might match the return type of a gcc2
9152    builtin and then its argument prototype would still apply.  */
9153 char connect ();
9154 /* The GNU C library defines this for functions which it implements
9155     to always fail with ENOSYS.  Some functions are actually named
9156     something starting with __ and the normal name is an alias.  */
9157 #if defined (__stub_connect) || defined (__stub___connect)
9158 choke me
9159 #else
9160 char (*f) () = connect;
9161 #endif
9162 #ifdef __cplusplus
9163 }
9164 #endif
9165
9166 int
9167 main ()
9168 {
9169 return f != connect;
9170   ;
9171   return 0;
9172 }
9173 _ACEOF
9174 rm -f conftest.$ac_objext conftest$ac_exeext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176   (eval $ac_link) 2>conftest.er1
9177   ac_status=$?
9178   grep -v '^ *+' conftest.er1 >conftest.err
9179   rm -f conftest.er1
9180   cat conftest.err >&5
9181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182   (exit $ac_status); } &&
9183          { ac_try='test -z "$ac_c_werror_flag"
9184                          || test ! -s conftest.err'
9185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186   (eval $ac_try) 2>&5
9187   ac_status=$?
9188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); }; } &&
9190          { ac_try='test -s conftest$ac_exeext'
9191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192   (eval $ac_try) 2>&5
9193   ac_status=$?
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); }; }; then
9196   ac_cv_func_connect=yes
9197 else
9198   echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9200
9201 ac_cv_func_connect=no
9202 fi
9203 rm -f conftest.err conftest.$ac_objext \
9204       conftest$ac_exeext conftest.$ac_ext
9205 fi
9206 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9207 echo "${ECHO_T}$ac_cv_func_connect" >&6
9208
9209     if test $ac_cv_func_connect = no; then
9210       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9211 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9212 if test "${ac_cv_lib_socket_connect+set}" = set; then
9213   echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215   ac_check_lib_save_LIBS=$LIBS
9216 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9217 cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h.  */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h.  */
9223
9224 /* Override any gcc2 internal prototype to avoid an error.  */
9225 #ifdef __cplusplus
9226 extern "C"
9227 #endif
9228 /* We use char because int might match the return type of a gcc2
9229    builtin and then its argument prototype would still apply.  */
9230 char connect ();
9231 int
9232 main ()
9233 {
9234 connect ();
9235   ;
9236   return 0;
9237 }
9238 _ACEOF
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241   (eval $ac_link) 2>conftest.er1
9242   ac_status=$?
9243   grep -v '^ *+' conftest.er1 >conftest.err
9244   rm -f conftest.er1
9245   cat conftest.err >&5
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); } &&
9248          { ac_try='test -z "$ac_c_werror_flag"
9249                          || test ! -s conftest.err'
9250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251   (eval $ac_try) 2>&5
9252   ac_status=$?
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); }; } &&
9255          { ac_try='test -s conftest$ac_exeext'
9256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257   (eval $ac_try) 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); }; }; then
9261   ac_cv_lib_socket_connect=yes
9262 else
9263   echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9265
9266 ac_cv_lib_socket_connect=no
9267 fi
9268 rm -f conftest.err conftest.$ac_objext \
9269       conftest$ac_exeext conftest.$ac_ext
9270 LIBS=$ac_check_lib_save_LIBS
9271 fi
9272 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9273 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9274 if test $ac_cv_lib_socket_connect = yes; then
9275   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9276 fi
9277
9278     fi
9279
9280     # Guillermo Gomez says -lposix is necessary on A/UX.
9281     echo "$as_me:$LINENO: checking for remove" >&5
9282 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9283 if test "${ac_cv_func_remove+set}" = set; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286   cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h.  */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h.  */
9292 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
9293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9294 #define remove innocuous_remove
9295
9296 /* System header to define __stub macros and hopefully few prototypes,
9297     which can conflict with char remove (); below.
9298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9299     <limits.h> exists even on freestanding compilers.  */
9300
9301 #ifdef __STDC__
9302 # include <limits.h>
9303 #else
9304 # include <assert.h>
9305 #endif
9306
9307 #undef remove
9308
9309 /* Override any gcc2 internal prototype to avoid an error.  */
9310 #ifdef __cplusplus
9311 extern "C"
9312 {
9313 #endif
9314 /* We use char because int might match the return type of a gcc2
9315    builtin and then its argument prototype would still apply.  */
9316 char remove ();
9317 /* The GNU C library defines this for functions which it implements
9318     to always fail with ENOSYS.  Some functions are actually named
9319     something starting with __ and the normal name is an alias.  */
9320 #if defined (__stub_remove) || defined (__stub___remove)
9321 choke me
9322 #else
9323 char (*f) () = remove;
9324 #endif
9325 #ifdef __cplusplus
9326 }
9327 #endif
9328
9329 int
9330 main ()
9331 {
9332 return f != remove;
9333   ;
9334   return 0;
9335 }
9336 _ACEOF
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9339   (eval $ac_link) 2>conftest.er1
9340   ac_status=$?
9341   grep -v '^ *+' conftest.er1 >conftest.err
9342   rm -f conftest.er1
9343   cat conftest.err >&5
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); } &&
9346          { ac_try='test -z "$ac_c_werror_flag"
9347                          || test ! -s conftest.err'
9348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349   (eval $ac_try) 2>&5
9350   ac_status=$?
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); }; } &&
9353          { ac_try='test -s conftest$ac_exeext'
9354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355   (eval $ac_try) 2>&5
9356   ac_status=$?
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); }; }; then
9359   ac_cv_func_remove=yes
9360 else
9361   echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364 ac_cv_func_remove=no
9365 fi
9366 rm -f conftest.err conftest.$ac_objext \
9367       conftest$ac_exeext conftest.$ac_ext
9368 fi
9369 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9370 echo "${ECHO_T}$ac_cv_func_remove" >&6
9371
9372     if test $ac_cv_func_remove = no; then
9373       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9374 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9375 if test "${ac_cv_lib_posix_remove+set}" = set; then
9376   echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378   ac_check_lib_save_LIBS=$LIBS
9379 LIBS="-lposix  $LIBS"
9380 cat >conftest.$ac_ext <<_ACEOF
9381 /* confdefs.h.  */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h.  */
9386
9387 /* Override any gcc2 internal prototype to avoid an error.  */
9388 #ifdef __cplusplus
9389 extern "C"
9390 #endif
9391 /* We use char because int might match the return type of a gcc2
9392    builtin and then its argument prototype would still apply.  */
9393 char remove ();
9394 int
9395 main ()
9396 {
9397 remove ();
9398   ;
9399   return 0;
9400 }
9401 _ACEOF
9402 rm -f conftest.$ac_objext conftest$ac_exeext
9403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404   (eval $ac_link) 2>conftest.er1
9405   ac_status=$?
9406   grep -v '^ *+' conftest.er1 >conftest.err
9407   rm -f conftest.er1
9408   cat conftest.err >&5
9409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410   (exit $ac_status); } &&
9411          { ac_try='test -z "$ac_c_werror_flag"
9412                          || test ! -s conftest.err'
9413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414   (eval $ac_try) 2>&5
9415   ac_status=$?
9416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417   (exit $ac_status); }; } &&
9418          { ac_try='test -s conftest$ac_exeext'
9419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420   (eval $ac_try) 2>&5
9421   ac_status=$?
9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423   (exit $ac_status); }; }; then
9424   ac_cv_lib_posix_remove=yes
9425 else
9426   echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9428
9429 ac_cv_lib_posix_remove=no
9430 fi
9431 rm -f conftest.err conftest.$ac_objext \
9432       conftest$ac_exeext conftest.$ac_ext
9433 LIBS=$ac_check_lib_save_LIBS
9434 fi
9435 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9436 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9437 if test $ac_cv_lib_posix_remove = yes; then
9438   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9439 fi
9440
9441     fi
9442
9443     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9444     echo "$as_me:$LINENO: checking for shmat" >&5
9445 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9446 if test "${ac_cv_func_shmat+set}" = set; then
9447   echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449   cat >conftest.$ac_ext <<_ACEOF
9450 /* confdefs.h.  */
9451 _ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h.  */
9455 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9457 #define shmat innocuous_shmat
9458
9459 /* System header to define __stub macros and hopefully few prototypes,
9460     which can conflict with char shmat (); below.
9461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9462     <limits.h> exists even on freestanding compilers.  */
9463
9464 #ifdef __STDC__
9465 # include <limits.h>
9466 #else
9467 # include <assert.h>
9468 #endif
9469
9470 #undef shmat
9471
9472 /* Override any gcc2 internal prototype to avoid an error.  */
9473 #ifdef __cplusplus
9474 extern "C"
9475 {
9476 #endif
9477 /* We use char because int might match the return type of a gcc2
9478    builtin and then its argument prototype would still apply.  */
9479 char shmat ();
9480 /* The GNU C library defines this for functions which it implements
9481     to always fail with ENOSYS.  Some functions are actually named
9482     something starting with __ and the normal name is an alias.  */
9483 #if defined (__stub_shmat) || defined (__stub___shmat)
9484 choke me
9485 #else
9486 char (*f) () = shmat;
9487 #endif
9488 #ifdef __cplusplus
9489 }
9490 #endif
9491
9492 int
9493 main ()
9494 {
9495 return f != shmat;
9496   ;
9497   return 0;
9498 }
9499 _ACEOF
9500 rm -f conftest.$ac_objext conftest$ac_exeext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9502   (eval $ac_link) 2>conftest.er1
9503   ac_status=$?
9504   grep -v '^ *+' conftest.er1 >conftest.err
9505   rm -f conftest.er1
9506   cat conftest.err >&5
9507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); } &&
9509          { ac_try='test -z "$ac_c_werror_flag"
9510                          || test ! -s conftest.err'
9511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512   (eval $ac_try) 2>&5
9513   ac_status=$?
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); }; } &&
9516          { ac_try='test -s conftest$ac_exeext'
9517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518   (eval $ac_try) 2>&5
9519   ac_status=$?
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); }; }; then
9522   ac_cv_func_shmat=yes
9523 else
9524   echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9526
9527 ac_cv_func_shmat=no
9528 fi
9529 rm -f conftest.err conftest.$ac_objext \
9530       conftest$ac_exeext conftest.$ac_ext
9531 fi
9532 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9533 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9534
9535     if test $ac_cv_func_shmat = no; then
9536       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9537 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9538 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9539   echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541   ac_check_lib_save_LIBS=$LIBS
9542 LIBS="-lipc  $LIBS"
9543 cat >conftest.$ac_ext <<_ACEOF
9544 /* confdefs.h.  */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h.  */
9549
9550 /* Override any gcc2 internal prototype to avoid an error.  */
9551 #ifdef __cplusplus
9552 extern "C"
9553 #endif
9554 /* We use char because int might match the return type of a gcc2
9555    builtin and then its argument prototype would still apply.  */
9556 char shmat ();
9557 int
9558 main ()
9559 {
9560 shmat ();
9561   ;
9562   return 0;
9563 }
9564 _ACEOF
9565 rm -f conftest.$ac_objext conftest$ac_exeext
9566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9567   (eval $ac_link) 2>conftest.er1
9568   ac_status=$?
9569   grep -v '^ *+' conftest.er1 >conftest.err
9570   rm -f conftest.er1
9571   cat conftest.err >&5
9572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573   (exit $ac_status); } &&
9574          { ac_try='test -z "$ac_c_werror_flag"
9575                          || test ! -s conftest.err'
9576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577   (eval $ac_try) 2>&5
9578   ac_status=$?
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); }; } &&
9581          { ac_try='test -s conftest$ac_exeext'
9582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583   (eval $ac_try) 2>&5
9584   ac_status=$?
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); }; }; then
9587   ac_cv_lib_ipc_shmat=yes
9588 else
9589   echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9591
9592 ac_cv_lib_ipc_shmat=no
9593 fi
9594 rm -f conftest.err conftest.$ac_objext \
9595       conftest$ac_exeext conftest.$ac_ext
9596 LIBS=$ac_check_lib_save_LIBS
9597 fi
9598 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9599 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9600 if test $ac_cv_lib_ipc_shmat = yes; then
9601   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9602 fi
9603
9604     fi
9605   fi
9606
9607   # Check for libraries that X11R6 Xt/Xaw programs need.
9608   ac_save_LDFLAGS=$LDFLAGS
9609   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9610   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9611   # check for ICE first), but we must link in the order -lSM -lICE or
9612   # we get undefined symbols.  So assume we have SM if we have ICE.
9613   # These have to be linked with before -lX11, unlike the other
9614   # libraries we check for below, so use a different variable.
9615   # John Interrante, Karl Berry
9616   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9617 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9618 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9619   echo $ECHO_N "(cached) $ECHO_C" >&6
9620 else
9621   ac_check_lib_save_LIBS=$LIBS
9622 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9623 cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h.  */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h.  */
9629
9630 /* Override any gcc2 internal prototype to avoid an error.  */
9631 #ifdef __cplusplus
9632 extern "C"
9633 #endif
9634 /* We use char because int might match the return type of a gcc2
9635    builtin and then its argument prototype would still apply.  */
9636 char IceConnectionNumber ();
9637 int
9638 main ()
9639 {
9640 IceConnectionNumber ();
9641   ;
9642   return 0;
9643 }
9644 _ACEOF
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9647   (eval $ac_link) 2>conftest.er1
9648   ac_status=$?
9649   grep -v '^ *+' conftest.er1 >conftest.err
9650   rm -f conftest.er1
9651   cat conftest.err >&5
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); } &&
9654          { ac_try='test -z "$ac_c_werror_flag"
9655                          || test ! -s conftest.err'
9656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657   (eval $ac_try) 2>&5
9658   ac_status=$?
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); }; } &&
9661          { ac_try='test -s conftest$ac_exeext'
9662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663   (eval $ac_try) 2>&5
9664   ac_status=$?
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); }; }; then
9667   ac_cv_lib_ICE_IceConnectionNumber=yes
9668 else
9669   echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9671
9672 ac_cv_lib_ICE_IceConnectionNumber=no
9673 fi
9674 rm -f conftest.err conftest.$ac_objext \
9675       conftest$ac_exeext conftest.$ac_ext
9676 LIBS=$ac_check_lib_save_LIBS
9677 fi
9678 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9679 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9680 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9681   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9682 fi
9683
9684   LDFLAGS=$ac_save_LDFLAGS
9685
9686 fi
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715 for ac_header in \
9716         assert.h \
9717         fcntl.h \
9718         grp.h \
9719         pwd.h \
9720         libc.h \
9721         limits.h \
9722         stdarg.h \
9723         stdlib.h \
9724         stdint.h \
9725         string.h \
9726         termios.h \
9727         termcap.h \
9728         unistd.h \
9729         sys/bitypes.h \
9730         sys/byteorder.h \
9731         sys/ioctl.h \
9732         sys/select.h \
9733         sys/sockio.h \
9734         sys/time.h \
9735         sys/socket.h \
9736         arpa/nameser.h \
9737         resolv.h \
9738         mtio.h \
9739         sys/mtio.h \
9740         sys/tape.h \
9741         regex.h \
9742
9743 do
9744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9746   echo "$as_me:$LINENO: checking for $ac_header" >&5
9747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9749   echo $ECHO_N "(cached) $ECHO_C" >&6
9750 fi
9751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9753 else
9754   # Is the header compilable?
9755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9757 cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h.  */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h.  */
9763 $ac_includes_default
9764 #include <$ac_header>
9765 _ACEOF
9766 rm -f conftest.$ac_objext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9768   (eval $ac_compile) 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } &&
9775          { ac_try='test -z "$ac_c_werror_flag"
9776                          || test ! -s conftest.err'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; } &&
9782          { ac_try='test -s conftest.$ac_objext'
9783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784   (eval $ac_try) 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; }; then
9788   ac_header_compiler=yes
9789 else
9790   echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793 ac_header_compiler=no
9794 fi
9795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9797 echo "${ECHO_T}$ac_header_compiler" >&6
9798
9799 # Is the header present?
9800 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9802 cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h.  */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h.  */
9808 #include <$ac_header>
9809 _ACEOF
9810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9812   ac_status=$?
9813   grep -v '^ *+' conftest.er1 >conftest.err
9814   rm -f conftest.er1
9815   cat conftest.err >&5
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); } >/dev/null; then
9818   if test -s conftest.err; then
9819     ac_cpp_err=$ac_c_preproc_warn_flag
9820     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9821   else
9822     ac_cpp_err=
9823   fi
9824 else
9825   ac_cpp_err=yes
9826 fi
9827 if test -z "$ac_cpp_err"; then
9828   ac_header_preproc=yes
9829 else
9830   echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9832
9833   ac_header_preproc=no
9834 fi
9835 rm -f conftest.err conftest.$ac_ext
9836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9837 echo "${ECHO_T}$ac_header_preproc" >&6
9838
9839 # So?  What about this header?
9840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9841   yes:no: )
9842     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9846     ac_header_preproc=yes
9847     ;;
9848   no:yes:* )
9849     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9851     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9852 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9853     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9855     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9856 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9859     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9861     (
9862       cat <<\_ASBOX
9863 ## ------------------------------------------ ##
9864 ## Report this to the AC_PACKAGE_NAME lists.  ##
9865 ## ------------------------------------------ ##
9866 _ASBOX
9867     ) |
9868       sed "s/^/$as_me: WARNING:     /" >&2
9869     ;;
9870 esac
9871 echo "$as_me:$LINENO: checking for $ac_header" >&5
9872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9874   echo $ECHO_N "(cached) $ECHO_C" >&6
9875 else
9876   eval "$as_ac_Header=\$ac_header_preproc"
9877 fi
9878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9880
9881 fi
9882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9883   cat >>confdefs.h <<_ACEOF
9884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9885 _ACEOF
9886
9887 fi
9888
9889 done
9890
9891 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9892 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9893 if test "${ac_cv_header_stdc+set}" = set; then
9894   echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896   cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h.  */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h.  */
9902 #include <stdlib.h>
9903 #include <stdarg.h>
9904 #include <string.h>
9905 #include <float.h>
9906
9907 int
9908 main ()
9909 {
9910
9911   ;
9912   return 0;
9913 }
9914 _ACEOF
9915 rm -f conftest.$ac_objext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9917   (eval $ac_compile) 2>conftest.er1
9918   ac_status=$?
9919   grep -v '^ *+' conftest.er1 >conftest.err
9920   rm -f conftest.er1
9921   cat conftest.err >&5
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); } &&
9924          { ac_try='test -z "$ac_c_werror_flag"
9925                          || test ! -s conftest.err'
9926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927   (eval $ac_try) 2>&5
9928   ac_status=$?
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); }; } &&
9931          { ac_try='test -s conftest.$ac_objext'
9932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933   (eval $ac_try) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; }; then
9937   ac_cv_header_stdc=yes
9938 else
9939   echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942 ac_cv_header_stdc=no
9943 fi
9944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9945
9946 if test $ac_cv_header_stdc = yes; then
9947   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9948   cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954 #include <string.h>
9955
9956 _ACEOF
9957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9958   $EGREP "memchr" >/dev/null 2>&1; then
9959   :
9960 else
9961   ac_cv_header_stdc=no
9962 fi
9963 rm -f conftest*
9964
9965 fi
9966
9967 if test $ac_cv_header_stdc = yes; then
9968   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9969   cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h.  */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h.  */
9975 #include <stdlib.h>
9976
9977 _ACEOF
9978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9979   $EGREP "free" >/dev/null 2>&1; then
9980   :
9981 else
9982   ac_cv_header_stdc=no
9983 fi
9984 rm -f conftest*
9985
9986 fi
9987
9988 if test $ac_cv_header_stdc = yes; then
9989   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9990   if test "$cross_compiling" = yes; then
9991   :
9992 else
9993   cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h.  */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h.  */
9999 #include <ctype.h>
10000 #if ((' ' & 0x0FF) == 0x020)
10001 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10002 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10003 #else
10004 # define ISLOWER(c) \
10005                    (('a' <= (c) && (c) <= 'i') \
10006                      || ('j' <= (c) && (c) <= 'r') \
10007                      || ('s' <= (c) && (c) <= 'z'))
10008 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10009 #endif
10010
10011 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10012 int
10013 main ()
10014 {
10015   int i;
10016   for (i = 0; i < 256; i++)
10017     if (XOR (islower (i), ISLOWER (i))
10018         || toupper (i) != TOUPPER (i))
10019       exit(2);
10020   exit (0);
10021 }
10022 _ACEOF
10023 rm -f conftest$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025   (eval $ac_link) 2>&5
10026   ac_status=$?
10027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030   (eval $ac_try) 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); }; }; then
10034   :
10035 else
10036   echo "$as_me: program exited with status $ac_status" >&5
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10039
10040 ( exit $ac_status )
10041 ac_cv_header_stdc=no
10042 fi
10043 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10044 fi
10045 fi
10046 fi
10047 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10048 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10049 if test $ac_cv_header_stdc = yes; then
10050
10051 cat >>confdefs.h <<\_ACEOF
10052 #define STDC_HEADERS 1
10053 _ACEOF
10054
10055 fi
10056
10057 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10058 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10059 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10060   echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062   cat >conftest.$ac_ext <<_ACEOF
10063 /* confdefs.h.  */
10064 _ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h.  */
10068 #include <sys/types.h>
10069 int
10070 main ()
10071 {
10072 return makedev(0, 0);
10073   ;
10074   return 0;
10075 }
10076 _ACEOF
10077 rm -f conftest.$ac_objext conftest$ac_exeext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10079   (eval $ac_link) 2>conftest.er1
10080   ac_status=$?
10081   grep -v '^ *+' conftest.er1 >conftest.err
10082   rm -f conftest.er1
10083   cat conftest.err >&5
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); } &&
10086          { ac_try='test -z "$ac_c_werror_flag"
10087                          || test ! -s conftest.err'
10088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089   (eval $ac_try) 2>&5
10090   ac_status=$?
10091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); }; } &&
10093          { ac_try='test -s conftest$ac_exeext'
10094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095   (eval $ac_try) 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); }; }; then
10099   ac_cv_header_sys_types_h_makedev=yes
10100 else
10101   echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10103
10104 ac_cv_header_sys_types_h_makedev=no
10105 fi
10106 rm -f conftest.err conftest.$ac_objext \
10107       conftest$ac_exeext conftest.$ac_ext
10108
10109 fi
10110 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10111 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10112
10113 if test $ac_cv_header_sys_types_h_makedev = no; then
10114 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10115   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10116 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10117 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10118   echo $ECHO_N "(cached) $ECHO_C" >&6
10119 fi
10120 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10121 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10122 else
10123   # Is the header compilable?
10124 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10125 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h.  */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h.  */
10132 $ac_includes_default
10133 #include <sys/mkdev.h>
10134 _ACEOF
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137   (eval $ac_compile) 2>conftest.er1
10138   ac_status=$?
10139   grep -v '^ *+' conftest.er1 >conftest.err
10140   rm -f conftest.er1
10141   cat conftest.err >&5
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); } &&
10144          { ac_try='test -z "$ac_c_werror_flag"
10145                          || test ! -s conftest.err'
10146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147   (eval $ac_try) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; } &&
10151          { ac_try='test -s conftest.$ac_objext'
10152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153   (eval $ac_try) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   ac_header_compiler=yes
10158 else
10159   echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162 ac_header_compiler=no
10163 fi
10164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10166 echo "${ECHO_T}$ac_header_compiler" >&6
10167
10168 # Is the header present?
10169 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10170 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10171 cat >conftest.$ac_ext <<_ACEOF
10172 /* confdefs.h.  */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h.  */
10177 #include <sys/mkdev.h>
10178 _ACEOF
10179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10181   ac_status=$?
10182   grep -v '^ *+' conftest.er1 >conftest.err
10183   rm -f conftest.er1
10184   cat conftest.err >&5
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); } >/dev/null; then
10187   if test -s conftest.err; then
10188     ac_cpp_err=$ac_c_preproc_warn_flag
10189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10190   else
10191     ac_cpp_err=
10192   fi
10193 else
10194   ac_cpp_err=yes
10195 fi
10196 if test -z "$ac_cpp_err"; then
10197   ac_header_preproc=yes
10198 else
10199   echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10201
10202   ac_header_preproc=no
10203 fi
10204 rm -f conftest.err conftest.$ac_ext
10205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10206 echo "${ECHO_T}$ac_header_preproc" >&6
10207
10208 # So?  What about this header?
10209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10210   yes:no: )
10211     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10212 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10213     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
10214 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
10215     ac_header_preproc=yes
10216     ;;
10217   no:yes:* )
10218     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10219 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10220     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
10221 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
10222     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
10223 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
10224     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
10225 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10226     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10227 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10228     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
10229 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
10230     (
10231       cat <<\_ASBOX
10232 ## ------------------------------------------ ##
10233 ## Report this to the AC_PACKAGE_NAME lists.  ##
10234 ## ------------------------------------------ ##
10235 _ASBOX
10236     ) |
10237       sed "s/^/$as_me: WARNING:     /" >&2
10238     ;;
10239 esac
10240 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10241 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10242 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10243   echo $ECHO_N "(cached) $ECHO_C" >&6
10244 else
10245   ac_cv_header_sys_mkdev_h=$ac_header_preproc
10246 fi
10247 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10248 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10249
10250 fi
10251 if test $ac_cv_header_sys_mkdev_h = yes; then
10252
10253 cat >>confdefs.h <<\_ACEOF
10254 #define MAJOR_IN_MKDEV 1
10255 _ACEOF
10256
10257 fi
10258
10259
10260
10261   if test $ac_cv_header_sys_mkdev_h = no; then
10262     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10263   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10264 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10265 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10266   echo $ECHO_N "(cached) $ECHO_C" >&6
10267 fi
10268 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10269 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10270 else
10271   # Is the header compilable?
10272 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10273 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10274 cat >conftest.$ac_ext <<_ACEOF
10275 /* confdefs.h.  */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h.  */
10280 $ac_includes_default
10281 #include <sys/sysmacros.h>
10282 _ACEOF
10283 rm -f conftest.$ac_objext
10284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10285   (eval $ac_compile) 2>conftest.er1
10286   ac_status=$?
10287   grep -v '^ *+' conftest.er1 >conftest.err
10288   rm -f conftest.er1
10289   cat conftest.err >&5
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); } &&
10292          { ac_try='test -z "$ac_c_werror_flag"
10293                          || test ! -s conftest.err'
10294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295   (eval $ac_try) 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); }; } &&
10299          { ac_try='test -s conftest.$ac_objext'
10300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301   (eval $ac_try) 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); }; }; then
10305   ac_header_compiler=yes
10306 else
10307   echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10309
10310 ac_header_compiler=no
10311 fi
10312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10314 echo "${ECHO_T}$ac_header_compiler" >&6
10315
10316 # Is the header present?
10317 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10318 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10319 cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h.  */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h.  */
10325 #include <sys/sysmacros.h>
10326 _ACEOF
10327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10329   ac_status=$?
10330   grep -v '^ *+' conftest.er1 >conftest.err
10331   rm -f conftest.er1
10332   cat conftest.err >&5
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); } >/dev/null; then
10335   if test -s conftest.err; then
10336     ac_cpp_err=$ac_c_preproc_warn_flag
10337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10338   else
10339     ac_cpp_err=
10340   fi
10341 else
10342   ac_cpp_err=yes
10343 fi
10344 if test -z "$ac_cpp_err"; then
10345   ac_header_preproc=yes
10346 else
10347   echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10349
10350   ac_header_preproc=no
10351 fi
10352 rm -f conftest.err conftest.$ac_ext
10353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10354 echo "${ECHO_T}$ac_header_preproc" >&6
10355
10356 # So?  What about this header?
10357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10358   yes:no: )
10359     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10360 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10361     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
10362 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
10363     ac_header_preproc=yes
10364     ;;
10365   no:yes:* )
10366     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10367 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10368     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
10369 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
10370     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
10371 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
10372     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
10373 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10374     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10375 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10376     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
10377 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
10378     (
10379       cat <<\_ASBOX
10380 ## ------------------------------------------ ##
10381 ## Report this to the AC_PACKAGE_NAME lists.  ##
10382 ## ------------------------------------------ ##
10383 _ASBOX
10384     ) |
10385       sed "s/^/$as_me: WARNING:     /" >&2
10386     ;;
10387 esac
10388 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10389 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10390 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10391   echo $ECHO_N "(cached) $ECHO_C" >&6
10392 else
10393   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10394 fi
10395 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10396 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10397
10398 fi
10399 if test $ac_cv_header_sys_sysmacros_h = yes; then
10400
10401 cat >>confdefs.h <<\_ACEOF
10402 #define MAJOR_IN_SYSMACROS 1
10403 _ACEOF
10404
10405 fi
10406
10407
10408   fi
10409 fi
10410
10411
10412
10413
10414
10415
10416 ac_header_dirent=no
10417 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10418   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10419 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10420 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10422   echo $ECHO_N "(cached) $ECHO_C" >&6
10423 else
10424   cat >conftest.$ac_ext <<_ACEOF
10425 /* confdefs.h.  */
10426 _ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h.  */
10430 #include <sys/types.h>
10431 #include <$ac_hdr>
10432
10433 int
10434 main ()
10435 {
10436 if ((DIR *) 0)
10437 return 0;
10438   ;
10439   return 0;
10440 }
10441 _ACEOF
10442 rm -f conftest.$ac_objext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444   (eval $ac_compile) 2>conftest.er1
10445   ac_status=$?
10446   grep -v '^ *+' conftest.er1 >conftest.err
10447   rm -f conftest.er1
10448   cat conftest.err >&5
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); } &&
10451          { ac_try='test -z "$ac_c_werror_flag"
10452                          || test ! -s conftest.err'
10453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454   (eval $ac_try) 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); }; } &&
10458          { ac_try='test -s conftest.$ac_objext'
10459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460   (eval $ac_try) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; }; then
10464   eval "$as_ac_Header=yes"
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469 eval "$as_ac_Header=no"
10470 fi
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10472 fi
10473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10476   cat >>confdefs.h <<_ACEOF
10477 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10478 _ACEOF
10479
10480 ac_header_dirent=$ac_hdr; break
10481 fi
10482
10483 done
10484 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10485 if test $ac_header_dirent = dirent.h; then
10486   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10487 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10488 if test "${ac_cv_search_opendir+set}" = set; then
10489   echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491   ac_func_search_save_LIBS=$LIBS
10492 ac_cv_search_opendir=no
10493 cat >conftest.$ac_ext <<_ACEOF
10494 /* confdefs.h.  */
10495 _ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h.  */
10499
10500 /* Override any gcc2 internal prototype to avoid an error.  */
10501 #ifdef __cplusplus
10502 extern "C"
10503 #endif
10504 /* We use char because int might match the return type of a gcc2
10505    builtin and then its argument prototype would still apply.  */
10506 char opendir ();
10507 int
10508 main ()
10509 {
10510 opendir ();
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 rm -f conftest.$ac_objext conftest$ac_exeext
10516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10517   (eval $ac_link) 2>conftest.er1
10518   ac_status=$?
10519   grep -v '^ *+' conftest.er1 >conftest.err
10520   rm -f conftest.er1
10521   cat conftest.err >&5
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); } &&
10524          { ac_try='test -z "$ac_c_werror_flag"
10525                          || test ! -s conftest.err'
10526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527   (eval $ac_try) 2>&5
10528   ac_status=$?
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); }; } &&
10531          { ac_try='test -s conftest$ac_exeext'
10532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533   (eval $ac_try) 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); }; }; then
10537   ac_cv_search_opendir="none required"
10538 else
10539   echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10541
10542 fi
10543 rm -f conftest.err conftest.$ac_objext \
10544       conftest$ac_exeext conftest.$ac_ext
10545 if test "$ac_cv_search_opendir" = no; then
10546   for ac_lib in dir; do
10547     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10548     cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h.  */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h.  */
10554
10555 /* Override any gcc2 internal prototype to avoid an error.  */
10556 #ifdef __cplusplus
10557 extern "C"
10558 #endif
10559 /* We use char because int might match the return type of a gcc2
10560    builtin and then its argument prototype would still apply.  */
10561 char opendir ();
10562 int
10563 main ()
10564 {
10565 opendir ();
10566   ;
10567   return 0;
10568 }
10569 _ACEOF
10570 rm -f conftest.$ac_objext conftest$ac_exeext
10571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10572   (eval $ac_link) 2>conftest.er1
10573   ac_status=$?
10574   grep -v '^ *+' conftest.er1 >conftest.err
10575   rm -f conftest.er1
10576   cat conftest.err >&5
10577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578   (exit $ac_status); } &&
10579          { ac_try='test -z "$ac_c_werror_flag"
10580                          || test ! -s conftest.err'
10581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582   (eval $ac_try) 2>&5
10583   ac_status=$?
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); }; } &&
10586          { ac_try='test -s conftest$ac_exeext'
10587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588   (eval $ac_try) 2>&5
10589   ac_status=$?
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); }; }; then
10592   ac_cv_search_opendir="-l$ac_lib"
10593 break
10594 else
10595   echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10597
10598 fi
10599 rm -f conftest.err conftest.$ac_objext \
10600       conftest$ac_exeext conftest.$ac_ext
10601   done
10602 fi
10603 LIBS=$ac_func_search_save_LIBS
10604 fi
10605 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10606 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10607 if test "$ac_cv_search_opendir" != no; then
10608   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10609
10610 fi
10611
10612 else
10613   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10614 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10615 if test "${ac_cv_search_opendir+set}" = set; then
10616   echo $ECHO_N "(cached) $ECHO_C" >&6
10617 else
10618   ac_func_search_save_LIBS=$LIBS
10619 ac_cv_search_opendir=no
10620 cat >conftest.$ac_ext <<_ACEOF
10621 /* confdefs.h.  */
10622 _ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h.  */
10626
10627 /* Override any gcc2 internal prototype to avoid an error.  */
10628 #ifdef __cplusplus
10629 extern "C"
10630 #endif
10631 /* We use char because int might match the return type of a gcc2
10632    builtin and then its argument prototype would still apply.  */
10633 char opendir ();
10634 int
10635 main ()
10636 {
10637 opendir ();
10638   ;
10639   return 0;
10640 }
10641 _ACEOF
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10644   (eval $ac_link) 2>conftest.er1
10645   ac_status=$?
10646   grep -v '^ *+' conftest.er1 >conftest.err
10647   rm -f conftest.er1
10648   cat conftest.err >&5
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); } &&
10651          { ac_try='test -z "$ac_c_werror_flag"
10652                          || test ! -s conftest.err'
10653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654   (eval $ac_try) 2>&5
10655   ac_status=$?
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); }; } &&
10658          { ac_try='test -s conftest$ac_exeext'
10659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660   (eval $ac_try) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); }; }; then
10664   ac_cv_search_opendir="none required"
10665 else
10666   echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10668
10669 fi
10670 rm -f conftest.err conftest.$ac_objext \
10671       conftest$ac_exeext conftest.$ac_ext
10672 if test "$ac_cv_search_opendir" = no; then
10673   for ac_lib in x; do
10674     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10675     cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h.  */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h.  */
10681
10682 /* Override any gcc2 internal prototype to avoid an error.  */
10683 #ifdef __cplusplus
10684 extern "C"
10685 #endif
10686 /* We use char because int might match the return type of a gcc2
10687    builtin and then its argument prototype would still apply.  */
10688 char opendir ();
10689 int
10690 main ()
10691 {
10692 opendir ();
10693   ;
10694   return 0;
10695 }
10696 _ACEOF
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10699   (eval $ac_link) 2>conftest.er1
10700   ac_status=$?
10701   grep -v '^ *+' conftest.er1 >conftest.err
10702   rm -f conftest.er1
10703   cat conftest.err >&5
10704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705   (exit $ac_status); } &&
10706          { ac_try='test -z "$ac_c_werror_flag"
10707                          || test ! -s conftest.err'
10708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709   (eval $ac_try) 2>&5
10710   ac_status=$?
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); }; } &&
10713          { ac_try='test -s conftest$ac_exeext'
10714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715   (eval $ac_try) 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); }; }; then
10719   ac_cv_search_opendir="-l$ac_lib"
10720 break
10721 else
10722   echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10724
10725 fi
10726 rm -f conftest.err conftest.$ac_objext \
10727       conftest$ac_exeext conftest.$ac_ext
10728   done
10729 fi
10730 LIBS=$ac_func_search_save_LIBS
10731 fi
10732 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10733 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10734 if test "$ac_cv_search_opendir" != no; then
10735   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10736
10737 fi
10738
10739 fi
10740
10741 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10742 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10743 if test "${ac_cv_header_stat_broken+set}" = set; then
10744   echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746   cat >conftest.$ac_ext <<_ACEOF
10747 /* confdefs.h.  */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h.  */
10752 #include <sys/types.h>
10753 #include <sys/stat.h>
10754
10755 #if defined(S_ISBLK) && defined(S_IFDIR)
10756 # if S_ISBLK (S_IFDIR)
10757 You lose.
10758 # endif
10759 #endif
10760
10761 #if defined(S_ISBLK) && defined(S_IFCHR)
10762 # if S_ISBLK (S_IFCHR)
10763 You lose.
10764 # endif
10765 #endif
10766
10767 #if defined(S_ISLNK) && defined(S_IFREG)
10768 # if S_ISLNK (S_IFREG)
10769 You lose.
10770 # endif
10771 #endif
10772
10773 #if defined(S_ISSOCK) && defined(S_IFREG)
10774 # if S_ISSOCK (S_IFREG)
10775 You lose.
10776 # endif
10777 #endif
10778
10779 _ACEOF
10780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10781   $EGREP "You lose" >/dev/null 2>&1; then
10782   ac_cv_header_stat_broken=yes
10783 else
10784   ac_cv_header_stat_broken=no
10785 fi
10786 rm -f conftest*
10787
10788 fi
10789 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10790 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10791 if test $ac_cv_header_stat_broken = yes; then
10792
10793 cat >>confdefs.h <<\_ACEOF
10794 #define STAT_MACROS_BROKEN 1
10795 _ACEOF
10796
10797 fi
10798
10799 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10800 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10801 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10802   echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804   cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h.  */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h.  */
10810 #include <sys/types.h>
10811 #include <sys/wait.h>
10812 #ifndef WEXITSTATUS
10813 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10814 #endif
10815 #ifndef WIFEXITED
10816 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10817 #endif
10818
10819 int
10820 main ()
10821 {
10822   int s;
10823   wait (&s);
10824   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10825   ;
10826   return 0;
10827 }
10828 _ACEOF
10829 rm -f conftest.$ac_objext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10831   (eval $ac_compile) 2>conftest.er1
10832   ac_status=$?
10833   grep -v '^ *+' conftest.er1 >conftest.err
10834   rm -f conftest.er1
10835   cat conftest.err >&5
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); } &&
10838          { ac_try='test -z "$ac_c_werror_flag"
10839                          || test ! -s conftest.err'
10840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841   (eval $ac_try) 2>&5
10842   ac_status=$?
10843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844   (exit $ac_status); }; } &&
10845          { ac_try='test -s conftest.$ac_objext'
10846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847   (eval $ac_try) 2>&5
10848   ac_status=$?
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); }; }; then
10851   ac_cv_header_sys_wait_h=yes
10852 else
10853   echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10855
10856 ac_cv_header_sys_wait_h=no
10857 fi
10858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10859 fi
10860 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10861 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10862 if test $ac_cv_header_sys_wait_h = yes; then
10863
10864 cat >>confdefs.h <<\_ACEOF
10865 #define HAVE_SYS_WAIT_H 1
10866 _ACEOF
10867
10868 fi
10869
10870 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10871 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10872 if test "${ac_cv_header_time+set}" = set; then
10873   echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875   cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h.  */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h.  */
10881 #include <sys/types.h>
10882 #include <sys/time.h>
10883 #include <time.h>
10884
10885 int
10886 main ()
10887 {
10888 if ((struct tm *) 0)
10889 return 0;
10890   ;
10891   return 0;
10892 }
10893 _ACEOF
10894 rm -f conftest.$ac_objext
10895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10896   (eval $ac_compile) 2>conftest.er1
10897   ac_status=$?
10898   grep -v '^ *+' conftest.er1 >conftest.err
10899   rm -f conftest.er1
10900   cat conftest.err >&5
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); } &&
10903          { ac_try='test -z "$ac_c_werror_flag"
10904                          || test ! -s conftest.err'
10905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906   (eval $ac_try) 2>&5
10907   ac_status=$?
10908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909   (exit $ac_status); }; } &&
10910          { ac_try='test -s conftest.$ac_objext'
10911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912   (eval $ac_try) 2>&5
10913   ac_status=$?
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); }; }; then
10916   ac_cv_header_time=yes
10917 else
10918   echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10920
10921 ac_cv_header_time=no
10922 fi
10923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10924 fi
10925 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10926 echo "${ECHO_T}$ac_cv_header_time" >&6
10927 if test $ac_cv_header_time = yes; then
10928
10929 cat >>confdefs.h <<\_ACEOF
10930 #define TIME_WITH_SYS_TIME 1
10931 _ACEOF
10932
10933 fi
10934
10935
10936 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10937 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10938 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10939   echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941   cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h.  */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h.  */
10947 $ac_includes_default
10948 int
10949 main ()
10950 {
10951 static struct stat ac_aggr;
10952 if (ac_aggr.st_blksize)
10953 return 0;
10954   ;
10955   return 0;
10956 }
10957 _ACEOF
10958 rm -f conftest.$ac_objext
10959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10960   (eval $ac_compile) 2>conftest.er1
10961   ac_status=$?
10962   grep -v '^ *+' conftest.er1 >conftest.err
10963   rm -f conftest.er1
10964   cat conftest.err >&5
10965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966   (exit $ac_status); } &&
10967          { ac_try='test -z "$ac_c_werror_flag"
10968                          || test ! -s conftest.err'
10969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970   (eval $ac_try) 2>&5
10971   ac_status=$?
10972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973   (exit $ac_status); }; } &&
10974          { ac_try='test -s conftest.$ac_objext'
10975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976   (eval $ac_try) 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); }; }; then
10980   ac_cv_member_struct_stat_st_blksize=yes
10981 else
10982   echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10984
10985 cat >conftest.$ac_ext <<_ACEOF
10986 /* confdefs.h.  */
10987 _ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h.  */
10991 $ac_includes_default
10992 int
10993 main ()
10994 {
10995 static struct stat ac_aggr;
10996 if (sizeof ac_aggr.st_blksize)
10997 return 0;
10998   ;
10999   return 0;
11000 }
11001 _ACEOF
11002 rm -f conftest.$ac_objext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11004   (eval $ac_compile) 2>conftest.er1
11005   ac_status=$?
11006   grep -v '^ *+' conftest.er1 >conftest.err
11007   rm -f conftest.er1
11008   cat conftest.err >&5
11009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010   (exit $ac_status); } &&
11011          { ac_try='test -z "$ac_c_werror_flag"
11012                          || test ! -s conftest.err'
11013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014   (eval $ac_try) 2>&5
11015   ac_status=$?
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); }; } &&
11018          { ac_try='test -s conftest.$ac_objext'
11019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020   (eval $ac_try) 2>&5
11021   ac_status=$?
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); }; }; then
11024   ac_cv_member_struct_stat_st_blksize=yes
11025 else
11026   echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11028
11029 ac_cv_member_struct_stat_st_blksize=no
11030 fi
11031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11032 fi
11033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11034 fi
11035 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11036 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11037 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11038
11039 cat >>confdefs.h <<_ACEOF
11040 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11041 _ACEOF
11042
11043
11044 cat >>confdefs.h <<\_ACEOF
11045 #define HAVE_ST_BLKSIZE 1
11046 _ACEOF
11047
11048 fi
11049
11050
11051 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11052 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11053 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11054   echo $ECHO_N "(cached) $ECHO_C" >&6
11055 else
11056   cat >conftest.$ac_ext <<_ACEOF
11057 /* confdefs.h.  */
11058 _ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h.  */
11062 $ac_includes_default
11063 int
11064 main ()
11065 {
11066 static struct stat ac_aggr;
11067 if (ac_aggr.st_blocks)
11068 return 0;
11069   ;
11070   return 0;
11071 }
11072 _ACEOF
11073 rm -f conftest.$ac_objext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075   (eval $ac_compile) 2>conftest.er1
11076   ac_status=$?
11077   grep -v '^ *+' conftest.er1 >conftest.err
11078   rm -f conftest.er1
11079   cat conftest.err >&5
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); } &&
11082          { ac_try='test -z "$ac_c_werror_flag"
11083                          || test ! -s conftest.err'
11084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085   (eval $ac_try) 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); }; } &&
11089          { ac_try='test -s conftest.$ac_objext'
11090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091   (eval $ac_try) 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; }; then
11095   ac_cv_member_struct_stat_st_blocks=yes
11096 else
11097   echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100 cat >conftest.$ac_ext <<_ACEOF
11101 /* confdefs.h.  */
11102 _ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h.  */
11106 $ac_includes_default
11107 int
11108 main ()
11109 {
11110 static struct stat ac_aggr;
11111 if (sizeof ac_aggr.st_blocks)
11112 return 0;
11113   ;
11114   return 0;
11115 }
11116 _ACEOF
11117 rm -f conftest.$ac_objext
11118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11119   (eval $ac_compile) 2>conftest.er1
11120   ac_status=$?
11121   grep -v '^ *+' conftest.er1 >conftest.err
11122   rm -f conftest.er1
11123   cat conftest.err >&5
11124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125   (exit $ac_status); } &&
11126          { ac_try='test -z "$ac_c_werror_flag"
11127                          || test ! -s conftest.err'
11128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129   (eval $ac_try) 2>&5
11130   ac_status=$?
11131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132   (exit $ac_status); }; } &&
11133          { ac_try='test -s conftest.$ac_objext'
11134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135   (eval $ac_try) 2>&5
11136   ac_status=$?
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); }; }; then
11139   ac_cv_member_struct_stat_st_blocks=yes
11140 else
11141   echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11143
11144 ac_cv_member_struct_stat_st_blocks=no
11145 fi
11146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11147 fi
11148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11149 fi
11150 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11151 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11152 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11153
11154 cat >>confdefs.h <<_ACEOF
11155 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11156 _ACEOF
11157
11158
11159 cat >>confdefs.h <<\_ACEOF
11160 #define HAVE_ST_BLOCKS 1
11161 _ACEOF
11162
11163 else
11164   case $LIBOBJS in
11165     "fileblocks.$ac_objext"   | \
11166   *" fileblocks.$ac_objext"   | \
11167     "fileblocks.$ac_objext "* | \
11168   *" fileblocks.$ac_objext "* ) ;;
11169   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
11170 esac
11171
11172 fi
11173
11174
11175 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11176 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11177 if test "${ac_cv_struct_tm+set}" = set; then
11178   echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180   cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h.  */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h.  */
11186 #include <sys/types.h>
11187 #include <time.h>
11188
11189 int
11190 main ()
11191 {
11192 struct tm *tp; tp->tm_sec;
11193   ;
11194   return 0;
11195 }
11196 _ACEOF
11197 rm -f conftest.$ac_objext
11198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11199   (eval $ac_compile) 2>conftest.er1
11200   ac_status=$?
11201   grep -v '^ *+' conftest.er1 >conftest.err
11202   rm -f conftest.er1
11203   cat conftest.err >&5
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); } &&
11206          { ac_try='test -z "$ac_c_werror_flag"
11207                          || test ! -s conftest.err'
11208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209   (eval $ac_try) 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); }; } &&
11213          { ac_try='test -s conftest.$ac_objext'
11214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215   (eval $ac_try) 2>&5
11216   ac_status=$?
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); }; }; then
11219   ac_cv_struct_tm=time.h
11220 else
11221   echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11223
11224 ac_cv_struct_tm=sys/time.h
11225 fi
11226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11227 fi
11228 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11229 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11230 if test $ac_cv_struct_tm = sys/time.h; then
11231
11232 cat >>confdefs.h <<\_ACEOF
11233 #define TM_IN_SYS_TIME 1
11234 _ACEOF
11235
11236 fi
11237
11238 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11239 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11240 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11241   echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243   cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h.  */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h.  */
11249 #include <sys/types.h>
11250 #include <$ac_cv_struct_tm>
11251
11252
11253 int
11254 main ()
11255 {
11256 static struct tm ac_aggr;
11257 if (ac_aggr.tm_zone)
11258 return 0;
11259   ;
11260   return 0;
11261 }
11262 _ACEOF
11263 rm -f conftest.$ac_objext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11265   (eval $ac_compile) 2>conftest.er1
11266   ac_status=$?
11267   grep -v '^ *+' conftest.er1 >conftest.err
11268   rm -f conftest.er1
11269   cat conftest.err >&5
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); } &&
11272          { ac_try='test -z "$ac_c_werror_flag"
11273                          || test ! -s conftest.err'
11274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275   (eval $ac_try) 2>&5
11276   ac_status=$?
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); }; } &&
11279          { ac_try='test -s conftest.$ac_objext'
11280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281   (eval $ac_try) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; }; then
11285   ac_cv_member_struct_tm_tm_zone=yes
11286 else
11287   echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11289
11290 cat >conftest.$ac_ext <<_ACEOF
11291 /* confdefs.h.  */
11292 _ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h.  */
11296 #include <sys/types.h>
11297 #include <$ac_cv_struct_tm>
11298
11299
11300 int
11301 main ()
11302 {
11303 static struct tm ac_aggr;
11304 if (sizeof ac_aggr.tm_zone)
11305 return 0;
11306   ;
11307   return 0;
11308 }
11309 _ACEOF
11310 rm -f conftest.$ac_objext
11311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11312   (eval $ac_compile) 2>conftest.er1
11313   ac_status=$?
11314   grep -v '^ *+' conftest.er1 >conftest.err
11315   rm -f conftest.er1
11316   cat conftest.err >&5
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); } &&
11319          { ac_try='test -z "$ac_c_werror_flag"
11320                          || test ! -s conftest.err'
11321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322   (eval $ac_try) 2>&5
11323   ac_status=$?
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); }; } &&
11326          { ac_try='test -s conftest.$ac_objext'
11327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328   (eval $ac_try) 2>&5
11329   ac_status=$?
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); }; }; then
11332   ac_cv_member_struct_tm_tm_zone=yes
11333 else
11334   echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11336
11337 ac_cv_member_struct_tm_tm_zone=no
11338 fi
11339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11340 fi
11341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11342 fi
11343 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11344 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11345 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11346
11347 cat >>confdefs.h <<_ACEOF
11348 #define HAVE_STRUCT_TM_TM_ZONE 1
11349 _ACEOF
11350
11351
11352 fi
11353
11354 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11355
11356 cat >>confdefs.h <<\_ACEOF
11357 #define HAVE_TM_ZONE 1
11358 _ACEOF
11359
11360 else
11361   echo "$as_me:$LINENO: checking for tzname" >&5
11362 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11363 if test "${ac_cv_var_tzname+set}" = set; then
11364   echo $ECHO_N "(cached) $ECHO_C" >&6
11365 else
11366   cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h.  */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h.  */
11372 #include <time.h>
11373 #ifndef tzname /* For SGI.  */
11374 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11375 #endif
11376
11377 int
11378 main ()
11379 {
11380 atoi(*tzname);
11381   ;
11382   return 0;
11383 }
11384 _ACEOF
11385 rm -f conftest.$ac_objext conftest$ac_exeext
11386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11387   (eval $ac_link) 2>conftest.er1
11388   ac_status=$?
11389   grep -v '^ *+' conftest.er1 >conftest.err
11390   rm -f conftest.er1
11391   cat conftest.err >&5
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); } &&
11394          { ac_try='test -z "$ac_c_werror_flag"
11395                          || test ! -s conftest.err'
11396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397   (eval $ac_try) 2>&5
11398   ac_status=$?
11399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400   (exit $ac_status); }; } &&
11401          { ac_try='test -s conftest$ac_exeext'
11402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403   (eval $ac_try) 2>&5
11404   ac_status=$?
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); }; }; then
11407   ac_cv_var_tzname=yes
11408 else
11409   echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11411
11412 ac_cv_var_tzname=no
11413 fi
11414 rm -f conftest.err conftest.$ac_objext \
11415       conftest$ac_exeext conftest.$ac_ext
11416 fi
11417 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11418 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11419   if test $ac_cv_var_tzname = yes; then
11420
11421 cat >>confdefs.h <<\_ACEOF
11422 #define HAVE_TZNAME 1
11423 _ACEOF
11424
11425   fi
11426 fi
11427
11428
11429 echo "$as_me:$LINENO: checking for utime.h" >&5
11430 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11431 if test "${ba_cv_header_utime_h+set}" = set; then
11432   echo $ECHO_N "(cached) $ECHO_C" >&6
11433 else
11434   cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h.  */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h.  */
11440
11441 #include <sys/types.h>
11442 #include <utime.h>
11443 int
11444 main ()
11445 {
11446 struct utimbuf foo
11447   ;
11448   return 0;
11449 }
11450 _ACEOF
11451 rm -f conftest.$ac_objext
11452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11453   (eval $ac_compile) 2>conftest.er1
11454   ac_status=$?
11455   grep -v '^ *+' conftest.er1 >conftest.err
11456   rm -f conftest.er1
11457   cat conftest.err >&5
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); } &&
11460          { ac_try='test -z "$ac_c_werror_flag"
11461                          || test ! -s conftest.err'
11462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463   (eval $ac_try) 2>&5
11464   ac_status=$?
11465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466   (exit $ac_status); }; } &&
11467          { ac_try='test -s conftest.$ac_objext'
11468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469   (eval $ac_try) 2>&5
11470   ac_status=$?
11471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472   (exit $ac_status); }; }; then
11473   ba_cv_header_utime_h=yes
11474 else
11475   echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11477
11478 ba_cv_header_utime_h=no
11479 fi
11480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11481 fi
11482 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11483 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11484 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11485 #define HAVE_UTIME_H 1
11486 _ACEOF
11487
11488
11489 echo "$as_me:$LINENO: checking for socklen_t" >&5
11490 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11491 if test "${ba_cv_header_socklen_t+set}" = set; then
11492   echo $ECHO_N "(cached) $ECHO_C" >&6
11493 else
11494   cat >conftest.$ac_ext <<_ACEOF
11495 /* confdefs.h.  */
11496 _ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h.  */
11500
11501 #include <sys/types.h>
11502 #include <sys/socket.h>
11503 int
11504 main ()
11505 {
11506 socklen_t x
11507   ;
11508   return 0;
11509 }
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513   (eval $ac_compile) 2>conftest.er1
11514   ac_status=$?
11515   grep -v '^ *+' conftest.er1 >conftest.err
11516   rm -f conftest.er1
11517   cat conftest.err >&5
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); } &&
11520          { ac_try='test -z "$ac_c_werror_flag"
11521                          || test ! -s conftest.err'
11522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523   (eval $ac_try) 2>&5
11524   ac_status=$?
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); }; } &&
11527          { ac_try='test -s conftest.$ac_objext'
11528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529   (eval $ac_try) 2>&5
11530   ac_status=$?
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); }; }; then
11533   ba_cv_header_socklen_t=yes
11534 else
11535   echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11537
11538 ba_cv_header_socklen_t=no
11539 fi
11540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11541 fi
11542 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11543 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11544 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11545 #define HAVE_SOCKLEN_T 1
11546 _ACEOF
11547
11548
11549 echo "$as_me:$LINENO: checking for bigendian" >&5
11550 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11551 if test "${ba_cv_bigendian+set}" = set; then
11552   echo $ECHO_N "(cached) $ECHO_C" >&6
11553 else
11554   if test "$cross_compiling" = yes; then
11555   ba_cv_bigendian=no
11556 else
11557   cat >conftest.$ac_ext <<_ACEOF
11558 /* confdefs.h.  */
11559 _ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h.  */
11563 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11564 _ACEOF
11565 rm -f conftest$ac_exeext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11567   (eval $ac_link) 2>&5
11568   ac_status=$?
11569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572   (eval $ac_try) 2>&5
11573   ac_status=$?
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); }; }; then
11576   ba_cv_bigendian=yes
11577 else
11578   echo "$as_me: program exited with status $ac_status" >&5
11579 echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11581
11582 ( exit $ac_status )
11583 ba_cv_bigendian=no
11584 fi
11585 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11586 fi
11587 fi
11588 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11589 echo "${ECHO_T}$ba_cv_bigendian" >&6
11590 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11591 #define HAVE_BIGENDIAN 1
11592 _ACEOF
11593
11594
11595
11596 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11597 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11598 if test "${ac_cv_c_const+set}" = set; then
11599   echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601   cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h.  */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h.  */
11607
11608 int
11609 main ()
11610 {
11611 /* FIXME: Include the comments suggested by Paul. */
11612 #ifndef __cplusplus
11613   /* Ultrix mips cc rejects this.  */
11614   typedef int charset[2];
11615   const charset x;
11616   /* SunOS 4.1.1 cc rejects this.  */
11617   char const *const *ccp;
11618   char **p;
11619   /* NEC SVR4.0.2 mips cc rejects this.  */
11620   struct point {int x, y;};
11621   static struct point const zero = {0,0};
11622   /* AIX XL C 1.02.0.0 rejects this.
11623      It does not let you subtract one const X* pointer from another in
11624      an arm of an if-expression whose if-part is not a constant
11625      expression */
11626   const char *g = "string";
11627   ccp = &g + (g ? g-g : 0);
11628   /* HPUX 7.0 cc rejects these. */
11629   ++ccp;
11630   p = (char**) ccp;
11631   ccp = (char const *const *) p;
11632   { /* SCO 3.2v4 cc rejects this.  */
11633     char *t;
11634     char const *s = 0 ? (char *) 0 : (char const *) 0;
11635
11636     *t++ = 0;
11637   }
11638   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11639     int x[] = {25, 17};
11640     const int *foo = &x[0];
11641     ++foo;
11642   }
11643   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11644     typedef const int *iptr;
11645     iptr p = 0;
11646     ++p;
11647   }
11648   { /* AIX XL C 1.02.0.0 rejects this saying
11649        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11650     struct s { int j; const int *ap[3]; };
11651     struct s *b; b->j = 5;
11652   }
11653   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11654     const int foo = 10;
11655   }
11656 #endif
11657
11658   ;
11659   return 0;
11660 }
11661 _ACEOF
11662 rm -f conftest.$ac_objext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11664   (eval $ac_compile) 2>conftest.er1
11665   ac_status=$?
11666   grep -v '^ *+' conftest.er1 >conftest.err
11667   rm -f conftest.er1
11668   cat conftest.err >&5
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); } &&
11671          { ac_try='test -z "$ac_c_werror_flag"
11672                          || test ! -s conftest.err'
11673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674   (eval $ac_try) 2>&5
11675   ac_status=$?
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); }; } &&
11678          { ac_try='test -s conftest.$ac_objext'
11679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680   (eval $ac_try) 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; }; then
11684   ac_cv_c_const=yes
11685 else
11686   echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11688
11689 ac_cv_c_const=no
11690 fi
11691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11692 fi
11693 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11694 echo "${ECHO_T}$ac_cv_c_const" >&6
11695 if test $ac_cv_c_const = no; then
11696
11697 cat >>confdefs.h <<\_ACEOF
11698 #define const
11699 _ACEOF
11700
11701 fi
11702
11703
11704
11705 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11706 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11707 fstype=no
11708 # The order of these tests is important.
11709 cat >conftest.$ac_ext <<_ACEOF
11710 /* confdefs.h.  */
11711 _ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h.  */
11715 #include <sys/statvfs.h>
11716 #include <sys/fstyp.h>
11717 _ACEOF
11718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11719   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11720   ac_status=$?
11721   grep -v '^ *+' conftest.er1 >conftest.err
11722   rm -f conftest.er1
11723   cat conftest.err >&5
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); } >/dev/null; then
11726   if test -s conftest.err; then
11727     ac_cpp_err=$ac_c_preproc_warn_flag
11728     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11729   else
11730     ac_cpp_err=
11731   fi
11732 else
11733   ac_cpp_err=yes
11734 fi
11735 if test -z "$ac_cpp_err"; then
11736   cat >>confdefs.h <<\_ACEOF
11737 #define FSTYPE_STATVFS 1
11738 _ACEOF
11739  fstype=SVR4
11740 else
11741   echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11743
11744
11745 fi
11746 rm -f conftest.err conftest.$ac_ext
11747 if test $fstype = no; then
11748 cat >conftest.$ac_ext <<_ACEOF
11749 /* confdefs.h.  */
11750 _ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h.  */
11754 #include <sys/statfs.h>
11755 #include <sys/fstyp.h>
11756 _ACEOF
11757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11758   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11759   ac_status=$?
11760   grep -v '^ *+' conftest.er1 >conftest.err
11761   rm -f conftest.er1
11762   cat conftest.err >&5
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); } >/dev/null; then
11765   if test -s conftest.err; then
11766     ac_cpp_err=$ac_c_preproc_warn_flag
11767     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11768   else
11769     ac_cpp_err=
11770   fi
11771 else
11772   ac_cpp_err=yes
11773 fi
11774 if test -z "$ac_cpp_err"; then
11775   cat >>confdefs.h <<\_ACEOF
11776 #define FSTYPE_USG_STATFS 1
11777 _ACEOF
11778  fstype=SVR3
11779 else
11780   echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783
11784 fi
11785 rm -f conftest.err conftest.$ac_ext
11786 fi
11787 if test $fstype = no; then
11788 cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h.  */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h.  */
11794 #include <sys/statfs.h>
11795 #include <sys/vmount.h>
11796 _ACEOF
11797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11798   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11799   ac_status=$?
11800   grep -v '^ *+' conftest.er1 >conftest.err
11801   rm -f conftest.er1
11802   cat conftest.err >&5
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); } >/dev/null; then
11805   if test -s conftest.err; then
11806     ac_cpp_err=$ac_c_preproc_warn_flag
11807     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11808   else
11809     ac_cpp_err=
11810   fi
11811 else
11812   ac_cpp_err=yes
11813 fi
11814 if test -z "$ac_cpp_err"; then
11815   cat >>confdefs.h <<\_ACEOF
11816 #define FSTYPE_AIX_STATFS 1
11817 _ACEOF
11818  fstype=AIX
11819 else
11820   echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11822
11823
11824 fi
11825 rm -f conftest.err conftest.$ac_ext
11826 fi
11827 if test $fstype = no; then
11828 cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h.  */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h.  */
11834 #include <mntent.h>
11835 _ACEOF
11836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11837   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11838   ac_status=$?
11839   grep -v '^ *+' conftest.er1 >conftest.err
11840   rm -f conftest.er1
11841   cat conftest.err >&5
11842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); } >/dev/null; then
11844   if test -s conftest.err; then
11845     ac_cpp_err=$ac_c_preproc_warn_flag
11846     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11847   else
11848     ac_cpp_err=
11849   fi
11850 else
11851   ac_cpp_err=yes
11852 fi
11853 if test -z "$ac_cpp_err"; then
11854   cat >>confdefs.h <<\_ACEOF
11855 #define FSTYPE_MNTENT 1
11856 _ACEOF
11857  fstype=4.3BSD
11858 else
11859   echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11861
11862
11863 fi
11864 rm -f conftest.err conftest.$ac_ext
11865 fi
11866 if test $fstype = no; then
11867 cat >conftest.$ac_ext <<_ACEOF
11868 /* confdefs.h.  */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h.  */
11873 #include <sys/mount.h>
11874
11875 _ACEOF
11876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11877   $EGREP "f_type;" >/dev/null 2>&1; then
11878   cat >>confdefs.h <<\_ACEOF
11879 #define FSTYPE_STATFS 1
11880 _ACEOF
11881  fstype=4.4BSD/OSF1
11882 fi
11883 rm -f conftest*
11884
11885 fi
11886 if test $fstype = no; then
11887 cat >conftest.$ac_ext <<_ACEOF
11888 /* confdefs.h.  */
11889 _ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h.  */
11893 #include <sys/mount.h>
11894 #include <sys/fs_types.h>
11895 _ACEOF
11896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11897   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11898   ac_status=$?
11899   grep -v '^ *+' conftest.er1 >conftest.err
11900   rm -f conftest.er1
11901   cat conftest.err >&5
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); } >/dev/null; then
11904   if test -s conftest.err; then
11905     ac_cpp_err=$ac_c_preproc_warn_flag
11906     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11907   else
11908     ac_cpp_err=
11909   fi
11910 else
11911   ac_cpp_err=yes
11912 fi
11913 if test -z "$ac_cpp_err"; then
11914   cat >>confdefs.h <<\_ACEOF
11915 #define FSTYPE_GETMNT 1
11916 _ACEOF
11917  fstype=Ultrix
11918 else
11919   echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11921
11922
11923 fi
11924 rm -f conftest.err conftest.$ac_ext
11925 fi
11926 echo "$as_me:$LINENO: result: $fstype" >&5
11927 echo "${ECHO_T}$fstype" >&6
11928
11929 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11930 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11931 if test "${ac_cv_type_signal+set}" = set; then
11932   echo $ECHO_N "(cached) $ECHO_C" >&6
11933 else
11934   cat >conftest.$ac_ext <<_ACEOF
11935 /* confdefs.h.  */
11936 _ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h.  */
11940 #include <sys/types.h>
11941 #include <signal.h>
11942 #ifdef signal
11943 # undef signal
11944 #endif
11945 #ifdef __cplusplus
11946 extern "C" void (*signal (int, void (*)(int)))(int);
11947 #else
11948 void (*signal ()) ();
11949 #endif
11950
11951 int
11952 main ()
11953 {
11954 int i;
11955   ;
11956   return 0;
11957 }
11958 _ACEOF
11959 rm -f conftest.$ac_objext
11960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11961   (eval $ac_compile) 2>conftest.er1
11962   ac_status=$?
11963   grep -v '^ *+' conftest.er1 >conftest.err
11964   rm -f conftest.er1
11965   cat conftest.err >&5
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); } &&
11968          { ac_try='test -z "$ac_c_werror_flag"
11969                          || test ! -s conftest.err'
11970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971   (eval $ac_try) 2>&5
11972   ac_status=$?
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); }; } &&
11975          { ac_try='test -s conftest.$ac_objext'
11976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977   (eval $ac_try) 2>&5
11978   ac_status=$?
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); }; }; then
11981   ac_cv_type_signal=void
11982 else
11983   echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11985
11986 ac_cv_type_signal=int
11987 fi
11988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11989 fi
11990 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11991 echo "${ECHO_T}$ac_cv_type_signal" >&6
11992
11993 cat >>confdefs.h <<_ACEOF
11994 #define RETSIGTYPE $ac_cv_type_signal
11995 _ACEOF
11996
11997
11998
11999 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12000 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12001 if test "${bash_cv_signal_vintage+set}" = set; then
12002   echo $ECHO_N "(cached) $ECHO_C" >&6
12003 else
12004
12005   cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h.  */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h.  */
12011 #include <signal.h>
12012 int
12013 main ()
12014 {
12015
12016     sigset_t ss;
12017     struct sigaction sa;
12018     sigemptyset(&ss); sigsuspend(&ss);
12019     sigaction(SIGINT, &sa, (struct sigaction *) 0);
12020     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12021
12022   ;
12023   return 0;
12024 }
12025 _ACEOF
12026 rm -f conftest.$ac_objext conftest$ac_exeext
12027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028   (eval $ac_link) 2>conftest.er1
12029   ac_status=$?
12030   grep -v '^ *+' conftest.er1 >conftest.err
12031   rm -f conftest.er1
12032   cat conftest.err >&5
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); } &&
12035          { ac_try='test -z "$ac_c_werror_flag"
12036                          || test ! -s conftest.err'
12037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038   (eval $ac_try) 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; } &&
12042          { ac_try='test -s conftest$ac_exeext'
12043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044   (eval $ac_try) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; }; then
12048   bash_cv_signal_vintage=posix
12049 else
12050   echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12052
12053
12054     cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h.  */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h.  */
12060 #include <signal.h>
12061 int
12062 main ()
12063 {
12064
12065         int mask = sigmask(SIGINT);
12066         sigsetmask(mask); sigblock(mask); sigpause(mask);
12067
12068   ;
12069   return 0;
12070 }
12071 _ACEOF
12072 rm -f conftest.$ac_objext conftest$ac_exeext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12074   (eval $ac_link) 2>conftest.er1
12075   ac_status=$?
12076   grep -v '^ *+' conftest.er1 >conftest.err
12077   rm -f conftest.er1
12078   cat conftest.err >&5
12079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080   (exit $ac_status); } &&
12081          { ac_try='test -z "$ac_c_werror_flag"
12082                          || test ! -s conftest.err'
12083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084   (eval $ac_try) 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); }; } &&
12088          { ac_try='test -s conftest$ac_exeext'
12089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090   (eval $ac_try) 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); }; }; then
12094   bash_cv_signal_vintage=4.2bsd
12095 else
12096   echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12098
12099
12100       cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h.  */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h.  */
12106
12107         #include <signal.h>
12108         RETSIGTYPE foo() { }
12109 int
12110 main ()
12111 {
12112
12113                 int mask = sigmask(SIGINT);
12114                 sigset(SIGINT, foo); sigrelse(SIGINT);
12115                 sighold(SIGINT); sigpause(SIGINT);
12116
12117   ;
12118   return 0;
12119 }
12120 _ACEOF
12121 rm -f conftest.$ac_objext conftest$ac_exeext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12123   (eval $ac_link) 2>conftest.er1
12124   ac_status=$?
12125   grep -v '^ *+' conftest.er1 >conftest.err
12126   rm -f conftest.er1
12127   cat conftest.err >&5
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); } &&
12130          { ac_try='test -z "$ac_c_werror_flag"
12131                          || test ! -s conftest.err'
12132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133   (eval $ac_try) 2>&5
12134   ac_status=$?
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); }; } &&
12137          { ac_try='test -s conftest$ac_exeext'
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   bash_cv_signal_vintage=svr3
12144 else
12145   echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12147
12148 bash_cv_signal_vintage=v7
12149
12150 fi
12151 rm -f conftest.err conftest.$ac_objext \
12152       conftest$ac_exeext conftest.$ac_ext
12153
12154 fi
12155 rm -f conftest.err conftest.$ac_objext \
12156       conftest$ac_exeext conftest.$ac_ext
12157
12158 fi
12159 rm -f conftest.err conftest.$ac_objext \
12160       conftest$ac_exeext conftest.$ac_ext
12161
12162 fi
12163
12164 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12165 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12166 if test "$bash_cv_signal_vintage" = posix; then
12167 cat >>confdefs.h <<\_ACEOF
12168 #define HAVE_POSIX_SIGNALS 1
12169 _ACEOF
12170
12171 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12172 cat >>confdefs.h <<\_ACEOF
12173 #define HAVE_BSD_SIGNALS 1
12174 _ACEOF
12175
12176 elif test "$bash_cv_signal_vintage" = svr3; then
12177 cat >>confdefs.h <<\_ACEOF
12178 #define HAVE_USG_SIGHOLD 1
12179 _ACEOF
12180
12181 fi
12182
12183 echo "$as_me:$LINENO: checking for mode_t" >&5
12184 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12185 if test "${ac_cv_type_mode_t+set}" = set; then
12186   echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188   cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h.  */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h.  */
12194 $ac_includes_default
12195 int
12196 main ()
12197 {
12198 if ((mode_t *) 0)
12199   return 0;
12200 if (sizeof (mode_t))
12201   return 0;
12202   ;
12203   return 0;
12204 }
12205 _ACEOF
12206 rm -f conftest.$ac_objext
12207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12208   (eval $ac_compile) 2>conftest.er1
12209   ac_status=$?
12210   grep -v '^ *+' conftest.er1 >conftest.err
12211   rm -f conftest.er1
12212   cat conftest.err >&5
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); } &&
12215          { ac_try='test -z "$ac_c_werror_flag"
12216                          || test ! -s conftest.err'
12217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218   (eval $ac_try) 2>&5
12219   ac_status=$?
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); }; } &&
12222          { ac_try='test -s conftest.$ac_objext'
12223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224   (eval $ac_try) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; }; then
12228   ac_cv_type_mode_t=yes
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 ac_cv_type_mode_t=no
12234 fi
12235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12236 fi
12237 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12238 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12239 if test $ac_cv_type_mode_t = yes; then
12240   :
12241 else
12242
12243 cat >>confdefs.h <<_ACEOF
12244 #define mode_t int
12245 _ACEOF
12246
12247 fi
12248
12249 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12250 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12251 if test "${ac_cv_type_uid_t+set}" = set; then
12252   echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254   cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h.  */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h.  */
12260 #include <sys/types.h>
12261
12262 _ACEOF
12263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12264   $EGREP "uid_t" >/dev/null 2>&1; then
12265   ac_cv_type_uid_t=yes
12266 else
12267   ac_cv_type_uid_t=no
12268 fi
12269 rm -f conftest*
12270
12271 fi
12272 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12273 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12274 if test $ac_cv_type_uid_t = no; then
12275
12276 cat >>confdefs.h <<\_ACEOF
12277 #define uid_t int
12278 _ACEOF
12279
12280
12281 cat >>confdefs.h <<\_ACEOF
12282 #define gid_t int
12283 _ACEOF
12284
12285 fi
12286
12287 echo "$as_me:$LINENO: checking for size_t" >&5
12288 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12289 if test "${ac_cv_type_size_t+set}" = set; then
12290   echo $ECHO_N "(cached) $ECHO_C" >&6
12291 else
12292   cat >conftest.$ac_ext <<_ACEOF
12293 /* confdefs.h.  */
12294 _ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h.  */
12298 $ac_includes_default
12299 int
12300 main ()
12301 {
12302 if ((size_t *) 0)
12303   return 0;
12304 if (sizeof (size_t))
12305   return 0;
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312   (eval $ac_compile) 2>conftest.er1
12313   ac_status=$?
12314   grep -v '^ *+' conftest.er1 >conftest.err
12315   rm -f conftest.er1
12316   cat conftest.err >&5
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); } &&
12319          { ac_try='test -z "$ac_c_werror_flag"
12320                          || test ! -s conftest.err'
12321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322   (eval $ac_try) 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }; } &&
12326          { ac_try='test -s conftest.$ac_objext'
12327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328   (eval $ac_try) 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); }; }; then
12332   ac_cv_type_size_t=yes
12333 else
12334   echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12336
12337 ac_cv_type_size_t=no
12338 fi
12339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12340 fi
12341 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12342 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12343 if test $ac_cv_type_size_t = yes; then
12344   :
12345 else
12346
12347 cat >>confdefs.h <<_ACEOF
12348 #define size_t unsigned
12349 _ACEOF
12350
12351 fi
12352
12353 echo "$as_me:$LINENO: checking for pid_t" >&5
12354 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12355 if test "${ac_cv_type_pid_t+set}" = set; then
12356   echo $ECHO_N "(cached) $ECHO_C" >&6
12357 else
12358   cat >conftest.$ac_ext <<_ACEOF
12359 /* confdefs.h.  */
12360 _ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h.  */
12364 $ac_includes_default
12365 int
12366 main ()
12367 {
12368 if ((pid_t *) 0)
12369   return 0;
12370 if (sizeof (pid_t))
12371   return 0;
12372   ;
12373   return 0;
12374 }
12375 _ACEOF
12376 rm -f conftest.$ac_objext
12377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12378   (eval $ac_compile) 2>conftest.er1
12379   ac_status=$?
12380   grep -v '^ *+' conftest.er1 >conftest.err
12381   rm -f conftest.er1
12382   cat conftest.err >&5
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); } &&
12385          { ac_try='test -z "$ac_c_werror_flag"
12386                          || test ! -s conftest.err'
12387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388   (eval $ac_try) 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); }; } &&
12392          { ac_try='test -s conftest.$ac_objext'
12393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394   (eval $ac_try) 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); }; }; then
12398   ac_cv_type_pid_t=yes
12399 else
12400   echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12402
12403 ac_cv_type_pid_t=no
12404 fi
12405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12406 fi
12407 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12408 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12409 if test $ac_cv_type_pid_t = yes; then
12410   :
12411 else
12412
12413 cat >>confdefs.h <<_ACEOF
12414 #define pid_t int
12415 _ACEOF
12416
12417 fi
12418
12419 echo "$as_me:$LINENO: checking for off_t" >&5
12420 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12421 if test "${ac_cv_type_off_t+set}" = set; then
12422   echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424   cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h.  */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h.  */
12430 $ac_includes_default
12431 int
12432 main ()
12433 {
12434 if ((off_t *) 0)
12435   return 0;
12436 if (sizeof (off_t))
12437   return 0;
12438   ;
12439   return 0;
12440 }
12441 _ACEOF
12442 rm -f conftest.$ac_objext
12443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12444   (eval $ac_compile) 2>conftest.er1
12445   ac_status=$?
12446   grep -v '^ *+' conftest.er1 >conftest.err
12447   rm -f conftest.er1
12448   cat conftest.err >&5
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); } &&
12451          { ac_try='test -z "$ac_c_werror_flag"
12452                          || test ! -s conftest.err'
12453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454   (eval $ac_try) 2>&5
12455   ac_status=$?
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); }; } &&
12458          { ac_try='test -s conftest.$ac_objext'
12459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460   (eval $ac_try) 2>&5
12461   ac_status=$?
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); }; }; then
12464   ac_cv_type_off_t=yes
12465 else
12466   echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12468
12469 ac_cv_type_off_t=no
12470 fi
12471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12472 fi
12473 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12474 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12475 if test $ac_cv_type_off_t = yes; then
12476   :
12477 else
12478
12479 cat >>confdefs.h <<_ACEOF
12480 #define off_t long
12481 _ACEOF
12482
12483 fi
12484
12485 echo "$as_me:$LINENO: checking for ino_t" >&5
12486 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12487 if test "${ac_cv_type_ino_t+set}" = set; then
12488   echo $ECHO_N "(cached) $ECHO_C" >&6
12489 else
12490   cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h.  */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h.  */
12496 $ac_includes_default
12497 int
12498 main ()
12499 {
12500 if ((ino_t *) 0)
12501   return 0;
12502 if (sizeof (ino_t))
12503   return 0;
12504   ;
12505   return 0;
12506 }
12507 _ACEOF
12508 rm -f conftest.$ac_objext
12509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510   (eval $ac_compile) 2>conftest.er1
12511   ac_status=$?
12512   grep -v '^ *+' conftest.er1 >conftest.err
12513   rm -f conftest.er1
12514   cat conftest.err >&5
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); } &&
12517          { ac_try='test -z "$ac_c_werror_flag"
12518                          || test ! -s conftest.err'
12519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520   (eval $ac_try) 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); }; } &&
12524          { ac_try='test -s conftest.$ac_objext'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; }; then
12530   ac_cv_type_ino_t=yes
12531 else
12532   echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12534
12535 ac_cv_type_ino_t=no
12536 fi
12537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12538 fi
12539 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12540 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12541 if test $ac_cv_type_ino_t = yes; then
12542   :
12543 else
12544
12545 cat >>confdefs.h <<_ACEOF
12546 #define ino_t unsigned long
12547 _ACEOF
12548
12549 fi
12550
12551 echo "$as_me:$LINENO: checking for dev_t" >&5
12552 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12553 if test "${ac_cv_type_dev_t+set}" = set; then
12554   echo $ECHO_N "(cached) $ECHO_C" >&6
12555 else
12556   cat >conftest.$ac_ext <<_ACEOF
12557 /* confdefs.h.  */
12558 _ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h.  */
12562 $ac_includes_default
12563 int
12564 main ()
12565 {
12566 if ((dev_t *) 0)
12567   return 0;
12568 if (sizeof (dev_t))
12569   return 0;
12570   ;
12571   return 0;
12572 }
12573 _ACEOF
12574 rm -f conftest.$ac_objext
12575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12576   (eval $ac_compile) 2>conftest.er1
12577   ac_status=$?
12578   grep -v '^ *+' conftest.er1 >conftest.err
12579   rm -f conftest.er1
12580   cat conftest.err >&5
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); } &&
12583          { ac_try='test -z "$ac_c_werror_flag"
12584                          || test ! -s conftest.err'
12585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586   (eval $ac_try) 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); }; } &&
12590          { ac_try='test -s conftest.$ac_objext'
12591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592   (eval $ac_try) 2>&5
12593   ac_status=$?
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); }; }; then
12596   ac_cv_type_dev_t=yes
12597 else
12598   echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12600
12601 ac_cv_type_dev_t=no
12602 fi
12603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12604 fi
12605 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12606 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12607 if test $ac_cv_type_dev_t = yes; then
12608   :
12609 else
12610
12611 cat >>confdefs.h <<_ACEOF
12612 #define dev_t unsigned long
12613 _ACEOF
12614
12615 fi
12616
12617 echo "$as_me:$LINENO: checking for daddr_t" >&5
12618 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12619 if test "${ac_cv_type_daddr_t+set}" = set; then
12620   echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622   cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h.  */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h.  */
12628 $ac_includes_default
12629 int
12630 main ()
12631 {
12632 if ((daddr_t *) 0)
12633   return 0;
12634 if (sizeof (daddr_t))
12635   return 0;
12636   ;
12637   return 0;
12638 }
12639 _ACEOF
12640 rm -f conftest.$ac_objext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642   (eval $ac_compile) 2>conftest.er1
12643   ac_status=$?
12644   grep -v '^ *+' conftest.er1 >conftest.err
12645   rm -f conftest.er1
12646   cat conftest.err >&5
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); } &&
12649          { ac_try='test -z "$ac_c_werror_flag"
12650                          || test ! -s conftest.err'
12651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652   (eval $ac_try) 2>&5
12653   ac_status=$?
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); }; } &&
12656          { ac_try='test -s conftest.$ac_objext'
12657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658   (eval $ac_try) 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); }; }; then
12662   ac_cv_type_daddr_t=yes
12663 else
12664   echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667 ac_cv_type_daddr_t=no
12668 fi
12669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12670 fi
12671 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12672 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12673 if test $ac_cv_type_daddr_t = yes; then
12674   :
12675 else
12676
12677 cat >>confdefs.h <<_ACEOF
12678 #define daddr_t long
12679 _ACEOF
12680
12681 fi
12682
12683 echo "$as_me:$LINENO: checking for major_t" >&5
12684 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12685 if test "${ac_cv_type_major_t+set}" = set; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688   cat >conftest.$ac_ext <<_ACEOF
12689 /* confdefs.h.  */
12690 _ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h.  */
12694 $ac_includes_default
12695 int
12696 main ()
12697 {
12698 if ((major_t *) 0)
12699   return 0;
12700 if (sizeof (major_t))
12701   return 0;
12702   ;
12703   return 0;
12704 }
12705 _ACEOF
12706 rm -f conftest.$ac_objext
12707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12708   (eval $ac_compile) 2>conftest.er1
12709   ac_status=$?
12710   grep -v '^ *+' conftest.er1 >conftest.err
12711   rm -f conftest.er1
12712   cat conftest.err >&5
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); } &&
12715          { ac_try='test -z "$ac_c_werror_flag"
12716                          || test ! -s conftest.err'
12717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718   (eval $ac_try) 2>&5
12719   ac_status=$?
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); }; } &&
12722          { ac_try='test -s conftest.$ac_objext'
12723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724   (eval $ac_try) 2>&5
12725   ac_status=$?
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); }; }; then
12728   ac_cv_type_major_t=yes
12729 else
12730   echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733 ac_cv_type_major_t=no
12734 fi
12735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12736 fi
12737 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12738 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12739 if test $ac_cv_type_major_t = yes; then
12740   :
12741 else
12742
12743 cat >>confdefs.h <<_ACEOF
12744 #define major_t int
12745 _ACEOF
12746
12747 fi
12748
12749 echo "$as_me:$LINENO: checking for minor_t" >&5
12750 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12751 if test "${ac_cv_type_minor_t+set}" = set; then
12752   echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754   cat >conftest.$ac_ext <<_ACEOF
12755 /* confdefs.h.  */
12756 _ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h.  */
12760 $ac_includes_default
12761 int
12762 main ()
12763 {
12764 if ((minor_t *) 0)
12765   return 0;
12766 if (sizeof (minor_t))
12767   return 0;
12768   ;
12769   return 0;
12770 }
12771 _ACEOF
12772 rm -f conftest.$ac_objext
12773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12774   (eval $ac_compile) 2>conftest.er1
12775   ac_status=$?
12776   grep -v '^ *+' conftest.er1 >conftest.err
12777   rm -f conftest.er1
12778   cat conftest.err >&5
12779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780   (exit $ac_status); } &&
12781          { ac_try='test -z "$ac_c_werror_flag"
12782                          || test ! -s conftest.err'
12783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784   (eval $ac_try) 2>&5
12785   ac_status=$?
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); }; } &&
12788          { ac_try='test -s conftest.$ac_objext'
12789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790   (eval $ac_try) 2>&5
12791   ac_status=$?
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); }; }; then
12794   ac_cv_type_minor_t=yes
12795 else
12796   echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799 ac_cv_type_minor_t=no
12800 fi
12801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12802 fi
12803 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12804 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12805 if test $ac_cv_type_minor_t = yes; then
12806   :
12807 else
12808
12809 cat >>confdefs.h <<_ACEOF
12810 #define minor_t int
12811 _ACEOF
12812
12813 fi
12814
12815 echo "$as_me:$LINENO: checking for ssize_t" >&5
12816 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12817 if test "${ac_cv_type_ssize_t+set}" = set; then
12818   echo $ECHO_N "(cached) $ECHO_C" >&6
12819 else
12820   cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h.  */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h.  */
12826 $ac_includes_default
12827 int
12828 main ()
12829 {
12830 if ((ssize_t *) 0)
12831   return 0;
12832 if (sizeof (ssize_t))
12833   return 0;
12834   ;
12835   return 0;
12836 }
12837 _ACEOF
12838 rm -f conftest.$ac_objext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12840   (eval $ac_compile) 2>conftest.er1
12841   ac_status=$?
12842   grep -v '^ *+' conftest.er1 >conftest.err
12843   rm -f conftest.er1
12844   cat conftest.err >&5
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); } &&
12847          { ac_try='test -z "$ac_c_werror_flag"
12848                          || test ! -s conftest.err'
12849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850   (eval $ac_try) 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); }; } &&
12854          { ac_try='test -s conftest.$ac_objext'
12855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856   (eval $ac_try) 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; }; then
12860   ac_cv_type_ssize_t=yes
12861 else
12862   echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12864
12865 ac_cv_type_ssize_t=no
12866 fi
12867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12868 fi
12869 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12870 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12871 if test $ac_cv_type_ssize_t = yes; then
12872   :
12873 else
12874
12875 cat >>confdefs.h <<_ACEOF
12876 #define ssize_t int
12877 _ACEOF
12878
12879 fi
12880
12881 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12882 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12883 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12884   echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886   cat >conftest.$ac_ext <<_ACEOF
12887 /* confdefs.h.  */
12888 _ACEOF
12889 cat confdefs.h >>conftest.$ac_ext
12890 cat >>conftest.$ac_ext <<_ACEOF
12891 /* end confdefs.h.  */
12892 $ac_includes_default
12893 int
12894 main ()
12895 {
12896 static struct stat ac_aggr;
12897 if (ac_aggr.st_blocks)
12898 return 0;
12899   ;
12900   return 0;
12901 }
12902 _ACEOF
12903 rm -f conftest.$ac_objext
12904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12905   (eval $ac_compile) 2>conftest.er1
12906   ac_status=$?
12907   grep -v '^ *+' conftest.er1 >conftest.err
12908   rm -f conftest.er1
12909   cat conftest.err >&5
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); } &&
12912          { ac_try='test -z "$ac_c_werror_flag"
12913                          || test ! -s conftest.err'
12914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915   (eval $ac_try) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; } &&
12919          { ac_try='test -s conftest.$ac_objext'
12920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921   (eval $ac_try) 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); }; }; then
12925   ac_cv_member_struct_stat_st_blocks=yes
12926 else
12927   echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930 cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h.  */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h.  */
12936 $ac_includes_default
12937 int
12938 main ()
12939 {
12940 static struct stat ac_aggr;
12941 if (sizeof ac_aggr.st_blocks)
12942 return 0;
12943   ;
12944   return 0;
12945 }
12946 _ACEOF
12947 rm -f conftest.$ac_objext
12948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12949   (eval $ac_compile) 2>conftest.er1
12950   ac_status=$?
12951   grep -v '^ *+' conftest.er1 >conftest.err
12952   rm -f conftest.er1
12953   cat conftest.err >&5
12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); } &&
12956          { ac_try='test -z "$ac_c_werror_flag"
12957                          || test ! -s conftest.err'
12958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959   (eval $ac_try) 2>&5
12960   ac_status=$?
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); }; } &&
12963          { ac_try='test -s conftest.$ac_objext'
12964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12965   (eval $ac_try) 2>&5
12966   ac_status=$?
12967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968   (exit $ac_status); }; }; then
12969   ac_cv_member_struct_stat_st_blocks=yes
12970 else
12971   echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12973
12974 ac_cv_member_struct_stat_st_blocks=no
12975 fi
12976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12977 fi
12978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12979 fi
12980 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12981 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12982 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12983
12984 cat >>confdefs.h <<_ACEOF
12985 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12986 _ACEOF
12987
12988
12989 cat >>confdefs.h <<\_ACEOF
12990 #define HAVE_ST_BLOCKS 1
12991 _ACEOF
12992
12993 else
12994   case $LIBOBJS in
12995     "fileblocks.$ac_objext"   | \
12996   *" fileblocks.$ac_objext"   | \
12997     "fileblocks.$ac_objext "* | \
12998   *" fileblocks.$ac_objext "* ) ;;
12999   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
13000 esac
13001
13002 fi
13003
13004
13005
13006 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13007 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13008 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13009   echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011   cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h.  */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h.  */
13017 $ac_includes_default
13018 int
13019 main ()
13020 {
13021 static struct stat ac_aggr;
13022 if (ac_aggr.st_rdev)
13023 return 0;
13024   ;
13025   return 0;
13026 }
13027 _ACEOF
13028 rm -f conftest.$ac_objext
13029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13030   (eval $ac_compile) 2>conftest.er1
13031   ac_status=$?
13032   grep -v '^ *+' conftest.er1 >conftest.err
13033   rm -f conftest.er1
13034   cat conftest.err >&5
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); } &&
13037          { ac_try='test -z "$ac_c_werror_flag"
13038                          || test ! -s conftest.err'
13039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040   (eval $ac_try) 2>&5
13041   ac_status=$?
13042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043   (exit $ac_status); }; } &&
13044          { ac_try='test -s conftest.$ac_objext'
13045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046   (eval $ac_try) 2>&5
13047   ac_status=$?
13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); }; }; then
13050   ac_cv_member_struct_stat_st_rdev=yes
13051 else
13052   echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13054
13055 cat >conftest.$ac_ext <<_ACEOF
13056 /* confdefs.h.  */
13057 _ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h.  */
13061 $ac_includes_default
13062 int
13063 main ()
13064 {
13065 static struct stat ac_aggr;
13066 if (sizeof ac_aggr.st_rdev)
13067 return 0;
13068   ;
13069   return 0;
13070 }
13071 _ACEOF
13072 rm -f conftest.$ac_objext
13073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13074   (eval $ac_compile) 2>conftest.er1
13075   ac_status=$?
13076   grep -v '^ *+' conftest.er1 >conftest.err
13077   rm -f conftest.er1
13078   cat conftest.err >&5
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } &&
13081          { ac_try='test -z "$ac_c_werror_flag"
13082                          || test ! -s conftest.err'
13083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084   (eval $ac_try) 2>&5
13085   ac_status=$?
13086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087   (exit $ac_status); }; } &&
13088          { ac_try='test -s conftest.$ac_objext'
13089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13090   (eval $ac_try) 2>&5
13091   ac_status=$?
13092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); }; }; then
13094   ac_cv_member_struct_stat_st_rdev=yes
13095 else
13096   echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13098
13099 ac_cv_member_struct_stat_st_rdev=no
13100 fi
13101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13102 fi
13103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13104 fi
13105 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13106 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13107 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13108
13109 cat >>confdefs.h <<_ACEOF
13110 #define HAVE_STRUCT_STAT_ST_RDEV 1
13111 _ACEOF
13112
13113
13114 cat >>confdefs.h <<\_ACEOF
13115 #define HAVE_ST_RDEV 1
13116 _ACEOF
13117
13118 fi
13119
13120
13121 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13122 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13123 if test "${ac_cv_struct_tm+set}" = set; then
13124   echo $ECHO_N "(cached) $ECHO_C" >&6
13125 else
13126   cat >conftest.$ac_ext <<_ACEOF
13127 /* confdefs.h.  */
13128 _ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h.  */
13132 #include <sys/types.h>
13133 #include <time.h>
13134
13135 int
13136 main ()
13137 {
13138 struct tm *tp; tp->tm_sec;
13139   ;
13140   return 0;
13141 }
13142 _ACEOF
13143 rm -f conftest.$ac_objext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145   (eval $ac_compile) 2>conftest.er1
13146   ac_status=$?
13147   grep -v '^ *+' conftest.er1 >conftest.err
13148   rm -f conftest.er1
13149   cat conftest.err >&5
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); } &&
13152          { ac_try='test -z "$ac_c_werror_flag"
13153                          || test ! -s conftest.err'
13154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155   (eval $ac_try) 2>&5
13156   ac_status=$?
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); }; } &&
13159          { ac_try='test -s conftest.$ac_objext'
13160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161   (eval $ac_try) 2>&5
13162   ac_status=$?
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); }; }; then
13165   ac_cv_struct_tm=time.h
13166 else
13167   echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13169
13170 ac_cv_struct_tm=sys/time.h
13171 fi
13172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13173 fi
13174 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13175 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13176 if test $ac_cv_struct_tm = sys/time.h; then
13177
13178 cat >>confdefs.h <<\_ACEOF
13179 #define TM_IN_SYS_TIME 1
13180 _ACEOF
13181
13182 fi
13183
13184 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13185 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13186 if test "${ac_cv_c_const+set}" = set; then
13187   echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189   cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h.  */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h.  */
13195
13196 int
13197 main ()
13198 {
13199 /* FIXME: Include the comments suggested by Paul. */
13200 #ifndef __cplusplus
13201   /* Ultrix mips cc rejects this.  */
13202   typedef int charset[2];
13203   const charset x;
13204   /* SunOS 4.1.1 cc rejects this.  */
13205   char const *const *ccp;
13206   char **p;
13207   /* NEC SVR4.0.2 mips cc rejects this.  */
13208   struct point {int x, y;};
13209   static struct point const zero = {0,0};
13210   /* AIX XL C 1.02.0.0 rejects this.
13211      It does not let you subtract one const X* pointer from another in
13212      an arm of an if-expression whose if-part is not a constant
13213      expression */
13214   const char *g = "string";
13215   ccp = &g + (g ? g-g : 0);
13216   /* HPUX 7.0 cc rejects these. */
13217   ++ccp;
13218   p = (char**) ccp;
13219   ccp = (char const *const *) p;
13220   { /* SCO 3.2v4 cc rejects this.  */
13221     char *t;
13222     char const *s = 0 ? (char *) 0 : (char const *) 0;
13223
13224     *t++ = 0;
13225   }
13226   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13227     int x[] = {25, 17};
13228     const int *foo = &x[0];
13229     ++foo;
13230   }
13231   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13232     typedef const int *iptr;
13233     iptr p = 0;
13234     ++p;
13235   }
13236   { /* AIX XL C 1.02.0.0 rejects this saying
13237        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13238     struct s { int j; const int *ap[3]; };
13239     struct s *b; b->j = 5;
13240   }
13241   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13242     const int foo = 10;
13243   }
13244 #endif
13245
13246   ;
13247   return 0;
13248 }
13249 _ACEOF
13250 rm -f conftest.$ac_objext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13252   (eval $ac_compile) 2>conftest.er1
13253   ac_status=$?
13254   grep -v '^ *+' conftest.er1 >conftest.err
13255   rm -f conftest.er1
13256   cat conftest.err >&5
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); } &&
13259          { ac_try='test -z "$ac_c_werror_flag"
13260                          || test ! -s conftest.err'
13261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262   (eval $ac_try) 2>&5
13263   ac_status=$?
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); }; } &&
13266          { ac_try='test -s conftest.$ac_objext'
13267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268   (eval $ac_try) 2>&5
13269   ac_status=$?
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); }; }; then
13272   ac_cv_c_const=yes
13273 else
13274   echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13276
13277 ac_cv_c_const=no
13278 fi
13279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13280 fi
13281 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13282 echo "${ECHO_T}$ac_cv_c_const" >&6
13283 if test $ac_cv_c_const = no; then
13284
13285 cat >>confdefs.h <<\_ACEOF
13286 #define const
13287 _ACEOF
13288
13289 fi
13290
13291
13292
13293 echo "$as_me:$LINENO: checking for char" >&5
13294 echo $ECHO_N "checking for char... $ECHO_C" >&6
13295 if test "${ac_cv_type_char+set}" = set; then
13296   echo $ECHO_N "(cached) $ECHO_C" >&6
13297 else
13298   cat >conftest.$ac_ext <<_ACEOF
13299 /* confdefs.h.  */
13300 _ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h.  */
13304 $ac_includes_default
13305 int
13306 main ()
13307 {
13308 if ((char *) 0)
13309   return 0;
13310 if (sizeof (char))
13311   return 0;
13312   ;
13313   return 0;
13314 }
13315 _ACEOF
13316 rm -f conftest.$ac_objext
13317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13318   (eval $ac_compile) 2>conftest.er1
13319   ac_status=$?
13320   grep -v '^ *+' conftest.er1 >conftest.err
13321   rm -f conftest.er1
13322   cat conftest.err >&5
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); } &&
13325          { ac_try='test -z "$ac_c_werror_flag"
13326                          || test ! -s conftest.err'
13327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328   (eval $ac_try) 2>&5
13329   ac_status=$?
13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331   (exit $ac_status); }; } &&
13332          { ac_try='test -s conftest.$ac_objext'
13333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334   (eval $ac_try) 2>&5
13335   ac_status=$?
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); }; }; then
13338   ac_cv_type_char=yes
13339 else
13340   echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13342
13343 ac_cv_type_char=no
13344 fi
13345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13346 fi
13347 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13348 echo "${ECHO_T}$ac_cv_type_char" >&6
13349
13350 echo "$as_me:$LINENO: checking size of char" >&5
13351 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13352 if test "${ac_cv_sizeof_char+set}" = set; then
13353   echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355   if test "$ac_cv_type_char" = yes; then
13356   # The cast to unsigned long works around a bug in the HP C Compiler
13357   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13358   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13359   # This bug is HP SR number 8606223364.
13360   if test "$cross_compiling" = yes; then
13361   # Depending upon the size, compute the lo and hi bounds.
13362 cat >conftest.$ac_ext <<_ACEOF
13363 /* confdefs.h.  */
13364 _ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h.  */
13368 $ac_includes_default
13369 int
13370 main ()
13371 {
13372 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13373 test_array [0] = 0
13374
13375   ;
13376   return 0;
13377 }
13378 _ACEOF
13379 rm -f conftest.$ac_objext
13380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13381   (eval $ac_compile) 2>conftest.er1
13382   ac_status=$?
13383   grep -v '^ *+' conftest.er1 >conftest.err
13384   rm -f conftest.er1
13385   cat conftest.err >&5
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); } &&
13388          { ac_try='test -z "$ac_c_werror_flag"
13389                          || test ! -s conftest.err'
13390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391   (eval $ac_try) 2>&5
13392   ac_status=$?
13393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); }; } &&
13395          { ac_try='test -s conftest.$ac_objext'
13396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397   (eval $ac_try) 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); }; }; then
13401   ac_lo=0 ac_mid=0
13402   while :; do
13403     cat >conftest.$ac_ext <<_ACEOF
13404 /* confdefs.h.  */
13405 _ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h.  */
13409 $ac_includes_default
13410 int
13411 main ()
13412 {
13413 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13414 test_array [0] = 0
13415
13416   ;
13417   return 0;
13418 }
13419 _ACEOF
13420 rm -f conftest.$ac_objext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13422   (eval $ac_compile) 2>conftest.er1
13423   ac_status=$?
13424   grep -v '^ *+' conftest.er1 >conftest.err
13425   rm -f conftest.er1
13426   cat conftest.err >&5
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); } &&
13429          { ac_try='test -z "$ac_c_werror_flag"
13430                          || test ! -s conftest.err'
13431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432   (eval $ac_try) 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); }; } &&
13436          { ac_try='test -s conftest.$ac_objext'
13437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438   (eval $ac_try) 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); }; }; then
13442   ac_hi=$ac_mid; break
13443 else
13444   echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.$ac_ext >&5
13446
13447 ac_lo=`expr $ac_mid + 1`
13448                     if test $ac_lo -le $ac_mid; then
13449                       ac_lo= ac_hi=
13450                       break
13451                     fi
13452                     ac_mid=`expr 2 '*' $ac_mid + 1`
13453 fi
13454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13455   done
13456 else
13457   echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13459
13460 cat >conftest.$ac_ext <<_ACEOF
13461 /* confdefs.h.  */
13462 _ACEOF
13463 cat confdefs.h >>conftest.$ac_ext
13464 cat >>conftest.$ac_ext <<_ACEOF
13465 /* end confdefs.h.  */
13466 $ac_includes_default
13467 int
13468 main ()
13469 {
13470 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13471 test_array [0] = 0
13472
13473   ;
13474   return 0;
13475 }
13476 _ACEOF
13477 rm -f conftest.$ac_objext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13479   (eval $ac_compile) 2>conftest.er1
13480   ac_status=$?
13481   grep -v '^ *+' conftest.er1 >conftest.err
13482   rm -f conftest.er1
13483   cat conftest.err >&5
13484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485   (exit $ac_status); } &&
13486          { ac_try='test -z "$ac_c_werror_flag"
13487                          || test ! -s conftest.err'
13488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489   (eval $ac_try) 2>&5
13490   ac_status=$?
13491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492   (exit $ac_status); }; } &&
13493          { ac_try='test -s conftest.$ac_objext'
13494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495   (eval $ac_try) 2>&5
13496   ac_status=$?
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); }; }; then
13499   ac_hi=-1 ac_mid=-1
13500   while :; do
13501     cat >conftest.$ac_ext <<_ACEOF
13502 /* confdefs.h.  */
13503 _ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h.  */
13507 $ac_includes_default
13508 int
13509 main ()
13510 {
13511 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13512 test_array [0] = 0
13513
13514   ;
13515   return 0;
13516 }
13517 _ACEOF
13518 rm -f conftest.$ac_objext
13519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13520   (eval $ac_compile) 2>conftest.er1
13521   ac_status=$?
13522   grep -v '^ *+' conftest.er1 >conftest.err
13523   rm -f conftest.er1
13524   cat conftest.err >&5
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); } &&
13527          { ac_try='test -z "$ac_c_werror_flag"
13528                          || test ! -s conftest.err'
13529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530   (eval $ac_try) 2>&5
13531   ac_status=$?
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); }; } &&
13534          { ac_try='test -s conftest.$ac_objext'
13535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536   (eval $ac_try) 2>&5
13537   ac_status=$?
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); }; }; then
13540   ac_lo=$ac_mid; break
13541 else
13542   echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13544
13545 ac_hi=`expr '(' $ac_mid ')' - 1`
13546                        if test $ac_mid -le $ac_hi; then
13547                          ac_lo= ac_hi=
13548                          break
13549                        fi
13550                        ac_mid=`expr 2 '*' $ac_mid`
13551 fi
13552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13553   done
13554 else
13555   echo "$as_me: failed program was:" >&5
13556 sed 's/^/| /' conftest.$ac_ext >&5
13557
13558 ac_lo= ac_hi=
13559 fi
13560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13561 fi
13562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13563 # Binary search between lo and hi bounds.
13564 while test "x$ac_lo" != "x$ac_hi"; do
13565   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13566   cat >conftest.$ac_ext <<_ACEOF
13567 /* confdefs.h.  */
13568 _ACEOF
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h.  */
13572 $ac_includes_default
13573 int
13574 main ()
13575 {
13576 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13577 test_array [0] = 0
13578
13579   ;
13580   return 0;
13581 }
13582 _ACEOF
13583 rm -f conftest.$ac_objext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13585   (eval $ac_compile) 2>conftest.er1
13586   ac_status=$?
13587   grep -v '^ *+' conftest.er1 >conftest.err
13588   rm -f conftest.er1
13589   cat conftest.err >&5
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); } &&
13592          { ac_try='test -z "$ac_c_werror_flag"
13593                          || test ! -s conftest.err'
13594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595   (eval $ac_try) 2>&5
13596   ac_status=$?
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); }; } &&
13599          { ac_try='test -s conftest.$ac_objext'
13600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601   (eval $ac_try) 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); }; }; then
13605   ac_hi=$ac_mid
13606 else
13607   echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.$ac_ext >&5
13609
13610 ac_lo=`expr '(' $ac_mid ')' + 1`
13611 fi
13612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13613 done
13614 case $ac_lo in
13615 ?*) ac_cv_sizeof_char=$ac_lo;;
13616 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13617 See \`config.log' for more details." >&5
13618 echo "$as_me: error: cannot compute sizeof (char), 77
13619 See \`config.log' for more details." >&2;}
13620    { (exit 1); exit 1; }; } ;;
13621 esac
13622 else
13623   if test "$cross_compiling" = yes; then
13624   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13625 See \`config.log' for more details." >&5
13626 echo "$as_me: error: cannot run test program while cross compiling
13627 See \`config.log' for more details." >&2;}
13628    { (exit 1); exit 1; }; }
13629 else
13630   cat >conftest.$ac_ext <<_ACEOF
13631 /* confdefs.h.  */
13632 _ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h.  */
13636 $ac_includes_default
13637 long longval () { return (long) (sizeof (char)); }
13638 unsigned long ulongval () { return (long) (sizeof (char)); }
13639 #include <stdio.h>
13640 #include <stdlib.h>
13641 int
13642 main ()
13643 {
13644
13645   FILE *f = fopen ("conftest.val", "w");
13646   if (! f)
13647     exit (1);
13648   if (((long) (sizeof (char))) < 0)
13649     {
13650       long i = longval ();
13651       if (i != ((long) (sizeof (char))))
13652         exit (1);
13653       fprintf (f, "%ld\n", i);
13654     }
13655   else
13656     {
13657       unsigned long i = ulongval ();
13658       if (i != ((long) (sizeof (char))))
13659         exit (1);
13660       fprintf (f, "%lu\n", i);
13661     }
13662   exit (ferror (f) || fclose (f) != 0);
13663
13664   ;
13665   return 0;
13666 }
13667 _ACEOF
13668 rm -f conftest$ac_exeext
13669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13670   (eval $ac_link) 2>&5
13671   ac_status=$?
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675   (eval $ac_try) 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }; }; then
13679   ac_cv_sizeof_char=`cat conftest.val`
13680 else
13681   echo "$as_me: program exited with status $ac_status" >&5
13682 echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13684
13685 ( exit $ac_status )
13686 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13687 See \`config.log' for more details." >&5
13688 echo "$as_me: error: cannot compute sizeof (char), 77
13689 See \`config.log' for more details." >&2;}
13690    { (exit 1); exit 1; }; }
13691 fi
13692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13693 fi
13694 fi
13695 rm -f conftest.val
13696 else
13697   ac_cv_sizeof_char=0
13698 fi
13699 fi
13700 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13701 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13702 cat >>confdefs.h <<_ACEOF
13703 #define SIZEOF_CHAR $ac_cv_sizeof_char
13704 _ACEOF
13705
13706
13707 echo "$as_me:$LINENO: checking for short int" >&5
13708 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13709 if test "${ac_cv_type_short_int+set}" = set; then
13710   echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712   cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h.  */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h.  */
13718 $ac_includes_default
13719 int
13720 main ()
13721 {
13722 if ((short int *) 0)
13723   return 0;
13724 if (sizeof (short int))
13725   return 0;
13726   ;
13727   return 0;
13728 }
13729 _ACEOF
13730 rm -f conftest.$ac_objext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13732   (eval $ac_compile) 2>conftest.er1
13733   ac_status=$?
13734   grep -v '^ *+' conftest.er1 >conftest.err
13735   rm -f conftest.er1
13736   cat conftest.err >&5
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); } &&
13739          { ac_try='test -z "$ac_c_werror_flag"
13740                          || test ! -s conftest.err'
13741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742   (eval $ac_try) 2>&5
13743   ac_status=$?
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); }; } &&
13746          { ac_try='test -s conftest.$ac_objext'
13747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748   (eval $ac_try) 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); }; }; then
13752   ac_cv_type_short_int=yes
13753 else
13754   echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13756
13757 ac_cv_type_short_int=no
13758 fi
13759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13760 fi
13761 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13762 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13763
13764 echo "$as_me:$LINENO: checking size of short int" >&5
13765 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13766 if test "${ac_cv_sizeof_short_int+set}" = set; then
13767   echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769   if test "$ac_cv_type_short_int" = yes; then
13770   # The cast to unsigned long works around a bug in the HP C Compiler
13771   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13772   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13773   # This bug is HP SR number 8606223364.
13774   if test "$cross_compiling" = yes; then
13775   # Depending upon the size, compute the lo and hi bounds.
13776 cat >conftest.$ac_ext <<_ACEOF
13777 /* confdefs.h.  */
13778 _ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h.  */
13782 $ac_includes_default
13783 int
13784 main ()
13785 {
13786 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13787 test_array [0] = 0
13788
13789   ;
13790   return 0;
13791 }
13792 _ACEOF
13793 rm -f conftest.$ac_objext
13794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13795   (eval $ac_compile) 2>conftest.er1
13796   ac_status=$?
13797   grep -v '^ *+' conftest.er1 >conftest.err
13798   rm -f conftest.er1
13799   cat conftest.err >&5
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); } &&
13802          { ac_try='test -z "$ac_c_werror_flag"
13803                          || test ! -s conftest.err'
13804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805   (eval $ac_try) 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); }; } &&
13809          { ac_try='test -s conftest.$ac_objext'
13810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811   (eval $ac_try) 2>&5
13812   ac_status=$?
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); }; }; then
13815   ac_lo=0 ac_mid=0
13816   while :; do
13817     cat >conftest.$ac_ext <<_ACEOF
13818 /* confdefs.h.  */
13819 _ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h.  */
13823 $ac_includes_default
13824 int
13825 main ()
13826 {
13827 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13828 test_array [0] = 0
13829
13830   ;
13831   return 0;
13832 }
13833 _ACEOF
13834 rm -f conftest.$ac_objext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13836   (eval $ac_compile) 2>conftest.er1
13837   ac_status=$?
13838   grep -v '^ *+' conftest.er1 >conftest.err
13839   rm -f conftest.er1
13840   cat conftest.err >&5
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); } &&
13843          { ac_try='test -z "$ac_c_werror_flag"
13844                          || test ! -s conftest.err'
13845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846   (eval $ac_try) 2>&5
13847   ac_status=$?
13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   (exit $ac_status); }; } &&
13850          { ac_try='test -s conftest.$ac_objext'
13851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852   (eval $ac_try) 2>&5
13853   ac_status=$?
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); }; }; then
13856   ac_hi=$ac_mid; break
13857 else
13858   echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 ac_lo=`expr $ac_mid + 1`
13862                     if test $ac_lo -le $ac_mid; then
13863                       ac_lo= ac_hi=
13864                       break
13865                     fi
13866                     ac_mid=`expr 2 '*' $ac_mid + 1`
13867 fi
13868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13869   done
13870 else
13871   echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13873
13874 cat >conftest.$ac_ext <<_ACEOF
13875 /* confdefs.h.  */
13876 _ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h.  */
13880 $ac_includes_default
13881 int
13882 main ()
13883 {
13884 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13885 test_array [0] = 0
13886
13887   ;
13888   return 0;
13889 }
13890 _ACEOF
13891 rm -f conftest.$ac_objext
13892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13893   (eval $ac_compile) 2>conftest.er1
13894   ac_status=$?
13895   grep -v '^ *+' conftest.er1 >conftest.err
13896   rm -f conftest.er1
13897   cat conftest.err >&5
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); } &&
13900          { ac_try='test -z "$ac_c_werror_flag"
13901                          || test ! -s conftest.err'
13902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903   (eval $ac_try) 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; } &&
13907          { ac_try='test -s conftest.$ac_objext'
13908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909   (eval $ac_try) 2>&5
13910   ac_status=$?
13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); }; }; then
13913   ac_hi=-1 ac_mid=-1
13914   while :; do
13915     cat >conftest.$ac_ext <<_ACEOF
13916 /* confdefs.h.  */
13917 _ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h.  */
13921 $ac_includes_default
13922 int
13923 main ()
13924 {
13925 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13926 test_array [0] = 0
13927
13928   ;
13929   return 0;
13930 }
13931 _ACEOF
13932 rm -f conftest.$ac_objext
13933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13934   (eval $ac_compile) 2>conftest.er1
13935   ac_status=$?
13936   grep -v '^ *+' conftest.er1 >conftest.err
13937   rm -f conftest.er1
13938   cat conftest.err >&5
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); } &&
13941          { ac_try='test -z "$ac_c_werror_flag"
13942                          || test ! -s conftest.err'
13943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944   (eval $ac_try) 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); }; } &&
13948          { ac_try='test -s conftest.$ac_objext'
13949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950   (eval $ac_try) 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); }; }; then
13954   ac_lo=$ac_mid; break
13955 else
13956   echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13958
13959 ac_hi=`expr '(' $ac_mid ')' - 1`
13960                        if test $ac_mid -le $ac_hi; then
13961                          ac_lo= ac_hi=
13962                          break
13963                        fi
13964                        ac_mid=`expr 2 '*' $ac_mid`
13965 fi
13966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13967   done
13968 else
13969   echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13971
13972 ac_lo= ac_hi=
13973 fi
13974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13975 fi
13976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13977 # Binary search between lo and hi bounds.
13978 while test "x$ac_lo" != "x$ac_hi"; do
13979   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13980   cat >conftest.$ac_ext <<_ACEOF
13981 /* confdefs.h.  */
13982 _ACEOF
13983 cat confdefs.h >>conftest.$ac_ext
13984 cat >>conftest.$ac_ext <<_ACEOF
13985 /* end confdefs.h.  */
13986 $ac_includes_default
13987 int
13988 main ()
13989 {
13990 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13991 test_array [0] = 0
13992
13993   ;
13994   return 0;
13995 }
13996 _ACEOF
13997 rm -f conftest.$ac_objext
13998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13999   (eval $ac_compile) 2>conftest.er1
14000   ac_status=$?
14001   grep -v '^ *+' conftest.er1 >conftest.err
14002   rm -f conftest.er1
14003   cat conftest.err >&5
14004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); } &&
14006          { ac_try='test -z "$ac_c_werror_flag"
14007                          || test ! -s conftest.err'
14008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009   (eval $ac_try) 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); }; } &&
14013          { ac_try='test -s conftest.$ac_objext'
14014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015   (eval $ac_try) 2>&5
14016   ac_status=$?
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); }; }; then
14019   ac_hi=$ac_mid
14020 else
14021   echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14023
14024 ac_lo=`expr '(' $ac_mid ')' + 1`
14025 fi
14026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14027 done
14028 case $ac_lo in
14029 ?*) ac_cv_sizeof_short_int=$ac_lo;;
14030 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14031 See \`config.log' for more details." >&5
14032 echo "$as_me: error: cannot compute sizeof (short int), 77
14033 See \`config.log' for more details." >&2;}
14034    { (exit 1); exit 1; }; } ;;
14035 esac
14036 else
14037   if test "$cross_compiling" = yes; then
14038   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14039 See \`config.log' for more details." >&5
14040 echo "$as_me: error: cannot run test program while cross compiling
14041 See \`config.log' for more details." >&2;}
14042    { (exit 1); exit 1; }; }
14043 else
14044   cat >conftest.$ac_ext <<_ACEOF
14045 /* confdefs.h.  */
14046 _ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h.  */
14050 $ac_includes_default
14051 long longval () { return (long) (sizeof (short int)); }
14052 unsigned long ulongval () { return (long) (sizeof (short int)); }
14053 #include <stdio.h>
14054 #include <stdlib.h>
14055 int
14056 main ()
14057 {
14058
14059   FILE *f = fopen ("conftest.val", "w");
14060   if (! f)
14061     exit (1);
14062   if (((long) (sizeof (short int))) < 0)
14063     {
14064       long i = longval ();
14065       if (i != ((long) (sizeof (short int))))
14066         exit (1);
14067       fprintf (f, "%ld\n", i);
14068     }
14069   else
14070     {
14071       unsigned long i = ulongval ();
14072       if (i != ((long) (sizeof (short int))))
14073         exit (1);
14074       fprintf (f, "%lu\n", i);
14075     }
14076   exit (ferror (f) || fclose (f) != 0);
14077
14078   ;
14079   return 0;
14080 }
14081 _ACEOF
14082 rm -f conftest$ac_exeext
14083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14084   (eval $ac_link) 2>&5
14085   ac_status=$?
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089   (eval $ac_try) 2>&5
14090   ac_status=$?
14091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); }; }; then
14093   ac_cv_sizeof_short_int=`cat conftest.val`
14094 else
14095   echo "$as_me: program exited with status $ac_status" >&5
14096 echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14098
14099 ( exit $ac_status )
14100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14101 See \`config.log' for more details." >&5
14102 echo "$as_me: error: cannot compute sizeof (short int), 77
14103 See \`config.log' for more details." >&2;}
14104    { (exit 1); exit 1; }; }
14105 fi
14106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14107 fi
14108 fi
14109 rm -f conftest.val
14110 else
14111   ac_cv_sizeof_short_int=0
14112 fi
14113 fi
14114 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
14115 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
14116 cat >>confdefs.h <<_ACEOF
14117 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
14118 _ACEOF
14119
14120
14121 echo "$as_me:$LINENO: checking for int" >&5
14122 echo $ECHO_N "checking for int... $ECHO_C" >&6
14123 if test "${ac_cv_type_int+set}" = set; then
14124   echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126   cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h.  */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h.  */
14132 $ac_includes_default
14133 int
14134 main ()
14135 {
14136 if ((int *) 0)
14137   return 0;
14138 if (sizeof (int))
14139   return 0;
14140   ;
14141   return 0;
14142 }
14143 _ACEOF
14144 rm -f conftest.$ac_objext
14145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14146   (eval $ac_compile) 2>conftest.er1
14147   ac_status=$?
14148   grep -v '^ *+' conftest.er1 >conftest.err
14149   rm -f conftest.er1
14150   cat conftest.err >&5
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); } &&
14153          { ac_try='test -z "$ac_c_werror_flag"
14154                          || test ! -s conftest.err'
14155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156   (eval $ac_try) 2>&5
14157   ac_status=$?
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); }; } &&
14160          { ac_try='test -s conftest.$ac_objext'
14161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162   (eval $ac_try) 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); }; }; then
14166   ac_cv_type_int=yes
14167 else
14168   echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14170
14171 ac_cv_type_int=no
14172 fi
14173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14174 fi
14175 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14176 echo "${ECHO_T}$ac_cv_type_int" >&6
14177
14178 echo "$as_me:$LINENO: checking size of int" >&5
14179 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14180 if test "${ac_cv_sizeof_int+set}" = set; then
14181   echo $ECHO_N "(cached) $ECHO_C" >&6
14182 else
14183   if test "$ac_cv_type_int" = yes; then
14184   # The cast to unsigned long works around a bug in the HP C Compiler
14185   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14186   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14187   # This bug is HP SR number 8606223364.
14188   if test "$cross_compiling" = yes; then
14189   # Depending upon the size, compute the lo and hi bounds.
14190 cat >conftest.$ac_ext <<_ACEOF
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>conftest.er1
14210   ac_status=$?
14211   grep -v '^ *+' conftest.er1 >conftest.err
14212   rm -f conftest.er1
14213   cat conftest.err >&5
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); } &&
14216          { ac_try='test -z "$ac_c_werror_flag"
14217                          || test ! -s conftest.err'
14218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219   (eval $ac_try) 2>&5
14220   ac_status=$?
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); }; } &&
14223          { ac_try='test -s conftest.$ac_objext'
14224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225   (eval $ac_try) 2>&5
14226   ac_status=$?
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); }; }; then
14229   ac_lo=0 ac_mid=0
14230   while :; do
14231     cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h.  */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h.  */
14237 $ac_includes_default
14238 int
14239 main ()
14240 {
14241 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14242 test_array [0] = 0
14243
14244   ;
14245   return 0;
14246 }
14247 _ACEOF
14248 rm -f conftest.$ac_objext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14250   (eval $ac_compile) 2>conftest.er1
14251   ac_status=$?
14252   grep -v '^ *+' conftest.er1 >conftest.err
14253   rm -f conftest.er1
14254   cat conftest.err >&5
14255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256   (exit $ac_status); } &&
14257          { ac_try='test -z "$ac_c_werror_flag"
14258                          || test ! -s conftest.err'
14259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260   (eval $ac_try) 2>&5
14261   ac_status=$?
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); }; } &&
14264          { ac_try='test -s conftest.$ac_objext'
14265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266   (eval $ac_try) 2>&5
14267   ac_status=$?
14268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); }; }; then
14270   ac_hi=$ac_mid; break
14271 else
14272   echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14274
14275 ac_lo=`expr $ac_mid + 1`
14276                     if test $ac_lo -le $ac_mid; then
14277                       ac_lo= ac_hi=
14278                       break
14279                     fi
14280                     ac_mid=`expr 2 '*' $ac_mid + 1`
14281 fi
14282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14283   done
14284 else
14285   echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14287
14288 cat >conftest.$ac_ext <<_ACEOF
14289 /* confdefs.h.  */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h.  */
14294 $ac_includes_default
14295 int
14296 main ()
14297 {
14298 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14299 test_array [0] = 0
14300
14301   ;
14302   return 0;
14303 }
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307   (eval $ac_compile) 2>conftest.er1
14308   ac_status=$?
14309   grep -v '^ *+' conftest.er1 >conftest.err
14310   rm -f conftest.er1
14311   cat conftest.err >&5
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); } &&
14314          { ac_try='test -z "$ac_c_werror_flag"
14315                          || test ! -s conftest.err'
14316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317   (eval $ac_try) 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); }; } &&
14321          { ac_try='test -s conftest.$ac_objext'
14322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323   (eval $ac_try) 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; }; then
14327   ac_hi=-1 ac_mid=-1
14328   while :; do
14329     cat >conftest.$ac_ext <<_ACEOF
14330 /* confdefs.h.  */
14331 _ACEOF
14332 cat confdefs.h >>conftest.$ac_ext
14333 cat >>conftest.$ac_ext <<_ACEOF
14334 /* end confdefs.h.  */
14335 $ac_includes_default
14336 int
14337 main ()
14338 {
14339 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14340 test_array [0] = 0
14341
14342   ;
14343   return 0;
14344 }
14345 _ACEOF
14346 rm -f conftest.$ac_objext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14348   (eval $ac_compile) 2>conftest.er1
14349   ac_status=$?
14350   grep -v '^ *+' conftest.er1 >conftest.err
14351   rm -f conftest.er1
14352   cat conftest.err >&5
14353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354   (exit $ac_status); } &&
14355          { ac_try='test -z "$ac_c_werror_flag"
14356                          || test ! -s conftest.err'
14357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358   (eval $ac_try) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; } &&
14362          { ac_try='test -s conftest.$ac_objext'
14363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364   (eval $ac_try) 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); }; }; then
14368   ac_lo=$ac_mid; break
14369 else
14370   echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14372
14373 ac_hi=`expr '(' $ac_mid ')' - 1`
14374                        if test $ac_mid -le $ac_hi; then
14375                          ac_lo= ac_hi=
14376                          break
14377                        fi
14378                        ac_mid=`expr 2 '*' $ac_mid`
14379 fi
14380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14381   done
14382 else
14383   echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14385
14386 ac_lo= ac_hi=
14387 fi
14388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14389 fi
14390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14391 # Binary search between lo and hi bounds.
14392 while test "x$ac_lo" != "x$ac_hi"; do
14393   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14394   cat >conftest.$ac_ext <<_ACEOF
14395 /* confdefs.h.  */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h.  */
14400 $ac_includes_default
14401 int
14402 main ()
14403 {
14404 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14405 test_array [0] = 0
14406
14407   ;
14408   return 0;
14409 }
14410 _ACEOF
14411 rm -f conftest.$ac_objext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14413   (eval $ac_compile) 2>conftest.er1
14414   ac_status=$?
14415   grep -v '^ *+' conftest.er1 >conftest.err
14416   rm -f conftest.er1
14417   cat conftest.err >&5
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); } &&
14420          { ac_try='test -z "$ac_c_werror_flag"
14421                          || test ! -s conftest.err'
14422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423   (eval $ac_try) 2>&5
14424   ac_status=$?
14425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426   (exit $ac_status); }; } &&
14427          { ac_try='test -s conftest.$ac_objext'
14428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429   (eval $ac_try) 2>&5
14430   ac_status=$?
14431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432   (exit $ac_status); }; }; then
14433   ac_hi=$ac_mid
14434 else
14435   echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14437
14438 ac_lo=`expr '(' $ac_mid ')' + 1`
14439 fi
14440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14441 done
14442 case $ac_lo in
14443 ?*) ac_cv_sizeof_int=$ac_lo;;
14444 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14445 See \`config.log' for more details." >&5
14446 echo "$as_me: error: cannot compute sizeof (int), 77
14447 See \`config.log' for more details." >&2;}
14448    { (exit 1); exit 1; }; } ;;
14449 esac
14450 else
14451   if test "$cross_compiling" = yes; then
14452   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14453 See \`config.log' for more details." >&5
14454 echo "$as_me: error: cannot run test program while cross compiling
14455 See \`config.log' for more details." >&2;}
14456    { (exit 1); exit 1; }; }
14457 else
14458   cat >conftest.$ac_ext <<_ACEOF
14459 /* confdefs.h.  */
14460 _ACEOF
14461 cat confdefs.h >>conftest.$ac_ext
14462 cat >>conftest.$ac_ext <<_ACEOF
14463 /* end confdefs.h.  */
14464 $ac_includes_default
14465 long longval () { return (long) (sizeof (int)); }
14466 unsigned long ulongval () { return (long) (sizeof (int)); }
14467 #include <stdio.h>
14468 #include <stdlib.h>
14469 int
14470 main ()
14471 {
14472
14473   FILE *f = fopen ("conftest.val", "w");
14474   if (! f)
14475     exit (1);
14476   if (((long) (sizeof (int))) < 0)
14477     {
14478       long i = longval ();
14479       if (i != ((long) (sizeof (int))))
14480         exit (1);
14481       fprintf (f, "%ld\n", i);
14482     }
14483   else
14484     {
14485       unsigned long i = ulongval ();
14486       if (i != ((long) (sizeof (int))))
14487         exit (1);
14488       fprintf (f, "%lu\n", i);
14489     }
14490   exit (ferror (f) || fclose (f) != 0);
14491
14492   ;
14493   return 0;
14494 }
14495 _ACEOF
14496 rm -f conftest$ac_exeext
14497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14498   (eval $ac_link) 2>&5
14499   ac_status=$?
14500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503   (eval $ac_try) 2>&5
14504   ac_status=$?
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); }; }; then
14507   ac_cv_sizeof_int=`cat conftest.val`
14508 else
14509   echo "$as_me: program exited with status $ac_status" >&5
14510 echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14512
14513 ( exit $ac_status )
14514 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14515 See \`config.log' for more details." >&5
14516 echo "$as_me: error: cannot compute sizeof (int), 77
14517 See \`config.log' for more details." >&2;}
14518    { (exit 1); exit 1; }; }
14519 fi
14520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14521 fi
14522 fi
14523 rm -f conftest.val
14524 else
14525   ac_cv_sizeof_int=0
14526 fi
14527 fi
14528 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14529 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14530 cat >>confdefs.h <<_ACEOF
14531 #define SIZEOF_INT $ac_cv_sizeof_int
14532 _ACEOF
14533
14534
14535 echo "$as_me:$LINENO: checking for long int" >&5
14536 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14537 if test "${ac_cv_type_long_int+set}" = set; then
14538   echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540   cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h.  */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h.  */
14546 $ac_includes_default
14547 int
14548 main ()
14549 {
14550 if ((long int *) 0)
14551   return 0;
14552 if (sizeof (long int))
14553   return 0;
14554   ;
14555   return 0;
14556 }
14557 _ACEOF
14558 rm -f conftest.$ac_objext
14559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14560   (eval $ac_compile) 2>conftest.er1
14561   ac_status=$?
14562   grep -v '^ *+' conftest.er1 >conftest.err
14563   rm -f conftest.er1
14564   cat conftest.err >&5
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); } &&
14567          { ac_try='test -z "$ac_c_werror_flag"
14568                          || test ! -s conftest.err'
14569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570   (eval $ac_try) 2>&5
14571   ac_status=$?
14572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573   (exit $ac_status); }; } &&
14574          { ac_try='test -s conftest.$ac_objext'
14575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576   (eval $ac_try) 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); }; }; then
14580   ac_cv_type_long_int=yes
14581 else
14582   echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14584
14585 ac_cv_type_long_int=no
14586 fi
14587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14588 fi
14589 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14590 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14591
14592 echo "$as_me:$LINENO: checking size of long int" >&5
14593 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14594 if test "${ac_cv_sizeof_long_int+set}" = set; then
14595   echo $ECHO_N "(cached) $ECHO_C" >&6
14596 else
14597   if test "$ac_cv_type_long_int" = yes; then
14598   # The cast to unsigned long works around a bug in the HP C Compiler
14599   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14600   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14601   # This bug is HP SR number 8606223364.
14602   if test "$cross_compiling" = yes; then
14603   # Depending upon the size, compute the lo and hi bounds.
14604 cat >conftest.$ac_ext <<_ACEOF
14605 /* confdefs.h.  */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h.  */
14610 $ac_includes_default
14611 int
14612 main ()
14613 {
14614 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14615 test_array [0] = 0
14616
14617   ;
14618   return 0;
14619 }
14620 _ACEOF
14621 rm -f conftest.$ac_objext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14623   (eval $ac_compile) 2>conftest.er1
14624   ac_status=$?
14625   grep -v '^ *+' conftest.er1 >conftest.err
14626   rm -f conftest.er1
14627   cat conftest.err >&5
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); } &&
14630          { ac_try='test -z "$ac_c_werror_flag"
14631                          || test ! -s conftest.err'
14632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633   (eval $ac_try) 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); }; } &&
14637          { ac_try='test -s conftest.$ac_objext'
14638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639   (eval $ac_try) 2>&5
14640   ac_status=$?
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); }; }; then
14643   ac_lo=0 ac_mid=0
14644   while :; do
14645     cat >conftest.$ac_ext <<_ACEOF
14646 /* confdefs.h.  */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h.  */
14651 $ac_includes_default
14652 int
14653 main ()
14654 {
14655 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14656 test_array [0] = 0
14657
14658   ;
14659   return 0;
14660 }
14661 _ACEOF
14662 rm -f conftest.$ac_objext
14663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14664   (eval $ac_compile) 2>conftest.er1
14665   ac_status=$?
14666   grep -v '^ *+' conftest.er1 >conftest.err
14667   rm -f conftest.er1
14668   cat conftest.err >&5
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); } &&
14671          { ac_try='test -z "$ac_c_werror_flag"
14672                          || test ! -s conftest.err'
14673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674   (eval $ac_try) 2>&5
14675   ac_status=$?
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); }; } &&
14678          { ac_try='test -s conftest.$ac_objext'
14679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680   (eval $ac_try) 2>&5
14681   ac_status=$?
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); }; }; then
14684   ac_hi=$ac_mid; break
14685 else
14686   echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14688
14689 ac_lo=`expr $ac_mid + 1`
14690                     if test $ac_lo -le $ac_mid; then
14691                       ac_lo= ac_hi=
14692                       break
14693                     fi
14694                     ac_mid=`expr 2 '*' $ac_mid + 1`
14695 fi
14696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14697   done
14698 else
14699   echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14701
14702 cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h.  */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h.  */
14708 $ac_includes_default
14709 int
14710 main ()
14711 {
14712 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14713 test_array [0] = 0
14714
14715   ;
14716   return 0;
14717 }
14718 _ACEOF
14719 rm -f conftest.$ac_objext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14721   (eval $ac_compile) 2>conftest.er1
14722   ac_status=$?
14723   grep -v '^ *+' conftest.er1 >conftest.err
14724   rm -f conftest.er1
14725   cat conftest.err >&5
14726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727   (exit $ac_status); } &&
14728          { ac_try='test -z "$ac_c_werror_flag"
14729                          || test ! -s conftest.err'
14730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731   (eval $ac_try) 2>&5
14732   ac_status=$?
14733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734   (exit $ac_status); }; } &&
14735          { ac_try='test -s conftest.$ac_objext'
14736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737   (eval $ac_try) 2>&5
14738   ac_status=$?
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); }; }; then
14741   ac_hi=-1 ac_mid=-1
14742   while :; do
14743     cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h.  */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h.  */
14749 $ac_includes_default
14750 int
14751 main ()
14752 {
14753 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14754 test_array [0] = 0
14755
14756   ;
14757   return 0;
14758 }
14759 _ACEOF
14760 rm -f conftest.$ac_objext
14761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14762   (eval $ac_compile) 2>conftest.er1
14763   ac_status=$?
14764   grep -v '^ *+' conftest.er1 >conftest.err
14765   rm -f conftest.er1
14766   cat conftest.err >&5
14767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768   (exit $ac_status); } &&
14769          { ac_try='test -z "$ac_c_werror_flag"
14770                          || test ! -s conftest.err'
14771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772   (eval $ac_try) 2>&5
14773   ac_status=$?
14774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); }; } &&
14776          { ac_try='test -s conftest.$ac_objext'
14777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778   (eval $ac_try) 2>&5
14779   ac_status=$?
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); }; }; then
14782   ac_lo=$ac_mid; break
14783 else
14784   echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787 ac_hi=`expr '(' $ac_mid ')' - 1`
14788                        if test $ac_mid -le $ac_hi; then
14789                          ac_lo= ac_hi=
14790                          break
14791                        fi
14792                        ac_mid=`expr 2 '*' $ac_mid`
14793 fi
14794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14795   done
14796 else
14797   echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14799
14800 ac_lo= ac_hi=
14801 fi
14802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14803 fi
14804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14805 # Binary search between lo and hi bounds.
14806 while test "x$ac_lo" != "x$ac_hi"; do
14807   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14808   cat >conftest.$ac_ext <<_ACEOF
14809 /* confdefs.h.  */
14810 _ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h.  */
14814 $ac_includes_default
14815 int
14816 main ()
14817 {
14818 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14819 test_array [0] = 0
14820
14821   ;
14822   return 0;
14823 }
14824 _ACEOF
14825 rm -f conftest.$ac_objext
14826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14827   (eval $ac_compile) 2>conftest.er1
14828   ac_status=$?
14829   grep -v '^ *+' conftest.er1 >conftest.err
14830   rm -f conftest.er1
14831   cat conftest.err >&5
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); } &&
14834          { ac_try='test -z "$ac_c_werror_flag"
14835                          || test ! -s conftest.err'
14836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837   (eval $ac_try) 2>&5
14838   ac_status=$?
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); }; } &&
14841          { ac_try='test -s conftest.$ac_objext'
14842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843   (eval $ac_try) 2>&5
14844   ac_status=$?
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); }; }; then
14847   ac_hi=$ac_mid
14848 else
14849   echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14851
14852 ac_lo=`expr '(' $ac_mid ')' + 1`
14853 fi
14854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14855 done
14856 case $ac_lo in
14857 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14858 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14859 See \`config.log' for more details." >&5
14860 echo "$as_me: error: cannot compute sizeof (long int), 77
14861 See \`config.log' for more details." >&2;}
14862    { (exit 1); exit 1; }; } ;;
14863 esac
14864 else
14865   if test "$cross_compiling" = yes; then
14866   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14867 See \`config.log' for more details." >&5
14868 echo "$as_me: error: cannot run test program while cross compiling
14869 See \`config.log' for more details." >&2;}
14870    { (exit 1); exit 1; }; }
14871 else
14872   cat >conftest.$ac_ext <<_ACEOF
14873 /* confdefs.h.  */
14874 _ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h.  */
14878 $ac_includes_default
14879 long longval () { return (long) (sizeof (long int)); }
14880 unsigned long ulongval () { return (long) (sizeof (long int)); }
14881 #include <stdio.h>
14882 #include <stdlib.h>
14883 int
14884 main ()
14885 {
14886
14887   FILE *f = fopen ("conftest.val", "w");
14888   if (! f)
14889     exit (1);
14890   if (((long) (sizeof (long int))) < 0)
14891     {
14892       long i = longval ();
14893       if (i != ((long) (sizeof (long int))))
14894         exit (1);
14895       fprintf (f, "%ld\n", i);
14896     }
14897   else
14898     {
14899       unsigned long i = ulongval ();
14900       if (i != ((long) (sizeof (long int))))
14901         exit (1);
14902       fprintf (f, "%lu\n", i);
14903     }
14904   exit (ferror (f) || fclose (f) != 0);
14905
14906   ;
14907   return 0;
14908 }
14909 _ACEOF
14910 rm -f conftest$ac_exeext
14911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14912   (eval $ac_link) 2>&5
14913   ac_status=$?
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917   (eval $ac_try) 2>&5
14918   ac_status=$?
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); }; }; then
14921   ac_cv_sizeof_long_int=`cat conftest.val`
14922 else
14923   echo "$as_me: program exited with status $ac_status" >&5
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14926
14927 ( exit $ac_status )
14928 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14929 See \`config.log' for more details." >&5
14930 echo "$as_me: error: cannot compute sizeof (long int), 77
14931 See \`config.log' for more details." >&2;}
14932    { (exit 1); exit 1; }; }
14933 fi
14934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14935 fi
14936 fi
14937 rm -f conftest.val
14938 else
14939   ac_cv_sizeof_long_int=0
14940 fi
14941 fi
14942 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14943 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14944 cat >>confdefs.h <<_ACEOF
14945 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14946 _ACEOF
14947
14948
14949 echo "$as_me:$LINENO: checking for long long int" >&5
14950 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14951 if test "${ac_cv_type_long_long_int+set}" = set; then
14952   echo $ECHO_N "(cached) $ECHO_C" >&6
14953 else
14954   cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h.  */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h.  */
14960 $ac_includes_default
14961 int
14962 main ()
14963 {
14964 if ((long long int *) 0)
14965   return 0;
14966 if (sizeof (long long int))
14967   return 0;
14968   ;
14969   return 0;
14970 }
14971 _ACEOF
14972 rm -f conftest.$ac_objext
14973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14974   (eval $ac_compile) 2>conftest.er1
14975   ac_status=$?
14976   grep -v '^ *+' conftest.er1 >conftest.err
14977   rm -f conftest.er1
14978   cat conftest.err >&5
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); } &&
14981          { ac_try='test -z "$ac_c_werror_flag"
14982                          || test ! -s conftest.err'
14983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984   (eval $ac_try) 2>&5
14985   ac_status=$?
14986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987   (exit $ac_status); }; } &&
14988          { ac_try='test -s conftest.$ac_objext'
14989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14990   (eval $ac_try) 2>&5
14991   ac_status=$?
14992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993   (exit $ac_status); }; }; then
14994   ac_cv_type_long_long_int=yes
14995 else
14996   echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14998
14999 ac_cv_type_long_long_int=no
15000 fi
15001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15002 fi
15003 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15004 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15005
15006 echo "$as_me:$LINENO: checking size of long long int" >&5
15007 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
15008 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
15009   echo $ECHO_N "(cached) $ECHO_C" >&6
15010 else
15011   if test "$ac_cv_type_long_long_int" = yes; then
15012   # The cast to unsigned long works around a bug in the HP C Compiler
15013   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15014   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15015   # This bug is HP SR number 8606223364.
15016   if test "$cross_compiling" = yes; then
15017   # Depending upon the size, compute the lo and hi bounds.
15018 cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h.  */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h.  */
15024 $ac_includes_default
15025 int
15026 main ()
15027 {
15028 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15029 test_array [0] = 0
15030
15031   ;
15032   return 0;
15033 }
15034 _ACEOF
15035 rm -f conftest.$ac_objext
15036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15037   (eval $ac_compile) 2>conftest.er1
15038   ac_status=$?
15039   grep -v '^ *+' conftest.er1 >conftest.err
15040   rm -f conftest.er1
15041   cat conftest.err >&5
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); } &&
15044          { ac_try='test -z "$ac_c_werror_flag"
15045                          || test ! -s conftest.err'
15046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047   (eval $ac_try) 2>&5
15048   ac_status=$?
15049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); }; } &&
15051          { ac_try='test -s conftest.$ac_objext'
15052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053   (eval $ac_try) 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); }; }; then
15057   ac_lo=0 ac_mid=0
15058   while :; do
15059     cat >conftest.$ac_ext <<_ACEOF
15060 /* confdefs.h.  */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h.  */
15065 $ac_includes_default
15066 int
15067 main ()
15068 {
15069 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15070 test_array [0] = 0
15071
15072   ;
15073   return 0;
15074 }
15075 _ACEOF
15076 rm -f conftest.$ac_objext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15078   (eval $ac_compile) 2>conftest.er1
15079   ac_status=$?
15080   grep -v '^ *+' conftest.er1 >conftest.err
15081   rm -f conftest.er1
15082   cat conftest.err >&5
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); } &&
15085          { ac_try='test -z "$ac_c_werror_flag"
15086                          || test ! -s conftest.err'
15087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088   (eval $ac_try) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); }; } &&
15092          { ac_try='test -s conftest.$ac_objext'
15093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094   (eval $ac_try) 2>&5
15095   ac_status=$?
15096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097   (exit $ac_status); }; }; then
15098   ac_hi=$ac_mid; break
15099 else
15100   echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15102
15103 ac_lo=`expr $ac_mid + 1`
15104                     if test $ac_lo -le $ac_mid; then
15105                       ac_lo= ac_hi=
15106                       break
15107                     fi
15108                     ac_mid=`expr 2 '*' $ac_mid + 1`
15109 fi
15110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15111   done
15112 else
15113   echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15115
15116 cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h.  */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h.  */
15122 $ac_includes_default
15123 int
15124 main ()
15125 {
15126 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
15127 test_array [0] = 0
15128
15129   ;
15130   return 0;
15131 }
15132 _ACEOF
15133 rm -f conftest.$ac_objext
15134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15135   (eval $ac_compile) 2>conftest.er1
15136   ac_status=$?
15137   grep -v '^ *+' conftest.er1 >conftest.err
15138   rm -f conftest.er1
15139   cat conftest.err >&5
15140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141   (exit $ac_status); } &&
15142          { ac_try='test -z "$ac_c_werror_flag"
15143                          || test ! -s conftest.err'
15144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145   (eval $ac_try) 2>&5
15146   ac_status=$?
15147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   (exit $ac_status); }; } &&
15149          { ac_try='test -s conftest.$ac_objext'
15150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151   (eval $ac_try) 2>&5
15152   ac_status=$?
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); }; }; then
15155   ac_hi=-1 ac_mid=-1
15156   while :; do
15157     cat >conftest.$ac_ext <<_ACEOF
15158 /* confdefs.h.  */
15159 _ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h.  */
15163 $ac_includes_default
15164 int
15165 main ()
15166 {
15167 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
15168 test_array [0] = 0
15169
15170   ;
15171   return 0;
15172 }
15173 _ACEOF
15174 rm -f conftest.$ac_objext
15175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15176   (eval $ac_compile) 2>conftest.er1
15177   ac_status=$?
15178   grep -v '^ *+' conftest.er1 >conftest.err
15179   rm -f conftest.er1
15180   cat conftest.err >&5
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); } &&
15183          { ac_try='test -z "$ac_c_werror_flag"
15184                          || test ! -s conftest.err'
15185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186   (eval $ac_try) 2>&5
15187   ac_status=$?
15188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189   (exit $ac_status); }; } &&
15190          { ac_try='test -s conftest.$ac_objext'
15191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192   (eval $ac_try) 2>&5
15193   ac_status=$?
15194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195   (exit $ac_status); }; }; then
15196   ac_lo=$ac_mid; break
15197 else
15198   echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15200
15201 ac_hi=`expr '(' $ac_mid ')' - 1`
15202                        if test $ac_mid -le $ac_hi; then
15203                          ac_lo= ac_hi=
15204                          break
15205                        fi
15206                        ac_mid=`expr 2 '*' $ac_mid`
15207 fi
15208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15209   done
15210 else
15211   echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.$ac_ext >&5
15213
15214 ac_lo= ac_hi=
15215 fi
15216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15217 fi
15218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15219 # Binary search between lo and hi bounds.
15220 while test "x$ac_lo" != "x$ac_hi"; do
15221   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15222   cat >conftest.$ac_ext <<_ACEOF
15223 /* confdefs.h.  */
15224 _ACEOF
15225 cat confdefs.h >>conftest.$ac_ext
15226 cat >>conftest.$ac_ext <<_ACEOF
15227 /* end confdefs.h.  */
15228 $ac_includes_default
15229 int
15230 main ()
15231 {
15232 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15233 test_array [0] = 0
15234
15235   ;
15236   return 0;
15237 }
15238 _ACEOF
15239 rm -f conftest.$ac_objext
15240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15241   (eval $ac_compile) 2>conftest.er1
15242   ac_status=$?
15243   grep -v '^ *+' conftest.er1 >conftest.err
15244   rm -f conftest.er1
15245   cat conftest.err >&5
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); } &&
15248          { ac_try='test -z "$ac_c_werror_flag"
15249                          || test ! -s conftest.err'
15250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251   (eval $ac_try) 2>&5
15252   ac_status=$?
15253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254   (exit $ac_status); }; } &&
15255          { ac_try='test -s conftest.$ac_objext'
15256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257   (eval $ac_try) 2>&5
15258   ac_status=$?
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); }; }; then
15261   ac_hi=$ac_mid
15262 else
15263   echo "$as_me: failed program was:" >&5
15264 sed 's/^/| /' conftest.$ac_ext >&5
15265
15266 ac_lo=`expr '(' $ac_mid ')' + 1`
15267 fi
15268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15269 done
15270 case $ac_lo in
15271 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
15272 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15273 See \`config.log' for more details." >&5
15274 echo "$as_me: error: cannot compute sizeof (long long int), 77
15275 See \`config.log' for more details." >&2;}
15276    { (exit 1); exit 1; }; } ;;
15277 esac
15278 else
15279   if test "$cross_compiling" = yes; then
15280   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15281 See \`config.log' for more details." >&5
15282 echo "$as_me: error: cannot run test program while cross compiling
15283 See \`config.log' for more details." >&2;}
15284    { (exit 1); exit 1; }; }
15285 else
15286   cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h.  */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h.  */
15292 $ac_includes_default
15293 long longval () { return (long) (sizeof (long long int)); }
15294 unsigned long ulongval () { return (long) (sizeof (long long int)); }
15295 #include <stdio.h>
15296 #include <stdlib.h>
15297 int
15298 main ()
15299 {
15300
15301   FILE *f = fopen ("conftest.val", "w");
15302   if (! f)
15303     exit (1);
15304   if (((long) (sizeof (long long int))) < 0)
15305     {
15306       long i = longval ();
15307       if (i != ((long) (sizeof (long long int))))
15308         exit (1);
15309       fprintf (f, "%ld\n", i);
15310     }
15311   else
15312     {
15313       unsigned long i = ulongval ();
15314       if (i != ((long) (sizeof (long long int))))
15315         exit (1);
15316       fprintf (f, "%lu\n", i);
15317     }
15318   exit (ferror (f) || fclose (f) != 0);
15319
15320   ;
15321   return 0;
15322 }
15323 _ACEOF
15324 rm -f conftest$ac_exeext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15326   (eval $ac_link) 2>&5
15327   ac_status=$?
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331   (eval $ac_try) 2>&5
15332   ac_status=$?
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); }; }; then
15335   ac_cv_sizeof_long_long_int=`cat conftest.val`
15336 else
15337   echo "$as_me: program exited with status $ac_status" >&5
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15340
15341 ( exit $ac_status )
15342 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15343 See \`config.log' for more details." >&5
15344 echo "$as_me: error: cannot compute sizeof (long long int), 77
15345 See \`config.log' for more details." >&2;}
15346    { (exit 1); exit 1; }; }
15347 fi
15348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15349 fi
15350 fi
15351 rm -f conftest.val
15352 else
15353   ac_cv_sizeof_long_long_int=0
15354 fi
15355 fi
15356 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
15357 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
15358 cat >>confdefs.h <<_ACEOF
15359 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
15360 _ACEOF
15361
15362
15363 echo "$as_me:$LINENO: checking for int *" >&5
15364 echo $ECHO_N "checking for int *... $ECHO_C" >&6
15365 if test "${ac_cv_type_int_p+set}" = set; then
15366   echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368   cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374 $ac_includes_default
15375 int
15376 main ()
15377 {
15378 if ((int * *) 0)
15379   return 0;
15380 if (sizeof (int *))
15381   return 0;
15382   ;
15383   return 0;
15384 }
15385 _ACEOF
15386 rm -f conftest.$ac_objext
15387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15388   (eval $ac_compile) 2>conftest.er1
15389   ac_status=$?
15390   grep -v '^ *+' conftest.er1 >conftest.err
15391   rm -f conftest.er1
15392   cat conftest.err >&5
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); } &&
15395          { ac_try='test -z "$ac_c_werror_flag"
15396                          || test ! -s conftest.err'
15397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398   (eval $ac_try) 2>&5
15399   ac_status=$?
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); }; } &&
15402          { ac_try='test -s conftest.$ac_objext'
15403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404   (eval $ac_try) 2>&5
15405   ac_status=$?
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); }; }; then
15408   ac_cv_type_int_p=yes
15409 else
15410   echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15412
15413 ac_cv_type_int_p=no
15414 fi
15415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15416 fi
15417 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
15418 echo "${ECHO_T}$ac_cv_type_int_p" >&6
15419
15420 echo "$as_me:$LINENO: checking size of int *" >&5
15421 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
15422 if test "${ac_cv_sizeof_int_p+set}" = set; then
15423   echo $ECHO_N "(cached) $ECHO_C" >&6
15424 else
15425   if test "$ac_cv_type_int_p" = yes; then
15426   # The cast to unsigned long works around a bug in the HP C Compiler
15427   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15428   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15429   # This bug is HP SR number 8606223364.
15430   if test "$cross_compiling" = yes; then
15431   # Depending upon the size, compute the lo and hi bounds.
15432 cat >conftest.$ac_ext <<_ACEOF
15433 /* confdefs.h.  */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h.  */
15438 $ac_includes_default
15439 int
15440 main ()
15441 {
15442 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
15443 test_array [0] = 0
15444
15445   ;
15446   return 0;
15447 }
15448 _ACEOF
15449 rm -f conftest.$ac_objext
15450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15451   (eval $ac_compile) 2>conftest.er1
15452   ac_status=$?
15453   grep -v '^ *+' conftest.er1 >conftest.err
15454   rm -f conftest.er1
15455   cat conftest.err >&5
15456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457   (exit $ac_status); } &&
15458          { ac_try='test -z "$ac_c_werror_flag"
15459                          || test ! -s conftest.err'
15460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461   (eval $ac_try) 2>&5
15462   ac_status=$?
15463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464   (exit $ac_status); }; } &&
15465          { ac_try='test -s conftest.$ac_objext'
15466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467   (eval $ac_try) 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); }; }; then
15471   ac_lo=0 ac_mid=0
15472   while :; do
15473     cat >conftest.$ac_ext <<_ACEOF
15474 /* confdefs.h.  */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h.  */
15479 $ac_includes_default
15480 int
15481 main ()
15482 {
15483 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15484 test_array [0] = 0
15485
15486   ;
15487   return 0;
15488 }
15489 _ACEOF
15490 rm -f conftest.$ac_objext
15491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15492   (eval $ac_compile) 2>conftest.er1
15493   ac_status=$?
15494   grep -v '^ *+' conftest.er1 >conftest.err
15495   rm -f conftest.er1
15496   cat conftest.err >&5
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); } &&
15499          { ac_try='test -z "$ac_c_werror_flag"
15500                          || test ! -s conftest.err'
15501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502   (eval $ac_try) 2>&5
15503   ac_status=$?
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); }; } &&
15506          { ac_try='test -s conftest.$ac_objext'
15507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508   (eval $ac_try) 2>&5
15509   ac_status=$?
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); }; }; then
15512   ac_hi=$ac_mid; break
15513 else
15514   echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15516
15517 ac_lo=`expr $ac_mid + 1`
15518                     if test $ac_lo -le $ac_mid; then
15519                       ac_lo= ac_hi=
15520                       break
15521                     fi
15522                     ac_mid=`expr 2 '*' $ac_mid + 1`
15523 fi
15524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15525   done
15526 else
15527   echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15529
15530 cat >conftest.$ac_ext <<_ACEOF
15531 /* confdefs.h.  */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h.  */
15536 $ac_includes_default
15537 int
15538 main ()
15539 {
15540 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
15541 test_array [0] = 0
15542
15543   ;
15544   return 0;
15545 }
15546 _ACEOF
15547 rm -f conftest.$ac_objext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15549   (eval $ac_compile) 2>conftest.er1
15550   ac_status=$?
15551   grep -v '^ *+' conftest.er1 >conftest.err
15552   rm -f conftest.er1
15553   cat conftest.err >&5
15554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555   (exit $ac_status); } &&
15556          { ac_try='test -z "$ac_c_werror_flag"
15557                          || test ! -s conftest.err'
15558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559   (eval $ac_try) 2>&5
15560   ac_status=$?
15561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562   (exit $ac_status); }; } &&
15563          { ac_try='test -s conftest.$ac_objext'
15564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565   (eval $ac_try) 2>&5
15566   ac_status=$?
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); }; }; then
15569   ac_hi=-1 ac_mid=-1
15570   while :; do
15571     cat >conftest.$ac_ext <<_ACEOF
15572 /* confdefs.h.  */
15573 _ACEOF
15574 cat confdefs.h >>conftest.$ac_ext
15575 cat >>conftest.$ac_ext <<_ACEOF
15576 /* end confdefs.h.  */
15577 $ac_includes_default
15578 int
15579 main ()
15580 {
15581 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15582 test_array [0] = 0
15583
15584   ;
15585   return 0;
15586 }
15587 _ACEOF
15588 rm -f conftest.$ac_objext
15589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15590   (eval $ac_compile) 2>conftest.er1
15591   ac_status=$?
15592   grep -v '^ *+' conftest.er1 >conftest.err
15593   rm -f conftest.er1
15594   cat conftest.err >&5
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); } &&
15597          { ac_try='test -z "$ac_c_werror_flag"
15598                          || test ! -s conftest.err'
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); }; } &&
15604          { ac_try='test -s conftest.$ac_objext'
15605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606   (eval $ac_try) 2>&5
15607   ac_status=$?
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); }; }; then
15610   ac_lo=$ac_mid; break
15611 else
15612   echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15614
15615 ac_hi=`expr '(' $ac_mid ')' - 1`
15616                        if test $ac_mid -le $ac_hi; then
15617                          ac_lo= ac_hi=
15618                          break
15619                        fi
15620                        ac_mid=`expr 2 '*' $ac_mid`
15621 fi
15622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15623   done
15624 else
15625   echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15627
15628 ac_lo= ac_hi=
15629 fi
15630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15631 fi
15632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15633 # Binary search between lo and hi bounds.
15634 while test "x$ac_lo" != "x$ac_hi"; do
15635   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15636   cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h.  */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h.  */
15642 $ac_includes_default
15643 int
15644 main ()
15645 {
15646 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15647 test_array [0] = 0
15648
15649   ;
15650   return 0;
15651 }
15652 _ACEOF
15653 rm -f conftest.$ac_objext
15654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15655   (eval $ac_compile) 2>conftest.er1
15656   ac_status=$?
15657   grep -v '^ *+' conftest.er1 >conftest.err
15658   rm -f conftest.er1
15659   cat conftest.err >&5
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); } &&
15662          { ac_try='test -z "$ac_c_werror_flag"
15663                          || test ! -s conftest.err'
15664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665   (eval $ac_try) 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); }; } &&
15669          { ac_try='test -s conftest.$ac_objext'
15670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671   (eval $ac_try) 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); }; }; then
15675   ac_hi=$ac_mid
15676 else
15677   echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15679
15680 ac_lo=`expr '(' $ac_mid ')' + 1`
15681 fi
15682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15683 done
15684 case $ac_lo in
15685 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15686 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15687 See \`config.log' for more details." >&5
15688 echo "$as_me: error: cannot compute sizeof (int *), 77
15689 See \`config.log' for more details." >&2;}
15690    { (exit 1); exit 1; }; } ;;
15691 esac
15692 else
15693   if test "$cross_compiling" = yes; then
15694   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15695 See \`config.log' for more details." >&5
15696 echo "$as_me: error: cannot run test program while cross compiling
15697 See \`config.log' for more details." >&2;}
15698    { (exit 1); exit 1; }; }
15699 else
15700   cat >conftest.$ac_ext <<_ACEOF
15701 /* confdefs.h.  */
15702 _ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h.  */
15706 $ac_includes_default
15707 long longval () { return (long) (sizeof (int *)); }
15708 unsigned long ulongval () { return (long) (sizeof (int *)); }
15709 #include <stdio.h>
15710 #include <stdlib.h>
15711 int
15712 main ()
15713 {
15714
15715   FILE *f = fopen ("conftest.val", "w");
15716   if (! f)
15717     exit (1);
15718   if (((long) (sizeof (int *))) < 0)
15719     {
15720       long i = longval ();
15721       if (i != ((long) (sizeof (int *))))
15722         exit (1);
15723       fprintf (f, "%ld\n", i);
15724     }
15725   else
15726     {
15727       unsigned long i = ulongval ();
15728       if (i != ((long) (sizeof (int *))))
15729         exit (1);
15730       fprintf (f, "%lu\n", i);
15731     }
15732   exit (ferror (f) || fclose (f) != 0);
15733
15734   ;
15735   return 0;
15736 }
15737 _ACEOF
15738 rm -f conftest$ac_exeext
15739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15740   (eval $ac_link) 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745   (eval $ac_try) 2>&5
15746   ac_status=$?
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); }; }; then
15749   ac_cv_sizeof_int_p=`cat conftest.val`
15750 else
15751   echo "$as_me: program exited with status $ac_status" >&5
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15754
15755 ( exit $ac_status )
15756 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15757 See \`config.log' for more details." >&5
15758 echo "$as_me: error: cannot compute sizeof (int *), 77
15759 See \`config.log' for more details." >&2;}
15760    { (exit 1); exit 1; }; }
15761 fi
15762 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15763 fi
15764 fi
15765 rm -f conftest.val
15766 else
15767   ac_cv_sizeof_int_p=0
15768 fi
15769 fi
15770 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15771 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15772 cat >>confdefs.h <<_ACEOF
15773 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15774 _ACEOF
15775
15776
15777
15778 # Check for sys/types.h types
15779 echo "$as_me:$LINENO: checking for u_int type" >&5
15780 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15781 if test "${ac_cv_have_u_int+set}" = set; then
15782   echo $ECHO_N "(cached) $ECHO_C" >&6
15783 else
15784
15785     cat >conftest.$ac_ext <<_ACEOF
15786 /* confdefs.h.  */
15787 _ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h.  */
15791  #include <sys/types.h>
15792 int
15793 main ()
15794 {
15795  u_int a; a = 1;
15796   ;
15797   return 0;
15798 }
15799 _ACEOF
15800 rm -f conftest.$ac_objext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15802   (eval $ac_compile) 2>conftest.er1
15803   ac_status=$?
15804   grep -v '^ *+' conftest.er1 >conftest.err
15805   rm -f conftest.er1
15806   cat conftest.err >&5
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); } &&
15809          { ac_try='test -z "$ac_c_werror_flag"
15810                          || test ! -s conftest.err'
15811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812   (eval $ac_try) 2>&5
15813   ac_status=$?
15814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815   (exit $ac_status); }; } &&
15816          { ac_try='test -s conftest.$ac_objext'
15817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818   (eval $ac_try) 2>&5
15819   ac_status=$?
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); }; }; then
15822    ac_cv_have_u_int="yes"
15823 else
15824   echo "$as_me: failed program was:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15826
15827  ac_cv_have_u_int="no"
15828
15829 fi
15830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15831
15832 fi
15833 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15834 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15835 if test "x$ac_cv_have_u_int" = "xyes" ; then
15836    cat >>confdefs.h <<\_ACEOF
15837 #define HAVE_U_INT 1
15838 _ACEOF
15839
15840    have_u_int=1
15841 fi
15842
15843 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15844 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15845 if test "${ac_cv_have_intmax_t+set}" = set; then
15846   echo $ECHO_N "(cached) $ECHO_C" >&6
15847 else
15848
15849    cat >conftest.$ac_ext <<_ACEOF
15850 /* confdefs.h.  */
15851 _ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h.  */
15855  #include <sys/types.h>
15856 int
15857 main ()
15858 {
15859  intmax_t a; a = 1;
15860   ;
15861   return 0;
15862 }
15863 _ACEOF
15864 rm -f conftest.$ac_objext
15865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15866   (eval $ac_compile) 2>conftest.er1
15867   ac_status=$?
15868   grep -v '^ *+' conftest.er1 >conftest.err
15869   rm -f conftest.er1
15870   cat conftest.err >&5
15871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872   (exit $ac_status); } &&
15873          { ac_try='test -z "$ac_c_werror_flag"
15874                          || test ! -s conftest.err'
15875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876   (eval $ac_try) 2>&5
15877   ac_status=$?
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); }; } &&
15880          { ac_try='test -s conftest.$ac_objext'
15881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882   (eval $ac_try) 2>&5
15883   ac_status=$?
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); }; }; then
15886    ac_cv_have_intmax_t="yes"
15887 else
15888   echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15890
15891
15892          cat >conftest.$ac_ext <<_ACEOF
15893 /* confdefs.h.  */
15894 _ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h.  */
15898  #include <stdint.h>
15899 int
15900 main ()
15901 {
15902  intmax_t a; a = 1;
15903   ;
15904   return 0;
15905 }
15906 _ACEOF
15907 rm -f conftest.$ac_objext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909   (eval $ac_compile) 2>conftest.er1
15910   ac_status=$?
15911   grep -v '^ *+' conftest.er1 >conftest.err
15912   rm -f conftest.er1
15913   cat conftest.err >&5
15914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915   (exit $ac_status); } &&
15916          { ac_try='test -z "$ac_c_werror_flag"
15917                          || test ! -s conftest.err'
15918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919   (eval $ac_try) 2>&5
15920   ac_status=$?
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); }; } &&
15923          { ac_try='test -s conftest.$ac_objext'
15924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925   (eval $ac_try) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); }; }; then
15929    ac_cv_have_intmax_t="yes"
15930 else
15931   echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15933
15934  ac_cv_have_intmax_t="no"
15935
15936 fi
15937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15938
15939
15940 fi
15941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15942
15943
15944 fi
15945 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15946 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15947 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15948    cat >>confdefs.h <<\_ACEOF
15949 #define HAVE_INTMAX_T 1
15950 _ACEOF
15951
15952    have_intmax_t=1
15953 fi
15954
15955
15956 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15957 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15958 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15959   echo $ECHO_N "(cached) $ECHO_C" >&6
15960 else
15961
15962    cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h.  */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h.  */
15968  #include <sys/types.h>
15969 int
15970 main ()
15971 {
15972  u_intmax_t a; a = 1;
15973   ;
15974   return 0;
15975 }
15976 _ACEOF
15977 rm -f conftest.$ac_objext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979   (eval $ac_compile) 2>conftest.er1
15980   ac_status=$?
15981   grep -v '^ *+' conftest.er1 >conftest.err
15982   rm -f conftest.er1
15983   cat conftest.err >&5
15984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); } &&
15986          { ac_try='test -z "$ac_c_werror_flag"
15987                          || test ! -s conftest.err'
15988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989   (eval $ac_try) 2>&5
15990   ac_status=$?
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); }; } &&
15993          { ac_try='test -s conftest.$ac_objext'
15994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995   (eval $ac_try) 2>&5
15996   ac_status=$?
15997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998   (exit $ac_status); }; }; then
15999    ac_cv_have_u_intmax_t="yes"
16000 else
16001   echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16003
16004
16005          cat >conftest.$ac_ext <<_ACEOF
16006 /* confdefs.h.  */
16007 _ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h.  */
16011  #include <stdint.h>
16012 int
16013 main ()
16014 {
16015  u_intmax_t a; a = 1;
16016   ;
16017   return 0;
16018 }
16019 _ACEOF
16020 rm -f conftest.$ac_objext
16021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16022   (eval $ac_compile) 2>conftest.er1
16023   ac_status=$?
16024   grep -v '^ *+' conftest.er1 >conftest.err
16025   rm -f conftest.er1
16026   cat conftest.err >&5
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); } &&
16029          { ac_try='test -z "$ac_c_werror_flag"
16030                          || test ! -s conftest.err'
16031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032   (eval $ac_try) 2>&5
16033   ac_status=$?
16034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035   (exit $ac_status); }; } &&
16036          { ac_try='test -s conftest.$ac_objext'
16037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038   (eval $ac_try) 2>&5
16039   ac_status=$?
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); }; }; then
16042    ac_cv_have_u_intmax_t="yes"
16043 else
16044   echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16046
16047  ac_cv_have_u_intmax_t="no"
16048
16049 fi
16050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16051
16052
16053 fi
16054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16055
16056 fi
16057 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
16058 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
16059 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
16060    cat >>confdefs.h <<\_ACEOF
16061 #define HAVE_U_INTMAX_T 1
16062 _ACEOF
16063
16064    have_u_intmax_t=1
16065 fi
16066
16067
16068 echo "$as_me:$LINENO: checking for intXX_t types" >&5
16069 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
16070 if test "${ac_cv_have_intxx_t+set}" = set; then
16071   echo $ECHO_N "(cached) $ECHO_C" >&6
16072 else
16073
16074    cat >conftest.$ac_ext <<_ACEOF
16075 /* confdefs.h.  */
16076 _ACEOF
16077 cat confdefs.h >>conftest.$ac_ext
16078 cat >>conftest.$ac_ext <<_ACEOF
16079 /* end confdefs.h.  */
16080  #include <sys/types.h>
16081 int
16082 main ()
16083 {
16084  int8_t a; int16_t b; int32_t c; a = b = c = 1;
16085   ;
16086   return 0;
16087 }
16088 _ACEOF
16089 rm -f conftest.$ac_objext
16090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16091   (eval $ac_compile) 2>conftest.er1
16092   ac_status=$?
16093   grep -v '^ *+' conftest.er1 >conftest.err
16094   rm -f conftest.er1
16095   cat conftest.err >&5
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); } &&
16098          { ac_try='test -z "$ac_c_werror_flag"
16099                          || test ! -s conftest.err'
16100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101   (eval $ac_try) 2>&5
16102   ac_status=$?
16103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104   (exit $ac_status); }; } &&
16105          { ac_try='test -s conftest.$ac_objext'
16106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107   (eval $ac_try) 2>&5
16108   ac_status=$?
16109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110   (exit $ac_status); }; }; then
16111    ac_cv_have_intxx_t="yes"
16112 else
16113   echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16115
16116  ac_cv_have_intxx_t="no"
16117
16118 fi
16119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16120
16121 fi
16122 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
16123 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
16124 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
16125    cat >>confdefs.h <<\_ACEOF
16126 #define HAVE_INTXX_T 1
16127 _ACEOF
16128
16129    have_intxx_t=1
16130 fi
16131
16132 echo "$as_me:$LINENO: checking for int64_t type" >&5
16133 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
16134 if test "${ac_cv_have_int64_t+set}" = set; then
16135   echo $ECHO_N "(cached) $ECHO_C" >&6
16136 else
16137
16138    cat >conftest.$ac_ext <<_ACEOF
16139 /* confdefs.h.  */
16140 _ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h.  */
16144  #include <sys/types.h>
16145 int
16146 main ()
16147 {
16148  int64_t a; a = 1;
16149   ;
16150   return 0;
16151 }
16152 _ACEOF
16153 rm -f conftest.$ac_objext
16154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16155   (eval $ac_compile) 2>conftest.er1
16156   ac_status=$?
16157   grep -v '^ *+' conftest.er1 >conftest.err
16158   rm -f conftest.er1
16159   cat conftest.err >&5
16160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161   (exit $ac_status); } &&
16162          { ac_try='test -z "$ac_c_werror_flag"
16163                          || test ! -s conftest.err'
16164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165   (eval $ac_try) 2>&5
16166   ac_status=$?
16167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168   (exit $ac_status); }; } &&
16169          { ac_try='test -s conftest.$ac_objext'
16170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171   (eval $ac_try) 2>&5
16172   ac_status=$?
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); }; }; then
16175    ac_cv_have_int64_t="yes"
16176 else
16177   echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16179
16180  ac_cv_have_int64_t="no"
16181
16182 fi
16183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16184
16185 fi
16186 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
16187 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
16188 if test "x$ac_cv_have_int64_t" = "xyes" ; then
16189    cat >>confdefs.h <<\_ACEOF
16190 #define HAVE_INT64_T 1
16191 _ACEOF
16192
16193    have_int64_t=1
16194 fi
16195
16196 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
16197 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
16198 if test "${ac_cv_have_u_intxx_t+set}" = set; then
16199   echo $ECHO_N "(cached) $ECHO_C" >&6
16200 else
16201
16202    cat >conftest.$ac_ext <<_ACEOF
16203 /* confdefs.h.  */
16204 _ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h.  */
16208  #include <sys/types.h>
16209 int
16210 main ()
16211 {
16212  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
16213   ;
16214   return 0;
16215 }
16216 _ACEOF
16217 rm -f conftest.$ac_objext
16218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16219   (eval $ac_compile) 2>conftest.er1
16220   ac_status=$?
16221   grep -v '^ *+' conftest.er1 >conftest.err
16222   rm -f conftest.er1
16223   cat conftest.err >&5
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); } &&
16226          { ac_try='test -z "$ac_c_werror_flag"
16227                          || test ! -s conftest.err'
16228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229   (eval $ac_try) 2>&5
16230   ac_status=$?
16231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232   (exit $ac_status); }; } &&
16233          { ac_try='test -s conftest.$ac_objext'
16234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235   (eval $ac_try) 2>&5
16236   ac_status=$?
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); }; }; then
16239    ac_cv_have_u_intxx_t="yes"
16240 else
16241   echo "$as_me: failed program was:" >&5
16242 sed 's/^/| /' conftest.$ac_ext >&5
16243
16244  ac_cv_have_u_intxx_t="no"
16245
16246 fi
16247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16248
16249 fi
16250 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
16251 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
16252 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
16253    cat >>confdefs.h <<\_ACEOF
16254 #define HAVE_U_INTXX_T 1
16255 _ACEOF
16256
16257    have_u_intxx_t=1
16258 fi
16259
16260 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
16261 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
16262 if test "${ac_cv_have_u_int64_t+set}" = set; then
16263   echo $ECHO_N "(cached) $ECHO_C" >&6
16264 else
16265
16266    cat >conftest.$ac_ext <<_ACEOF
16267 /* confdefs.h.  */
16268 _ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h.  */
16272  #include <sys/types.h>
16273 int
16274 main ()
16275 {
16276  u_int64_t a; a = 1;
16277   ;
16278   return 0;
16279 }
16280 _ACEOF
16281 rm -f conftest.$ac_objext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16283   (eval $ac_compile) 2>conftest.er1
16284   ac_status=$?
16285   grep -v '^ *+' conftest.er1 >conftest.err
16286   rm -f conftest.er1
16287   cat conftest.err >&5
16288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289   (exit $ac_status); } &&
16290          { ac_try='test -z "$ac_c_werror_flag"
16291                          || test ! -s conftest.err'
16292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293   (eval $ac_try) 2>&5
16294   ac_status=$?
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); }; } &&
16297          { ac_try='test -s conftest.$ac_objext'
16298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299   (eval $ac_try) 2>&5
16300   ac_status=$?
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); }; }; then
16303    ac_cv_have_u_int64_t="yes"
16304 else
16305   echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16307
16308  ac_cv_have_u_int64_t="no"
16309
16310 fi
16311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16312
16313 fi
16314 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
16315 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
16316 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
16317    cat >>confdefs.h <<\_ACEOF
16318 #define HAVE_U_INT64_T 1
16319 _ACEOF
16320
16321    have_u_int64_t=1
16322 fi
16323
16324 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
16325            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16326 then
16327    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
16328 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
16329    cat >conftest.$ac_ext <<_ACEOF
16330 /* confdefs.h.  */
16331 _ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h.  */
16335  #include <sys/bitypes.h>
16336 int
16337 main ()
16338 {
16339  int8_t a; int16_t b; int32_t c;
16340         u_int8_t e; u_int16_t f; u_int32_t g;
16341         a = b = c = e = f = g = 1;
16342   ;
16343   return 0;
16344 }
16345 _ACEOF
16346 rm -f conftest.$ac_objext
16347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16348   (eval $ac_compile) 2>conftest.er1
16349   ac_status=$?
16350   grep -v '^ *+' conftest.er1 >conftest.err
16351   rm -f conftest.er1
16352   cat conftest.err >&5
16353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); } &&
16355          { ac_try='test -z "$ac_c_werror_flag"
16356                          || test ! -s conftest.err'
16357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358   (eval $ac_try) 2>&5
16359   ac_status=$?
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); }; } &&
16362          { ac_try='test -s conftest.$ac_objext'
16363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364   (eval $ac_try) 2>&5
16365   ac_status=$?
16366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367   (exit $ac_status); }; }; then
16368    cat >>confdefs.h <<\_ACEOF
16369 #define HAVE_U_INTXX_T 1
16370 _ACEOF
16371
16372         cat >>confdefs.h <<\_ACEOF
16373 #define HAVE_INTXX_T 1
16374 _ACEOF
16375
16376         cat >>confdefs.h <<\_ACEOF
16377 #define HAVE_SYS_BITYPES_H 1
16378 _ACEOF
16379
16380         echo "$as_me:$LINENO: result: yes" >&5
16381 echo "${ECHO_T}yes" >&6
16382 else
16383   echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16385
16386  echo "$as_me:$LINENO: result: no" >&5
16387 echo "${ECHO_T}no" >&6
16388
16389 fi
16390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16391 fi
16392
16393 if test -z "$have_u_intxx_t" ; then
16394    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
16395 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
16396 if test "${ac_cv_have_uintxx_t+set}" = set; then
16397   echo $ECHO_N "(cached) $ECHO_C" >&6
16398 else
16399
16400       cat >conftest.$ac_ext <<_ACEOF
16401 /* confdefs.h.  */
16402 _ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h.  */
16406  #include <sys/types.h>
16407 int
16408 main ()
16409 {
16410  uint8_t a; uint16_t b;
16411            uint32_t c; a = b = c = 1;
16412   ;
16413   return 0;
16414 }
16415 _ACEOF
16416 rm -f conftest.$ac_objext
16417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16418   (eval $ac_compile) 2>conftest.er1
16419   ac_status=$?
16420   grep -v '^ *+' conftest.er1 >conftest.err
16421   rm -f conftest.er1
16422   cat conftest.err >&5
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); } &&
16425          { ac_try='test -z "$ac_c_werror_flag"
16426                          || test ! -s conftest.err'
16427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428   (eval $ac_try) 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); }; } &&
16432          { ac_try='test -s conftest.$ac_objext'
16433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434   (eval $ac_try) 2>&5
16435   ac_status=$?
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); }; }; then
16438    ac_cv_have_uintxx_t="yes"
16439 else
16440   echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16442
16443  ac_cv_have_uintxx_t="no"
16444
16445 fi
16446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16447
16448 fi
16449 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
16450 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
16451    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
16452       cat >>confdefs.h <<\_ACEOF
16453 #define HAVE_UINTXX_T 1
16454 _ACEOF
16455
16456    fi
16457 fi
16458
16459 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
16460           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16461 then
16462    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
16463 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
16464    cat >conftest.$ac_ext <<_ACEOF
16465 /* confdefs.h.  */
16466 _ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h.  */
16470  #include <sys/bitypes.h>
16471 int
16472 main ()
16473 {
16474  int64_t a; u_int64_t b;
16475        a = b = 1;
16476   ;
16477   return 0;
16478 }
16479 _ACEOF
16480 rm -f conftest.$ac_objext
16481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16482   (eval $ac_compile) 2>conftest.er1
16483   ac_status=$?
16484   grep -v '^ *+' conftest.er1 >conftest.err
16485   rm -f conftest.er1
16486   cat conftest.err >&5
16487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488   (exit $ac_status); } &&
16489          { ac_try='test -z "$ac_c_werror_flag"
16490                          || test ! -s conftest.err'
16491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492   (eval $ac_try) 2>&5
16493   ac_status=$?
16494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495   (exit $ac_status); }; } &&
16496          { ac_try='test -s conftest.$ac_objext'
16497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498   (eval $ac_try) 2>&5
16499   ac_status=$?
16500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501   (exit $ac_status); }; }; then
16502    cat >>confdefs.h <<\_ACEOF
16503 #define HAVE_U_INT64_T 1
16504 _ACEOF
16505
16506        cat >>confdefs.h <<\_ACEOF
16507 #define HAVE_INT64_T 1
16508 _ACEOF
16509
16510        echo "$as_me:$LINENO: result: yes" >&5
16511 echo "${ECHO_T}yes" >&6
16512 else
16513   echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16515
16516  echo "$as_me:$LINENO: result: no" >&5
16517 echo "${ECHO_T}no" >&6
16518
16519 fi
16520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16521 fi
16522
16523 if (test -z "$have_uintxx_t" && \
16524           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16525 then
16526    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
16527 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
16528    cat >conftest.$ac_ext <<_ACEOF
16529 /* confdefs.h.  */
16530 _ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h.  */
16534  #include <sys/bitypes.h>
16535 int
16536 main ()
16537 {
16538  uint8_t a; uint16_t b;
16539           uint32_t c; a = b = c = 1;
16540   ;
16541   return 0;
16542 }
16543 _ACEOF
16544 rm -f conftest.$ac_objext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16546   (eval $ac_compile) 2>conftest.er1
16547   ac_status=$?
16548   grep -v '^ *+' conftest.er1 >conftest.err
16549   rm -f conftest.er1
16550   cat conftest.err >&5
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); } &&
16553          { ac_try='test -z "$ac_c_werror_flag"
16554                          || test ! -s conftest.err'
16555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556   (eval $ac_try) 2>&5
16557   ac_status=$?
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); }; } &&
16560          { ac_try='test -s conftest.$ac_objext'
16561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562   (eval $ac_try) 2>&5
16563   ac_status=$?
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); }; }; then
16566    cat >>confdefs.h <<\_ACEOF
16567 #define HAVE_UINTXX_T 1
16568 _ACEOF
16569
16570        echo "$as_me:$LINENO: result: yes" >&5
16571 echo "${ECHO_T}yes" >&6
16572 else
16573   echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16575
16576  echo "$as_me:$LINENO: result: no" >&5
16577 echo "${ECHO_T}no" >&6
16578
16579 fi
16580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16581
16582 fi
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600 for ac_func in \
16601         fork \
16602         getcwd \
16603         gethostname \
16604         getpid \
16605         gettimeofday \
16606         setpgid \
16607         setpgrp \
16608         setsid \
16609         signal \
16610         strerror \
16611         strncmp \
16612         strncpy \
16613         vfprintf \
16614
16615 do
16616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16617 echo "$as_me:$LINENO: checking for $ac_func" >&5
16618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16619 if eval "test \"\${$as_ac_var+set}\" = set"; then
16620   echo $ECHO_N "(cached) $ECHO_C" >&6
16621 else
16622   cat >conftest.$ac_ext <<_ACEOF
16623 /* confdefs.h.  */
16624 _ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h.  */
16628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16630 #define $ac_func innocuous_$ac_func
16631
16632 /* System header to define __stub macros and hopefully few prototypes,
16633     which can conflict with char $ac_func (); below.
16634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16635     <limits.h> exists even on freestanding compilers.  */
16636
16637 #ifdef __STDC__
16638 # include <limits.h>
16639 #else
16640 # include <assert.h>
16641 #endif
16642
16643 #undef $ac_func
16644
16645 /* Override any gcc2 internal prototype to avoid an error.  */
16646 #ifdef __cplusplus
16647 extern "C"
16648 {
16649 #endif
16650 /* We use char because int might match the return type of a gcc2
16651    builtin and then its argument prototype would still apply.  */
16652 char $ac_func ();
16653 /* The GNU C library defines this for functions which it implements
16654     to always fail with ENOSYS.  Some functions are actually named
16655     something starting with __ and the normal name is an alias.  */
16656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16657 choke me
16658 #else
16659 char (*f) () = $ac_func;
16660 #endif
16661 #ifdef __cplusplus
16662 }
16663 #endif
16664
16665 int
16666 main ()
16667 {
16668 return f != $ac_func;
16669   ;
16670   return 0;
16671 }
16672 _ACEOF
16673 rm -f conftest.$ac_objext conftest$ac_exeext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16675   (eval $ac_link) 2>conftest.er1
16676   ac_status=$?
16677   grep -v '^ *+' conftest.er1 >conftest.err
16678   rm -f conftest.er1
16679   cat conftest.err >&5
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); } &&
16682          { ac_try='test -z "$ac_c_werror_flag"
16683                          || test ! -s conftest.err'
16684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685   (eval $ac_try) 2>&5
16686   ac_status=$?
16687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688   (exit $ac_status); }; } &&
16689          { ac_try='test -s conftest$ac_exeext'
16690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691   (eval $ac_try) 2>&5
16692   ac_status=$?
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); }; }; then
16695   eval "$as_ac_var=yes"
16696 else
16697   echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16699
16700 eval "$as_ac_var=no"
16701 fi
16702 rm -f conftest.err conftest.$ac_objext \
16703       conftest$ac_exeext conftest.$ac_ext
16704 fi
16705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16707 if test `eval echo '${'$as_ac_var'}'` = yes; then
16708   cat >>confdefs.h <<_ACEOF
16709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16710 _ACEOF
16711
16712 else
16713   echo 'configure: cannot find needed function.'; exit 1
16714
16715 fi
16716 done
16717
16718
16719
16720 for ac_func in fchdir
16721 do
16722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16723 echo "$as_me:$LINENO: checking for $ac_func" >&5
16724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16725 if eval "test \"\${$as_ac_var+set}\" = set"; then
16726   echo $ECHO_N "(cached) $ECHO_C" >&6
16727 else
16728   cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h.  */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h.  */
16734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16736 #define $ac_func innocuous_$ac_func
16737
16738 /* System header to define __stub macros and hopefully few prototypes,
16739     which can conflict with char $ac_func (); below.
16740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16741     <limits.h> exists even on freestanding compilers.  */
16742
16743 #ifdef __STDC__
16744 # include <limits.h>
16745 #else
16746 # include <assert.h>
16747 #endif
16748
16749 #undef $ac_func
16750
16751 /* Override any gcc2 internal prototype to avoid an error.  */
16752 #ifdef __cplusplus
16753 extern "C"
16754 {
16755 #endif
16756 /* We use char because int might match the return type of a gcc2
16757    builtin and then its argument prototype would still apply.  */
16758 char $ac_func ();
16759 /* The GNU C library defines this for functions which it implements
16760     to always fail with ENOSYS.  Some functions are actually named
16761     something starting with __ and the normal name is an alias.  */
16762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16763 choke me
16764 #else
16765 char (*f) () = $ac_func;
16766 #endif
16767 #ifdef __cplusplus
16768 }
16769 #endif
16770
16771 int
16772 main ()
16773 {
16774 return f != $ac_func;
16775   ;
16776   return 0;
16777 }
16778 _ACEOF
16779 rm -f conftest.$ac_objext conftest$ac_exeext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16781   (eval $ac_link) 2>conftest.er1
16782   ac_status=$?
16783   grep -v '^ *+' conftest.er1 >conftest.err
16784   rm -f conftest.er1
16785   cat conftest.err >&5
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); } &&
16788          { ac_try='test -z "$ac_c_werror_flag"
16789                          || test ! -s conftest.err'
16790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791   (eval $ac_try) 2>&5
16792   ac_status=$?
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); }; } &&
16795          { ac_try='test -s conftest$ac_exeext'
16796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797   (eval $ac_try) 2>&5
16798   ac_status=$?
16799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800   (exit $ac_status); }; }; then
16801   eval "$as_ac_var=yes"
16802 else
16803   echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16805
16806 eval "$as_ac_var=no"
16807 fi
16808 rm -f conftest.err conftest.$ac_objext \
16809       conftest$ac_exeext conftest.$ac_ext
16810 fi
16811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16813 if test `eval echo '${'$as_ac_var'}'` = yes; then
16814   cat >>confdefs.h <<_ACEOF
16815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16816 _ACEOF
16817  cat >>confdefs.h <<\_ACEOF
16818 #define HAVE_FCHDIR 1
16819 _ACEOF
16820
16821 fi
16822 done
16823
16824
16825 for ac_func in strtoll
16826 do
16827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16828 echo "$as_me:$LINENO: checking for $ac_func" >&5
16829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16830 if eval "test \"\${$as_ac_var+set}\" = set"; then
16831   echo $ECHO_N "(cached) $ECHO_C" >&6
16832 else
16833   cat >conftest.$ac_ext <<_ACEOF
16834 /* confdefs.h.  */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h.  */
16839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16841 #define $ac_func innocuous_$ac_func
16842
16843 /* System header to define __stub macros and hopefully few prototypes,
16844     which can conflict with char $ac_func (); below.
16845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846     <limits.h> exists even on freestanding compilers.  */
16847
16848 #ifdef __STDC__
16849 # include <limits.h>
16850 #else
16851 # include <assert.h>
16852 #endif
16853
16854 #undef $ac_func
16855
16856 /* Override any gcc2 internal prototype to avoid an error.  */
16857 #ifdef __cplusplus
16858 extern "C"
16859 {
16860 #endif
16861 /* We use char because int might match the return type of a gcc2
16862    builtin and then its argument prototype would still apply.  */
16863 char $ac_func ();
16864 /* The GNU C library defines this for functions which it implements
16865     to always fail with ENOSYS.  Some functions are actually named
16866     something starting with __ and the normal name is an alias.  */
16867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16868 choke me
16869 #else
16870 char (*f) () = $ac_func;
16871 #endif
16872 #ifdef __cplusplus
16873 }
16874 #endif
16875
16876 int
16877 main ()
16878 {
16879 return f != $ac_func;
16880   ;
16881   return 0;
16882 }
16883 _ACEOF
16884 rm -f conftest.$ac_objext conftest$ac_exeext
16885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16886   (eval $ac_link) 2>conftest.er1
16887   ac_status=$?
16888   grep -v '^ *+' conftest.er1 >conftest.err
16889   rm -f conftest.er1
16890   cat conftest.err >&5
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); } &&
16893          { ac_try='test -z "$ac_c_werror_flag"
16894                          || test ! -s conftest.err'
16895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896   (eval $ac_try) 2>&5
16897   ac_status=$?
16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899   (exit $ac_status); }; } &&
16900          { ac_try='test -s conftest$ac_exeext'
16901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16902   (eval $ac_try) 2>&5
16903   ac_status=$?
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); }; }; then
16906   eval "$as_ac_var=yes"
16907 else
16908   echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16910
16911 eval "$as_ac_var=no"
16912 fi
16913 rm -f conftest.err conftest.$ac_objext \
16914       conftest$ac_exeext conftest.$ac_ext
16915 fi
16916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16918 if test `eval echo '${'$as_ac_var'}'` = yes; then
16919   cat >>confdefs.h <<_ACEOF
16920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16921 _ACEOF
16922  cat >>confdefs.h <<\_ACEOF
16923 #define HAVE_STRTOLL 1
16924 _ACEOF
16925
16926 fi
16927 done
16928
16929
16930
16931 for ac_func in chflags
16932 do
16933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16934 echo "$as_me:$LINENO: checking for $ac_func" >&5
16935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16936 if eval "test \"\${$as_ac_var+set}\" = set"; then
16937   echo $ECHO_N "(cached) $ECHO_C" >&6
16938 else
16939   cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h.  */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h.  */
16945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16947 #define $ac_func innocuous_$ac_func
16948
16949 /* System header to define __stub macros and hopefully few prototypes,
16950     which can conflict with char $ac_func (); below.
16951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16952     <limits.h> exists even on freestanding compilers.  */
16953
16954 #ifdef __STDC__
16955 # include <limits.h>
16956 #else
16957 # include <assert.h>
16958 #endif
16959
16960 #undef $ac_func
16961
16962 /* Override any gcc2 internal prototype to avoid an error.  */
16963 #ifdef __cplusplus
16964 extern "C"
16965 {
16966 #endif
16967 /* We use char because int might match the return type of a gcc2
16968    builtin and then its argument prototype would still apply.  */
16969 char $ac_func ();
16970 /* The GNU C library defines this for functions which it implements
16971     to always fail with ENOSYS.  Some functions are actually named
16972     something starting with __ and the normal name is an alias.  */
16973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16974 choke me
16975 #else
16976 char (*f) () = $ac_func;
16977 #endif
16978 #ifdef __cplusplus
16979 }
16980 #endif
16981
16982 int
16983 main ()
16984 {
16985 return f != $ac_func;
16986   ;
16987   return 0;
16988 }
16989 _ACEOF
16990 rm -f conftest.$ac_objext conftest$ac_exeext
16991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16992   (eval $ac_link) 2>conftest.er1
16993   ac_status=$?
16994   grep -v '^ *+' conftest.er1 >conftest.err
16995   rm -f conftest.er1
16996   cat conftest.err >&5
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); } &&
16999          { ac_try='test -z "$ac_c_werror_flag"
17000                          || test ! -s conftest.err'
17001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002   (eval $ac_try) 2>&5
17003   ac_status=$?
17004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005   (exit $ac_status); }; } &&
17006          { ac_try='test -s conftest$ac_exeext'
17007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008   (eval $ac_try) 2>&5
17009   ac_status=$?
17010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011   (exit $ac_status); }; }; then
17012   eval "$as_ac_var=yes"
17013 else
17014   echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17016
17017 eval "$as_ac_var=no"
17018 fi
17019 rm -f conftest.err conftest.$ac_objext \
17020       conftest$ac_exeext conftest.$ac_ext
17021 fi
17022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17024 if test `eval echo '${'$as_ac_var'}'` = yes; then
17025   cat >>confdefs.h <<_ACEOF
17026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17027 _ACEOF
17028
17029 fi
17030 done
17031
17032
17033
17034
17035
17036
17037 for ac_func in snprintf vsnprintf gethostid getdomainname
17038 do
17039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17040 echo "$as_me:$LINENO: checking for $ac_func" >&5
17041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17042 if eval "test \"\${$as_ac_var+set}\" = set"; then
17043   echo $ECHO_N "(cached) $ECHO_C" >&6
17044 else
17045   cat >conftest.$ac_ext <<_ACEOF
17046 /* confdefs.h.  */
17047 _ACEOF
17048 cat confdefs.h >>conftest.$ac_ext
17049 cat >>conftest.$ac_ext <<_ACEOF
17050 /* end confdefs.h.  */
17051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17053 #define $ac_func innocuous_$ac_func
17054
17055 /* System header to define __stub macros and hopefully few prototypes,
17056     which can conflict with char $ac_func (); below.
17057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17058     <limits.h> exists even on freestanding compilers.  */
17059
17060 #ifdef __STDC__
17061 # include <limits.h>
17062 #else
17063 # include <assert.h>
17064 #endif
17065
17066 #undef $ac_func
17067
17068 /* Override any gcc2 internal prototype to avoid an error.  */
17069 #ifdef __cplusplus
17070 extern "C"
17071 {
17072 #endif
17073 /* We use char because int might match the return type of a gcc2
17074    builtin and then its argument prototype would still apply.  */
17075 char $ac_func ();
17076 /* The GNU C library defines this for functions which it implements
17077     to always fail with ENOSYS.  Some functions are actually named
17078     something starting with __ and the normal name is an alias.  */
17079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17080 choke me
17081 #else
17082 char (*f) () = $ac_func;
17083 #endif
17084 #ifdef __cplusplus
17085 }
17086 #endif
17087
17088 int
17089 main ()
17090 {
17091 return f != $ac_func;
17092   ;
17093   return 0;
17094 }
17095 _ACEOF
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17098   (eval $ac_link) 2>conftest.er1
17099   ac_status=$?
17100   grep -v '^ *+' conftest.er1 >conftest.err
17101   rm -f conftest.er1
17102   cat conftest.err >&5
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); } &&
17105          { ac_try='test -z "$ac_c_werror_flag"
17106                          || test ! -s conftest.err'
17107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108   (eval $ac_try) 2>&5
17109   ac_status=$?
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); }; } &&
17112          { ac_try='test -s conftest$ac_exeext'
17113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114   (eval $ac_try) 2>&5
17115   ac_status=$?
17116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117   (exit $ac_status); }; }; then
17118   eval "$as_ac_var=yes"
17119 else
17120   echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17122
17123 eval "$as_ac_var=no"
17124 fi
17125 rm -f conftest.err conftest.$ac_objext \
17126       conftest$ac_exeext conftest.$ac_ext
17127 fi
17128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17130 if test `eval echo '${'$as_ac_var'}'` = yes; then
17131   cat >>confdefs.h <<_ACEOF
17132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17133 _ACEOF
17134
17135 fi
17136 done
17137
17138
17139
17140
17141
17142
17143 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
17144 do
17145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17146 echo "$as_me:$LINENO: checking for $ac_func" >&5
17147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17148 if eval "test \"\${$as_ac_var+set}\" = set"; then
17149   echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151   cat >conftest.$ac_ext <<_ACEOF
17152 /* confdefs.h.  */
17153 _ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h.  */
17157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17159 #define $ac_func innocuous_$ac_func
17160
17161 /* System header to define __stub macros and hopefully few prototypes,
17162     which can conflict with char $ac_func (); below.
17163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17164     <limits.h> exists even on freestanding compilers.  */
17165
17166 #ifdef __STDC__
17167 # include <limits.h>
17168 #else
17169 # include <assert.h>
17170 #endif
17171
17172 #undef $ac_func
17173
17174 /* Override any gcc2 internal prototype to avoid an error.  */
17175 #ifdef __cplusplus
17176 extern "C"
17177 {
17178 #endif
17179 /* We use char because int might match the return type of a gcc2
17180    builtin and then its argument prototype would still apply.  */
17181 char $ac_func ();
17182 /* The GNU C library defines this for functions which it implements
17183     to always fail with ENOSYS.  Some functions are actually named
17184     something starting with __ and the normal name is an alias.  */
17185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17186 choke me
17187 #else
17188 char (*f) () = $ac_func;
17189 #endif
17190 #ifdef __cplusplus
17191 }
17192 #endif
17193
17194 int
17195 main ()
17196 {
17197 return f != $ac_func;
17198   ;
17199   return 0;
17200 }
17201 _ACEOF
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17204   (eval $ac_link) 2>conftest.er1
17205   ac_status=$?
17206   grep -v '^ *+' conftest.er1 >conftest.err
17207   rm -f conftest.er1
17208   cat conftest.err >&5
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); } &&
17211          { ac_try='test -z "$ac_c_werror_flag"
17212                          || test ! -s conftest.err'
17213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214   (eval $ac_try) 2>&5
17215   ac_status=$?
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); }; } &&
17218          { ac_try='test -s conftest$ac_exeext'
17219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220   (eval $ac_try) 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); }; }; then
17224   eval "$as_ac_var=yes"
17225 else
17226   echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17228
17229 eval "$as_ac_var=no"
17230 fi
17231 rm -f conftest.err conftest.$ac_objext \
17232       conftest$ac_exeext conftest.$ac_ext
17233 fi
17234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17236 if test `eval echo '${'$as_ac_var'}'` = yes; then
17237   cat >>confdefs.h <<_ACEOF
17238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17239 _ACEOF
17240
17241 fi
17242 done
17243
17244
17245 # If resolver functions are not in libc check for -lnsl or -lresolv.
17246 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
17247 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
17248 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
17249   echo $ECHO_N "(cached) $ECHO_C" >&6
17250 else
17251   cat >conftest.$ac_ext <<_ACEOF
17252 /* confdefs.h.  */
17253 _ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h.  */
17257 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
17258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17259 #define gethostbyname_r innocuous_gethostbyname_r
17260
17261 /* System header to define __stub macros and hopefully few prototypes,
17262     which can conflict with char gethostbyname_r (); below.
17263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17264     <limits.h> exists even on freestanding compilers.  */
17265
17266 #ifdef __STDC__
17267 # include <limits.h>
17268 #else
17269 # include <assert.h>
17270 #endif
17271
17272 #undef gethostbyname_r
17273
17274 /* Override any gcc2 internal prototype to avoid an error.  */
17275 #ifdef __cplusplus
17276 extern "C"
17277 {
17278 #endif
17279 /* We use char because int might match the return type of a gcc2
17280    builtin and then its argument prototype would still apply.  */
17281 char gethostbyname_r ();
17282 /* The GNU C library defines this for functions which it implements
17283     to always fail with ENOSYS.  Some functions are actually named
17284     something starting with __ and the normal name is an alias.  */
17285 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
17286 choke me
17287 #else
17288 char (*f) () = gethostbyname_r;
17289 #endif
17290 #ifdef __cplusplus
17291 }
17292 #endif
17293
17294 int
17295 main ()
17296 {
17297 return f != gethostbyname_r;
17298   ;
17299   return 0;
17300 }
17301 _ACEOF
17302 rm -f conftest.$ac_objext conftest$ac_exeext
17303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17304   (eval $ac_link) 2>conftest.er1
17305   ac_status=$?
17306   grep -v '^ *+' conftest.er1 >conftest.err
17307   rm -f conftest.er1
17308   cat conftest.err >&5
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); } &&
17311          { ac_try='test -z "$ac_c_werror_flag"
17312                          || test ! -s conftest.err'
17313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314   (eval $ac_try) 2>&5
17315   ac_status=$?
17316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317   (exit $ac_status); }; } &&
17318          { ac_try='test -s conftest$ac_exeext'
17319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320   (eval $ac_try) 2>&5
17321   ac_status=$?
17322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323   (exit $ac_status); }; }; then
17324   ac_cv_func_gethostbyname_r=yes
17325 else
17326   echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17328
17329 ac_cv_func_gethostbyname_r=no
17330 fi
17331 rm -f conftest.err conftest.$ac_objext \
17332       conftest$ac_exeext conftest.$ac_ext
17333 fi
17334 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
17335 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
17336 if test $ac_cv_func_gethostbyname_r = yes; then
17337   echo "$as_me:$LINENO: result: using libc's resolver" >&5
17338 echo "${ECHO_T}using libc's resolver" >&6
17339 else
17340
17341 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
17342 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
17343 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
17344   echo $ECHO_N "(cached) $ECHO_C" >&6
17345 else
17346   ac_check_lib_save_LIBS=$LIBS
17347 LIBS="-lnsl  $LIBS"
17348 cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h.  */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h.  */
17354
17355 /* Override any gcc2 internal prototype to avoid an error.  */
17356 #ifdef __cplusplus
17357 extern "C"
17358 #endif
17359 /* We use char because int might match the return type of a gcc2
17360    builtin and then its argument prototype would still apply.  */
17361 char gethostbyname_r ();
17362 int
17363 main ()
17364 {
17365 gethostbyname_r ();
17366   ;
17367   return 0;
17368 }
17369 _ACEOF
17370 rm -f conftest.$ac_objext conftest$ac_exeext
17371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17372   (eval $ac_link) 2>conftest.er1
17373   ac_status=$?
17374   grep -v '^ *+' conftest.er1 >conftest.err
17375   rm -f conftest.er1
17376   cat conftest.err >&5
17377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378   (exit $ac_status); } &&
17379          { ac_try='test -z "$ac_c_werror_flag"
17380                          || test ! -s conftest.err'
17381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17382   (eval $ac_try) 2>&5
17383   ac_status=$?
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); }; } &&
17386          { ac_try='test -s conftest$ac_exeext'
17387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17388   (eval $ac_try) 2>&5
17389   ac_status=$?
17390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391   (exit $ac_status); }; }; then
17392   ac_cv_lib_nsl_gethostbyname_r=yes
17393 else
17394   echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17396
17397 ac_cv_lib_nsl_gethostbyname_r=no
17398 fi
17399 rm -f conftest.err conftest.$ac_objext \
17400       conftest$ac_exeext conftest.$ac_ext
17401 LIBS=$ac_check_lib_save_LIBS
17402 fi
17403 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
17404 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
17405 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
17406   cat >>confdefs.h <<_ACEOF
17407 #define HAVE_LIBNSL 1
17408 _ACEOF
17409
17410   LIBS="-lnsl $LIBS"
17411
17412 fi
17413
17414
17415 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
17416 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
17417 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
17418   echo $ECHO_N "(cached) $ECHO_C" >&6
17419 else
17420   ac_check_lib_save_LIBS=$LIBS
17421 LIBS="-lresolv  $LIBS"
17422 cat >conftest.$ac_ext <<_ACEOF
17423 /* confdefs.h.  */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h.  */
17428
17429 /* Override any gcc2 internal prototype to avoid an error.  */
17430 #ifdef __cplusplus
17431 extern "C"
17432 #endif
17433 /* We use char because int might match the return type of a gcc2
17434    builtin and then its argument prototype would still apply.  */
17435 char gethostbyname_r ();
17436 int
17437 main ()
17438 {
17439 gethostbyname_r ();
17440   ;
17441   return 0;
17442 }
17443 _ACEOF
17444 rm -f conftest.$ac_objext conftest$ac_exeext
17445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17446   (eval $ac_link) 2>conftest.er1
17447   ac_status=$?
17448   grep -v '^ *+' conftest.er1 >conftest.err
17449   rm -f conftest.er1
17450   cat conftest.err >&5
17451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452   (exit $ac_status); } &&
17453          { ac_try='test -z "$ac_c_werror_flag"
17454                          || test ! -s conftest.err'
17455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456   (eval $ac_try) 2>&5
17457   ac_status=$?
17458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); }; } &&
17460          { ac_try='test -s conftest$ac_exeext'
17461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462   (eval $ac_try) 2>&5
17463   ac_status=$?
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); }; }; then
17466   ac_cv_lib_resolv_gethostbyname_r=yes
17467 else
17468   echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17470
17471 ac_cv_lib_resolv_gethostbyname_r=no
17472 fi
17473 rm -f conftest.err conftest.$ac_objext \
17474       conftest$ac_exeext conftest.$ac_ext
17475 LIBS=$ac_check_lib_save_LIBS
17476 fi
17477 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
17478 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
17479 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
17480   cat >>confdefs.h <<_ACEOF
17481 #define HAVE_LIBRESOLV 1
17482 _ACEOF
17483
17484   LIBS="-lresolv $LIBS"
17485
17486 fi
17487
17488 fi
17489
17490
17491
17492 # Find where sockets are (especially for Solaris)
17493 echo "$as_me:$LINENO: checking for socket" >&5
17494 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17495 if test "${ac_cv_func_socket+set}" = set; then
17496   echo $ECHO_N "(cached) $ECHO_C" >&6
17497 else
17498   cat >conftest.$ac_ext <<_ACEOF
17499 /* confdefs.h.  */
17500 _ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h.  */
17504 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17506 #define socket innocuous_socket
17507
17508 /* System header to define __stub macros and hopefully few prototypes,
17509     which can conflict with char socket (); below.
17510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17511     <limits.h> exists even on freestanding compilers.  */
17512
17513 #ifdef __STDC__
17514 # include <limits.h>
17515 #else
17516 # include <assert.h>
17517 #endif
17518
17519 #undef socket
17520
17521 /* Override any gcc2 internal prototype to avoid an error.  */
17522 #ifdef __cplusplus
17523 extern "C"
17524 {
17525 #endif
17526 /* We use char because int might match the return type of a gcc2
17527    builtin and then its argument prototype would still apply.  */
17528 char socket ();
17529 /* The GNU C library defines this for functions which it implements
17530     to always fail with ENOSYS.  Some functions are actually named
17531     something starting with __ and the normal name is an alias.  */
17532 #if defined (__stub_socket) || defined (__stub___socket)
17533 choke me
17534 #else
17535 char (*f) () = socket;
17536 #endif
17537 #ifdef __cplusplus
17538 }
17539 #endif
17540
17541 int
17542 main ()
17543 {
17544 return f != socket;
17545   ;
17546   return 0;
17547 }
17548 _ACEOF
17549 rm -f conftest.$ac_objext conftest$ac_exeext
17550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17551   (eval $ac_link) 2>conftest.er1
17552   ac_status=$?
17553   grep -v '^ *+' conftest.er1 >conftest.err
17554   rm -f conftest.er1
17555   cat conftest.err >&5
17556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557   (exit $ac_status); } &&
17558          { ac_try='test -z "$ac_c_werror_flag"
17559                          || test ! -s conftest.err'
17560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561   (eval $ac_try) 2>&5
17562   ac_status=$?
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); }; } &&
17565          { ac_try='test -s conftest$ac_exeext'
17566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567   (eval $ac_try) 2>&5
17568   ac_status=$?
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); }; }; then
17571   ac_cv_func_socket=yes
17572 else
17573   echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576 ac_cv_func_socket=no
17577 fi
17578 rm -f conftest.err conftest.$ac_objext \
17579       conftest$ac_exeext conftest.$ac_ext
17580 fi
17581 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17582 echo "${ECHO_T}$ac_cv_func_socket" >&6
17583 if test $ac_cv_func_socket = yes; then
17584   echo "$as_me:$LINENO: result: using libc's socket" >&5
17585 echo "${ECHO_T}using libc's socket" >&6
17586 else
17587
17588 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17589 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
17590 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17591   echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593   ac_check_lib_save_LIBS=$LIBS
17594 LIBS="-lxnet  $LIBS"
17595 cat >conftest.$ac_ext <<_ACEOF
17596 /* confdefs.h.  */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h.  */
17601
17602 /* Override any gcc2 internal prototype to avoid an error.  */
17603 #ifdef __cplusplus
17604 extern "C"
17605 #endif
17606 /* We use char because int might match the return type of a gcc2
17607    builtin and then its argument prototype would still apply.  */
17608 char socket ();
17609 int
17610 main ()
17611 {
17612 socket ();
17613   ;
17614   return 0;
17615 }
17616 _ACEOF
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619   (eval $ac_link) 2>conftest.er1
17620   ac_status=$?
17621   grep -v '^ *+' conftest.er1 >conftest.err
17622   rm -f conftest.er1
17623   cat conftest.err >&5
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); } &&
17626          { ac_try='test -z "$ac_c_werror_flag"
17627                          || test ! -s conftest.err'
17628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629   (eval $ac_try) 2>&5
17630   ac_status=$?
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); }; } &&
17633          { ac_try='test -s conftest$ac_exeext'
17634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635   (eval $ac_try) 2>&5
17636   ac_status=$?
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); }; }; then
17639   ac_cv_lib_xnet_socket=yes
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 ac_cv_lib_xnet_socket=no
17645 fi
17646 rm -f conftest.err conftest.$ac_objext \
17647       conftest$ac_exeext conftest.$ac_ext
17648 LIBS=$ac_check_lib_save_LIBS
17649 fi
17650 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17651 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
17652 if test $ac_cv_lib_xnet_socket = yes; then
17653   cat >>confdefs.h <<_ACEOF
17654 #define HAVE_LIBXNET 1
17655 _ACEOF
17656
17657   LIBS="-lxnet $LIBS"
17658
17659 fi
17660
17661
17662 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17663 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
17664 if test "${ac_cv_lib_socket_socket+set}" = set; then
17665   echo $ECHO_N "(cached) $ECHO_C" >&6
17666 else
17667   ac_check_lib_save_LIBS=$LIBS
17668 LIBS="-lsocket  $LIBS"
17669 cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h.  */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h.  */
17675
17676 /* Override any gcc2 internal prototype to avoid an error.  */
17677 #ifdef __cplusplus
17678 extern "C"
17679 #endif
17680 /* We use char because int might match the return type of a gcc2
17681    builtin and then its argument prototype would still apply.  */
17682 char socket ();
17683 int
17684 main ()
17685 {
17686 socket ();
17687   ;
17688   return 0;
17689 }
17690 _ACEOF
17691 rm -f conftest.$ac_objext conftest$ac_exeext
17692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17693   (eval $ac_link) 2>conftest.er1
17694   ac_status=$?
17695   grep -v '^ *+' conftest.er1 >conftest.err
17696   rm -f conftest.er1
17697   cat conftest.err >&5
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); } &&
17700          { ac_try='test -z "$ac_c_werror_flag"
17701                          || test ! -s conftest.err'
17702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703   (eval $ac_try) 2>&5
17704   ac_status=$?
17705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706   (exit $ac_status); }; } &&
17707          { ac_try='test -s conftest$ac_exeext'
17708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17709   (eval $ac_try) 2>&5
17710   ac_status=$?
17711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712   (exit $ac_status); }; }; then
17713   ac_cv_lib_socket_socket=yes
17714 else
17715   echo "$as_me: failed program was:" >&5
17716 sed 's/^/| /' conftest.$ac_ext >&5
17717
17718 ac_cv_lib_socket_socket=no
17719 fi
17720 rm -f conftest.err conftest.$ac_objext \
17721       conftest$ac_exeext conftest.$ac_ext
17722 LIBS=$ac_check_lib_save_LIBS
17723 fi
17724 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17725 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
17726 if test $ac_cv_lib_socket_socket = yes; then
17727   cat >>confdefs.h <<_ACEOF
17728 #define HAVE_LIBSOCKET 1
17729 _ACEOF
17730
17731   LIBS="-lsocket $LIBS"
17732
17733 fi
17734
17735
17736 echo "$as_me:$LINENO: checking for socket in -linet" >&5
17737 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
17738 if test "${ac_cv_lib_inet_socket+set}" = set; then
17739   echo $ECHO_N "(cached) $ECHO_C" >&6
17740 else
17741   ac_check_lib_save_LIBS=$LIBS
17742 LIBS="-linet  $LIBS"
17743 cat >conftest.$ac_ext <<_ACEOF
17744 /* confdefs.h.  */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h.  */
17749
17750 /* Override any gcc2 internal prototype to avoid an error.  */
17751 #ifdef __cplusplus
17752 extern "C"
17753 #endif
17754 /* We use char because int might match the return type of a gcc2
17755    builtin and then its argument prototype would still apply.  */
17756 char socket ();
17757 int
17758 main ()
17759 {
17760 socket ();
17761   ;
17762   return 0;
17763 }
17764 _ACEOF
17765 rm -f conftest.$ac_objext conftest$ac_exeext
17766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17767   (eval $ac_link) 2>conftest.er1
17768   ac_status=$?
17769   grep -v '^ *+' conftest.er1 >conftest.err
17770   rm -f conftest.er1
17771   cat conftest.err >&5
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); } &&
17774          { ac_try='test -z "$ac_c_werror_flag"
17775                          || test ! -s conftest.err'
17776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777   (eval $ac_try) 2>&5
17778   ac_status=$?
17779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780   (exit $ac_status); }; } &&
17781          { ac_try='test -s conftest$ac_exeext'
17782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783   (eval $ac_try) 2>&5
17784   ac_status=$?
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); }; }; then
17787   ac_cv_lib_inet_socket=yes
17788 else
17789   echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17791
17792 ac_cv_lib_inet_socket=no
17793 fi
17794 rm -f conftest.err conftest.$ac_objext \
17795       conftest$ac_exeext conftest.$ac_ext
17796 LIBS=$ac_check_lib_save_LIBS
17797 fi
17798 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17799 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
17800 if test $ac_cv_lib_inet_socket = yes; then
17801   cat >>confdefs.h <<_ACEOF
17802 #define HAVE_LIBINET 1
17803 _ACEOF
17804
17805   LIBS="-linet $LIBS"
17806
17807 fi
17808
17809 fi
17810
17811
17812
17813 for ac_func in inet_pton
17814 do
17815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17816 echo "$as_me:$LINENO: checking for $ac_func" >&5
17817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17818 if eval "test \"\${$as_ac_var+set}\" = set"; then
17819   echo $ECHO_N "(cached) $ECHO_C" >&6
17820 else
17821   cat >conftest.$ac_ext <<_ACEOF
17822 /* confdefs.h.  */
17823 _ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h.  */
17827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17829 #define $ac_func innocuous_$ac_func
17830
17831 /* System header to define __stub macros and hopefully few prototypes,
17832     which can conflict with char $ac_func (); below.
17833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17834     <limits.h> exists even on freestanding compilers.  */
17835
17836 #ifdef __STDC__
17837 # include <limits.h>
17838 #else
17839 # include <assert.h>
17840 #endif
17841
17842 #undef $ac_func
17843
17844 /* Override any gcc2 internal prototype to avoid an error.  */
17845 #ifdef __cplusplus
17846 extern "C"
17847 {
17848 #endif
17849 /* We use char because int might match the return type of a gcc2
17850    builtin and then its argument prototype would still apply.  */
17851 char $ac_func ();
17852 /* The GNU C library defines this for functions which it implements
17853     to always fail with ENOSYS.  Some functions are actually named
17854     something starting with __ and the normal name is an alias.  */
17855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17856 choke me
17857 #else
17858 char (*f) () = $ac_func;
17859 #endif
17860 #ifdef __cplusplus
17861 }
17862 #endif
17863
17864 int
17865 main ()
17866 {
17867 return f != $ac_func;
17868   ;
17869   return 0;
17870 }
17871 _ACEOF
17872 rm -f conftest.$ac_objext conftest$ac_exeext
17873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17874   (eval $ac_link) 2>conftest.er1
17875   ac_status=$?
17876   grep -v '^ *+' conftest.er1 >conftest.err
17877   rm -f conftest.er1
17878   cat conftest.err >&5
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); } &&
17881          { ac_try='test -z "$ac_c_werror_flag"
17882                          || test ! -s conftest.err'
17883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884   (eval $ac_try) 2>&5
17885   ac_status=$?
17886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887   (exit $ac_status); }; } &&
17888          { ac_try='test -s conftest$ac_exeext'
17889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890   (eval $ac_try) 2>&5
17891   ac_status=$?
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); }; }; then
17894   eval "$as_ac_var=yes"
17895 else
17896   echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17898
17899 eval "$as_ac_var=no"
17900 fi
17901 rm -f conftest.err conftest.$ac_objext \
17902       conftest$ac_exeext conftest.$ac_ext
17903 fi
17904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17906 if test `eval echo '${'$as_ac_var'}'` = yes; then
17907   cat >>confdefs.h <<_ACEOF
17908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17909 _ACEOF
17910  cat >>confdefs.h <<\_ACEOF
17911 #define HAVE_INET_PTON 1
17912 _ACEOF
17913
17914 fi
17915 done
17916
17917
17918 for ac_func in inet_ntop
17919 do
17920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17921 echo "$as_me:$LINENO: checking for $ac_func" >&5
17922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17923 if eval "test \"\${$as_ac_var+set}\" = set"; then
17924   echo $ECHO_N "(cached) $ECHO_C" >&6
17925 else
17926   cat >conftest.$ac_ext <<_ACEOF
17927 /* confdefs.h.  */
17928 _ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h.  */
17932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17934 #define $ac_func innocuous_$ac_func
17935
17936 /* System header to define __stub macros and hopefully few prototypes,
17937     which can conflict with char $ac_func (); below.
17938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17939     <limits.h> exists even on freestanding compilers.  */
17940
17941 #ifdef __STDC__
17942 # include <limits.h>
17943 #else
17944 # include <assert.h>
17945 #endif
17946
17947 #undef $ac_func
17948
17949 /* Override any gcc2 internal prototype to avoid an error.  */
17950 #ifdef __cplusplus
17951 extern "C"
17952 {
17953 #endif
17954 /* We use char because int might match the return type of a gcc2
17955    builtin and then its argument prototype would still apply.  */
17956 char $ac_func ();
17957 /* The GNU C library defines this for functions which it implements
17958     to always fail with ENOSYS.  Some functions are actually named
17959     something starting with __ and the normal name is an alias.  */
17960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17961 choke me
17962 #else
17963 char (*f) () = $ac_func;
17964 #endif
17965 #ifdef __cplusplus
17966 }
17967 #endif
17968
17969 int
17970 main ()
17971 {
17972 return f != $ac_func;
17973   ;
17974   return 0;
17975 }
17976 _ACEOF
17977 rm -f conftest.$ac_objext conftest$ac_exeext
17978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17979   (eval $ac_link) 2>conftest.er1
17980   ac_status=$?
17981   grep -v '^ *+' conftest.er1 >conftest.err
17982   rm -f conftest.er1
17983   cat conftest.err >&5
17984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985   (exit $ac_status); } &&
17986          { ac_try='test -z "$ac_c_werror_flag"
17987                          || test ! -s conftest.err'
17988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989   (eval $ac_try) 2>&5
17990   ac_status=$?
17991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992   (exit $ac_status); }; } &&
17993          { ac_try='test -s conftest$ac_exeext'
17994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995   (eval $ac_try) 2>&5
17996   ac_status=$?
17997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998   (exit $ac_status); }; }; then
17999   eval "$as_ac_var=yes"
18000 else
18001   echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.$ac_ext >&5
18003
18004 eval "$as_ac_var=no"
18005 fi
18006 rm -f conftest.err conftest.$ac_objext \
18007       conftest$ac_exeext conftest.$ac_ext
18008 fi
18009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18011 if test `eval echo '${'$as_ac_var'}'` = yes; then
18012   cat >>confdefs.h <<_ACEOF
18013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18014 _ACEOF
18015  cat >>confdefs.h <<\_ACEOF
18016 #define HAVE_INET_NTOP 1
18017 _ACEOF
18018
18019 fi
18020 done
18021
18022
18023 for ac_func in gethostbyname2
18024 do
18025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18026 echo "$as_me:$LINENO: checking for $ac_func" >&5
18027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18028 if eval "test \"\${$as_ac_var+set}\" = set"; then
18029   echo $ECHO_N "(cached) $ECHO_C" >&6
18030 else
18031   cat >conftest.$ac_ext <<_ACEOF
18032 /* confdefs.h.  */
18033 _ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h.  */
18037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18039 #define $ac_func innocuous_$ac_func
18040
18041 /* System header to define __stub macros and hopefully few prototypes,
18042     which can conflict with char $ac_func (); below.
18043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18044     <limits.h> exists even on freestanding compilers.  */
18045
18046 #ifdef __STDC__
18047 # include <limits.h>
18048 #else
18049 # include <assert.h>
18050 #endif
18051
18052 #undef $ac_func
18053
18054 /* Override any gcc2 internal prototype to avoid an error.  */
18055 #ifdef __cplusplus
18056 extern "C"
18057 {
18058 #endif
18059 /* We use char because int might match the return type of a gcc2
18060    builtin and then its argument prototype would still apply.  */
18061 char $ac_func ();
18062 /* The GNU C library defines this for functions which it implements
18063     to always fail with ENOSYS.  Some functions are actually named
18064     something starting with __ and the normal name is an alias.  */
18065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18066 choke me
18067 #else
18068 char (*f) () = $ac_func;
18069 #endif
18070 #ifdef __cplusplus
18071 }
18072 #endif
18073
18074 int
18075 main ()
18076 {
18077 return f != $ac_func;
18078   ;
18079   return 0;
18080 }
18081 _ACEOF
18082 rm -f conftest.$ac_objext conftest$ac_exeext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18084   (eval $ac_link) 2>conftest.er1
18085   ac_status=$?
18086   grep -v '^ *+' conftest.er1 >conftest.err
18087   rm -f conftest.er1
18088   cat conftest.err >&5
18089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090   (exit $ac_status); } &&
18091          { ac_try='test -z "$ac_c_werror_flag"
18092                          || test ! -s conftest.err'
18093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094   (eval $ac_try) 2>&5
18095   ac_status=$?
18096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097   (exit $ac_status); }; } &&
18098          { ac_try='test -s conftest$ac_exeext'
18099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100   (eval $ac_try) 2>&5
18101   ac_status=$?
18102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103   (exit $ac_status); }; }; then
18104   eval "$as_ac_var=yes"
18105 else
18106   echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18108
18109 eval "$as_ac_var=no"
18110 fi
18111 rm -f conftest.err conftest.$ac_objext \
18112       conftest$ac_exeext conftest.$ac_ext
18113 fi
18114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18116 if test `eval echo '${'$as_ac_var'}'` = yes; then
18117   cat >>confdefs.h <<_ACEOF
18118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18119 _ACEOF
18120  cat >>confdefs.h <<\_ACEOF
18121 #define HAVE_GETHOSTBYNAME2 1
18122 _ACEOF
18123
18124 fi
18125 done
18126
18127
18128 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18129 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18130 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18131   echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133   cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h.  */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h.  */
18139 #include <sys/socket.h>
18140 int
18141 main ()
18142 {
18143 struct sockaddr s; s.sa_len;
18144   ;
18145   return 0;
18146 }
18147 _ACEOF
18148 rm -f conftest.$ac_objext
18149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18150   (eval $ac_compile) 2>conftest.er1
18151   ac_status=$?
18152   grep -v '^ *+' conftest.er1 >conftest.err
18153   rm -f conftest.er1
18154   cat conftest.err >&5
18155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156   (exit $ac_status); } &&
18157          { ac_try='test -z "$ac_c_werror_flag"
18158                          || test ! -s conftest.err'
18159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160   (eval $ac_try) 2>&5
18161   ac_status=$?
18162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163   (exit $ac_status); }; } &&
18164          { ac_try='test -s conftest.$ac_objext'
18165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166   (eval $ac_try) 2>&5
18167   ac_status=$?
18168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169   (exit $ac_status); }; }; then
18170   ac_cv_struct_sockaddr_sa_len=yes
18171 else
18172   echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18174
18175 ac_cv_struct_sockaddr_sa_len=no
18176 fi
18177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18178 fi
18179 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18180 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18181
18182  if test $ac_cv_struct_sockaddr_sa_len = yes; then
18183
18184 cat >>confdefs.h <<\_ACEOF
18185 #define HAVE_SA_LEN 1
18186 _ACEOF
18187
18188  fi
18189
18190
18191 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18192 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18193 if test "${ac_cv_ipv6_support+set}" = set; then
18194   echo $ECHO_N "(cached) $ECHO_C" >&6
18195 else
18196   cat >conftest.$ac_ext <<_ACEOF
18197 /* confdefs.h.  */
18198 _ACEOF
18199 cat confdefs.h >>conftest.$ac_ext
18200 cat >>conftest.$ac_ext <<_ACEOF
18201 /* end confdefs.h.  */
18202  #include <sys/types.h>
18203 #include <sys/socket.h>
18204 #include <netinet/in.h>
18205 int
18206 main ()
18207 {
18208 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18209  0;
18210   ;
18211   return 0;
18212 }
18213 _ACEOF
18214 rm -f conftest.$ac_objext conftest$ac_exeext
18215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18216   (eval $ac_link) 2>conftest.er1
18217   ac_status=$?
18218   grep -v '^ *+' conftest.er1 >conftest.err
18219   rm -f conftest.er1
18220   cat conftest.err >&5
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); } &&
18223          { ac_try='test -z "$ac_c_werror_flag"
18224                          || test ! -s conftest.err'
18225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226   (eval $ac_try) 2>&5
18227   ac_status=$?
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); }; } &&
18230          { ac_try='test -s conftest$ac_exeext'
18231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232   (eval $ac_try) 2>&5
18233   ac_status=$?
18234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235   (exit $ac_status); }; }; then
18236   ac_cv_ipv6_support=yes
18237 else
18238   echo "$as_me: failed program was:" >&5
18239 sed 's/^/| /' conftest.$ac_ext >&5
18240
18241 ac_cv_ipv6_support=no
18242 fi
18243 rm -f conftest.err conftest.$ac_objext \
18244       conftest$ac_exeext conftest.$ac_ext
18245 fi
18246 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
18247 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
18248
18249 if test "$ac_cv_ipv6_support" = yes; then
18250
18251 cat >>confdefs.h <<\_ACEOF
18252 #define HAVE_IPV6 1
18253 _ACEOF
18254
18255 fi
18256
18257
18258
18259
18260 for ac_func in strftime
18261 do
18262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18263 echo "$as_me:$LINENO: checking for $ac_func" >&5
18264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18265 if eval "test \"\${$as_ac_var+set}\" = set"; then
18266   echo $ECHO_N "(cached) $ECHO_C" >&6
18267 else
18268   cat >conftest.$ac_ext <<_ACEOF
18269 /* confdefs.h.  */
18270 _ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h.  */
18274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18276 #define $ac_func innocuous_$ac_func
18277
18278 /* System header to define __stub macros and hopefully few prototypes,
18279     which can conflict with char $ac_func (); below.
18280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18281     <limits.h> exists even on freestanding compilers.  */
18282
18283 #ifdef __STDC__
18284 # include <limits.h>
18285 #else
18286 # include <assert.h>
18287 #endif
18288
18289 #undef $ac_func
18290
18291 /* Override any gcc2 internal prototype to avoid an error.  */
18292 #ifdef __cplusplus
18293 extern "C"
18294 {
18295 #endif
18296 /* We use char because int might match the return type of a gcc2
18297    builtin and then its argument prototype would still apply.  */
18298 char $ac_func ();
18299 /* The GNU C library defines this for functions which it implements
18300     to always fail with ENOSYS.  Some functions are actually named
18301     something starting with __ and the normal name is an alias.  */
18302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18303 choke me
18304 #else
18305 char (*f) () = $ac_func;
18306 #endif
18307 #ifdef __cplusplus
18308 }
18309 #endif
18310
18311 int
18312 main ()
18313 {
18314 return f != $ac_func;
18315   ;
18316   return 0;
18317 }
18318 _ACEOF
18319 rm -f conftest.$ac_objext conftest$ac_exeext
18320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18321   (eval $ac_link) 2>conftest.er1
18322   ac_status=$?
18323   grep -v '^ *+' conftest.er1 >conftest.err
18324   rm -f conftest.er1
18325   cat conftest.err >&5
18326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327   (exit $ac_status); } &&
18328          { ac_try='test -z "$ac_c_werror_flag"
18329                          || test ! -s conftest.err'
18330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331   (eval $ac_try) 2>&5
18332   ac_status=$?
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); }; } &&
18335          { ac_try='test -s conftest$ac_exeext'
18336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337   (eval $ac_try) 2>&5
18338   ac_status=$?
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); }; }; then
18341   eval "$as_ac_var=yes"
18342 else
18343   echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18345
18346 eval "$as_ac_var=no"
18347 fi
18348 rm -f conftest.err conftest.$ac_objext \
18349       conftest$ac_exeext conftest.$ac_ext
18350 fi
18351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18353 if test `eval echo '${'$as_ac_var'}'` = yes; then
18354   cat >>confdefs.h <<_ACEOF
18355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18356 _ACEOF
18357
18358 else
18359   # strftime is in -lintl on SCO UNIX.
18360 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18361 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18362 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18363   echo $ECHO_N "(cached) $ECHO_C" >&6
18364 else
18365   ac_check_lib_save_LIBS=$LIBS
18366 LIBS="-lintl  $LIBS"
18367 cat >conftest.$ac_ext <<_ACEOF
18368 /* confdefs.h.  */
18369 _ACEOF
18370 cat confdefs.h >>conftest.$ac_ext
18371 cat >>conftest.$ac_ext <<_ACEOF
18372 /* end confdefs.h.  */
18373
18374 /* Override any gcc2 internal prototype to avoid an error.  */
18375 #ifdef __cplusplus
18376 extern "C"
18377 #endif
18378 /* We use char because int might match the return type of a gcc2
18379    builtin and then its argument prototype would still apply.  */
18380 char strftime ();
18381 int
18382 main ()
18383 {
18384 strftime ();
18385   ;
18386   return 0;
18387 }
18388 _ACEOF
18389 rm -f conftest.$ac_objext conftest$ac_exeext
18390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18391   (eval $ac_link) 2>conftest.er1
18392   ac_status=$?
18393   grep -v '^ *+' conftest.er1 >conftest.err
18394   rm -f conftest.er1
18395   cat conftest.err >&5
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); } &&
18398          { ac_try='test -z "$ac_c_werror_flag"
18399                          || test ! -s conftest.err'
18400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401   (eval $ac_try) 2>&5
18402   ac_status=$?
18403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404   (exit $ac_status); }; } &&
18405          { ac_try='test -s conftest$ac_exeext'
18406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407   (eval $ac_try) 2>&5
18408   ac_status=$?
18409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410   (exit $ac_status); }; }; then
18411   ac_cv_lib_intl_strftime=yes
18412 else
18413   echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18415
18416 ac_cv_lib_intl_strftime=no
18417 fi
18418 rm -f conftest.err conftest.$ac_objext \
18419       conftest$ac_exeext conftest.$ac_ext
18420 LIBS=$ac_check_lib_save_LIBS
18421 fi
18422 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18423 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18424 if test $ac_cv_lib_intl_strftime = yes; then
18425   cat >>confdefs.h <<\_ACEOF
18426 #define HAVE_STRFTIME 1
18427 _ACEOF
18428
18429 LIBS="-lintl $LIBS"
18430 fi
18431
18432 fi
18433 done
18434
18435
18436 for ac_func in vprintf
18437 do
18438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18439 echo "$as_me:$LINENO: checking for $ac_func" >&5
18440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18441 if eval "test \"\${$as_ac_var+set}\" = set"; then
18442   echo $ECHO_N "(cached) $ECHO_C" >&6
18443 else
18444   cat >conftest.$ac_ext <<_ACEOF
18445 /* confdefs.h.  */
18446 _ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h.  */
18450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18452 #define $ac_func innocuous_$ac_func
18453
18454 /* System header to define __stub macros and hopefully few prototypes,
18455     which can conflict with char $ac_func (); below.
18456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18457     <limits.h> exists even on freestanding compilers.  */
18458
18459 #ifdef __STDC__
18460 # include <limits.h>
18461 #else
18462 # include <assert.h>
18463 #endif
18464
18465 #undef $ac_func
18466
18467 /* Override any gcc2 internal prototype to avoid an error.  */
18468 #ifdef __cplusplus
18469 extern "C"
18470 {
18471 #endif
18472 /* We use char because int might match the return type of a gcc2
18473    builtin and then its argument prototype would still apply.  */
18474 char $ac_func ();
18475 /* The GNU C library defines this for functions which it implements
18476     to always fail with ENOSYS.  Some functions are actually named
18477     something starting with __ and the normal name is an alias.  */
18478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18479 choke me
18480 #else
18481 char (*f) () = $ac_func;
18482 #endif
18483 #ifdef __cplusplus
18484 }
18485 #endif
18486
18487 int
18488 main ()
18489 {
18490 return f != $ac_func;
18491   ;
18492   return 0;
18493 }
18494 _ACEOF
18495 rm -f conftest.$ac_objext conftest$ac_exeext
18496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18497   (eval $ac_link) 2>conftest.er1
18498   ac_status=$?
18499   grep -v '^ *+' conftest.er1 >conftest.err
18500   rm -f conftest.er1
18501   cat conftest.err >&5
18502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503   (exit $ac_status); } &&
18504          { ac_try='test -z "$ac_c_werror_flag"
18505                          || test ! -s conftest.err'
18506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18507   (eval $ac_try) 2>&5
18508   ac_status=$?
18509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510   (exit $ac_status); }; } &&
18511          { ac_try='test -s conftest$ac_exeext'
18512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513   (eval $ac_try) 2>&5
18514   ac_status=$?
18515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516   (exit $ac_status); }; }; then
18517   eval "$as_ac_var=yes"
18518 else
18519   echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18521
18522 eval "$as_ac_var=no"
18523 fi
18524 rm -f conftest.err conftest.$ac_objext \
18525       conftest$ac_exeext conftest.$ac_ext
18526 fi
18527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18529 if test `eval echo '${'$as_ac_var'}'` = yes; then
18530   cat >>confdefs.h <<_ACEOF
18531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18532 _ACEOF
18533
18534 echo "$as_me:$LINENO: checking for _doprnt" >&5
18535 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
18536 if test "${ac_cv_func__doprnt+set}" = set; then
18537   echo $ECHO_N "(cached) $ECHO_C" >&6
18538 else
18539   cat >conftest.$ac_ext <<_ACEOF
18540 /* confdefs.h.  */
18541 _ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h.  */
18545 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
18546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18547 #define _doprnt innocuous__doprnt
18548
18549 /* System header to define __stub macros and hopefully few prototypes,
18550     which can conflict with char _doprnt (); below.
18551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18552     <limits.h> exists even on freestanding compilers.  */
18553
18554 #ifdef __STDC__
18555 # include <limits.h>
18556 #else
18557 # include <assert.h>
18558 #endif
18559
18560 #undef _doprnt
18561
18562 /* Override any gcc2 internal prototype to avoid an error.  */
18563 #ifdef __cplusplus
18564 extern "C"
18565 {
18566 #endif
18567 /* We use char because int might match the return type of a gcc2
18568    builtin and then its argument prototype would still apply.  */
18569 char _doprnt ();
18570 /* The GNU C library defines this for functions which it implements
18571     to always fail with ENOSYS.  Some functions are actually named
18572     something starting with __ and the normal name is an alias.  */
18573 #if defined (__stub__doprnt) || defined (__stub____doprnt)
18574 choke me
18575 #else
18576 char (*f) () = _doprnt;
18577 #endif
18578 #ifdef __cplusplus
18579 }
18580 #endif
18581
18582 int
18583 main ()
18584 {
18585 return f != _doprnt;
18586   ;
18587   return 0;
18588 }
18589 _ACEOF
18590 rm -f conftest.$ac_objext conftest$ac_exeext
18591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18592   (eval $ac_link) 2>conftest.er1
18593   ac_status=$?
18594   grep -v '^ *+' conftest.er1 >conftest.err
18595   rm -f conftest.er1
18596   cat conftest.err >&5
18597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598   (exit $ac_status); } &&
18599          { ac_try='test -z "$ac_c_werror_flag"
18600                          || test ! -s conftest.err'
18601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602   (eval $ac_try) 2>&5
18603   ac_status=$?
18604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605   (exit $ac_status); }; } &&
18606          { ac_try='test -s conftest$ac_exeext'
18607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608   (eval $ac_try) 2>&5
18609   ac_status=$?
18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); }; }; then
18612   ac_cv_func__doprnt=yes
18613 else
18614   echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18616
18617 ac_cv_func__doprnt=no
18618 fi
18619 rm -f conftest.err conftest.$ac_objext \
18620       conftest$ac_exeext conftest.$ac_ext
18621 fi
18622 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
18623 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
18624 if test $ac_cv_func__doprnt = yes; then
18625
18626 cat >>confdefs.h <<\_ACEOF
18627 #define HAVE_DOPRNT 1
18628 _ACEOF
18629
18630 fi
18631
18632 fi
18633 done
18634
18635
18636 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18637 # for constant arguments.  Useless!
18638 echo "$as_me:$LINENO: checking for working alloca.h" >&5
18639 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
18640 if test "${ac_cv_working_alloca_h+set}" = set; then
18641   echo $ECHO_N "(cached) $ECHO_C" >&6
18642 else
18643   cat >conftest.$ac_ext <<_ACEOF
18644 /* confdefs.h.  */
18645 _ACEOF
18646 cat confdefs.h >>conftest.$ac_ext
18647 cat >>conftest.$ac_ext <<_ACEOF
18648 /* end confdefs.h.  */
18649 #include <alloca.h>
18650 int
18651 main ()
18652 {
18653 char *p = (char *) alloca (2 * sizeof (int));
18654   ;
18655   return 0;
18656 }
18657 _ACEOF
18658 rm -f conftest.$ac_objext conftest$ac_exeext
18659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18660   (eval $ac_link) 2>conftest.er1
18661   ac_status=$?
18662   grep -v '^ *+' conftest.er1 >conftest.err
18663   rm -f conftest.er1
18664   cat conftest.err >&5
18665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666   (exit $ac_status); } &&
18667          { ac_try='test -z "$ac_c_werror_flag"
18668                          || test ! -s conftest.err'
18669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670   (eval $ac_try) 2>&5
18671   ac_status=$?
18672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673   (exit $ac_status); }; } &&
18674          { ac_try='test -s conftest$ac_exeext'
18675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676   (eval $ac_try) 2>&5
18677   ac_status=$?
18678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679   (exit $ac_status); }; }; then
18680   ac_cv_working_alloca_h=yes
18681 else
18682   echo "$as_me: failed program was:" >&5
18683 sed 's/^/| /' conftest.$ac_ext >&5
18684
18685 ac_cv_working_alloca_h=no
18686 fi
18687 rm -f conftest.err conftest.$ac_objext \
18688       conftest$ac_exeext conftest.$ac_ext
18689 fi
18690 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18691 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
18692 if test $ac_cv_working_alloca_h = yes; then
18693
18694 cat >>confdefs.h <<\_ACEOF
18695 #define HAVE_ALLOCA_H 1
18696 _ACEOF
18697
18698 fi
18699
18700 echo "$as_me:$LINENO: checking for alloca" >&5
18701 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
18702 if test "${ac_cv_func_alloca_works+set}" = set; then
18703   echo $ECHO_N "(cached) $ECHO_C" >&6
18704 else
18705   cat >conftest.$ac_ext <<_ACEOF
18706 /* confdefs.h.  */
18707 _ACEOF
18708 cat confdefs.h >>conftest.$ac_ext
18709 cat >>conftest.$ac_ext <<_ACEOF
18710 /* end confdefs.h.  */
18711 #ifdef __GNUC__
18712 # define alloca __builtin_alloca
18713 #else
18714 # ifdef _MSC_VER
18715 #  include <malloc.h>
18716 #  define alloca _alloca
18717 # else
18718 #  if HAVE_ALLOCA_H
18719 #   include <alloca.h>
18720 #  else
18721 #   ifdef _AIX
18722  #pragma alloca
18723 #   else
18724 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18725 char *alloca ();
18726 #    endif
18727 #   endif
18728 #  endif
18729 # endif
18730 #endif
18731
18732 int
18733 main ()
18734 {
18735 char *p = (char *) alloca (1);
18736   ;
18737   return 0;
18738 }
18739 _ACEOF
18740 rm -f conftest.$ac_objext conftest$ac_exeext
18741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18742   (eval $ac_link) 2>conftest.er1
18743   ac_status=$?
18744   grep -v '^ *+' conftest.er1 >conftest.err
18745   rm -f conftest.er1
18746   cat conftest.err >&5
18747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); } &&
18749          { ac_try='test -z "$ac_c_werror_flag"
18750                          || test ! -s conftest.err'
18751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752   (eval $ac_try) 2>&5
18753   ac_status=$?
18754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755   (exit $ac_status); }; } &&
18756          { ac_try='test -s conftest$ac_exeext'
18757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758   (eval $ac_try) 2>&5
18759   ac_status=$?
18760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761   (exit $ac_status); }; }; then
18762   ac_cv_func_alloca_works=yes
18763 else
18764   echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18766
18767 ac_cv_func_alloca_works=no
18768 fi
18769 rm -f conftest.err conftest.$ac_objext \
18770       conftest$ac_exeext conftest.$ac_ext
18771 fi
18772 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18773 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
18774
18775 if test $ac_cv_func_alloca_works = yes; then
18776
18777 cat >>confdefs.h <<\_ACEOF
18778 #define HAVE_ALLOCA 1
18779 _ACEOF
18780
18781 else
18782   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18783 # that cause trouble.  Some versions do not even contain alloca or
18784 # contain a buggy version.  If you still want to use their alloca,
18785 # use ar to extract alloca.o from them instead of compiling alloca.c.
18786
18787 ALLOCA=alloca.$ac_objext
18788
18789 cat >>confdefs.h <<\_ACEOF
18790 #define C_ALLOCA 1
18791 _ACEOF
18792
18793
18794 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18795 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
18796 if test "${ac_cv_os_cray+set}" = set; then
18797   echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799   cat >conftest.$ac_ext <<_ACEOF
18800 /* confdefs.h.  */
18801 _ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h.  */
18805 #if defined(CRAY) && ! defined(CRAY2)
18806 webecray
18807 #else
18808 wenotbecray
18809 #endif
18810
18811 _ACEOF
18812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18813   $EGREP "webecray" >/dev/null 2>&1; then
18814   ac_cv_os_cray=yes
18815 else
18816   ac_cv_os_cray=no
18817 fi
18818 rm -f conftest*
18819
18820 fi
18821 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18822 echo "${ECHO_T}$ac_cv_os_cray" >&6
18823 if test $ac_cv_os_cray = yes; then
18824   for ac_func in _getb67 GETB67 getb67; do
18825     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18826 echo "$as_me:$LINENO: checking for $ac_func" >&5
18827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18828 if eval "test \"\${$as_ac_var+set}\" = set"; then
18829   echo $ECHO_N "(cached) $ECHO_C" >&6
18830 else
18831   cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h.  */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h.  */
18837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18839 #define $ac_func innocuous_$ac_func
18840
18841 /* System header to define __stub macros and hopefully few prototypes,
18842     which can conflict with char $ac_func (); below.
18843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18844     <limits.h> exists even on freestanding compilers.  */
18845
18846 #ifdef __STDC__
18847 # include <limits.h>
18848 #else
18849 # include <assert.h>
18850 #endif
18851
18852 #undef $ac_func
18853
18854 /* Override any gcc2 internal prototype to avoid an error.  */
18855 #ifdef __cplusplus
18856 extern "C"
18857 {
18858 #endif
18859 /* We use char because int might match the return type of a gcc2
18860    builtin and then its argument prototype would still apply.  */
18861 char $ac_func ();
18862 /* The GNU C library defines this for functions which it implements
18863     to always fail with ENOSYS.  Some functions are actually named
18864     something starting with __ and the normal name is an alias.  */
18865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18866 choke me
18867 #else
18868 char (*f) () = $ac_func;
18869 #endif
18870 #ifdef __cplusplus
18871 }
18872 #endif
18873
18874 int
18875 main ()
18876 {
18877 return f != $ac_func;
18878   ;
18879   return 0;
18880 }
18881 _ACEOF
18882 rm -f conftest.$ac_objext conftest$ac_exeext
18883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18884   (eval $ac_link) 2>conftest.er1
18885   ac_status=$?
18886   grep -v '^ *+' conftest.er1 >conftest.err
18887   rm -f conftest.er1
18888   cat conftest.err >&5
18889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890   (exit $ac_status); } &&
18891          { ac_try='test -z "$ac_c_werror_flag"
18892                          || test ! -s conftest.err'
18893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894   (eval $ac_try) 2>&5
18895   ac_status=$?
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); }; } &&
18898          { ac_try='test -s conftest$ac_exeext'
18899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900   (eval $ac_try) 2>&5
18901   ac_status=$?
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); }; }; then
18904   eval "$as_ac_var=yes"
18905 else
18906   echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18908
18909 eval "$as_ac_var=no"
18910 fi
18911 rm -f conftest.err conftest.$ac_objext \
18912       conftest$ac_exeext conftest.$ac_ext
18913 fi
18914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18916 if test `eval echo '${'$as_ac_var'}'` = yes; then
18917
18918 cat >>confdefs.h <<_ACEOF
18919 #define CRAY_STACKSEG_END $ac_func
18920 _ACEOF
18921
18922     break
18923 fi
18924
18925   done
18926 fi
18927
18928 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18929 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
18930 if test "${ac_cv_c_stack_direction+set}" = set; then
18931   echo $ECHO_N "(cached) $ECHO_C" >&6
18932 else
18933   if test "$cross_compiling" = yes; then
18934   ac_cv_c_stack_direction=0
18935 else
18936   cat >conftest.$ac_ext <<_ACEOF
18937 /* confdefs.h.  */
18938 _ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h.  */
18942 int
18943 find_stack_direction ()
18944 {
18945   static char *addr = 0;
18946   auto char dummy;
18947   if (addr == 0)
18948     {
18949       addr = &dummy;
18950       return find_stack_direction ();
18951     }
18952   else
18953     return (&dummy > addr) ? 1 : -1;
18954 }
18955
18956 int
18957 main ()
18958 {
18959   exit (find_stack_direction () < 0);
18960 }
18961 _ACEOF
18962 rm -f conftest$ac_exeext
18963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18964   (eval $ac_link) 2>&5
18965   ac_status=$?
18966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969   (eval $ac_try) 2>&5
18970   ac_status=$?
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); }; }; then
18973   ac_cv_c_stack_direction=1
18974 else
18975   echo "$as_me: program exited with status $ac_status" >&5
18976 echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18978
18979 ( exit $ac_status )
18980 ac_cv_c_stack_direction=-1
18981 fi
18982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18983 fi
18984 fi
18985 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18986 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
18987
18988 cat >>confdefs.h <<_ACEOF
18989 #define STACK_DIRECTION $ac_cv_c_stack_direction
18990 _ACEOF
18991
18992
18993 fi
18994
18995 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
18996 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
18997 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
18998 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
18999   echo $ECHO_N "(cached) $ECHO_C" >&6
19000 else
19001   ac_check_lib_save_LIBS=$LIBS
19002 LIBS="-lsun  $LIBS"
19003 cat >conftest.$ac_ext <<_ACEOF
19004 /* confdefs.h.  */
19005 _ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h.  */
19009
19010 /* Override any gcc2 internal prototype to avoid an error.  */
19011 #ifdef __cplusplus
19012 extern "C"
19013 #endif
19014 /* We use char because int might match the return type of a gcc2
19015    builtin and then its argument prototype would still apply.  */
19016 char getmntent ();
19017 int
19018 main ()
19019 {
19020 getmntent ();
19021   ;
19022   return 0;
19023 }
19024 _ACEOF
19025 rm -f conftest.$ac_objext conftest$ac_exeext
19026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19027   (eval $ac_link) 2>conftest.er1
19028   ac_status=$?
19029   grep -v '^ *+' conftest.er1 >conftest.err
19030   rm -f conftest.er1
19031   cat conftest.err >&5
19032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033   (exit $ac_status); } &&
19034          { ac_try='test -z "$ac_c_werror_flag"
19035                          || test ! -s conftest.err'
19036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037   (eval $ac_try) 2>&5
19038   ac_status=$?
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); }; } &&
19041          { ac_try='test -s conftest$ac_exeext'
19042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043   (eval $ac_try) 2>&5
19044   ac_status=$?
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); }; }; then
19047   ac_cv_lib_sun_getmntent=yes
19048 else
19049   echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19051
19052 ac_cv_lib_sun_getmntent=no
19053 fi
19054 rm -f conftest.err conftest.$ac_objext \
19055       conftest$ac_exeext conftest.$ac_ext
19056 LIBS=$ac_check_lib_save_LIBS
19057 fi
19058 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19059 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19060 if test $ac_cv_lib_sun_getmntent = yes; then
19061   LIBS="-lsun $LIBS"
19062 else
19063   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19064 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19065 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19066   echo $ECHO_N "(cached) $ECHO_C" >&6
19067 else
19068   ac_check_lib_save_LIBS=$LIBS
19069 LIBS="-lseq  $LIBS"
19070 cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h.  */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h.  */
19076
19077 /* Override any gcc2 internal prototype to avoid an error.  */
19078 #ifdef __cplusplus
19079 extern "C"
19080 #endif
19081 /* We use char because int might match the return type of a gcc2
19082    builtin and then its argument prototype would still apply.  */
19083 char getmntent ();
19084 int
19085 main ()
19086 {
19087 getmntent ();
19088   ;
19089   return 0;
19090 }
19091 _ACEOF
19092 rm -f conftest.$ac_objext conftest$ac_exeext
19093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19094   (eval $ac_link) 2>conftest.er1
19095   ac_status=$?
19096   grep -v '^ *+' conftest.er1 >conftest.err
19097   rm -f conftest.er1
19098   cat conftest.err >&5
19099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100   (exit $ac_status); } &&
19101          { ac_try='test -z "$ac_c_werror_flag"
19102                          || test ! -s conftest.err'
19103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104   (eval $ac_try) 2>&5
19105   ac_status=$?
19106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107   (exit $ac_status); }; } &&
19108          { ac_try='test -s conftest$ac_exeext'
19109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110   (eval $ac_try) 2>&5
19111   ac_status=$?
19112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113   (exit $ac_status); }; }; then
19114   ac_cv_lib_seq_getmntent=yes
19115 else
19116   echo "$as_me: failed program was:" >&5
19117 sed 's/^/| /' conftest.$ac_ext >&5
19118
19119 ac_cv_lib_seq_getmntent=no
19120 fi
19121 rm -f conftest.err conftest.$ac_objext \
19122       conftest$ac_exeext conftest.$ac_ext
19123 LIBS=$ac_check_lib_save_LIBS
19124 fi
19125 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19126 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19127 if test $ac_cv_lib_seq_getmntent = yes; then
19128   LIBS="-lseq $LIBS"
19129 else
19130   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19131 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19132 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19133   echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135   ac_check_lib_save_LIBS=$LIBS
19136 LIBS="-lgen  $LIBS"
19137 cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h.  */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h.  */
19143
19144 /* Override any gcc2 internal prototype to avoid an error.  */
19145 #ifdef __cplusplus
19146 extern "C"
19147 #endif
19148 /* We use char because int might match the return type of a gcc2
19149    builtin and then its argument prototype would still apply.  */
19150 char getmntent ();
19151 int
19152 main ()
19153 {
19154 getmntent ();
19155   ;
19156   return 0;
19157 }
19158 _ACEOF
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19161   (eval $ac_link) 2>conftest.er1
19162   ac_status=$?
19163   grep -v '^ *+' conftest.er1 >conftest.err
19164   rm -f conftest.er1
19165   cat conftest.err >&5
19166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167   (exit $ac_status); } &&
19168          { ac_try='test -z "$ac_c_werror_flag"
19169                          || test ! -s conftest.err'
19170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171   (eval $ac_try) 2>&5
19172   ac_status=$?
19173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174   (exit $ac_status); }; } &&
19175          { ac_try='test -s conftest$ac_exeext'
19176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177   (eval $ac_try) 2>&5
19178   ac_status=$?
19179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180   (exit $ac_status); }; }; then
19181   ac_cv_lib_gen_getmntent=yes
19182 else
19183   echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19185
19186 ac_cv_lib_gen_getmntent=no
19187 fi
19188 rm -f conftest.err conftest.$ac_objext \
19189       conftest$ac_exeext conftest.$ac_ext
19190 LIBS=$ac_check_lib_save_LIBS
19191 fi
19192 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19193 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19194 if test $ac_cv_lib_gen_getmntent = yes; then
19195   LIBS="-lgen $LIBS"
19196 fi
19197
19198 fi
19199
19200 fi
19201
19202
19203 for ac_func in getmntent
19204 do
19205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19206 echo "$as_me:$LINENO: checking for $ac_func" >&5
19207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19208 if eval "test \"\${$as_ac_var+set}\" = set"; then
19209   echo $ECHO_N "(cached) $ECHO_C" >&6
19210 else
19211   cat >conftest.$ac_ext <<_ACEOF
19212 /* confdefs.h.  */
19213 _ACEOF
19214 cat confdefs.h >>conftest.$ac_ext
19215 cat >>conftest.$ac_ext <<_ACEOF
19216 /* end confdefs.h.  */
19217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19219 #define $ac_func innocuous_$ac_func
19220
19221 /* System header to define __stub macros and hopefully few prototypes,
19222     which can conflict with char $ac_func (); below.
19223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19224     <limits.h> exists even on freestanding compilers.  */
19225
19226 #ifdef __STDC__
19227 # include <limits.h>
19228 #else
19229 # include <assert.h>
19230 #endif
19231
19232 #undef $ac_func
19233
19234 /* Override any gcc2 internal prototype to avoid an error.  */
19235 #ifdef __cplusplus
19236 extern "C"
19237 {
19238 #endif
19239 /* We use char because int might match the return type of a gcc2
19240    builtin and then its argument prototype would still apply.  */
19241 char $ac_func ();
19242 /* The GNU C library defines this for functions which it implements
19243     to always fail with ENOSYS.  Some functions are actually named
19244     something starting with __ and the normal name is an alias.  */
19245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19246 choke me
19247 #else
19248 char (*f) () = $ac_func;
19249 #endif
19250 #ifdef __cplusplus
19251 }
19252 #endif
19253
19254 int
19255 main ()
19256 {
19257 return f != $ac_func;
19258   ;
19259   return 0;
19260 }
19261 _ACEOF
19262 rm -f conftest.$ac_objext conftest$ac_exeext
19263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19264   (eval $ac_link) 2>conftest.er1
19265   ac_status=$?
19266   grep -v '^ *+' conftest.er1 >conftest.err
19267   rm -f conftest.er1
19268   cat conftest.err >&5
19269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270   (exit $ac_status); } &&
19271          { ac_try='test -z "$ac_c_werror_flag"
19272                          || test ! -s conftest.err'
19273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274   (eval $ac_try) 2>&5
19275   ac_status=$?
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); }; } &&
19278          { ac_try='test -s conftest$ac_exeext'
19279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280   (eval $ac_try) 2>&5
19281   ac_status=$?
19282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283   (exit $ac_status); }; }; then
19284   eval "$as_ac_var=yes"
19285 else
19286   echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19288
19289 eval "$as_ac_var=no"
19290 fi
19291 rm -f conftest.err conftest.$ac_objext \
19292       conftest$ac_exeext conftest.$ac_ext
19293 fi
19294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19296 if test `eval echo '${'$as_ac_var'}'` = yes; then
19297   cat >>confdefs.h <<_ACEOF
19298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19299 _ACEOF
19300
19301 fi
19302 done
19303
19304
19305 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19306 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19307 if test "${ac_cv_func_closedir_void+set}" = set; then
19308   echo $ECHO_N "(cached) $ECHO_C" >&6
19309 else
19310   if test "$cross_compiling" = yes; then
19311   ac_cv_func_closedir_void=yes
19312 else
19313   cat >conftest.$ac_ext <<_ACEOF
19314 /* confdefs.h.  */
19315 _ACEOF
19316 cat confdefs.h >>conftest.$ac_ext
19317 cat >>conftest.$ac_ext <<_ACEOF
19318 /* end confdefs.h.  */
19319 $ac_includes_default
19320 #include <$ac_header_dirent>
19321 #ifndef __cplusplus
19322 int closedir ();
19323 #endif
19324
19325 int
19326 main ()
19327 {
19328 exit (closedir (opendir (".")) != 0);
19329   ;
19330   return 0;
19331 }
19332 _ACEOF
19333 rm -f conftest$ac_exeext
19334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19335   (eval $ac_link) 2>&5
19336   ac_status=$?
19337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340   (eval $ac_try) 2>&5
19341   ac_status=$?
19342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); }; }; then
19344   ac_cv_func_closedir_void=no
19345 else
19346   echo "$as_me: program exited with status $ac_status" >&5
19347 echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19349
19350 ( exit $ac_status )
19351 ac_cv_func_closedir_void=yes
19352 fi
19353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19354 fi
19355 fi
19356 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
19357 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
19358 if test $ac_cv_func_closedir_void = yes; then
19359
19360 cat >>confdefs.h <<\_ACEOF
19361 #define CLOSEDIR_VOID 1
19362 _ACEOF
19363
19364 fi
19365
19366 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19367 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19368 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19369   echo $ECHO_N "(cached) $ECHO_C" >&6
19370 else
19371   if test "$cross_compiling" = yes; then
19372   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19373 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19374    { (exit 1); exit 1; }; }
19375 else
19376   cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h.  */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h.  */
19382 #if HAVE_UNISTD_H
19383 # include <unistd.h>
19384 #endif
19385
19386 int
19387 main ()
19388 {
19389 /* If this system has a BSD-style setpgrp which takes arguments,
19390   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19391   exit successfully. */
19392   exit (setpgrp (1,1) == -1 ? 0 : 1);
19393   ;
19394   return 0;
19395 }
19396 _ACEOF
19397 rm -f conftest$ac_exeext
19398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19399   (eval $ac_link) 2>&5
19400   ac_status=$?
19401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404   (eval $ac_try) 2>&5
19405   ac_status=$?
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); }; }; then
19408   ac_cv_func_setpgrp_void=no
19409 else
19410   echo "$as_me: program exited with status $ac_status" >&5
19411 echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19413
19414 ( exit $ac_status )
19415 ac_cv_func_setpgrp_void=yes
19416 fi
19417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19418 fi
19419 fi
19420 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19421 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19422 if test $ac_cv_func_setpgrp_void = yes; then
19423
19424 cat >>confdefs.h <<\_ACEOF
19425 #define SETPGRP_VOID 1
19426 _ACEOF
19427
19428 fi
19429                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
19430 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
19431 if test "${ac_cv_func_fnmatch_works+set}" = set; then
19432   echo $ECHO_N "(cached) $ECHO_C" >&6
19433 else
19434   # Some versions of Solaris, SCO, and the GNU C Library
19435    # have a broken or incompatible fnmatch.
19436    # So we run a test program.  If we are cross-compiling, take no chance.
19437    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
19438    if test "$cross_compiling" = yes; then
19439   ac_cv_func_fnmatch_works=cross
19440 else
19441   cat >conftest.$ac_ext <<_ACEOF
19442 /* confdefs.h.  */
19443 _ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h.  */
19447 #include <fnmatch.h>
19448 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
19449 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
19450
19451 int
19452 main ()
19453 {
19454 exit
19455            (!(y ("a*", "abc", 0)
19456               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
19457               && y ("a\\\\bc", "abc", 0)
19458               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
19459               && y ("*x", ".x", 0)
19460               && n ("*x", ".x", FNM_PERIOD)
19461               && 1));
19462   ;
19463   return 0;
19464 }
19465 _ACEOF
19466 rm -f conftest$ac_exeext
19467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19468   (eval $ac_link) 2>&5
19469   ac_status=$?
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473   (eval $ac_try) 2>&5
19474   ac_status=$?
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); }; }; then
19477   ac_cv_func_fnmatch_works=yes
19478 else
19479   echo "$as_me: program exited with status $ac_status" >&5
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483 ( exit $ac_status )
19484 ac_cv_func_fnmatch_works=no
19485 fi
19486 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19487 fi
19488 fi
19489 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
19490 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
19491 if test $ac_cv_func_fnmatch_works = yes; then
19492
19493 cat >>confdefs.h <<\_ACEOF
19494 #define HAVE_FNMATCH 1
19495 _ACEOF
19496
19497 fi
19498
19499
19500
19501
19502
19503 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
19504 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
19505 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
19506   echo $ECHO_N "(cached) $ECHO_C" >&6
19507 else
19508   ac_check_lib_save_LIBS=$LIBS
19509 LIBS="-lxpg4  $LIBS"
19510 cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h.  */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h.  */
19516
19517 /* Override any gcc2 internal prototype to avoid an error.  */
19518 #ifdef __cplusplus
19519 extern "C"
19520 #endif
19521 /* We use char because int might match the return type of a gcc2
19522    builtin and then its argument prototype would still apply.  */
19523 char setlocale ();
19524 int
19525 main ()
19526 {
19527 setlocale ();
19528   ;
19529   return 0;
19530 }
19531 _ACEOF
19532 rm -f conftest.$ac_objext conftest$ac_exeext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19534   (eval $ac_link) 2>conftest.er1
19535   ac_status=$?
19536   grep -v '^ *+' conftest.er1 >conftest.err
19537   rm -f conftest.er1
19538   cat conftest.err >&5
19539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540   (exit $ac_status); } &&
19541          { ac_try='test -z "$ac_c_werror_flag"
19542                          || test ! -s conftest.err'
19543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544   (eval $ac_try) 2>&5
19545   ac_status=$?
19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547   (exit $ac_status); }; } &&
19548          { ac_try='test -s conftest$ac_exeext'
19549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550   (eval $ac_try) 2>&5
19551   ac_status=$?
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); }; }; then
19554   ac_cv_lib_xpg4_setlocale=yes
19555 else
19556   echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19558
19559 ac_cv_lib_xpg4_setlocale=no
19560 fi
19561 rm -f conftest.err conftest.$ac_objext \
19562       conftest$ac_exeext conftest.$ac_ext
19563 LIBS=$ac_check_lib_save_LIBS
19564 fi
19565 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
19566 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
19567 if test $ac_cv_lib_xpg4_setlocale = yes; then
19568   LIBS="$LIBS -lxpg4"
19569 fi
19570
19571
19572
19573
19574 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
19575 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
19576 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
19577   echo $ECHO_N "(cached) $ECHO_C" >&6
19578 else
19579   ac_check_lib_save_LIBS=$LIBS
19580 LIBS="-lsun  $LIBS"
19581 cat >conftest.$ac_ext <<_ACEOF
19582 /* confdefs.h.  */
19583 _ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h.  */
19587
19588 /* Override any gcc2 internal prototype to avoid an error.  */
19589 #ifdef __cplusplus
19590 extern "C"
19591 #endif
19592 /* We use char because int might match the return type of a gcc2
19593    builtin and then its argument prototype would still apply.  */
19594 char getpwnam ();
19595 int
19596 main ()
19597 {
19598 getpwnam ();
19599   ;
19600   return 0;
19601 }
19602 _ACEOF
19603 rm -f conftest.$ac_objext conftest$ac_exeext
19604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19605   (eval $ac_link) 2>conftest.er1
19606   ac_status=$?
19607   grep -v '^ *+' conftest.er1 >conftest.err
19608   rm -f conftest.er1
19609   cat conftest.err >&5
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); } &&
19612          { ac_try='test -z "$ac_c_werror_flag"
19613                          || test ! -s conftest.err'
19614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615   (eval $ac_try) 2>&5
19616   ac_status=$?
19617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618   (exit $ac_status); }; } &&
19619          { ac_try='test -s conftest$ac_exeext'
19620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621   (eval $ac_try) 2>&5
19622   ac_status=$?
19623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624   (exit $ac_status); }; }; then
19625   ac_cv_lib_sun_getpwnam=yes
19626 else
19627   echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19629
19630 ac_cv_lib_sun_getpwnam=no
19631 fi
19632 rm -f conftest.err conftest.$ac_objext \
19633       conftest$ac_exeext conftest.$ac_ext
19634 LIBS=$ac_check_lib_save_LIBS
19635 fi
19636 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
19637 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
19638 if test $ac_cv_lib_sun_getpwnam = yes; then
19639   cat >>confdefs.h <<_ACEOF
19640 #define HAVE_LIBSUN 1
19641 _ACEOF
19642
19643   LIBS="-lsun $LIBS"
19644
19645 fi
19646
19647
19648
19649 for ac_header in zlib.h
19650 do
19651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19653   echo "$as_me:$LINENO: checking for $ac_header" >&5
19654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19656   echo $ECHO_N "(cached) $ECHO_C" >&6
19657 fi
19658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19660 else
19661   # Is the header compilable?
19662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19664 cat >conftest.$ac_ext <<_ACEOF
19665 /* confdefs.h.  */
19666 _ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h.  */
19670 $ac_includes_default
19671 #include <$ac_header>
19672 _ACEOF
19673 rm -f conftest.$ac_objext
19674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19675   (eval $ac_compile) 2>conftest.er1
19676   ac_status=$?
19677   grep -v '^ *+' conftest.er1 >conftest.err
19678   rm -f conftest.er1
19679   cat conftest.err >&5
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); } &&
19682          { ac_try='test -z "$ac_c_werror_flag"
19683                          || test ! -s conftest.err'
19684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685   (eval $ac_try) 2>&5
19686   ac_status=$?
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); }; } &&
19689          { ac_try='test -s conftest.$ac_objext'
19690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691   (eval $ac_try) 2>&5
19692   ac_status=$?
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); }; }; then
19695   ac_header_compiler=yes
19696 else
19697   echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19699
19700 ac_header_compiler=no
19701 fi
19702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19704 echo "${ECHO_T}$ac_header_compiler" >&6
19705
19706 # Is the header present?
19707 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h.  */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h.  */
19715 #include <$ac_header>
19716 _ACEOF
19717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19718   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19719   ac_status=$?
19720   grep -v '^ *+' conftest.er1 >conftest.err
19721   rm -f conftest.er1
19722   cat conftest.err >&5
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); } >/dev/null; then
19725   if test -s conftest.err; then
19726     ac_cpp_err=$ac_c_preproc_warn_flag
19727     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19728   else
19729     ac_cpp_err=
19730   fi
19731 else
19732   ac_cpp_err=yes
19733 fi
19734 if test -z "$ac_cpp_err"; then
19735   ac_header_preproc=yes
19736 else
19737   echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740   ac_header_preproc=no
19741 fi
19742 rm -f conftest.err conftest.$ac_ext
19743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19744 echo "${ECHO_T}$ac_header_preproc" >&6
19745
19746 # So?  What about this header?
19747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19748   yes:no: )
19749     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19753     ac_header_preproc=yes
19754     ;;
19755   no:yes:* )
19756     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19758     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19759 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19760     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19762     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19763 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19766     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19768     (
19769       cat <<\_ASBOX
19770 ## ------------------------------------------ ##
19771 ## Report this to the AC_PACKAGE_NAME lists.  ##
19772 ## ------------------------------------------ ##
19773 _ASBOX
19774     ) |
19775       sed "s/^/$as_me: WARNING:     /" >&2
19776     ;;
19777 esac
19778 echo "$as_me:$LINENO: checking for $ac_header" >&5
19779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19781   echo $ECHO_N "(cached) $ECHO_C" >&6
19782 else
19783   eval "$as_ac_Header=\$ac_header_preproc"
19784 fi
19785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19787
19788 fi
19789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19790   cat >>confdefs.h <<_ACEOF
19791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19792 _ACEOF
19793
19794 fi
19795
19796 done
19797
19798 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19799 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19800 if test "${ac_cv_lib_z_deflate+set}" = set; then
19801   echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803   ac_check_lib_save_LIBS=$LIBS
19804 LIBS="-lz  $LIBS"
19805 cat >conftest.$ac_ext <<_ACEOF
19806 /* confdefs.h.  */
19807 _ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h.  */
19811
19812 /* Override any gcc2 internal prototype to avoid an error.  */
19813 #ifdef __cplusplus
19814 extern "C"
19815 #endif
19816 /* We use char because int might match the return type of a gcc2
19817    builtin and then its argument prototype would still apply.  */
19818 char deflate ();
19819 int
19820 main ()
19821 {
19822 deflate ();
19823   ;
19824   return 0;
19825 }
19826 _ACEOF
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19829   (eval $ac_link) 2>conftest.er1
19830   ac_status=$?
19831   grep -v '^ *+' conftest.er1 >conftest.err
19832   rm -f conftest.er1
19833   cat conftest.err >&5
19834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835   (exit $ac_status); } &&
19836          { ac_try='test -z "$ac_c_werror_flag"
19837                          || test ! -s conftest.err'
19838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839   (eval $ac_try) 2>&5
19840   ac_status=$?
19841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842   (exit $ac_status); }; } &&
19843          { ac_try='test -s conftest$ac_exeext'
19844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845   (eval $ac_try) 2>&5
19846   ac_status=$?
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); }; }; then
19849   ac_cv_lib_z_deflate=yes
19850 else
19851   echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19853
19854 ac_cv_lib_z_deflate=no
19855 fi
19856 rm -f conftest.err conftest.$ac_objext \
19857       conftest$ac_exeext conftest.$ac_ext
19858 LIBS=$ac_check_lib_save_LIBS
19859 fi
19860 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19861 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19862 if test $ac_cv_lib_z_deflate = yes; then
19863   FDLIBS="-lz"
19864 fi
19865
19866 have_zlib=no
19867 if test x$FDLIBS = x-lz; then
19868   cat >>confdefs.h <<\_ACEOF
19869 #define HAVE_LIBZ 1
19870 _ACEOF
19871
19872   have_zlib=yes
19873 fi
19874
19875 if test "${ac_cv_header_sys_acl_h+set}" = set; then
19876   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
19877 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
19878 if test "${ac_cv_header_sys_acl_h+set}" = set; then
19879   echo $ECHO_N "(cached) $ECHO_C" >&6
19880 fi
19881 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
19882 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
19883 else
19884   # Is the header compilable?
19885 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
19886 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
19887 cat >conftest.$ac_ext <<_ACEOF
19888 /* confdefs.h.  */
19889 _ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h.  */
19893 $ac_includes_default
19894 #include <sys/acl.h>
19895 _ACEOF
19896 rm -f conftest.$ac_objext
19897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19898   (eval $ac_compile) 2>conftest.er1
19899   ac_status=$?
19900   grep -v '^ *+' conftest.er1 >conftest.err
19901   rm -f conftest.er1
19902   cat conftest.err >&5
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); } &&
19905          { ac_try='test -z "$ac_c_werror_flag"
19906                          || test ! -s conftest.err'
19907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908   (eval $ac_try) 2>&5
19909   ac_status=$?
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); }; } &&
19912          { ac_try='test -s conftest.$ac_objext'
19913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914   (eval $ac_try) 2>&5
19915   ac_status=$?
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); }; }; then
19918   ac_header_compiler=yes
19919 else
19920   echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19922
19923 ac_header_compiler=no
19924 fi
19925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19927 echo "${ECHO_T}$ac_header_compiler" >&6
19928
19929 # Is the header present?
19930 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
19931 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
19932 cat >conftest.$ac_ext <<_ACEOF
19933 /* confdefs.h.  */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h.  */
19938 #include <sys/acl.h>
19939 _ACEOF
19940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19942   ac_status=$?
19943   grep -v '^ *+' conftest.er1 >conftest.err
19944   rm -f conftest.er1
19945   cat conftest.err >&5
19946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947   (exit $ac_status); } >/dev/null; then
19948   if test -s conftest.err; then
19949     ac_cpp_err=$ac_c_preproc_warn_flag
19950     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19951   else
19952     ac_cpp_err=
19953   fi
19954 else
19955   ac_cpp_err=yes
19956 fi
19957 if test -z "$ac_cpp_err"; then
19958   ac_header_preproc=yes
19959 else
19960   echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19962
19963   ac_header_preproc=no
19964 fi
19965 rm -f conftest.err conftest.$ac_ext
19966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19967 echo "${ECHO_T}$ac_header_preproc" >&6
19968
19969 # So?  What about this header?
19970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19971   yes:no: )
19972     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19973 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19974     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
19975 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
19976     ac_header_preproc=yes
19977     ;;
19978   no:yes:* )
19979     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
19980 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
19981     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
19982 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
19983     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
19984 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
19985     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
19986 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19987     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
19988 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
19989     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
19990 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
19991     (
19992       cat <<\_ASBOX
19993 ## ------------------------------------------ ##
19994 ## Report this to the AC_PACKAGE_NAME lists.  ##
19995 ## ------------------------------------------ ##
19996 _ASBOX
19997     ) |
19998       sed "s/^/$as_me: WARNING:     /" >&2
19999     ;;
20000 esac
20001 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20002 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20003 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20004   echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006   ac_cv_header_sys_acl_h=$ac_header_preproc
20007 fi
20008 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20009 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20010
20011 fi
20012
20013
20014 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20015 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20016 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20017   echo $ECHO_N "(cached) $ECHO_C" >&6
20018 else
20019   ac_check_lib_save_LIBS=$LIBS
20020 LIBS="-lacl  $LIBS"
20021 cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027
20028 /* Override any gcc2 internal prototype to avoid an error.  */
20029 #ifdef __cplusplus
20030 extern "C"
20031 #endif
20032 /* We use char because int might match the return type of a gcc2
20033    builtin and then its argument prototype would still apply.  */
20034 char acl_get_file ();
20035 int
20036 main ()
20037 {
20038 acl_get_file ();
20039   ;
20040   return 0;
20041 }
20042 _ACEOF
20043 rm -f conftest.$ac_objext conftest$ac_exeext
20044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20045   (eval $ac_link) 2>conftest.er1
20046   ac_status=$?
20047   grep -v '^ *+' conftest.er1 >conftest.err
20048   rm -f conftest.er1
20049   cat conftest.err >&5
20050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051   (exit $ac_status); } &&
20052          { ac_try='test -z "$ac_c_werror_flag"
20053                          || test ! -s conftest.err'
20054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055   (eval $ac_try) 2>&5
20056   ac_status=$?
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); }; } &&
20059          { ac_try='test -s conftest$ac_exeext'
20060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061   (eval $ac_try) 2>&5
20062   ac_status=$?
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); }; }; then
20065   ac_cv_lib_acl_acl_get_file=yes
20066 else
20067   echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20069
20070 ac_cv_lib_acl_acl_get_file=no
20071 fi
20072 rm -f conftest.err conftest.$ac_objext \
20073       conftest$ac_exeext conftest.$ac_ext
20074 LIBS=$ac_check_lib_save_LIBS
20075 fi
20076 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20077 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20078 if test $ac_cv_lib_acl_acl_get_file = yes; then
20079   FDLIBS="-lacl $FDLIBS"
20080 fi
20081
20082 have_acl=no
20083 if test $ac_cv_lib_acl_acl_get_file = yes; then
20084    cat >>confdefs.h <<\_ACEOF
20085 #define HAVE_ACL 1
20086 _ACEOF
20087
20088    have_acl=yes
20089 fi
20090
20091 PTHREAD_LIB=""
20092 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20093 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20094 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20095   echo $ECHO_N "(cached) $ECHO_C" >&6
20096 else
20097   ac_check_lib_save_LIBS=$LIBS
20098 LIBS="-lpthread  $LIBS"
20099 cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h.  */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h.  */
20105
20106 /* Override any gcc2 internal prototype to avoid an error.  */
20107 #ifdef __cplusplus
20108 extern "C"
20109 #endif
20110 /* We use char because int might match the return type of a gcc2
20111    builtin and then its argument prototype would still apply.  */
20112 char pthread_create ();
20113 int
20114 main ()
20115 {
20116 pthread_create ();
20117   ;
20118   return 0;
20119 }
20120 _ACEOF
20121 rm -f conftest.$ac_objext conftest$ac_exeext
20122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20123   (eval $ac_link) 2>conftest.er1
20124   ac_status=$?
20125   grep -v '^ *+' conftest.er1 >conftest.err
20126   rm -f conftest.er1
20127   cat conftest.err >&5
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); } &&
20130          { ac_try='test -z "$ac_c_werror_flag"
20131                          || test ! -s conftest.err'
20132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133   (eval $ac_try) 2>&5
20134   ac_status=$?
20135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136   (exit $ac_status); }; } &&
20137          { ac_try='test -s conftest$ac_exeext'
20138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139   (eval $ac_try) 2>&5
20140   ac_status=$?
20141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); }; }; then
20143   ac_cv_lib_pthread_pthread_create=yes
20144 else
20145   echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20147
20148 ac_cv_lib_pthread_pthread_create=no
20149 fi
20150 rm -f conftest.err conftest.$ac_objext \
20151       conftest$ac_exeext conftest.$ac_ext
20152 LIBS=$ac_check_lib_save_LIBS
20153 fi
20154 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20155 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20156 if test $ac_cv_lib_pthread_pthread_create = yes; then
20157   PTHREAD_LIB="-lpthread"
20158 else
20159   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20160 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20161 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20162   echo $ECHO_N "(cached) $ECHO_C" >&6
20163 else
20164   ac_check_lib_save_LIBS=$LIBS
20165 LIBS="-lpthreads  $LIBS"
20166 cat >conftest.$ac_ext <<_ACEOF
20167 /* confdefs.h.  */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h.  */
20172
20173 /* Override any gcc2 internal prototype to avoid an error.  */
20174 #ifdef __cplusplus
20175 extern "C"
20176 #endif
20177 /* We use char because int might match the return type of a gcc2
20178    builtin and then its argument prototype would still apply.  */
20179 char pthread_create ();
20180 int
20181 main ()
20182 {
20183 pthread_create ();
20184   ;
20185   return 0;
20186 }
20187 _ACEOF
20188 rm -f conftest.$ac_objext conftest$ac_exeext
20189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20190   (eval $ac_link) 2>conftest.er1
20191   ac_status=$?
20192   grep -v '^ *+' conftest.er1 >conftest.err
20193   rm -f conftest.er1
20194   cat conftest.err >&5
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); } &&
20197          { ac_try='test -z "$ac_c_werror_flag"
20198                          || test ! -s conftest.err'
20199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200   (eval $ac_try) 2>&5
20201   ac_status=$?
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); }; } &&
20204          { ac_try='test -s conftest$ac_exeext'
20205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206   (eval $ac_try) 2>&5
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); }; }; then
20210   ac_cv_lib_pthreads_pthread_create=yes
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 ac_cv_lib_pthreads_pthread_create=no
20216 fi
20217 rm -f conftest.err conftest.$ac_objext \
20218       conftest$ac_exeext conftest.$ac_ext
20219 LIBS=$ac_check_lib_save_LIBS
20220 fi
20221 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20222 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20223 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20224   PTHREAD_LIB="-lpthreads"
20225 else
20226   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20227 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20228 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20229   echo $ECHO_N "(cached) $ECHO_C" >&6
20230 else
20231   ac_check_lib_save_LIBS=$LIBS
20232 LIBS="-lc_r  $LIBS"
20233 cat >conftest.$ac_ext <<_ACEOF
20234 /* confdefs.h.  */
20235 _ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h.  */
20239
20240 /* Override any gcc2 internal prototype to avoid an error.  */
20241 #ifdef __cplusplus
20242 extern "C"
20243 #endif
20244 /* We use char because int might match the return type of a gcc2
20245    builtin and then its argument prototype would still apply.  */
20246 char pthread_create ();
20247 int
20248 main ()
20249 {
20250 pthread_create ();
20251   ;
20252   return 0;
20253 }
20254 _ACEOF
20255 rm -f conftest.$ac_objext conftest$ac_exeext
20256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20257   (eval $ac_link) 2>conftest.er1
20258   ac_status=$?
20259   grep -v '^ *+' conftest.er1 >conftest.err
20260   rm -f conftest.er1
20261   cat conftest.err >&5
20262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263   (exit $ac_status); } &&
20264          { ac_try='test -z "$ac_c_werror_flag"
20265                          || test ! -s conftest.err'
20266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267   (eval $ac_try) 2>&5
20268   ac_status=$?
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); }; } &&
20271          { ac_try='test -s conftest$ac_exeext'
20272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273   (eval $ac_try) 2>&5
20274   ac_status=$?
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); }; }; then
20277   ac_cv_lib_c_r_pthread_create=yes
20278 else
20279   echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20281
20282 ac_cv_lib_c_r_pthread_create=no
20283 fi
20284 rm -f conftest.err conftest.$ac_objext \
20285       conftest$ac_exeext conftest.$ac_ext
20286 LIBS=$ac_check_lib_save_LIBS
20287 fi
20288 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20289 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20290 if test $ac_cv_lib_c_r_pthread_create = yes; then
20291   PTHREAD_LIB="-lc_r"
20292 else
20293   echo "$as_me:$LINENO: checking for pthread_create" >&5
20294 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
20295 if test "${ac_cv_func_pthread_create+set}" = set; then
20296   echo $ECHO_N "(cached) $ECHO_C" >&6
20297 else
20298   cat >conftest.$ac_ext <<_ACEOF
20299 /* confdefs.h.  */
20300 _ACEOF
20301 cat confdefs.h >>conftest.$ac_ext
20302 cat >>conftest.$ac_ext <<_ACEOF
20303 /* end confdefs.h.  */
20304 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
20305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20306 #define pthread_create innocuous_pthread_create
20307
20308 /* System header to define __stub macros and hopefully few prototypes,
20309     which can conflict with char pthread_create (); below.
20310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20311     <limits.h> exists even on freestanding compilers.  */
20312
20313 #ifdef __STDC__
20314 # include <limits.h>
20315 #else
20316 # include <assert.h>
20317 #endif
20318
20319 #undef pthread_create
20320
20321 /* Override any gcc2 internal prototype to avoid an error.  */
20322 #ifdef __cplusplus
20323 extern "C"
20324 {
20325 #endif
20326 /* We use char because int might match the return type of a gcc2
20327    builtin and then its argument prototype would still apply.  */
20328 char pthread_create ();
20329 /* The GNU C library defines this for functions which it implements
20330     to always fail with ENOSYS.  Some functions are actually named
20331     something starting with __ and the normal name is an alias.  */
20332 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
20333 choke me
20334 #else
20335 char (*f) () = pthread_create;
20336 #endif
20337 #ifdef __cplusplus
20338 }
20339 #endif
20340
20341 int
20342 main ()
20343 {
20344 return f != pthread_create;
20345   ;
20346   return 0;
20347 }
20348 _ACEOF
20349 rm -f conftest.$ac_objext conftest$ac_exeext
20350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20351   (eval $ac_link) 2>conftest.er1
20352   ac_status=$?
20353   grep -v '^ *+' conftest.er1 >conftest.err
20354   rm -f conftest.er1
20355   cat conftest.err >&5
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); } &&
20358          { ac_try='test -z "$ac_c_werror_flag"
20359                          || test ! -s conftest.err'
20360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361   (eval $ac_try) 2>&5
20362   ac_status=$?
20363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364   (exit $ac_status); }; } &&
20365          { ac_try='test -s conftest$ac_exeext'
20366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367   (eval $ac_try) 2>&5
20368   ac_status=$?
20369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370   (exit $ac_status); }; }; then
20371   ac_cv_func_pthread_create=yes
20372 else
20373   echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20375
20376 ac_cv_func_pthread_create=no
20377 fi
20378 rm -f conftest.err conftest.$ac_objext \
20379       conftest$ac_exeext conftest.$ac_ext
20380 fi
20381 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
20382 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
20383
20384
20385 fi
20386
20387
20388 fi
20389
20390
20391 fi
20392
20393
20394
20395 cat >>confdefs.h <<\_ACEOF
20396 #define FDLIBS 1
20397 _ACEOF
20398
20399
20400
20401 CFLAGS=${CFLAGS--O}
20402 LDFLAGS=${LDFLAGS--O}
20403 DB_LIBS="${SQL_LFLAGS}"
20404
20405 CPPFLAGS="$CPPFLAGS"
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420 OBJLIST=
20421
20422
20423 lld="lld"
20424 llu="llu"
20425
20426 WCFLAGS=
20427 WLDFLAGS=
20428
20429 #
20430 # Finally we set appropriate distribution specific
20431 #  variables and defaults
20432 #
20433 # PFILES are platform specific files
20434 PFILES="platforms/Makefile"
20435 PSCMD="ps -e"
20436 WIN32=
20437 MACOSX=
20438 hostname=`uname -n | cut -d '.' -f 1`
20439 case "$DISTNAME" in
20440 aix)
20441         DISTVER=`uname -r`
20442         PSCMD="ps -e -o pid,comm"
20443         PFILES="${PFILES} \
20444            platforms/aix/Makefile"
20445         TAPEDRIVE="/dev/rmt0.1"
20446   ;;
20447 alpha)
20448         DISTVER=`uname -r`
20449         PTHREAD_LIB="-lpthread -lexc"
20450         if test "${CC}" = "gcc" ; then
20451            lld="lld"
20452            llu="llu"
20453         else
20454            lld="ld"
20455            llu="lu"
20456         fi
20457         TAPEDRIVE="/dev/nrmt0"
20458   ;;
20459 bsdi)
20460         DISTVER=`uname -a |awk '{print $3}'`
20461         TAPEDRIVE="/dev/nrmt0"
20462         PTHREAD_LIB="-pthread"
20463         CFLAGS="${CFLAGS} -pthread"
20464         PSCMD="ps -x -o pid,command"
20465         lld="qd"
20466         llu="qu"
20467         PFILES="${PFILES} \
20468             platforms/bsdi/Makefile \
20469             platforms/bsdi/bacula-fd \
20470             platforms/bsdi/bacula-sd \
20471             platforms/bsdi/bacula-dir"
20472         largefile_support="yes"
20473   ;;
20474 cygwin)
20475         DISTVER=`uname -a |awk '{print $3}'`
20476         TAPEDRIVE="/dev/nrst0"
20477         WIN32=win32
20478         WCFLAGS="-mwindows"
20479         WLDFLAGS="-mwindows"
20480   ;;
20481 darwin)
20482         DISTVER=`uname -r`
20483         TAPEDRIVE="/dev/nst0"
20484         PSCMD="ps -e -o pid,command"
20485         MACOSX=macosx
20486         PFILES="${PFILES} \
20487            platforms/darwin/Makefile"
20488   ;;
20489 debian)
20490         DISTVER=`cat /etc/debian_version`
20491         TAPEDRIVE="/dev/nrst0"
20492         PSCMD="ps -e -o pid,command"
20493   ;;
20494 freebsd)
20495         DISTVER=`uname -a |awk '{print $3}'`
20496         VER=`echo $DISTVER | cut -c 1`
20497         if test x$VER = x4 ; then
20498            PTHREAD_LIB="-pthread"
20499            CFLAGS="${CFLAGS} -pthread"
20500         fi
20501         lld="qd"
20502         llu="qu"
20503         TAPEDRIVE="/dev/nrsa0"
20504         PSCMD="ps -x -o pid,command"
20505         PFILES="${PFILES} \
20506             platforms/freebsd/Makefile \
20507             platforms/freebsd/bacula-fd \
20508             platforms/freebsd/bacula-sd \
20509             platforms/freebsd/bacula-dir"
20510         largefile_support="yes"
20511   ;;
20512 hpux)
20513         PSCMD="UNIX95=1 ps -e -o pid,comm"
20514         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
20515         DISTVER=`uname -r`
20516         TAPEDRIVE="/dev/rmt/0hnb"
20517   ;;
20518 irix)
20519         DISTVER=`uname -r`
20520         TAPEDRIVE="/dev/rmt/0cbn"
20521         PSCMD="ps -e -o pid,comm"
20522         PFILES="${PFILES} \
20523             platforms/irix/Makefile \
20524             platforms/irix/bacula-fd \
20525             platforms/irix/bacula-sd \
20526             platforms/irix/bacula-dir"
20527   ;;
20528 netbsd)
20529         DISTVER=`uname -a |awk '{print $3}'`
20530         lld="qd"
20531         llu="qu"
20532         TAPEDRIVE="/dev/nrst0"
20533         PSCMD="ps -a -o pid,command"
20534         PTHREAD_LIB="-pthread"
20535         CFLAGS="${CFLAGS} -pthread"
20536   ;;
20537 openbsd)
20538         DISTVER=`uname -a |awk '{print $3}'`
20539         lld="qd"
20540         llu="qu"
20541         TAPEDRIVE="/dev/nrst0"
20542         PSCMD="ps -a -o pid,command"
20543         PTHREAD_LIB="-pthread"
20544         CFLAGS="${CFLAGS} -pthread"
20545         PFILES="${PFILES} \
20546             platforms/openbsd/Makefile \
20547             platforms/openbsd/bacula-fd \
20548             platforms/openbsd/bacula-sd \
20549             platforms/openbsd/bacula-dir"
20550   ;;
20551 redhat)
20552         if test -f /etc/whitebox-release ; then
20553            f=/etc/whitebox-release
20554         else
20555            f=/etc/redhat-release
20556         fi
20557         if test `cat $f | grep release |\
20558                    cut -f 3 -d ' '`x = "Enterprise"x ; then
20559            DISTVER="Enterprise "`cat $f | grep release |\
20560                     cut -f 6 -d ' '`
20561         else
20562             DISTVER=`cat /etc/redhat-release | grep release |\
20563                      cut -f 5 -d ' '`
20564         fi
20565         TAPEDRIVE="/dev/nst0"
20566         PSCMD="ps -e -o pid,command"
20567         PFILES="${PFILES} \
20568             platforms/redhat/Makefile \
20569             platforms/redhat/bacula-fd \
20570             platforms/redhat/bacula-sd \
20571             platforms/redhat/bacula-dir \
20572             platforms/redhat/bacula.spec \
20573             "
20574         hostname=`hostname -s`
20575   ;;
20576 mandrake)
20577         DISTVER=`cat /etc/mandrake-release | grep release |\
20578            cut -f 5 -d ' '`
20579         TAPEDRIVE="/dev/nst0"
20580         PSCMD="ps -e -o pid,command"
20581         PFILES="${PFILES} \
20582             platforms/mandrake/Makefile \
20583             platforms/mandrake/bacula-fd \
20584             platforms/mandrake/bacula-sd \
20585             platforms/mandrake/bacula-dir \
20586             platforms/mandrake/bacula.spec \
20587             "
20588   ;;
20589 gentoo)
20590         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
20591         TAPEDRIVE="/dev/nst0"
20592         PSCMD="ps -e -o pid,command"
20593         PFILES="${PFILES} \
20594             platforms/gentoo/Makefile \
20595             platforms/gentoo/bacula-fd \
20596             platforms/gentoo/bacula-sd \
20597             platforms/gentoo/bacula-dir"
20598   ;;
20599 slackware)
20600         DISTVER=`cat /etc/slackware-version`
20601         TAPEDRIVE="/dev/nst0"
20602         PSCMD="ps -e -o pid,command"
20603         PFILES="${PFILES} \
20604             platforms/slackware/Makefile \
20605             platforms/slackware/rc.bacula-fd \
20606             platforms/slackware/rc.bacula-sd \
20607             platforms/slackware/rc.bacula-dir\
20608             platforms/slackware/functions.bacula"
20609   ;;
20610 solaris)
20611         DISTVER=`uname -r`
20612         TAPEDRIVE="/dev/rmt/0cbn"
20613         PSCMD="ps -e -o pid,comm"
20614         PFILES="${PFILES} \
20615             platforms/solaris/Makefile \
20616             platforms/solaris/bacula-fd \
20617             platforms/solaris/bacula-sd \
20618             platforms/solaris/bacula-dir"
20619         if test x$DISTVER = x5.6 ; then
20620             cat >>confdefs.h <<\_ACEOF
20621 #define HAVE_OLD_SOCKOPT 1
20622 _ACEOF
20623
20624         fi
20625   ;;
20626 suse)
20627         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
20628             cut -f 3 -d ' '`
20629         TAPEDRIVE="/dev/nst0"
20630         PSCMD="ps -e -o pid,command"
20631         PFILES="${PFILES} \
20632             platforms/suse/Makefile \
20633             platforms/suse/bacula-fd \
20634             platforms/suse/bacula-sd \
20635             platforms/suse/bacula-dir \
20636             platforms/suse/bacula \
20637             platforms/suse/bacula.spec"
20638   ;;
20639 suse5)
20640         DISTNAME=suse
20641         DISTVER=5.x
20642         TAPEDRIVE="/dev/nst0"
20643         PSCMD="ps -e -o pid,command"
20644         PFILES="${PFILES} \
20645             platforms/suse/Makefile \
20646             platforms/suse/bacula-fd \
20647             platforms/suse/bacula-sd \
20648             platforms/suse/bacula-dir"
20649   ;;
20650 unknown)
20651         DISTVER=unknown
20652         TAPEDRIVE="/dev/nst0"
20653   ;;
20654 *)
20655   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
20656   ;;
20657 esac
20658
20659
20660
20661 LIBS="$PTHREAD_LIB $LIBS"
20662
20663 cat >>confdefs.h <<_ACEOF
20664 #define lld "$lld"
20665 _ACEOF
20666
20667 cat >>confdefs.h <<_ACEOF
20668 #define llu "$llu"
20669 _ACEOF
20670
20671
20672
20673
20674
20675
20676
20677
20678 MCOMMON=./autoconf/Make.common
20679
20680
20681 if test "x${subsysdir}" = "x${sbindir}" ; then
20682    echo " "
20683    echo " "
20684    echo "You have set both --sbindir and --with-subsys-dir"
20685    echo "  equal to: ${subsysdir} "
20686    echo "This is not permitted. Please reconfigure."
20687    echo " "
20688    echo "Aborting configuration ..."
20689    echo " "
20690    echo " "
20691    exit 1
20692 fi
20693
20694                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           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/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
20695           ac_config_commands="$ac_config_commands default"
20696 cat >confcache <<\_ACEOF
20697 # This file is a shell script that caches the results of configure
20698 # tests run on this system so they can be shared between configure
20699 # scripts and configure runs, see configure's option --config-cache.
20700 # It is not useful on other systems.  If it contains results you don't
20701 # want to keep, you may remove or edit it.
20702 #
20703 # config.status only pays attention to the cache file if you give it
20704 # the --recheck option to rerun configure.
20705 #
20706 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20708 # following values.
20709
20710 _ACEOF
20711
20712 # The following way of writing the cache mishandles newlines in values,
20713 # but we know of no workaround that is simple, portable, and efficient.
20714 # So, don't put newlines in cache variables' values.
20715 # Ultrix sh set writes to stderr and can't be redirected directly,
20716 # and sets the high bit in the cache file unless we assign to the vars.
20717 {
20718   (set) 2>&1 |
20719     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20720     *ac_space=\ *)
20721       # `set' does not quote correctly, so add quotes (double-quote
20722       # substitution turns \\\\ into \\, and sed turns \\ into \).
20723       sed -n \
20724         "s/'/'\\\\''/g;
20725           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20726       ;;
20727     *)
20728       # `set' quotes correctly as required by POSIX, so do not add quotes.
20729       sed -n \
20730         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20731       ;;
20732     esac;
20733 } |
20734   sed '
20735      t clear
20736      : clear
20737      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20738      t end
20739      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20740      : end' >>confcache
20741 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20742   if test -w $cache_file; then
20743     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20744     cat confcache >$cache_file
20745   else
20746     echo "not updating unwritable cache $cache_file"
20747   fi
20748 fi
20749 rm -f confcache
20750
20751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20752 # Let make expand exec_prefix.
20753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20754
20755 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20756 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20757 # trailing colons and then remove the whole line if VPATH becomes empty
20758 # (actually we leave an empty line to preserve line numbers).
20759 if test "x$srcdir" = x.; then
20760   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20761 s/:*\$(srcdir):*/:/;
20762 s/:*\${srcdir}:*/:/;
20763 s/:*@srcdir@:*/:/;
20764 s/^\([^=]*=[     ]*\):*/\1/;
20765 s/:*$//;
20766 s/^[^=]*=[       ]*$//;
20767 }'
20768 fi
20769
20770 DEFS=-DHAVE_CONFIG_H
20771
20772 ac_libobjs=
20773 ac_ltlibobjs=
20774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20775   # 1. Remove the extension, and $U if already installed.
20776   ac_i=`echo "$ac_i" |
20777          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20778   # 2. Add them.
20779   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20780   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20781 done
20782 LIBOBJS=$ac_libobjs
20783
20784 LTLIBOBJS=$ac_ltlibobjs
20785
20786
20787
20788 : ${CONFIG_STATUS=./config.status}
20789 ac_clean_files_save=$ac_clean_files
20790 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20791 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20792 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20793 cat >$CONFIG_STATUS <<_ACEOF
20794 #! $SHELL
20795 # Generated by $as_me.
20796 # Run this file to recreate the current configuration.
20797 # Compiler output produced by configure, useful for debugging
20798 # configure, is in config.log if it exists.
20799
20800 debug=false
20801 ac_cs_recheck=false
20802 ac_cs_silent=false
20803 SHELL=\${CONFIG_SHELL-$SHELL}
20804 _ACEOF
20805
20806 cat >>$CONFIG_STATUS <<\_ACEOF
20807 ## --------------------- ##
20808 ## M4sh Initialization.  ##
20809 ## --------------------- ##
20810
20811 # Be Bourne compatible
20812 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20813   emulate sh
20814   NULLCMD=:
20815   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20816   # is contrary to our usage.  Disable this feature.
20817   alias -g '${1+"$@"}'='"$@"'
20818 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20819   set -o posix
20820 fi
20821 DUALCASE=1; export DUALCASE # for MKS sh
20822
20823 # Support unset when possible.
20824 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20825   as_unset=unset
20826 else
20827   as_unset=false
20828 fi
20829
20830
20831 # Work around bugs in pre-3.0 UWIN ksh.
20832 $as_unset ENV MAIL MAILPATH
20833 PS1='$ '
20834 PS2='> '
20835 PS4='+ '
20836
20837 # NLS nuisances.
20838 for as_var in \
20839   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20840   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20841   LC_TELEPHONE LC_TIME
20842 do
20843   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20844     eval $as_var=C; export $as_var
20845   else
20846     $as_unset $as_var
20847   fi
20848 done
20849
20850 # Required to use basename.
20851 if expr a : '\(a\)' >/dev/null 2>&1; then
20852   as_expr=expr
20853 else
20854   as_expr=false
20855 fi
20856
20857 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20858   as_basename=basename
20859 else
20860   as_basename=false
20861 fi
20862
20863
20864 # Name of the executable.
20865 as_me=`$as_basename "$0" ||
20866 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20867          X"$0" : 'X\(//\)$' \| \
20868          X"$0" : 'X\(/\)$' \| \
20869          .     : '\(.\)' 2>/dev/null ||
20870 echo X/"$0" |
20871     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20872           /^X\/\(\/\/\)$/{ s//\1/; q; }
20873           /^X\/\(\/\).*/{ s//\1/; q; }
20874           s/.*/./; q'`
20875
20876
20877 # PATH needs CR, and LINENO needs CR and PATH.
20878 # Avoid depending upon Character Ranges.
20879 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20880 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20881 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20882 as_cr_digits='0123456789'
20883 as_cr_alnum=$as_cr_Letters$as_cr_digits
20884
20885 # The user is always right.
20886 if test "${PATH_SEPARATOR+set}" != set; then
20887   echo "#! /bin/sh" >conf$$.sh
20888   echo  "exit 0"   >>conf$$.sh
20889   chmod +x conf$$.sh
20890   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20891     PATH_SEPARATOR=';'
20892   else
20893     PATH_SEPARATOR=:
20894   fi
20895   rm -f conf$$.sh
20896 fi
20897
20898
20899   as_lineno_1=$LINENO
20900   as_lineno_2=$LINENO
20901   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20902   test "x$as_lineno_1" != "x$as_lineno_2" &&
20903   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20904   # Find who we are.  Look in the path if we contain no path at all
20905   # relative or not.
20906   case $0 in
20907     *[\\/]* ) as_myself=$0 ;;
20908     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20909 for as_dir in $PATH
20910 do
20911   IFS=$as_save_IFS
20912   test -z "$as_dir" && as_dir=.
20913   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20914 done
20915
20916        ;;
20917   esac
20918   # We did not find ourselves, most probably we were run as `sh COMMAND'
20919   # in which case we are not to be found in the path.
20920   if test "x$as_myself" = x; then
20921     as_myself=$0
20922   fi
20923   if test ! -f "$as_myself"; then
20924     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20925 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20926    { (exit 1); exit 1; }; }
20927   fi
20928   case $CONFIG_SHELL in
20929   '')
20930     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20931 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20932 do
20933   IFS=$as_save_IFS
20934   test -z "$as_dir" && as_dir=.
20935   for as_base in sh bash ksh sh5; do
20936          case $as_dir in
20937          /*)
20938            if ("$as_dir/$as_base" -c '
20939   as_lineno_1=$LINENO
20940   as_lineno_2=$LINENO
20941   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20942   test "x$as_lineno_1" != "x$as_lineno_2" &&
20943   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20944              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20945              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20946              CONFIG_SHELL=$as_dir/$as_base
20947              export CONFIG_SHELL
20948              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20949            fi;;
20950          esac
20951        done
20952 done
20953 ;;
20954   esac
20955
20956   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20957   # uniformly replaced by the line number.  The first 'sed' inserts a
20958   # line-number line before each line; the second 'sed' does the real
20959   # work.  The second script uses 'N' to pair each line-number line
20960   # with the numbered line, and appends trailing '-' during
20961   # substitution so that $LINENO is not a special case at line end.
20962   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20963   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20964   sed '=' <$as_myself |
20965     sed '
20966       N
20967       s,$,-,
20968       : loop
20969       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20970       t loop
20971       s,-$,,
20972       s,^['$as_cr_digits']*\n,,
20973     ' >$as_me.lineno &&
20974   chmod +x $as_me.lineno ||
20975     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20976 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20977    { (exit 1); exit 1; }; }
20978
20979   # Don't try to exec as it changes $[0], causing all sort of problems
20980   # (the dirname of $[0] is not the place where we might find the
20981   # original and so on.  Autoconf is especially sensible to this).
20982   . ./$as_me.lineno
20983   # Exit status is that of the last command.
20984   exit
20985 }
20986
20987
20988 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20989   *c*,-n*) ECHO_N= ECHO_C='
20990 ' ECHO_T='      ' ;;
20991   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20992   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20993 esac
20994
20995 if expr a : '\(a\)' >/dev/null 2>&1; then
20996   as_expr=expr
20997 else
20998   as_expr=false
20999 fi
21000
21001 rm -f conf$$ conf$$.exe conf$$.file
21002 echo >conf$$.file
21003 if ln -s conf$$.file conf$$ 2>/dev/null; then
21004   # We could just check for DJGPP; but this test a) works b) is more generic
21005   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21006   if test -f conf$$.exe; then
21007     # Don't use ln at all; we don't have any links
21008     as_ln_s='cp -p'
21009   else
21010     as_ln_s='ln -s'
21011   fi
21012 elif ln conf$$.file conf$$ 2>/dev/null; then
21013   as_ln_s=ln
21014 else
21015   as_ln_s='cp -p'
21016 fi
21017 rm -f conf$$ conf$$.exe conf$$.file
21018
21019 if mkdir -p . 2>/dev/null; then
21020   as_mkdir_p=:
21021 else
21022   test -d ./-p && rmdir ./-p
21023   as_mkdir_p=false
21024 fi
21025
21026 as_executable_p="test -f"
21027
21028 # Sed expression to map a string onto a valid CPP name.
21029 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21030
21031 # Sed expression to map a string onto a valid variable name.
21032 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21033
21034
21035 # IFS
21036 # We need space, tab and new line, in precisely that order.
21037 as_nl='
21038 '
21039 IFS="   $as_nl"
21040
21041 # CDPATH.
21042 $as_unset CDPATH
21043
21044 exec 6>&1
21045
21046 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21047 # report actual input values of CONFIG_FILES etc. instead of their
21048 # values after options handling.  Logging --version etc. is OK.
21049 exec 5>>config.log
21050 {
21051   echo
21052   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21053 ## Running $as_me. ##
21054 _ASBOX
21055 } >&5
21056 cat >&5 <<_CSEOF
21057
21058 This file was extended by $as_me, which was
21059 generated by GNU Autoconf 2.59.  Invocation command line was
21060
21061   CONFIG_FILES    = $CONFIG_FILES
21062   CONFIG_HEADERS  = $CONFIG_HEADERS
21063   CONFIG_LINKS    = $CONFIG_LINKS
21064   CONFIG_COMMANDS = $CONFIG_COMMANDS
21065   $ $0 $@
21066
21067 _CSEOF
21068 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21069 echo >&5
21070 _ACEOF
21071
21072 # Files that config.status was made for.
21073 if test -n "$ac_config_files"; then
21074   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21075 fi
21076
21077 if test -n "$ac_config_headers"; then
21078   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21079 fi
21080
21081 if test -n "$ac_config_links"; then
21082   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21083 fi
21084
21085 if test -n "$ac_config_commands"; then
21086   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21087 fi
21088
21089 cat >>$CONFIG_STATUS <<\_ACEOF
21090
21091 ac_cs_usage="\
21092 \`$as_me' instantiates files from templates according to the
21093 current configuration.
21094
21095 Usage: $0 [OPTIONS] [FILE]...
21096
21097   -h, --help       print this help, then exit
21098   -V, --version    print version number, then exit
21099   -q, --quiet      do not print progress messages
21100   -d, --debug      don't remove temporary files
21101       --recheck    update $as_me by reconfiguring in the same conditions
21102   --file=FILE[:TEMPLATE]
21103                    instantiate the configuration file FILE
21104   --header=FILE[:TEMPLATE]
21105                    instantiate the configuration header FILE
21106
21107 Configuration files:
21108 $config_files
21109
21110 Configuration headers:
21111 $config_headers
21112
21113 Configuration commands:
21114 $config_commands
21115
21116 Report bugs to <bug-autoconf@gnu.org>."
21117 _ACEOF
21118
21119 cat >>$CONFIG_STATUS <<_ACEOF
21120 ac_cs_version="\\
21121 config.status
21122 configured by $0, generated by GNU Autoconf 2.59,
21123   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21124
21125 Copyright (C) 2003 Free Software Foundation, Inc.
21126 This config.status script is free software; the Free Software Foundation
21127 gives unlimited permission to copy, distribute and modify it."
21128 srcdir=$srcdir
21129 INSTALL="$INSTALL"
21130 _ACEOF
21131
21132 cat >>$CONFIG_STATUS <<\_ACEOF
21133 # If no file are specified by the user, then we need to provide default
21134 # value.  By we need to know if files were specified by the user.
21135 ac_need_defaults=:
21136 while test $# != 0
21137 do
21138   case $1 in
21139   --*=*)
21140     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21141     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21142     ac_shift=:
21143     ;;
21144   -*)
21145     ac_option=$1
21146     ac_optarg=$2
21147     ac_shift=shift
21148     ;;
21149   *) # This is not an option, so the user has probably given explicit
21150      # arguments.
21151      ac_option=$1
21152      ac_need_defaults=false;;
21153   esac
21154
21155   case $ac_option in
21156   # Handling of the options.
21157 _ACEOF
21158 cat >>$CONFIG_STATUS <<\_ACEOF
21159   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21160     ac_cs_recheck=: ;;
21161   --version | --vers* | -V )
21162     echo "$ac_cs_version"; exit 0 ;;
21163   --he | --h)
21164     # Conflict between --help and --header
21165     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21166 Try \`$0 --help' for more information." >&5
21167 echo "$as_me: error: ambiguous option: $1
21168 Try \`$0 --help' for more information." >&2;}
21169    { (exit 1); exit 1; }; };;
21170   --help | --hel | -h )
21171     echo "$ac_cs_usage"; exit 0 ;;
21172   --debug | --d* | -d )
21173     debug=: ;;
21174   --file | --fil | --fi | --f )
21175     $ac_shift
21176     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21177     ac_need_defaults=false;;
21178   --header | --heade | --head | --hea )
21179     $ac_shift
21180     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21181     ac_need_defaults=false;;
21182   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21183   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21184     ac_cs_silent=: ;;
21185
21186   # This is an error.
21187   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21188 Try \`$0 --help' for more information." >&5
21189 echo "$as_me: error: unrecognized option: $1
21190 Try \`$0 --help' for more information." >&2;}
21191    { (exit 1); exit 1; }; } ;;
21192
21193   *) ac_config_targets="$ac_config_targets $1" ;;
21194
21195   esac
21196   shift
21197 done
21198
21199 ac_configure_extra_args=
21200
21201 if $ac_cs_silent; then
21202   exec 6>/dev/null
21203   ac_configure_extra_args="$ac_configure_extra_args --silent"
21204 fi
21205
21206 _ACEOF
21207 cat >>$CONFIG_STATUS <<_ACEOF
21208 if \$ac_cs_recheck; then
21209   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21210   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21211 fi
21212
21213 _ACEOF
21214
21215
21216
21217
21218
21219 cat >>$CONFIG_STATUS <<\_ACEOF
21220 for ac_config_target in $ac_config_targets
21221 do
21222   case "$ac_config_target" in
21223   # Handling of arguments.
21224   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21225   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21226   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
21227   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
21228   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
21229   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
21230   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21231   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21232   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21233   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21234   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21235   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21236   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21237   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21238   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21239   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21240   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21241   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21242   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21243   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21244   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21245   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21246   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21247   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21248   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21249   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21250   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21251   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21252   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21253   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21254   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
21255   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
21256   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21257   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21258   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21259   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21260   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
21261   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
21262   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21263   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21264   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21265   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21266   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21267   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21268   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21269   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21270   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21271   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
21272   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
21273   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
21274   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
21275   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
21276   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
21277   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
21278   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
21279   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
21280   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
21281   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
21282   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
21283   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
21284   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
21285   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
21286   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
21287   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
21288   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
21289   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
21290   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
21291   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
21292   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
21293   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
21294   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
21295   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
21296   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
21297   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
21298   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
21299   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
21300   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
21301   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
21302   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
21303   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
21304   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
21305   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
21306   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21307   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
21308   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
21309   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
21310   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
21311   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
21312   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
21313   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21314   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
21315   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21316 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21317    { (exit 1); exit 1; }; };;
21318   esac
21319 done
21320
21321 # If the user did not use the arguments to specify the items to instantiate,
21322 # then the envvar interface is used.  Set only those that are not.
21323 # We use the long form for the default assignment because of an extremely
21324 # bizarre bug on SunOS 4.1.3.
21325 if $ac_need_defaults; then
21326   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21327   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21328   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21329 fi
21330
21331 # Have a temporary directory for convenience.  Make it in the build tree
21332 # simply because there is no reason to put it here, and in addition,
21333 # creating and moving files from /tmp can sometimes cause problems.
21334 # Create a temporary directory, and hook for its removal unless debugging.
21335 $debug ||
21336 {
21337   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21338   trap '{ (exit 1); exit 1; }' 1 2 13 15
21339 }
21340
21341 # Create a (secure) tmp directory for tmp files.
21342
21343 {
21344   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21345   test -n "$tmp" && test -d "$tmp"
21346 }  ||
21347 {
21348   tmp=./confstat$$-$RANDOM
21349   (umask 077 && mkdir $tmp)
21350 } ||
21351 {
21352    echo "$me: cannot create a temporary directory in ." >&2
21353    { (exit 1); exit 1; }
21354 }
21355
21356 _ACEOF
21357
21358 cat >>$CONFIG_STATUS <<_ACEOF
21359
21360 #
21361 # CONFIG_FILES section.
21362 #
21363
21364 # No need to generate the scripts if there are no CONFIG_FILES.
21365 # This happens for instance when ./config.status config.h
21366 if test -n "\$CONFIG_FILES"; then
21367   # Protect against being on the right side of a sed subst in config.status.
21368   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21369    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21370 s,@SHELL@,$SHELL,;t t
21371 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21372 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21373 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21374 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21375 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21376 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21377 s,@exec_prefix@,$exec_prefix,;t t
21378 s,@prefix@,$prefix,;t t
21379 s,@program_transform_name@,$program_transform_name,;t t
21380 s,@bindir@,$bindir,;t t
21381 s,@sbindir@,$sbindir,;t t
21382 s,@libexecdir@,$libexecdir,;t t
21383 s,@datadir@,$datadir,;t t
21384 s,@sysconfdir@,$sysconfdir,;t t
21385 s,@sharedstatedir@,$sharedstatedir,;t t
21386 s,@localstatedir@,$localstatedir,;t t
21387 s,@libdir@,$libdir,;t t
21388 s,@includedir@,$includedir,;t t
21389 s,@oldincludedir@,$oldincludedir,;t t
21390 s,@infodir@,$infodir,;t t
21391 s,@mandir@,$mandir,;t t
21392 s,@build_alias@,$build_alias,;t t
21393 s,@host_alias@,$host_alias,;t t
21394 s,@target_alias@,$target_alias,;t t
21395 s,@DEFS@,$DEFS,;t t
21396 s,@ECHO_C@,$ECHO_C,;t t
21397 s,@ECHO_N@,$ECHO_N,;t t
21398 s,@ECHO_T@,$ECHO_T,;t t
21399 s,@LIBS@,$LIBS,;t t
21400 s,@BUILD_DIR@,$BUILD_DIR,;t t
21401 s,@TRUEPRG@,$TRUEPRG,;t t
21402 s,@FALSEPRG@,$FALSEPRG,;t t
21403 s,@VERSION@,$VERSION,;t t
21404 s,@DATE@,$DATE,;t t
21405 s,@LSMDATE@,$LSMDATE,;t t
21406 s,@CC@,$CC,;t t
21407 s,@CFLAGS@,$CFLAGS,;t t
21408 s,@LDFLAGS@,$LDFLAGS,;t t
21409 s,@CPPFLAGS@,$CPPFLAGS,;t t
21410 s,@ac_ct_CC@,$ac_ct_CC,;t t
21411 s,@EXEEXT@,$EXEEXT,;t t
21412 s,@OBJEXT@,$OBJEXT,;t t
21413 s,@CXX@,$CXX,;t t
21414 s,@CXXFLAGS@,$CXXFLAGS,;t t
21415 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21416 s,@CPP@,$CPP,;t t
21417 s,@EGREP@,$EGREP,;t t
21418 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21419 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21420 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21421 s,@RANLIB@,$RANLIB,;t t
21422 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21423 s,@MV@,$MV,;t t
21424 s,@RM@,$RM,;t t
21425 s,@CP@,$CP,;t t
21426 s,@SED@,$SED,;t t
21427 s,@AWK@,$AWK,;t t
21428 s,@ECHO@,$ECHO,;t t
21429 s,@CMP@,$CMP,;t t
21430 s,@TBL@,$TBL,;t t
21431 s,@AR@,$AR,;t t
21432 s,@OPENSSL@,$OPENSSL,;t t
21433 s,@MTX@,$MTX,;t t
21434 s,@PKGCONFIG@,$PKGCONFIG,;t t
21435 s,@WXCONFIG@,$WXCONFIG,;t t
21436 s,@ARFLAGS@,$ARFLAGS,;t t
21437 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
21438 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
21439 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
21440 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21441 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
21442 s,@build@,$build,;t t
21443 s,@build_cpu@,$build_cpu,;t t
21444 s,@build_vendor@,$build_vendor,;t t
21445 s,@build_os@,$build_os,;t t
21446 s,@host@,$host,;t t
21447 s,@host_cpu@,$host_cpu,;t t
21448 s,@host_vendor@,$host_vendor,;t t
21449 s,@host_os@,$host_os,;t t
21450 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
21451 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
21452 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
21453 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
21454 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
21455 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
21456 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
21457 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
21458 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
21459 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
21460 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
21461 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
21462 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
21463 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
21464 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
21465 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
21466 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
21467 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
21468 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
21469 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
21470 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
21471 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
21472 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
21473 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
21474 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
21475 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
21476 s,@MSGFMT@,$MSGFMT,;t t
21477 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
21478 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
21479 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
21480 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
21481 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
21482 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
21483 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
21484 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
21485 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
21486 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
21487 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
21488 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
21489 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
21490 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
21491 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
21492 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
21493 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
21494 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
21495 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
21496 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
21497 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
21498 s,@GNOME_DIR@,$GNOME_DIR,;t t
21499 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
21500 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
21501 s,@WX_DIR@,$WX_DIR,;t t
21502 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
21503 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
21504 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
21505 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
21506 s,@STATIC_FD@,$STATIC_FD,;t t
21507 s,@STATIC_SD@,$STATIC_SD,;t t
21508 s,@STATIC_DIR@,$STATIC_DIR,;t t
21509 s,@STATIC_CONS@,$STATIC_CONS,;t t
21510 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
21511 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
21512 s,@ALL_DIRS@,$ALL_DIRS,;t t
21513 s,@CONS_INC@,$CONS_INC,;t t
21514 s,@CONS_OBJ@,$CONS_OBJ,;t t
21515 s,@CONS_SRC@,$CONS_SRC,;t t
21516 s,@CONS_LIBS@,$CONS_LIBS,;t t
21517 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
21518 s,@READLINE_SRC@,$READLINE_SRC,;t t
21519 s,@working_dir@,$working_dir,;t t
21520 s,@scriptdir@,$scriptdir,;t t
21521 s,@dump_email@,$dump_email,;t t
21522 s,@job_email@,$job_email,;t t
21523 s,@smtp_host@,$smtp_host,;t t
21524 s,@piddir@,$piddir,;t t
21525 s,@subsysdir@,$subsysdir,;t t
21526 s,@baseport@,$baseport,;t t
21527 s,@dir_port@,$dir_port,;t t
21528 s,@fd_port@,$fd_port,;t t
21529 s,@sd_port@,$sd_port,;t t
21530 s,@dir_password@,$dir_password,;t t
21531 s,@fd_password@,$fd_password,;t t
21532 s,@sd_password@,$sd_password,;t t
21533 s,@dir_user@,$dir_user,;t t
21534 s,@dir_group@,$dir_group,;t t
21535 s,@sd_user@,$sd_user,;t t
21536 s,@sd_group@,$sd_group,;t t
21537 s,@fd_user@,$fd_user,;t t
21538 s,@fd_group@,$fd_group,;t t
21539 s,@SBINPERM@,$SBINPERM,;t t
21540 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
21541 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
21542 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
21543 s,@cats@,$cats,;t t
21544 s,@DB_NAME@,$DB_NAME,;t t
21545 s,@GETCONF@,$GETCONF,;t t
21546 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
21547 s,@X_CFLAGS@,$X_CFLAGS,;t t
21548 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21549 s,@X_LIBS@,$X_LIBS,;t t
21550 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21551 s,@LIBOBJS@,$LIBOBJS,;t t
21552 s,@ALLOCA@,$ALLOCA,;t t
21553 s,@FDLIBS@,$FDLIBS,;t t
21554 s,@DEBUG@,$DEBUG,;t t
21555 s,@DINCLUDE@,$DINCLUDE,;t t
21556 s,@DLIB@,$DLIB,;t t
21557 s,@DB_LIBS@,$DB_LIBS,;t t
21558 s,@WCFLAGS@,$WCFLAGS,;t t
21559 s,@WLDFLAGS@,$WLDFLAGS,;t t
21560 s,@OBJLIST@,$OBJLIST,;t t
21561 s,@hostname@,$hostname,;t t
21562 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
21563 s,@PSCMD@,$PSCMD,;t t
21564 s,@WIN32@,$WIN32,;t t
21565 s,@MACOSX@,$MACOSX,;t t
21566 s,@DISTNAME@,$DISTNAME,;t t
21567 s,@DISTVER@,$DISTVER,;t t
21568 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21569 /@MCOMMON@/r $MCOMMON
21570 s,@MCOMMON@,,;t t
21571 CEOF
21572
21573 _ACEOF
21574
21575   cat >>$CONFIG_STATUS <<\_ACEOF
21576   # Split the substitutions into bite-sized pieces for seds with
21577   # small command number limits, like on Digital OSF/1 and HP-UX.
21578   ac_max_sed_lines=48
21579   ac_sed_frag=1 # Number of current file.
21580   ac_beg=1 # First line for current file.
21581   ac_end=$ac_max_sed_lines # Line after last line for current file.
21582   ac_more_lines=:
21583   ac_sed_cmds=
21584   while $ac_more_lines; do
21585     if test $ac_beg -gt 1; then
21586       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21587     else
21588       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21589     fi
21590     if test ! -s $tmp/subs.frag; then
21591       ac_more_lines=false
21592     else
21593       # The purpose of the label and of the branching condition is to
21594       # speed up the sed processing (if there are no `@' at all, there
21595       # is no need to browse any of the substitutions).
21596       # These are the two extra sed commands mentioned above.
21597       (echo ':t
21598   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21599       if test -z "$ac_sed_cmds"; then
21600         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21601       else
21602         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21603       fi
21604       ac_sed_frag=`expr $ac_sed_frag + 1`
21605       ac_beg=$ac_end
21606       ac_end=`expr $ac_end + $ac_max_sed_lines`
21607     fi
21608   done
21609   if test -z "$ac_sed_cmds"; then
21610     ac_sed_cmds=cat
21611   fi
21612 fi # test -n "$CONFIG_FILES"
21613
21614 _ACEOF
21615 cat >>$CONFIG_STATUS <<\_ACEOF
21616 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21617   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21618   case $ac_file in
21619   - | *:- | *:-:* ) # input from stdin
21620         cat >$tmp/stdin
21621         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21622         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21623   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21624         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21625   * )   ac_file_in=$ac_file.in ;;
21626   esac
21627
21628   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21629   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21630 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21631          X"$ac_file" : 'X\(//\)[^/]' \| \
21632          X"$ac_file" : 'X\(//\)$' \| \
21633          X"$ac_file" : 'X\(/\)' \| \
21634          .     : '\(.\)' 2>/dev/null ||
21635 echo X"$ac_file" |
21636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21637           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21638           /^X\(\/\/\)$/{ s//\1/; q; }
21639           /^X\(\/\).*/{ s//\1/; q; }
21640           s/.*/./; q'`
21641   { if $as_mkdir_p; then
21642     mkdir -p "$ac_dir"
21643   else
21644     as_dir="$ac_dir"
21645     as_dirs=
21646     while test ! -d "$as_dir"; do
21647       as_dirs="$as_dir $as_dirs"
21648       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21650          X"$as_dir" : 'X\(//\)[^/]' \| \
21651          X"$as_dir" : 'X\(//\)$' \| \
21652          X"$as_dir" : 'X\(/\)' \| \
21653          .     : '\(.\)' 2>/dev/null ||
21654 echo X"$as_dir" |
21655     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21656           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21657           /^X\(\/\/\)$/{ s//\1/; q; }
21658           /^X\(\/\).*/{ s//\1/; q; }
21659           s/.*/./; q'`
21660     done
21661     test ! -n "$as_dirs" || mkdir $as_dirs
21662   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21663 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21664    { (exit 1); exit 1; }; }; }
21665
21666   ac_builddir=.
21667
21668 if test "$ac_dir" != .; then
21669   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21670   # A "../" for each directory in $ac_dir_suffix.
21671   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21672 else
21673   ac_dir_suffix= ac_top_builddir=
21674 fi
21675
21676 case $srcdir in
21677   .)  # No --srcdir option.  We are building in place.
21678     ac_srcdir=.
21679     if test -z "$ac_top_builddir"; then
21680        ac_top_srcdir=.
21681     else
21682        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21683     fi ;;
21684   [\\/]* | ?:[\\/]* )  # Absolute path.
21685     ac_srcdir=$srcdir$ac_dir_suffix;
21686     ac_top_srcdir=$srcdir ;;
21687   *) # Relative path.
21688     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21689     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21690 esac
21691
21692 # Do not use `cd foo && pwd` to compute absolute paths, because
21693 # the directories may not exist.
21694 case `pwd` in
21695 .) ac_abs_builddir="$ac_dir";;
21696 *)
21697   case "$ac_dir" in
21698   .) ac_abs_builddir=`pwd`;;
21699   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21700   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21701   esac;;
21702 esac
21703 case $ac_abs_builddir in
21704 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21705 *)
21706   case ${ac_top_builddir}. in
21707   .) ac_abs_top_builddir=$ac_abs_builddir;;
21708   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21709   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21710   esac;;
21711 esac
21712 case $ac_abs_builddir in
21713 .) ac_abs_srcdir=$ac_srcdir;;
21714 *)
21715   case $ac_srcdir in
21716   .) ac_abs_srcdir=$ac_abs_builddir;;
21717   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21718   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21719   esac;;
21720 esac
21721 case $ac_abs_builddir in
21722 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21723 *)
21724   case $ac_top_srcdir in
21725   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21726   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21727   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21728   esac;;
21729 esac
21730
21731
21732   case $INSTALL in
21733   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21734   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21735   esac
21736
21737   if test x"$ac_file" != x-; then
21738     { echo "$as_me:$LINENO: creating $ac_file" >&5
21739 echo "$as_me: creating $ac_file" >&6;}
21740     rm -f "$ac_file"
21741   fi
21742   # Let's still pretend it is `configure' which instantiates (i.e., don't
21743   # use $as_me), people would be surprised to read:
21744   #    /* config.h.  Generated by config.status.  */
21745   if test x"$ac_file" = x-; then
21746     configure_input=
21747   else
21748     configure_input="$ac_file.  "
21749   fi
21750   configure_input=$configure_input"Generated from `echo $ac_file_in |
21751                                      sed 's,.*/,,'` by configure."
21752
21753   # First look for the input files in the build tree, otherwise in the
21754   # src tree.
21755   ac_file_inputs=`IFS=:
21756     for f in $ac_file_in; do
21757       case $f in
21758       -) echo $tmp/stdin ;;
21759       [\\/$]*)
21760          # Absolute (can't be DOS-style, as IFS=:)
21761          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21762 echo "$as_me: error: cannot find input file: $f" >&2;}
21763    { (exit 1); exit 1; }; }
21764          echo "$f";;
21765       *) # Relative
21766          if test -f "$f"; then
21767            # Build tree
21768            echo "$f"
21769          elif test -f "$srcdir/$f"; then
21770            # Source tree
21771            echo "$srcdir/$f"
21772          else
21773            # /dev/null tree
21774            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21775 echo "$as_me: error: cannot find input file: $f" >&2;}
21776    { (exit 1); exit 1; }; }
21777          fi;;
21778       esac
21779     done` || { (exit 1); exit 1; }
21780 _ACEOF
21781 cat >>$CONFIG_STATUS <<_ACEOF
21782   sed "$ac_vpsub
21783 $extrasub
21784 _ACEOF
21785 cat >>$CONFIG_STATUS <<\_ACEOF
21786 :t
21787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21788 s,@configure_input@,$configure_input,;t t
21789 s,@srcdir@,$ac_srcdir,;t t
21790 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21791 s,@top_srcdir@,$ac_top_srcdir,;t t
21792 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21793 s,@builddir@,$ac_builddir,;t t
21794 s,@abs_builddir@,$ac_abs_builddir,;t t
21795 s,@top_builddir@,$ac_top_builddir,;t t
21796 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21797 s,@INSTALL@,$ac_INSTALL,;t t
21798 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21799   rm -f $tmp/stdin
21800   if test x"$ac_file" != x-; then
21801     mv $tmp/out $ac_file
21802   else
21803     cat $tmp/out
21804     rm -f $tmp/out
21805   fi
21806
21807 done
21808 _ACEOF
21809 cat >>$CONFIG_STATUS <<\_ACEOF
21810
21811 #
21812 # CONFIG_HEADER section.
21813 #
21814
21815 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21816 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21817 #
21818 # ac_d sets the value in "#define NAME VALUE" lines.
21819 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21820 ac_dB='[         ].*$,\1#\2'
21821 ac_dC=' '
21822 ac_dD=',;t'
21823 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21824 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21825 ac_uB='$,\1#\2define\3'
21826 ac_uC=' '
21827 ac_uD=',;t'
21828
21829 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21830   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21831   case $ac_file in
21832   - | *:- | *:-:* ) # input from stdin
21833         cat >$tmp/stdin
21834         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21835         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21836   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21837         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21838   * )   ac_file_in=$ac_file.in ;;
21839   esac
21840
21841   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21842 echo "$as_me: creating $ac_file" >&6;}
21843
21844   # First look for the input files in the build tree, otherwise in the
21845   # src tree.
21846   ac_file_inputs=`IFS=:
21847     for f in $ac_file_in; do
21848       case $f in
21849       -) echo $tmp/stdin ;;
21850       [\\/$]*)
21851          # Absolute (can't be DOS-style, as IFS=:)
21852          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21853 echo "$as_me: error: cannot find input file: $f" >&2;}
21854    { (exit 1); exit 1; }; }
21855          # Do quote $f, to prevent DOS paths from being IFS'd.
21856          echo "$f";;
21857       *) # Relative
21858          if test -f "$f"; then
21859            # Build tree
21860            echo "$f"
21861          elif test -f "$srcdir/$f"; then
21862            # Source tree
21863            echo "$srcdir/$f"
21864          else
21865            # /dev/null tree
21866            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21867 echo "$as_me: error: cannot find input file: $f" >&2;}
21868    { (exit 1); exit 1; }; }
21869          fi;;
21870       esac
21871     done` || { (exit 1); exit 1; }
21872   # Remove the trailing spaces.
21873   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21874
21875 _ACEOF
21876
21877 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21878 # `conftest.undefs', that substitutes the proper values into
21879 # config.h.in to produce config.h.  The first handles `#define'
21880 # templates, and the second `#undef' templates.
21881 # And first: Protect against being on the right side of a sed subst in
21882 # config.status.  Protect against being in an unquoted here document
21883 # in config.status.
21884 rm -f conftest.defines conftest.undefs
21885 # Using a here document instead of a string reduces the quoting nightmare.
21886 # Putting comments in sed scripts is not portable.
21887 #
21888 # `end' is used to avoid that the second main sed command (meant for
21889 # 0-ary CPP macros) applies to n-ary macro definitions.
21890 # See the Autoconf documentation for `clear'.
21891 cat >confdef2sed.sed <<\_ACEOF
21892 s/[\\&,]/\\&/g
21893 s,[\\$`],\\&,g
21894 t clear
21895 : clear
21896 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21897 t end
21898 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21899 : end
21900 _ACEOF
21901 # If some macros were called several times there might be several times
21902 # the same #defines, which is useless.  Nevertheless, we may not want to
21903 # sort them, since we want the *last* AC-DEFINE to be honored.
21904 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21905 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21906 rm -f confdef2sed.sed
21907
21908 # This sed command replaces #undef with comments.  This is necessary, for
21909 # example, in the case of _POSIX_SOURCE, which is predefined and required
21910 # on some systems where configure will not decide to define it.
21911 cat >>conftest.undefs <<\_ACEOF
21912 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21913 _ACEOF
21914
21915 # Break up conftest.defines because some shells have a limit on the size
21916 # of here documents, and old seds have small limits too (100 cmds).
21917 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21918 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21919 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21920 echo '  :' >>$CONFIG_STATUS
21921 rm -f conftest.tail
21922 while grep . conftest.defines >/dev/null
21923 do
21924   # Write a limited-size here document to $tmp/defines.sed.
21925   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21926   # Speed up: don't consider the non `#define' lines.
21927   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21928   # Work around the forget-to-reset-the-flag bug.
21929   echo 't clr' >>$CONFIG_STATUS
21930   echo ': clr' >>$CONFIG_STATUS
21931   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21932   echo 'CEOF
21933   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21934   rm -f $tmp/in
21935   mv $tmp/out $tmp/in
21936 ' >>$CONFIG_STATUS
21937   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21938   rm -f conftest.defines
21939   mv conftest.tail conftest.defines
21940 done
21941 rm -f conftest.defines
21942 echo '  fi # grep' >>$CONFIG_STATUS
21943 echo >>$CONFIG_STATUS
21944
21945 # Break up conftest.undefs because some shells have a limit on the size
21946 # of here documents, and old seds have small limits too (100 cmds).
21947 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21948 rm -f conftest.tail
21949 while grep . conftest.undefs >/dev/null
21950 do
21951   # Write a limited-size here document to $tmp/undefs.sed.
21952   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21953   # Speed up: don't consider the non `#undef'
21954   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21955   # Work around the forget-to-reset-the-flag bug.
21956   echo 't clr' >>$CONFIG_STATUS
21957   echo ': clr' >>$CONFIG_STATUS
21958   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21959   echo 'CEOF
21960   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21961   rm -f $tmp/in
21962   mv $tmp/out $tmp/in
21963 ' >>$CONFIG_STATUS
21964   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21965   rm -f conftest.undefs
21966   mv conftest.tail conftest.undefs
21967 done
21968 rm -f conftest.undefs
21969
21970 cat >>$CONFIG_STATUS <<\_ACEOF
21971   # Let's still pretend it is `configure' which instantiates (i.e., don't
21972   # use $as_me), people would be surprised to read:
21973   #    /* config.h.  Generated by config.status.  */
21974   if test x"$ac_file" = x-; then
21975     echo "/* Generated by configure.  */" >$tmp/config.h
21976   else
21977     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21978   fi
21979   cat $tmp/in >>$tmp/config.h
21980   rm -f $tmp/in
21981   if test x"$ac_file" != x-; then
21982     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21983       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21984 echo "$as_me: $ac_file is unchanged" >&6;}
21985     else
21986       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21987 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21988          X"$ac_file" : 'X\(//\)[^/]' \| \
21989          X"$ac_file" : 'X\(//\)$' \| \
21990          X"$ac_file" : 'X\(/\)' \| \
21991          .     : '\(.\)' 2>/dev/null ||
21992 echo X"$ac_file" |
21993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21994           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21995           /^X\(\/\/\)$/{ s//\1/; q; }
21996           /^X\(\/\).*/{ s//\1/; q; }
21997           s/.*/./; q'`
21998       { if $as_mkdir_p; then
21999     mkdir -p "$ac_dir"
22000   else
22001     as_dir="$ac_dir"
22002     as_dirs=
22003     while test ! -d "$as_dir"; do
22004       as_dirs="$as_dir $as_dirs"
22005       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22007          X"$as_dir" : 'X\(//\)[^/]' \| \
22008          X"$as_dir" : 'X\(//\)$' \| \
22009          X"$as_dir" : 'X\(/\)' \| \
22010          .     : '\(.\)' 2>/dev/null ||
22011 echo X"$as_dir" |
22012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22013           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22014           /^X\(\/\/\)$/{ s//\1/; q; }
22015           /^X\(\/\).*/{ s//\1/; q; }
22016           s/.*/./; q'`
22017     done
22018     test ! -n "$as_dirs" || mkdir $as_dirs
22019   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22020 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22021    { (exit 1); exit 1; }; }; }
22022
22023       rm -f $ac_file
22024       mv $tmp/config.h $ac_file
22025     fi
22026   else
22027     cat $tmp/config.h
22028     rm -f $tmp/config.h
22029   fi
22030 done
22031 _ACEOF
22032 cat >>$CONFIG_STATUS <<\_ACEOF
22033
22034 #
22035 # CONFIG_COMMANDS section.
22036 #
22037 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22038   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22039   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22040   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22041 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22042          X"$ac_dest" : 'X\(//\)[^/]' \| \
22043          X"$ac_dest" : 'X\(//\)$' \| \
22044          X"$ac_dest" : 'X\(/\)' \| \
22045          .     : '\(.\)' 2>/dev/null ||
22046 echo X"$ac_dest" |
22047     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22048           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22049           /^X\(\/\/\)$/{ s//\1/; q; }
22050           /^X\(\/\).*/{ s//\1/; q; }
22051           s/.*/./; q'`
22052   { if $as_mkdir_p; then
22053     mkdir -p "$ac_dir"
22054   else
22055     as_dir="$ac_dir"
22056     as_dirs=
22057     while test ! -d "$as_dir"; do
22058       as_dirs="$as_dir $as_dirs"
22059       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22061          X"$as_dir" : 'X\(//\)[^/]' \| \
22062          X"$as_dir" : 'X\(//\)$' \| \
22063          X"$as_dir" : 'X\(/\)' \| \
22064          .     : '\(.\)' 2>/dev/null ||
22065 echo X"$as_dir" |
22066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22067           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22068           /^X\(\/\/\)$/{ s//\1/; q; }
22069           /^X\(\/\).*/{ s//\1/; q; }
22070           s/.*/./; q'`
22071     done
22072     test ! -n "$as_dirs" || mkdir $as_dirs
22073   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22074 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22075    { (exit 1); exit 1; }; }; }
22076
22077   ac_builddir=.
22078
22079 if test "$ac_dir" != .; then
22080   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22081   # A "../" for each directory in $ac_dir_suffix.
22082   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22083 else
22084   ac_dir_suffix= ac_top_builddir=
22085 fi
22086
22087 case $srcdir in
22088   .)  # No --srcdir option.  We are building in place.
22089     ac_srcdir=.
22090     if test -z "$ac_top_builddir"; then
22091        ac_top_srcdir=.
22092     else
22093        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22094     fi ;;
22095   [\\/]* | ?:[\\/]* )  # Absolute path.
22096     ac_srcdir=$srcdir$ac_dir_suffix;
22097     ac_top_srcdir=$srcdir ;;
22098   *) # Relative path.
22099     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22100     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22101 esac
22102
22103 # Do not use `cd foo && pwd` to compute absolute paths, because
22104 # the directories may not exist.
22105 case `pwd` in
22106 .) ac_abs_builddir="$ac_dir";;
22107 *)
22108   case "$ac_dir" in
22109   .) ac_abs_builddir=`pwd`;;
22110   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22111   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22112   esac;;
22113 esac
22114 case $ac_abs_builddir in
22115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22116 *)
22117   case ${ac_top_builddir}. in
22118   .) ac_abs_top_builddir=$ac_abs_builddir;;
22119   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22120   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22121   esac;;
22122 esac
22123 case $ac_abs_builddir in
22124 .) ac_abs_srcdir=$ac_srcdir;;
22125 *)
22126   case $ac_srcdir in
22127   .) ac_abs_srcdir=$ac_abs_builddir;;
22128   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22129   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22130   esac;;
22131 esac
22132 case $ac_abs_builddir in
22133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22134 *)
22135   case $ac_top_srcdir in
22136   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22137   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22138   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22139   esac;;
22140 esac
22141
22142
22143   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22144 echo "$as_me: executing $ac_dest commands" >&6;}
22145   case $ac_dest in
22146     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22147  ;;
22148   esac
22149 done
22150 _ACEOF
22151
22152 cat >>$CONFIG_STATUS <<\_ACEOF
22153
22154 { (exit 0); exit 0; }
22155 _ACEOF
22156 chmod +x $CONFIG_STATUS
22157 ac_clean_files=$ac_clean_files_save
22158
22159
22160 # configure is writing to config.log, and then calls config.status.
22161 # config.status does its own redirection, appending to config.log.
22162 # Unfortunately, on DOS this fails, as config.log is still kept open
22163 # by configure, so config.status won't be able to write to it; its
22164 # output is simply discarded.  So we exec the FD to /dev/null,
22165 # effectively closing config.log, so it can be properly (re)opened and
22166 # appended to by config.status.  When coming back to configure, we
22167 # need to make the FD available again.
22168 if test "$no_create" != yes; then
22169   ac_cs_success=:
22170   ac_config_status_args=
22171   test "$silent" = yes &&
22172     ac_config_status_args="$ac_config_status_args --quiet"
22173   exec 5>/dev/null
22174   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22175   exec 5>>config.log
22176   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22177   # would make configure fail if this is the last instruction.
22178   $ac_cs_success || { (exit 1); exit 1; }
22179 fi
22180
22181
22182 cd scripts
22183 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22184 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22185 cd ..
22186
22187 c=src/cats
22188
22189 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
22190 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
22191
22192 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
22193 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
22194
22195 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
22196 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
22197
22198 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
22199 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
22200
22201 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
22202 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
22203
22204 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22205 chmod 755 $c/sqlite
22206 chmod 755 $c/mysql
22207
22208 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22209    largefile_support="yes"
22210 fi
22211
22212 #
22213 # A whole lot of hand springs to get the compiler version.
22214 #  This is because gcc changed the output in version 3.0
22215 #
22216 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22217 if test "x${CCVERSION}" = "x" ; then
22218   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22219 fi
22220 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22221 if test x"${CXXVERSION}" = x ; then
22222   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22223 fi
22224
22225 if test "x${subsysdir}" = "x${sbindir}" ; then
22226    echo " "
22227    echo " "
22228    echo "You have set --sbindir and --with-subsys-dir"
22229    echo "  both equal to: ${subsysdir} "
22230    echo "  This is not permitted. Please reconfigure."
22231    echo " "
22232    echo "Aborting configuration ..."
22233    echo " "
22234    echo " "
22235    exit 1
22236 fi
22237
22238 if test "x${db_name}" = "xInternal" ; then
22239    echo " "
22240    echo " "
22241    echo "You have not specified either --enable-client-only or one of the"
22242    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
22243    echo "  This is not permitted. Please reconfigure."
22244    echo " "
22245    echo "Aborting the configuration ..."
22246    echo " "
22247    echo " "
22248    exit 1
22249 fi
22250
22251 echo "
22252 Configuration on `date`:
22253
22254   Host:                       $host -- ${DISTNAME} ${DISTVER}
22255   Bacula version:             ${VERSION} (${DATE})
22256   Source code location:       ${srcdir}
22257   Install binaries:           ${sbindir}
22258   Install config files:       ${sysconfdir}
22259   Scripts directory:          ${scriptdir}
22260   Working directory:          ${working_dir}
22261   PID directory:              ${piddir}
22262   Subsys directory:           ${subsysdir}
22263   C Compiler:                 ${CC} ${CCVERSION}
22264   C++ Compiler:               ${CXX} ${CXXVERSION}
22265   Compiler flags:             ${WCFLAGS} ${CFLAGS}
22266   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
22267   Libraries:                  ${LIBS}
22268   Statically Linked Tools:    ${support_static_tools}
22269   Statically Linked FD:       ${support_static_fd}
22270   Statically Linked SD:       ${support_static_sd}
22271   Statically Linked DIR:      ${support_static_dir}
22272   Statically Linked CONS:     ${support_static_cons}
22273   Database type:              ${db_name}
22274   Database lib:               ${DB_LIBS}
22275
22276   Job Output Email:           ${job_email}
22277   Traceback Email:            ${dump_email}
22278   SMTP Host Address:          ${smtp_host}
22279
22280   Director Port:              ${dir_port}
22281   File daemon Port:           ${fd_port}
22282   Storage daemon Port:        ${sd_port}
22283
22284   Director User:              ${dir_user}
22285   Director Group:             ${dir_group}
22286   Storage Daemon User:        ${sd_user}
22287   Storage DaemonGroup:        ${sd_group}
22288   File Daemon User:           ${fd_user}
22289   File Daemon Group:          ${fd_group}
22290
22291   SQL binaries Directory      ${SQL_BINDIR}
22292
22293   Large file support:         $largefile_support
22294   Bacula conio support:       ${got_conio} ${CONS_LIBS}
22295   readline support:           ${got_readline} ${PRTREADLINE_SRC}
22296   TCP Wrappers support:       ${TCPW_MSG}
22297   ZLIB support:               ${have_zlib}
22298   enable-smartalloc:          ${support_smartalloc}
22299   enable-gnome:               ${support_gnome} ${gnome_version}
22300   enable-wx-console:          ${support_wx_console}
22301   enable-tray-monitor:        ${support_tray_monitor}
22302   client-only:                ${build_client_only}
22303   ACL support:                ${have_acl}
22304
22305   " > config.out
22306
22307 cat config.out
22308
22309 # old stuff
22310 # cweb support:               ${got_cweb} ${CWEB_SRC}
22311   # gmp support:                      ${got_gmp} ${GMP_SRC}