]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
- Add check for df path for dvd_freespace
[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 ECHO CMP TBL AR OPENSSL MTX DF MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK 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 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 PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
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 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures this package to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --enable-gnome          enable build of gnome-console GUI disabled
868   --enable-wx-console     enable build of wxWidgets console disabled
869   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
870   --enable-smartalloc     enable smartalloc debugging support disabled
871   --enable-static-tools   enable static tape tools disabled
872   --enable-static-fd      enable static File daemon disabled
873   --enable-static-sd      enable static Storage daemon disabled
874   --enable-static-dir     enable static Director disabled
875   --enable-static-cons    enable static Console disabled
876   --enable-client-only    build client (File daemon) only disabled
877   --disable-conio            disable conio support enabled
878
879   --disable-readline      disable readline support disable
880
881   --disable-largefile     omit support for large files
882
883 Optional Packages:
884   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
885   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
886  --with-readline=DIR             specify readline library directory
887
888   --with-python=DIR       Include Python support.  DIR is the Python base
889                           install directory, default is to search through
890                           a number of common places for the Python files.
891   --with-tcp-wrappers=DIR        enable tcpwrappers support
892   --with-openssl[=DIR]
893                           Include OpenSSL support. DIR is the OpenSSL base
894   --with-working-dir=PATH        specify path of Bacula working directory
895   --with-scriptdir=PATH    specify path of Bacula scripts directory
896   --with-dump-email=EMAIL        dump email address
897   --with-job-email=EMAIL         job output email address
898   --with-smtp-host=HOST          SMTP mail host address
899   --with-pid-dir=PATH            specify location of Bacula pid files
900   --with-subsys-dir=PATH         specify location of Bacula subsys file
901   --with-baseport=PORT           specify base port address for daemons
902   --with-dir-password=PASSWORD   specify Director's password
903   --with-fd-password=PASSWORD    specify Client's password
904   --with-sd-password=PASSWORD    specify Storage daemon's password
905   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
906   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
907   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
908   --with-dir-user=USER           specify user for Director daemon
909   --with-dir-group=GROUP                 specify group for Director daemon
910   --with-sd-user=USER            specify user for Storage daemon
911   --with-sd-group=GROUP          specify group for Storage daemon
912   --with-fd-user=USER            specify user for File daemon
913   --with-fd-group=GROUP          specify group for File daemon
914   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
915   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
916                           base install directory, defaults to /usr/local/pgsql
917
918   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
919                           install directory, default is to search through
920                           a number of common places for the MySQL files.
921
922   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
923                           install directory, default is to search through
924                           a number of common places for the MySQL files.
925
926   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
927                           install directory, default is to search through
928                           a number of common places for the SQLite3 files.
929
930   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
931                           install directory, default is to search through
932                           a number of common places for the SQLite files.
933   --with-x                use the X Window System
934
935 Some influential environment variables:
936   CC          C compiler command
937   CFLAGS      C compiler flags
938   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
939               nonstandard directory <lib dir>
940   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
941               headers in a nonstandard directory <include dir>
942   CXX         C++ compiler command
943   CXXFLAGS    C++ compiler flags
944   CPP         C preprocessor
945   WXCONFIG    wx-config command. On some systems, you must set it to
946               wx-config-2.6 to use wxWidgets 2.6.
947   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
948
949 Use these variables to override the choices made by `configure' or to help
950 it to find libraries and programs with nonstandard names/locations.
951
952 _ACEOF
953 fi
954
955 if test "$ac_init_help" = "recursive"; then
956   # If there are subdirs, report their specific --help.
957   ac_popdir=`pwd`
958   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
959     test -d $ac_dir || continue
960     ac_builddir=.
961
962 if test "$ac_dir" != .; then
963   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
964   # A "../" for each directory in $ac_dir_suffix.
965   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
966 else
967   ac_dir_suffix= ac_top_builddir=
968 fi
969
970 case $srcdir in
971   .)  # No --srcdir option.  We are building in place.
972     ac_srcdir=.
973     if test -z "$ac_top_builddir"; then
974        ac_top_srcdir=.
975     else
976        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
977     fi ;;
978   [\\/]* | ?:[\\/]* )  # Absolute path.
979     ac_srcdir=$srcdir$ac_dir_suffix;
980     ac_top_srcdir=$srcdir ;;
981   *) # Relative path.
982     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
983     ac_top_srcdir=$ac_top_builddir$srcdir ;;
984 esac
985
986 # Do not use `cd foo && pwd` to compute absolute paths, because
987 # the directories may not exist.
988 case `pwd` in
989 .) ac_abs_builddir="$ac_dir";;
990 *)
991   case "$ac_dir" in
992   .) ac_abs_builddir=`pwd`;;
993   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
994   *) ac_abs_builddir=`pwd`/"$ac_dir";;
995   esac;;
996 esac
997 case $ac_abs_builddir in
998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
999 *)
1000   case ${ac_top_builddir}. in
1001   .) ac_abs_top_builddir=$ac_abs_builddir;;
1002   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1003   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1004   esac;;
1005 esac
1006 case $ac_abs_builddir in
1007 .) ac_abs_srcdir=$ac_srcdir;;
1008 *)
1009   case $ac_srcdir in
1010   .) ac_abs_srcdir=$ac_abs_builddir;;
1011   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1012   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1013   esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1017 *)
1018   case $ac_top_srcdir in
1019   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1020   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1021   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1022   esac;;
1023 esac
1024
1025     cd $ac_dir
1026     # Check for guested configure; otherwise get Cygnus style configure.
1027     if test -f $ac_srcdir/configure.gnu; then
1028       echo
1029       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1030     elif test -f $ac_srcdir/configure; then
1031       echo
1032       $SHELL $ac_srcdir/configure  --help=recursive
1033     elif test -f $ac_srcdir/configure.ac ||
1034            test -f $ac_srcdir/configure.in; then
1035       echo
1036       $ac_configure --help
1037     else
1038       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1039     fi
1040     cd $ac_popdir
1041   done
1042 fi
1043
1044 test -n "$ac_init_help" && exit 0
1045 if $ac_init_version; then
1046   cat <<\_ACEOF
1047
1048 Copyright (C) 2003 Free Software Foundation, Inc.
1049 This configure script is free software; the Free Software Foundation
1050 gives unlimited permission to copy, distribute and modify it.
1051 _ACEOF
1052   exit 0
1053 fi
1054 exec 5>config.log
1055 cat >&5 <<_ACEOF
1056 This file contains any messages produced by compilers while
1057 running configure, to aid debugging if configure makes a mistake.
1058
1059 It was created by $as_me, which was
1060 generated by GNU Autoconf 2.59.  Invocation command line was
1061
1062   $ $0 $@
1063
1064 _ACEOF
1065 {
1066 cat <<_ASUNAME
1067 ## --------- ##
1068 ## Platform. ##
1069 ## --------- ##
1070
1071 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1072 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1073 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1074 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1075 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1076
1077 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1078 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1079
1080 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1081 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1082 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1083 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1084 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1085 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1086 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1087
1088 _ASUNAME
1089
1090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1091 for as_dir in $PATH
1092 do
1093   IFS=$as_save_IFS
1094   test -z "$as_dir" && as_dir=.
1095   echo "PATH: $as_dir"
1096 done
1097
1098 } >&5
1099
1100 cat >&5 <<_ACEOF
1101
1102
1103 ## ----------- ##
1104 ## Core tests. ##
1105 ## ----------- ##
1106
1107 _ACEOF
1108
1109
1110 # Keep a trace of the command line.
1111 # Strip out --no-create and --no-recursion so they do not pile up.
1112 # Strip out --silent because we don't want to record it for future runs.
1113 # Also quote any args containing shell meta-characters.
1114 # Make two passes to allow for proper duplicate-argument suppression.
1115 ac_configure_args=
1116 ac_configure_args0=
1117 ac_configure_args1=
1118 ac_sep=
1119 ac_must_keep_next=false
1120 for ac_pass in 1 2
1121 do
1122   for ac_arg
1123   do
1124     case $ac_arg in
1125     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1126     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127     | -silent | --silent | --silen | --sile | --sil)
1128       continue ;;
1129     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1130       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1131     esac
1132     case $ac_pass in
1133     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1134     2)
1135       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1136       if test $ac_must_keep_next = true; then
1137         ac_must_keep_next=false # Got value, back to normal.
1138       else
1139         case $ac_arg in
1140           *=* | --config-cache | -C | -disable-* | --disable-* \
1141           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1142           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1143           | -with-* | --with-* | -without-* | --without-* | --x)
1144             case "$ac_configure_args0 " in
1145               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1146             esac
1147             ;;
1148           -* ) ac_must_keep_next=true ;;
1149         esac
1150       fi
1151       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1152       # Get rid of the leading space.
1153       ac_sep=" "
1154       ;;
1155     esac
1156   done
1157 done
1158 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1159 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1160
1161 # When interrupted or exit'd, cleanup temporary files, and complete
1162 # config.log.  We remove comments because anyway the quotes in there
1163 # would cause problems or look ugly.
1164 # WARNING: Be sure not to use single quotes in there, as some shells,
1165 # such as our DU 5.0 friend, will then `close' the trap.
1166 trap 'exit_status=$?
1167   # Save into config.log some information that might help in debugging.
1168   {
1169     echo
1170
1171     cat <<\_ASBOX
1172 ## ---------------- ##
1173 ## Cache variables. ##
1174 ## ---------------- ##
1175 _ASBOX
1176     echo
1177     # The following way of writing the cache mishandles newlines in values,
1178 {
1179   (set) 2>&1 |
1180     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1181     *ac_space=\ *)
1182       sed -n \
1183         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1184           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1185       ;;
1186     *)
1187       sed -n \
1188         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1189       ;;
1190     esac;
1191 }
1192     echo
1193
1194     cat <<\_ASBOX
1195 ## ----------------- ##
1196 ## Output variables. ##
1197 ## ----------------- ##
1198 _ASBOX
1199     echo
1200     for ac_var in $ac_subst_vars
1201     do
1202       eval ac_val=$`echo $ac_var`
1203       echo "$ac_var='"'"'$ac_val'"'"'"
1204     done | sort
1205     echo
1206
1207     if test -n "$ac_subst_files"; then
1208       cat <<\_ASBOX
1209 ## ------------- ##
1210 ## Output files. ##
1211 ## ------------- ##
1212 _ASBOX
1213       echo
1214       for ac_var in $ac_subst_files
1215       do
1216         eval ac_val=$`echo $ac_var`
1217         echo "$ac_var='"'"'$ac_val'"'"'"
1218       done | sort
1219       echo
1220     fi
1221
1222     if test -s confdefs.h; then
1223       cat <<\_ASBOX
1224 ## ----------- ##
1225 ## confdefs.h. ##
1226 ## ----------- ##
1227 _ASBOX
1228       echo
1229       sed "/^$/d" confdefs.h | sort
1230       echo
1231     fi
1232     test "$ac_signal" != 0 &&
1233       echo "$as_me: caught signal $ac_signal"
1234     echo "$as_me: exit $exit_status"
1235   } >&5
1236   rm -f core *.core &&
1237   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1238     exit $exit_status
1239      ' 0
1240 for ac_signal in 1 2 13 15; do
1241   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1242 done
1243 ac_signal=0
1244
1245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1246 rm -rf conftest* confdefs.h
1247 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1248 echo >confdefs.h
1249
1250 # Predefined preprocessor variables.
1251
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_NAME "$PACKAGE_NAME"
1254 _ACEOF
1255
1256
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1259 _ACEOF
1260
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1264 _ACEOF
1265
1266
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_STRING "$PACKAGE_STRING"
1269 _ACEOF
1270
1271
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1274 _ACEOF
1275
1276
1277 # Let the site file select an alternate cache file if it wants to.
1278 # Prefer explicitly selected file to automatically selected ones.
1279 if test -z "$CONFIG_SITE"; then
1280   if test "x$prefix" != xNONE; then
1281     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1282   else
1283     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1284   fi
1285 fi
1286 for ac_site_file in $CONFIG_SITE; do
1287   if test -r "$ac_site_file"; then
1288     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1289 echo "$as_me: loading site script $ac_site_file" >&6;}
1290     sed 's/^/| /' "$ac_site_file" >&5
1291     . "$ac_site_file"
1292   fi
1293 done
1294
1295 if test -r "$cache_file"; then
1296   # Some versions of bash will fail to source /dev/null (special
1297   # files actually), so we avoid doing that.
1298   if test -f "$cache_file"; then
1299     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1300 echo "$as_me: loading cache $cache_file" >&6;}
1301     case $cache_file in
1302       [\\/]* | ?:[\\/]* ) . $cache_file;;
1303       *)                      . ./$cache_file;;
1304     esac
1305   fi
1306 else
1307   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1308 echo "$as_me: creating cache $cache_file" >&6;}
1309   >$cache_file
1310 fi
1311
1312 # Check that the precious variables saved in the cache have kept the same
1313 # value.
1314 ac_cache_corrupted=false
1315 for ac_var in `(set) 2>&1 |
1316                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1317   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1318   eval ac_new_set=\$ac_env_${ac_var}_set
1319   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1320   eval ac_new_val="\$ac_env_${ac_var}_value"
1321   case $ac_old_set,$ac_new_set in
1322     set,)
1323       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1325       ac_cache_corrupted=: ;;
1326     ,set)
1327       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1328 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1329       ac_cache_corrupted=: ;;
1330     ,);;
1331     *)
1332       if test "x$ac_old_val" != "x$ac_new_val"; then
1333         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1334 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1335         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1336 echo "$as_me:   former value:  $ac_old_val" >&2;}
1337         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1338 echo "$as_me:   current value: $ac_new_val" >&2;}
1339         ac_cache_corrupted=:
1340       fi;;
1341   esac
1342   # Pass precious variables to config.status.
1343   if test "$ac_new_set" = set; then
1344     case $ac_new_val in
1345     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1346       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1347     *) ac_arg=$ac_var=$ac_new_val ;;
1348     esac
1349     case " $ac_configure_args " in
1350       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1351       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1352     esac
1353   fi
1354 done
1355 if $ac_cache_corrupted; then
1356   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1357 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1358   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1359 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1360    { (exit 1); exit 1; }; }
1361 fi
1362
1363 ac_ext=c
1364 ac_cpp='$CPP $CPPFLAGS'
1365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387 BUILD_DIR=`pwd`
1388 cd ..
1389 TOP_DIR=`pwd`
1390 cd ${BUILD_DIR}
1391
1392 ac_aux_dir=
1393 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1394   if test -f $ac_dir/install-sh; then
1395     ac_aux_dir=$ac_dir
1396     ac_install_sh="$ac_aux_dir/install-sh -c"
1397     break
1398   elif test -f $ac_dir/install.sh; then
1399     ac_aux_dir=$ac_dir
1400     ac_install_sh="$ac_aux_dir/install.sh -c"
1401     break
1402   elif test -f $ac_dir/shtool; then
1403     ac_aux_dir=$ac_dir
1404     ac_install_sh="$ac_aux_dir/shtool install -c"
1405     break
1406   fi
1407 done
1408 if test -z "$ac_aux_dir"; then
1409   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1410 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1411    { (exit 1); exit 1; }; }
1412 fi
1413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1416
1417           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1418
1419
1420
1421
1422
1423 for ac_prog in true
1424 do
1425   # Extract the first word of "$ac_prog", so it can be a program name with args.
1426 set dummy $ac_prog; ac_word=$2
1427 echo "$as_me:$LINENO: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1430   echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432   case $TRUEPRG in
1433   [\\/]* | ?:[\\/]*)
1434   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1435   ;;
1436   *)
1437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438 for as_dir in $PATH
1439 do
1440   IFS=$as_save_IFS
1441   test -z "$as_dir" && as_dir=.
1442   for ac_exec_ext in '' $ac_executable_extensions; do
1443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446     break 2
1447   fi
1448 done
1449 done
1450
1451   ;;
1452 esac
1453 fi
1454 TRUEPRG=$ac_cv_path_TRUEPRG
1455
1456 if test -n "$TRUEPRG"; then
1457   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1458 echo "${ECHO_T}$TRUEPRG" >&6
1459 else
1460   echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1462 fi
1463
1464   test -n "$TRUEPRG" && break
1465 done
1466 test -n "$TRUEPRG" || TRUEPRG=":"
1467
1468 for ac_prog in false
1469 do
1470   # Extract the first word of "$ac_prog", so it can be a program name with args.
1471 set dummy $ac_prog; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1475   echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477   case $FALSEPRG in
1478   [\\/]* | ?:[\\/]*)
1479   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1480   ;;
1481   *)
1482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1484 do
1485   IFS=$as_save_IFS
1486   test -z "$as_dir" && as_dir=.
1487   for ac_exec_ext in '' $ac_executable_extensions; do
1488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491     break 2
1492   fi
1493 done
1494 done
1495
1496   ;;
1497 esac
1498 fi
1499 FALSEPRG=$ac_cv_path_FALSEPRG
1500
1501 if test -n "$FALSEPRG"; then
1502   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1503 echo "${ECHO_T}$FALSEPRG" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509   test -n "$FALSEPRG" && break
1510 done
1511 test -n "$FALSEPRG" || FALSEPRG=":"
1512
1513
1514 #AC_CANONICAL_HOST
1515
1516 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1518 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1519 echo "configuring for bacula $VERSION ($DATE)"
1520
1521
1522
1523 ac_ext=c
1524 ac_cpp='$CPP $CPPFLAGS'
1525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 if test -n "$ac_tool_prefix"; then
1529   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_CC+set}" = set; then
1534   echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536   if test -n "$CC"; then
1537   ac_cv_prog_CC="$CC" # Let the user override the test.
1538 else
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 for as_dir in $PATH
1541 do
1542   IFS=$as_save_IFS
1543   test -z "$as_dir" && as_dir=.
1544   for ac_exec_ext in '' $ac_executable_extensions; do
1545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548     break 2
1549   fi
1550 done
1551 done
1552
1553 fi
1554 fi
1555 CC=$ac_cv_prog_CC
1556 if test -n "$CC"; then
1557   echo "$as_me:$LINENO: result: $CC" >&5
1558 echo "${ECHO_T}$CC" >&6
1559 else
1560   echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1562 fi
1563
1564 fi
1565 if test -z "$ac_cv_prog_CC"; then
1566   ac_ct_CC=$CC
1567   # Extract the first word of "gcc", so it can be a program name with args.
1568 set dummy gcc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572   echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574   if test -n "$ac_ct_CC"; then
1575   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1576 else
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1579 do
1580   IFS=$as_save_IFS
1581   test -z "$as_dir" && as_dir=.
1582   for ac_exec_ext in '' $ac_executable_extensions; do
1583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584     ac_cv_prog_ac_ct_CC="gcc"
1585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586     break 2
1587   fi
1588 done
1589 done
1590
1591 fi
1592 fi
1593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594 if test -n "$ac_ct_CC"; then
1595   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596 echo "${ECHO_T}$ac_ct_CC" >&6
1597 else
1598   echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1600 fi
1601
1602   CC=$ac_ct_CC
1603 else
1604   CC="$ac_cv_prog_CC"
1605 fi
1606
1607 if test -z "$CC"; then
1608   if test -n "$ac_tool_prefix"; then
1609   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}cc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   if test -n "$CC"; then
1617   ac_cv_prog_CC="$CC" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1621 do
1622   IFS=$as_save_IFS
1623   test -z "$as_dir" && as_dir=.
1624   for ac_exec_ext in '' $ac_executable_extensions; do
1625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626     ac_cv_prog_CC="${ac_tool_prefix}cc"
1627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628     break 2
1629   fi
1630 done
1631 done
1632
1633 fi
1634 fi
1635 CC=$ac_cv_prog_CC
1636 if test -n "$CC"; then
1637   echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1639 else
1640   echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1642 fi
1643
1644 fi
1645 if test -z "$ac_cv_prog_CC"; then
1646   ac_ct_CC=$CC
1647   # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   if test -n "$ac_ct_CC"; then
1655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
1660   IFS=$as_save_IFS
1661   test -z "$as_dir" && as_dir=.
1662   for ac_exec_ext in '' $ac_executable_extensions; do
1663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664     ac_cv_prog_ac_ct_CC="cc"
1665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666     break 2
1667   fi
1668 done
1669 done
1670
1671 fi
1672 fi
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1677 else
1678   echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1680 fi
1681
1682   CC=$ac_ct_CC
1683 else
1684   CC="$ac_cv_prog_CC"
1685 fi
1686
1687 fi
1688 if test -z "$CC"; then
1689   # Extract the first word of "cc", so it can be a program name with args.
1690 set dummy cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   if test -n "$CC"; then
1697   ac_cv_prog_CC="$CC" # Let the user override the test.
1698 else
1699   ac_prog_rejected=no
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   for ac_exec_ext in '' $ac_executable_extensions; do
1706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1708        ac_prog_rejected=yes
1709        continue
1710      fi
1711     ac_cv_prog_CC="cc"
1712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718 if test $ac_prog_rejected = yes; then
1719   # We found a bogon in the path, so make sure we never use it.
1720   set dummy $ac_cv_prog_CC
1721   shift
1722   if test $# != 0; then
1723     # We chose a different compiler from the bogus one.
1724     # However, it has the same basename, so the bogon will be chosen
1725     # first if we set CC to just the basename; use the full file name.
1726     shift
1727     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1728   fi
1729 fi
1730 fi
1731 fi
1732 CC=$ac_cv_prog_CC
1733 if test -n "$CC"; then
1734   echo "$as_me:$LINENO: result: $CC" >&5
1735 echo "${ECHO_T}$CC" >&6
1736 else
1737   echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1739 fi
1740
1741 fi
1742 if test -z "$CC"; then
1743   if test -n "$ac_tool_prefix"; then
1744   for ac_prog in cl
1745   do
1746     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   if test -n "$CC"; then
1754   ac_cv_prog_CC="$CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759   IFS=$as_save_IFS
1760   test -z "$as_dir" && as_dir=.
1761   for ac_exec_ext in '' $ac_executable_extensions; do
1762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765     break 2
1766   fi
1767 done
1768 done
1769
1770 fi
1771 fi
1772 CC=$ac_cv_prog_CC
1773 if test -n "$CC"; then
1774   echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1776 else
1777   echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1780
1781     test -n "$CC" && break
1782   done
1783 fi
1784 if test -z "$CC"; then
1785   ac_ct_CC=$CC
1786   for ac_prog in cl
1787 do
1788   # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy $ac_prog; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   if test -n "$ac_ct_CC"; then
1796   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801   IFS=$as_save_IFS
1802   test -z "$as_dir" && as_dir=.
1803   for ac_exec_ext in '' $ac_executable_extensions; do
1804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805     ac_cv_prog_ac_ct_CC="$ac_prog"
1806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807     break 2
1808   fi
1809 done
1810 done
1811
1812 fi
1813 fi
1814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815 if test -n "$ac_ct_CC"; then
1816   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817 echo "${ECHO_T}$ac_ct_CC" >&6
1818 else
1819   echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1821 fi
1822
1823   test -n "$ac_ct_CC" && break
1824 done
1825
1826   CC=$ac_ct_CC
1827 fi
1828
1829 fi
1830
1831
1832 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: no acceptable C compiler found in \$PATH
1835 See \`config.log' for more details." >&2;}
1836    { (exit 1); exit 1; }; }
1837
1838 # Provide some information about the compiler.
1839 echo "$as_me:$LINENO:" \
1840      "checking for C compiler version" >&5
1841 ac_compiler=`set X $ac_compile; echo $2`
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1843   (eval $ac_compiler --version </dev/null >&5) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1848   (eval $ac_compiler -v </dev/null >&5) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1853   (eval $ac_compiler -V </dev/null >&5) 2>&5
1854   ac_status=$?
1855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856   (exit $ac_status); }
1857
1858 cat >conftest.$ac_ext <<_ACEOF
1859 /* confdefs.h.  */
1860 _ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h.  */
1864
1865 int
1866 main ()
1867 {
1868
1869   ;
1870   return 0;
1871 }
1872 _ACEOF
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1877 # of exeext.
1878 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1879 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882   (eval $ac_link_default) 2>&5
1883   ac_status=$?
1884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885   (exit $ac_status); }; then
1886   # Find the output, starting from the most likely.  This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888 # resort.
1889
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1892 ac_cv_exeext=
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1895 do
1896   test -f "$ac_file" || continue
1897   case $ac_file in
1898     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1899         ;;
1900     conftest.$ac_ext )
1901         # This is the source file.
1902         ;;
1903     [ab].out )
1904         # We found the default executable, but exeext='' is most
1905         # certainly right.
1906         break;;
1907     *.* )
1908         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909         # FIXME: I believe we export ac_cv_exeext for Libtool,
1910         # but it would be cool to find out if it's true.  Does anybody
1911         # maintain Libtool? --akim.
1912         export ac_cv_exeext
1913         break;;
1914     * )
1915         break;;
1916   esac
1917 done
1918 else
1919   echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926    { (exit 77); exit 77; }; }
1927 fi
1928
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1932
1933 # Check the compiler produces executables we can run.  If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940   if { ac_try='./$ac_file'
1941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942   (eval $ac_try) 2>&5
1943   ac_status=$?
1944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945   (exit $ac_status); }; }; then
1946     cross_compiling=no
1947   else
1948     if test "$cross_compiling" = maybe; then
1949         cross_compiling=yes
1950     else
1951         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957    { (exit 1); exit 1; }; }
1958     fi
1959   fi
1960 fi
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1963
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run.  If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1972
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976   (eval $ac_link) 2>&5
1977   ac_status=$?
1978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979   (exit $ac_status); }; then
1980   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1983 # `rm'.
1984 for ac_file in conftest.exe conftest conftest.*; do
1985   test -f "$ac_file" || continue
1986   case $ac_file in
1987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989           export ac_cv_exeext
1990           break;;
1991     * ) break;;
1992   esac
1993 done
1994 else
1995   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999    { (exit 1); exit 1; }; }
2000 fi
2001
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2005
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2008 ac_exeext=$EXEEXT
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   cat >conftest.$ac_ext <<_ACEOF
2015 /* confdefs.h.  */
2016 _ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h.  */
2020
2021 int
2022 main ()
2023 {
2024
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 rm -f conftest.o conftest.obj
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031   (eval $ac_compile) 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); }; then
2035   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2036   case $ac_file in
2037     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2038     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2039        break;;
2040   esac
2041 done
2042 else
2043   echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2045
2046 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049 See \`config.log' for more details." >&2;}
2050    { (exit 1); exit 1; }; }
2051 fi
2052
2053 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2054 fi
2055 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056 echo "${ECHO_T}$ac_cv_objext" >&6
2057 OBJEXT=$ac_cv_objext
2058 ac_objext=$OBJEXT
2059 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   cat >conftest.$ac_ext <<_ACEOF
2065 /* confdefs.h.  */
2066 _ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h.  */
2070
2071 int
2072 main ()
2073 {
2074 #ifndef __GNUC__
2075        choke me
2076 #endif
2077
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084   (eval $ac_compile) 2>conftest.er1
2085   ac_status=$?
2086   grep -v '^ *+' conftest.er1 >conftest.err
2087   rm -f conftest.er1
2088   cat conftest.err >&5
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); } &&
2091          { ac_try='test -z "$ac_c_werror_flag"
2092                          || test ! -s conftest.err'
2093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094   (eval $ac_try) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }; } &&
2098          { ac_try='test -s conftest.$ac_objext'
2099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100   (eval $ac_try) 2>&5
2101   ac_status=$?
2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103   (exit $ac_status); }; }; then
2104   ac_compiler_gnu=yes
2105 else
2106   echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2108
2109 ac_compiler_gnu=no
2110 fi
2111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2113
2114 fi
2115 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2116 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2117 GCC=`test $ac_compiler_gnu = yes && echo yes`
2118 ac_test_CFLAGS=${CFLAGS+set}
2119 ac_save_CFLAGS=$CFLAGS
2120 CFLAGS="-g"
2121 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2122 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2123 if test "${ac_cv_prog_cc_g+set}" = set; then
2124   echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126   cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132
2133 int
2134 main ()
2135 {
2136
2137   ;
2138   return 0;
2139 }
2140 _ACEOF
2141 rm -f conftest.$ac_objext
2142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143   (eval $ac_compile) 2>conftest.er1
2144   ac_status=$?
2145   grep -v '^ *+' conftest.er1 >conftest.err
2146   rm -f conftest.er1
2147   cat conftest.err >&5
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); } &&
2150          { ac_try='test -z "$ac_c_werror_flag"
2151                          || test ! -s conftest.err'
2152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153   (eval $ac_try) 2>&5
2154   ac_status=$?
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); }; } &&
2157          { ac_try='test -s conftest.$ac_objext'
2158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159   (eval $ac_try) 2>&5
2160   ac_status=$?
2161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162   (exit $ac_status); }; }; then
2163   ac_cv_prog_cc_g=yes
2164 else
2165   echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 ac_cv_prog_cc_g=no
2169 fi
2170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2171 fi
2172 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2173 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2174 if test "$ac_test_CFLAGS" = set; then
2175   CFLAGS=$ac_save_CFLAGS
2176 elif test $ac_cv_prog_cc_g = yes; then
2177   if test "$GCC" = yes; then
2178     CFLAGS="-g -O2"
2179   else
2180     CFLAGS="-g"
2181   fi
2182 else
2183   if test "$GCC" = yes; then
2184     CFLAGS="-O2"
2185   else
2186     CFLAGS=
2187   fi
2188 fi
2189 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2190 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2191 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   ac_cv_prog_cc_stdc=no
2195 ac_save_CC=$CC
2196 cat >conftest.$ac_ext <<_ACEOF
2197 /* confdefs.h.  */
2198 _ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h.  */
2202 #include <stdarg.h>
2203 #include <stdio.h>
2204 #include <sys/types.h>
2205 #include <sys/stat.h>
2206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2207 struct buf { int x; };
2208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2209 static char *e (p, i)
2210      char **p;
2211      int i;
2212 {
2213   return p[i];
2214 }
2215 static char *f (char * (*g) (char **, int), char **p, ...)
2216 {
2217   char *s;
2218   va_list v;
2219   va_start (v,p);
2220   s = g (p, va_arg (v,int));
2221   va_end (v);
2222   return s;
2223 }
2224
2225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2226    function prototypes and stuff, but not '\xHH' hex character constants.
2227    These don't provoke an error unfortunately, instead are silently treated
2228    as 'x'.  The following induces an error, until -std1 is added to get
2229    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2230    array size at least.  It's necessary to write '\x00'==0 to get something
2231    that's true only with -std1.  */
2232 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2233
2234 int test (int i, double x);
2235 struct s1 {int (*f) (int a);};
2236 struct s2 {int (*f) (double a);};
2237 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2238 int argc;
2239 char **argv;
2240 int
2241 main ()
2242 {
2243 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 # Don't try gcc -ansi; that turns off useful extensions and
2249 # breaks some systems' header files.
2250 # AIX                   -qlanglvl=ansi
2251 # Ultrix and OSF/1      -std1
2252 # HP-UX 10.20 and later -Ae
2253 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2254 # SVR4                  -Xc -D__EXTENSIONS__
2255 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2256 do
2257   CC="$ac_save_CC $ac_arg"
2258   rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260   (eval $ac_compile) 2>conftest.er1
2261   ac_status=$?
2262   grep -v '^ *+' conftest.er1 >conftest.err
2263   rm -f conftest.er1
2264   cat conftest.err >&5
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); } &&
2267          { ac_try='test -z "$ac_c_werror_flag"
2268                          || test ! -s conftest.err'
2269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270   (eval $ac_try) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; } &&
2274          { ac_try='test -s conftest.$ac_objext'
2275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276   (eval $ac_try) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); }; }; then
2280   ac_cv_prog_cc_stdc=$ac_arg
2281 break
2282 else
2283   echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286 fi
2287 rm -f conftest.err conftest.$ac_objext
2288 done
2289 rm -f conftest.$ac_ext conftest.$ac_objext
2290 CC=$ac_save_CC
2291
2292 fi
2293
2294 case "x$ac_cv_prog_cc_stdc" in
2295   x|xno)
2296     echo "$as_me:$LINENO: result: none needed" >&5
2297 echo "${ECHO_T}none needed" >&6 ;;
2298   *)
2299     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2300 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2301     CC="$CC $ac_cv_prog_cc_stdc" ;;
2302 esac
2303
2304 # Some people use a C++ compiler to compile C.  Since we use `exit',
2305 # in C++ we need to declare it.  In case someone uses the same compiler
2306 # for both compiling C and C++ we need to have the C++ compiler decide
2307 # the declaration of exit, since it's the most demanding environment.
2308 cat >conftest.$ac_ext <<_ACEOF
2309 #ifndef __cplusplus
2310   choke me
2311 #endif
2312 _ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315   (eval $ac_compile) 2>conftest.er1
2316   ac_status=$?
2317   grep -v '^ *+' conftest.er1 >conftest.err
2318   rm -f conftest.er1
2319   cat conftest.err >&5
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); } &&
2322          { ac_try='test -z "$ac_c_werror_flag"
2323                          || test ! -s conftest.err'
2324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325   (eval $ac_try) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }; } &&
2329          { ac_try='test -s conftest.$ac_objext'
2330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331   (eval $ac_try) 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); }; }; then
2335   for ac_declaration in \
2336    '' \
2337    'extern "C" void std::exit (int) throw (); using std::exit;' \
2338    'extern "C" void std::exit (int); using std::exit;' \
2339    'extern "C" void exit (int) throw ();' \
2340    'extern "C" void exit (int);' \
2341    'void exit (int);'
2342 do
2343   cat >conftest.$ac_ext <<_ACEOF
2344 /* confdefs.h.  */
2345 _ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h.  */
2349 $ac_declaration
2350 #include <stdlib.h>
2351 int
2352 main ()
2353 {
2354 exit (42);
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361   (eval $ac_compile) 2>conftest.er1
2362   ac_status=$?
2363   grep -v '^ *+' conftest.er1 >conftest.err
2364   rm -f conftest.er1
2365   cat conftest.err >&5
2366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367   (exit $ac_status); } &&
2368          { ac_try='test -z "$ac_c_werror_flag"
2369                          || test ! -s conftest.err'
2370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371   (eval $ac_try) 2>&5
2372   ac_status=$?
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); }; } &&
2375          { ac_try='test -s conftest.$ac_objext'
2376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377   (eval $ac_try) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }; }; then
2381   :
2382 else
2383   echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2385
2386 continue
2387 fi
2388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389   cat >conftest.$ac_ext <<_ACEOF
2390 /* confdefs.h.  */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h.  */
2395 $ac_declaration
2396 int
2397 main ()
2398 {
2399 exit (42);
2400   ;
2401   return 0;
2402 }
2403 _ACEOF
2404 rm -f conftest.$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406   (eval $ac_compile) 2>conftest.er1
2407   ac_status=$?
2408   grep -v '^ *+' conftest.er1 >conftest.err
2409   rm -f conftest.er1
2410   cat conftest.err >&5
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); } &&
2413          { ac_try='test -z "$ac_c_werror_flag"
2414                          || test ! -s conftest.err'
2415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416   (eval $ac_try) 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; } &&
2420          { ac_try='test -s conftest.$ac_objext'
2421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422   (eval $ac_try) 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }; }; then
2426   break
2427 else
2428   echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2430
2431 fi
2432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2433 done
2434 rm -f conftest*
2435 if test -n "$ac_declaration"; then
2436   echo '#ifdef __cplusplus' >>confdefs.h
2437   echo $ac_declaration      >>confdefs.h
2438   echo '#endif'             >>confdefs.h
2439 fi
2440
2441 else
2442   echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2444
2445 fi
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447 ac_ext=c
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452
2453 ac_ext=cc
2454 ac_cpp='$CXXCPP $CPPFLAGS'
2455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2458 if test -n "$ac_tool_prefix"; then
2459   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2460   do
2461     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463 echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2465 if test "${ac_cv_prog_CXX+set}" = set; then
2466   echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468   if test -n "$CXX"; then
2469   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474   IFS=$as_save_IFS
2475   test -z "$as_dir" && as_dir=.
2476   for ac_exec_ext in '' $ac_executable_extensions; do
2477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2478     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480     break 2
2481   fi
2482 done
2483 done
2484
2485 fi
2486 fi
2487 CXX=$ac_cv_prog_CXX
2488 if test -n "$CXX"; then
2489   echo "$as_me:$LINENO: result: $CXX" >&5
2490 echo "${ECHO_T}$CXX" >&6
2491 else
2492   echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6
2494 fi
2495
2496     test -n "$CXX" && break
2497   done
2498 fi
2499 if test -z "$CXX"; then
2500   ac_ct_CXX=$CXX
2501   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2502 do
2503   # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   if test -n "$ac_ct_CXX"; then
2511   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516   IFS=$as_save_IFS
2517   test -z "$as_dir" && as_dir=.
2518   for ac_exec_ext in '' $ac_executable_extensions; do
2519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520     ac_cv_prog_ac_ct_CXX="$ac_prog"
2521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523   fi
2524 done
2525 done
2526
2527 fi
2528 fi
2529 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2530 if test -n "$ac_ct_CXX"; then
2531   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2532 echo "${ECHO_T}$ac_ct_CXX" >&6
2533 else
2534   echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6
2536 fi
2537
2538   test -n "$ac_ct_CXX" && break
2539 done
2540 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2541
2542   CXX=$ac_ct_CXX
2543 fi
2544
2545
2546 # Provide some information about the compiler.
2547 echo "$as_me:$LINENO:" \
2548      "checking for C++ compiler version" >&5
2549 ac_compiler=`set X $ac_compile; echo $2`
2550 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2551   (eval $ac_compiler --version </dev/null >&5) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }
2555 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2556   (eval $ac_compiler -v </dev/null >&5) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }
2560 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2561   (eval $ac_compiler -V </dev/null >&5) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }
2565
2566 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2567 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2568 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2569   echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571   cat >conftest.$ac_ext <<_ACEOF
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577
2578 int
2579 main ()
2580 {
2581 #ifndef __GNUC__
2582        choke me
2583 #endif
2584
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591   (eval $ac_compile) 2>conftest.er1
2592   ac_status=$?
2593   grep -v '^ *+' conftest.er1 >conftest.err
2594   rm -f conftest.er1
2595   cat conftest.err >&5
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); } &&
2598          { ac_try='test -z "$ac_cxx_werror_flag"
2599                          || test ! -s conftest.err'
2600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601   (eval $ac_try) 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; } &&
2605          { ac_try='test -s conftest.$ac_objext'
2606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607   (eval $ac_try) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; }; then
2611   ac_compiler_gnu=yes
2612 else
2613   echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616 ac_compiler_gnu=no
2617 fi
2618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2619 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2620
2621 fi
2622 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2623 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2624 GXX=`test $ac_compiler_gnu = yes && echo yes`
2625 ac_test_CXXFLAGS=${CXXFLAGS+set}
2626 ac_save_CXXFLAGS=$CXXFLAGS
2627 CXXFLAGS="-g"
2628 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2629 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2630 if test "${ac_cv_prog_cxx_g+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   cat >conftest.$ac_ext <<_ACEOF
2634 /* confdefs.h.  */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h.  */
2639
2640 int
2641 main ()
2642 {
2643
2644   ;
2645   return 0;
2646 }
2647 _ACEOF
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650   (eval $ac_compile) 2>conftest.er1
2651   ac_status=$?
2652   grep -v '^ *+' conftest.er1 >conftest.err
2653   rm -f conftest.er1
2654   cat conftest.err >&5
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); } &&
2657          { ac_try='test -z "$ac_cxx_werror_flag"
2658                          || test ! -s conftest.err'
2659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660   (eval $ac_try) 2>&5
2661   ac_status=$?
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); }; } &&
2664          { ac_try='test -s conftest.$ac_objext'
2665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666   (eval $ac_try) 2>&5
2667   ac_status=$?
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); }; }; then
2670   ac_cv_prog_cxx_g=yes
2671 else
2672   echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2674
2675 ac_cv_prog_cxx_g=no
2676 fi
2677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2678 fi
2679 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2680 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2681 if test "$ac_test_CXXFLAGS" = set; then
2682   CXXFLAGS=$ac_save_CXXFLAGS
2683 elif test $ac_cv_prog_cxx_g = yes; then
2684   if test "$GXX" = yes; then
2685     CXXFLAGS="-g -O2"
2686   else
2687     CXXFLAGS="-g"
2688   fi
2689 else
2690   if test "$GXX" = yes; then
2691     CXXFLAGS="-O2"
2692   else
2693     CXXFLAGS=
2694   fi
2695 fi
2696 for ac_declaration in \
2697    '' \
2698    'extern "C" void std::exit (int) throw (); using std::exit;' \
2699    'extern "C" void std::exit (int); using std::exit;' \
2700    'extern "C" void exit (int) throw ();' \
2701    'extern "C" void exit (int);' \
2702    'void exit (int);'
2703 do
2704   cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h.  */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h.  */
2710 $ac_declaration
2711 #include <stdlib.h>
2712 int
2713 main ()
2714 {
2715 exit (42);
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722   (eval $ac_compile) 2>conftest.er1
2723   ac_status=$?
2724   grep -v '^ *+' conftest.er1 >conftest.err
2725   rm -f conftest.er1
2726   cat conftest.err >&5
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } &&
2729          { ac_try='test -z "$ac_cxx_werror_flag"
2730                          || test ! -s conftest.err'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; } &&
2736          { ac_try='test -s conftest.$ac_objext'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   :
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747 continue
2748 fi
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750   cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h.  */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h.  */
2756 $ac_declaration
2757 int
2758 main ()
2759 {
2760 exit (42);
2761   ;
2762   return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767   (eval $ac_compile) 2>conftest.er1
2768   ac_status=$?
2769   grep -v '^ *+' conftest.er1 >conftest.err
2770   rm -f conftest.er1
2771   cat conftest.err >&5
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); } &&
2774          { ac_try='test -z "$ac_cxx_werror_flag"
2775                          || test ! -s conftest.err'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; } &&
2781          { ac_try='test -s conftest.$ac_objext'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; }; then
2787   break
2788 else
2789   echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792 fi
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 done
2795 rm -f conftest*
2796 if test -n "$ac_declaration"; then
2797   echo '#ifdef __cplusplus' >>confdefs.h
2798   echo $ac_declaration      >>confdefs.h
2799   echo '#endif'             >>confdefs.h
2800 fi
2801
2802 ac_ext=c
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807
2808 if test "x$CC" != xcc; then
2809   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2810 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2811 else
2812   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2813 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2814 fi
2815 set dummy $CC; ac_cc=`echo $2 |
2816                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2817 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2818   echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820   cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h.  */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h.  */
2826
2827 int
2828 main ()
2829 {
2830
2831   ;
2832   return 0;
2833 }
2834 _ACEOF
2835 # Make sure it works both with $CC and with simple cc.
2836 # We do the test twice because some compilers refuse to overwrite an
2837 # existing .o file with -o, though they will create one.
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   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2851   if test "x$CC" != xcc; then
2852     # Test first that cc exists at all.
2853     if { ac_try='cc -c conftest.$ac_ext >&5'
2854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855   (eval $ac_try) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; }; then
2859       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2860       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861   (eval $ac_try) 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); } &&
2865          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866   (eval $ac_try) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); };
2870       then
2871         # cc works too.
2872         :
2873       else
2874         # cc exists but doesn't like -o.
2875         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2876       fi
2877     fi
2878   fi
2879 else
2880   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2881 fi
2882 rm -f conftest*
2883
2884 fi
2885 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2886   echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6
2888 else
2889   echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6
2891
2892 cat >>confdefs.h <<\_ACEOF
2893 #define NO_MINUS_C_MINUS_O 1
2894 _ACEOF
2895
2896 fi
2897
2898 ac_ext=c
2899 ac_cpp='$CPP $CPPFLAGS'
2900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2904 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2905 # On Suns, sometimes $CPP names a directory.
2906 if test -n "$CPP" && test -d "$CPP"; then
2907   CPP=
2908 fi
2909 if test -z "$CPP"; then
2910   if test "${ac_cv_prog_CPP+set}" = set; then
2911   echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913       # Double quotes because CPP needs to be expanded
2914     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2915     do
2916       ac_preproc_ok=false
2917 for ac_c_preproc_warn_flag in '' yes
2918 do
2919   # Use a header file that comes with gcc, so configuring glibc
2920   # with a fresh cross-compiler works.
2921   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922   # <limits.h> exists even on freestanding compilers.
2923   # On the NeXT, cc -E runs the code through the compiler's parser,
2924   # not just through cpp. "Syntax error" is here to catch this case.
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #ifdef __STDC__
2932 # include <limits.h>
2933 #else
2934 # include <assert.h>
2935 #endif
2936                      Syntax error
2937 _ACEOF
2938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2940   ac_status=$?
2941   grep -v '^ *+' conftest.er1 >conftest.err
2942   rm -f conftest.er1
2943   cat conftest.err >&5
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); } >/dev/null; then
2946   if test -s conftest.err; then
2947     ac_cpp_err=$ac_c_preproc_warn_flag
2948     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2949   else
2950     ac_cpp_err=
2951   fi
2952 else
2953   ac_cpp_err=yes
2954 fi
2955 if test -z "$ac_cpp_err"; then
2956   :
2957 else
2958   echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2960
2961   # Broken: fails on valid input.
2962 continue
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966   # OK, works on sane cases.  Now check whether non-existent headers
2967   # can be detected and how.
2968   cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974 #include <ac_nonexistent.h>
2975 _ACEOF
2976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2978   ac_status=$?
2979   grep -v '^ *+' conftest.er1 >conftest.err
2980   rm -f conftest.er1
2981   cat conftest.err >&5
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); } >/dev/null; then
2984   if test -s conftest.err; then
2985     ac_cpp_err=$ac_c_preproc_warn_flag
2986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2987   else
2988     ac_cpp_err=
2989   fi
2990 else
2991   ac_cpp_err=yes
2992 fi
2993 if test -z "$ac_cpp_err"; then
2994   # Broken: success on invalid input.
2995 continue
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000   # Passes both tests.
3001 ac_preproc_ok=:
3002 break
3003 fi
3004 rm -f conftest.err conftest.$ac_ext
3005
3006 done
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3010   break
3011 fi
3012
3013     done
3014     ac_cv_prog_CPP=$CPP
3015
3016 fi
3017   CPP=$ac_cv_prog_CPP
3018 else
3019   ac_cv_prog_CPP=$CPP
3020 fi
3021 echo "$as_me:$LINENO: result: $CPP" >&5
3022 echo "${ECHO_T}$CPP" >&6
3023 ac_preproc_ok=false
3024 for ac_c_preproc_warn_flag in '' yes
3025 do
3026   # Use a header file that comes with gcc, so configuring glibc
3027   # with a fresh cross-compiler works.
3028   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3029   # <limits.h> exists even on freestanding compilers.
3030   # On the NeXT, cc -E runs the code through the compiler's parser,
3031   # not just through cpp. "Syntax error" is here to catch this case.
3032   cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h.  */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h.  */
3038 #ifdef __STDC__
3039 # include <limits.h>
3040 #else
3041 # include <assert.h>
3042 #endif
3043                      Syntax error
3044 _ACEOF
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } >/dev/null; then
3053   if test -s conftest.err; then
3054     ac_cpp_err=$ac_c_preproc_warn_flag
3055     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3056   else
3057     ac_cpp_err=
3058   fi
3059 else
3060   ac_cpp_err=yes
3061 fi
3062 if test -z "$ac_cpp_err"; then
3063   :
3064 else
3065   echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068   # Broken: fails on valid input.
3069 continue
3070 fi
3071 rm -f conftest.err conftest.$ac_ext
3072
3073   # OK, works on sane cases.  Now check whether non-existent headers
3074   # can be detected and how.
3075   cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081 #include <ac_nonexistent.h>
3082 _ACEOF
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3085   ac_status=$?
3086   grep -v '^ *+' conftest.er1 >conftest.err
3087   rm -f conftest.er1
3088   cat conftest.err >&5
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); } >/dev/null; then
3091   if test -s conftest.err; then
3092     ac_cpp_err=$ac_c_preproc_warn_flag
3093     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3094   else
3095     ac_cpp_err=
3096   fi
3097 else
3098   ac_cpp_err=yes
3099 fi
3100 if test -z "$ac_cpp_err"; then
3101   # Broken: success on invalid input.
3102 continue
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107   # Passes both tests.
3108 ac_preproc_ok=:
3109 break
3110 fi
3111 rm -f conftest.err conftest.$ac_ext
3112
3113 done
3114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3115 rm -f conftest.err conftest.$ac_ext
3116 if $ac_preproc_ok; then
3117   :
3118 else
3119   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3122 See \`config.log' for more details." >&2;}
3123    { (exit 1); exit 1; }; }
3124 fi
3125
3126 ac_ext=c
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131
3132
3133 echo "$as_me:$LINENO: checking for egrep" >&5
3134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3135 if test "${ac_cv_prog_egrep+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3139     then ac_cv_prog_egrep='grep -E'
3140     else ac_cv_prog_egrep='egrep'
3141     fi
3142 fi
3143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3145  EGREP=$ac_cv_prog_egrep
3146
3147
3148 if test $ac_cv_c_compiler_gnu = yes; then
3149     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3150 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3151 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3152   echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154     ac_pattern="Autoconf.*'x'"
3155   cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161 #include <sgtty.h>
3162 Autoconf TIOCGETP
3163 _ACEOF
3164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3165   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3166   ac_cv_prog_gcc_traditional=yes
3167 else
3168   ac_cv_prog_gcc_traditional=no
3169 fi
3170 rm -f conftest*
3171
3172
3173   if test $ac_cv_prog_gcc_traditional = no; then
3174     cat >conftest.$ac_ext <<_ACEOF
3175 /* confdefs.h.  */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h.  */
3180 #include <termio.h>
3181 Autoconf TCGETA
3182 _ACEOF
3183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3184   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3185   ac_cv_prog_gcc_traditional=yes
3186 fi
3187 rm -f conftest*
3188
3189   fi
3190 fi
3191 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3192 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3193   if test $ac_cv_prog_gcc_traditional = yes; then
3194     CC="$CC -traditional"
3195   fi
3196 fi
3197
3198 if test "x$CC" = xgcc; then
3199    cat >>confdefs.h <<\_ACEOF
3200 #define HAVE_GCC 1
3201 _ACEOF
3202
3203 fi
3204 # Extract the first word of "$CXX", so it can be a program name with args.
3205 set dummy $CXX; ac_word=$2
3206 echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_path_CXX+set}" = set; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211   case $CXX in
3212   [\\/]* | ?:[\\/]*)
3213   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3214   ;;
3215   *)
3216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219   IFS=$as_save_IFS
3220   test -z "$as_dir" && as_dir=.
3221   for ac_exec_ext in '' $ac_executable_extensions; do
3222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225     break 2
3226   fi
3227 done
3228 done
3229
3230   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3231   ;;
3232 esac
3233 fi
3234 CXX=$ac_cv_path_CXX
3235
3236 if test -n "$CXX"; then
3237   echo "$as_me:$LINENO: result: $CXX" >&5
3238 echo "${ECHO_T}$CXX" >&6
3239 else
3240   echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6
3242 fi
3243
3244 if test ! -e $CXX; then
3245    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3246 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3247    { (exit 1); exit 1; }; }
3248 fi
3249
3250 # Find a good install program.  We prefer a C program (faster),
3251 # so one script is as good as another.  But avoid the broken or
3252 # incompatible versions:
3253 # SysV /etc/install, /usr/sbin/install
3254 # SunOS /usr/etc/install
3255 # IRIX /sbin/install
3256 # AIX /bin/install
3257 # AmigaOS /C/install, which installs bootblocks on floppy discs
3258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3261 # OS/2's system install, which has a completely different semantic
3262 # ./install, which can be erroneously created by make from ./install.sh.
3263 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3265 if test -z "$INSTALL"; then
3266 if test "${ac_cv_path_install+set}" = set; then
3267   echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272   IFS=$as_save_IFS
3273   test -z "$as_dir" && as_dir=.
3274   # Account for people who put trailing slashes in PATH elements.
3275 case $as_dir/ in
3276   ./ | .// | /cC/* | \
3277   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3278   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3279   /usr/ucb/* ) ;;
3280   *)
3281     # OSF1 and SCO ODT 3.0 have their own names for install.
3282     # Don't use installbsd from OSF since it installs stuff as root
3283     # by default.
3284     for ac_prog in ginstall scoinst install; do
3285       for ac_exec_ext in '' $ac_executable_extensions; do
3286         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3287           if test $ac_prog = install &&
3288             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3289             # AIX install.  It has an incompatible calling convention.
3290             :
3291           elif test $ac_prog = install &&
3292             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3293             # program-specific install script used by HP pwplus--don't use.
3294             :
3295           else
3296             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3297             break 3
3298           fi
3299         fi
3300       done
3301     done
3302     ;;
3303 esac
3304 done
3305
3306
3307 fi
3308   if test "${ac_cv_path_install+set}" = set; then
3309     INSTALL=$ac_cv_path_install
3310   else
3311     # As a last resort, use the slow shell script.  We don't cache a
3312     # path for INSTALL within a source directory, because that will
3313     # break other packages using the cache if that directory is
3314     # removed, or if the path is relative.
3315     INSTALL=$ac_install_sh
3316   fi
3317 fi
3318 echo "$as_me:$LINENO: result: $INSTALL" >&5
3319 echo "${ECHO_T}$INSTALL" >&6
3320
3321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3322 # It thinks the first close brace ends the variable substitution.
3323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3324
3325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3326
3327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3328
3329 if test -n "$ac_tool_prefix"; then
3330   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3331 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_RANLIB+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   if test -n "$RANLIB"; then
3338   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3342 do
3343   IFS=$as_save_IFS
3344   test -z "$as_dir" && as_dir=.
3345   for ac_exec_ext in '' $ac_executable_extensions; do
3346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349     break 2
3350   fi
3351 done
3352 done
3353
3354 fi
3355 fi
3356 RANLIB=$ac_cv_prog_RANLIB
3357 if test -n "$RANLIB"; then
3358   echo "$as_me:$LINENO: result: $RANLIB" >&5
3359 echo "${ECHO_T}$RANLIB" >&6
3360 else
3361   echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3363 fi
3364
3365 fi
3366 if test -z "$ac_cv_prog_RANLIB"; then
3367   ac_ct_RANLIB=$RANLIB
3368   # Extract the first word of "ranlib", so it can be a program name with args.
3369 set dummy ranlib; ac_word=$2
3370 echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375   if test -n "$ac_ct_RANLIB"; then
3376   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381   IFS=$as_save_IFS
3382   test -z "$as_dir" && as_dir=.
3383   for ac_exec_ext in '' $ac_executable_extensions; do
3384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385     ac_cv_prog_ac_ct_RANLIB="ranlib"
3386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387     break 2
3388   fi
3389 done
3390 done
3391
3392   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3393 fi
3394 fi
3395 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3396 if test -n "$ac_ct_RANLIB"; then
3397   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3398 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3399 else
3400   echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3402 fi
3403
3404   RANLIB=$ac_ct_RANLIB
3405 else
3406   RANLIB="$ac_cv_prog_RANLIB"
3407 fi
3408
3409 # Extract the first word of "mv", so it can be a program name with args.
3410 set dummy mv; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_path_MV+set}" = set; then
3414   echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416   case $MV in
3417   [\\/]* | ?:[\\/]*)
3418   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3419   ;;
3420   *)
3421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424   IFS=$as_save_IFS
3425   test -z "$as_dir" && as_dir=.
3426   for ac_exec_ext in '' $ac_executable_extensions; do
3427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430     break 2
3431   fi
3432 done
3433 done
3434
3435   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3436   ;;
3437 esac
3438 fi
3439 MV=$ac_cv_path_MV
3440
3441 if test -n "$MV"; then
3442   echo "$as_me:$LINENO: result: $MV" >&5
3443 echo "${ECHO_T}$MV" >&6
3444 else
3445   echo "$as_me:$LINENO: result: no" >&5
3446 echo "${ECHO_T}no" >&6
3447 fi
3448
3449 # Extract the first word of "rm", so it can be a program name with args.
3450 set dummy rm; ac_word=$2
3451 echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3453 if test "${ac_cv_path_RM+set}" = set; then
3454   echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456   case $RM in
3457   [\\/]* | ?:[\\/]*)
3458   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3459   ;;
3460   *)
3461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464   IFS=$as_save_IFS
3465   test -z "$as_dir" && as_dir=.
3466   for ac_exec_ext in '' $ac_executable_extensions; do
3467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470     break 2
3471   fi
3472 done
3473 done
3474
3475   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3476   ;;
3477 esac
3478 fi
3479 RM=$ac_cv_path_RM
3480
3481 if test -n "$RM"; then
3482   echo "$as_me:$LINENO: result: $RM" >&5
3483 echo "${ECHO_T}$RM" >&6
3484 else
3485   echo "$as_me:$LINENO: result: no" >&5
3486 echo "${ECHO_T}no" >&6
3487 fi
3488
3489 # Extract the first word of "cp", so it can be a program name with args.
3490 set dummy cp; ac_word=$2
3491 echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493 if test "${ac_cv_path_CP+set}" = set; then
3494   echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496   case $CP in
3497   [\\/]* | ?:[\\/]*)
3498   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3499   ;;
3500   *)
3501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504   IFS=$as_save_IFS
3505   test -z "$as_dir" && as_dir=.
3506   for ac_exec_ext in '' $ac_executable_extensions; do
3507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510     break 2
3511   fi
3512 done
3513 done
3514
3515   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3516   ;;
3517 esac
3518 fi
3519 CP=$ac_cv_path_CP
3520
3521 if test -n "$CP"; then
3522   echo "$as_me:$LINENO: result: $CP" >&5
3523 echo "${ECHO_T}$CP" >&6
3524 else
3525   echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3527 fi
3528
3529 # Extract the first word of "sed", so it can be a program name with args.
3530 set dummy sed; ac_word=$2
3531 echo "$as_me:$LINENO: checking for $ac_word" >&5
3532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533 if test "${ac_cv_path_SED+set}" = set; then
3534   echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536   case $SED in
3537   [\\/]* | ?:[\\/]*)
3538   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3539   ;;
3540   *)
3541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544   IFS=$as_save_IFS
3545   test -z "$as_dir" && as_dir=.
3546   for ac_exec_ext in '' $ac_executable_extensions; do
3547   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550     break 2
3551   fi
3552 done
3553 done
3554
3555   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3556   ;;
3557 esac
3558 fi
3559 SED=$ac_cv_path_SED
3560
3561 if test -n "$SED"; then
3562   echo "$as_me:$LINENO: result: $SED" >&5
3563 echo "${ECHO_T}$SED" >&6
3564 else
3565   echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3567 fi
3568
3569 # Extract the first word of "echo", so it can be a program name with args.
3570 set dummy echo; ac_word=$2
3571 echo "$as_me:$LINENO: checking for $ac_word" >&5
3572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3573 if test "${ac_cv_path_ECHO+set}" = set; then
3574   echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576   case $ECHO in
3577   [\\/]* | ?:[\\/]*)
3578   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3579   ;;
3580   *)
3581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584   IFS=$as_save_IFS
3585   test -z "$as_dir" && as_dir=.
3586   for ac_exec_ext in '' $ac_executable_extensions; do
3587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3590     break 2
3591   fi
3592 done
3593 done
3594
3595   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3596   ;;
3597 esac
3598 fi
3599 ECHO=$ac_cv_path_ECHO
3600
3601 if test -n "$ECHO"; then
3602   echo "$as_me:$LINENO: result: $ECHO" >&5
3603 echo "${ECHO_T}$ECHO" >&6
3604 else
3605   echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6
3607 fi
3608
3609 # Extract the first word of "cmp", so it can be a program name with args.
3610 set dummy cmp; ac_word=$2
3611 echo "$as_me:$LINENO: checking for $ac_word" >&5
3612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613 if test "${ac_cv_path_CMP+set}" = set; then
3614   echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616   case $CMP in
3617   [\\/]* | ?:[\\/]*)
3618   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3619   ;;
3620   *)
3621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624   IFS=$as_save_IFS
3625   test -z "$as_dir" && as_dir=.
3626   for ac_exec_ext in '' $ac_executable_extensions; do
3627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3630     break 2
3631   fi
3632 done
3633 done
3634
3635   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3636   ;;
3637 esac
3638 fi
3639 CMP=$ac_cv_path_CMP
3640
3641 if test -n "$CMP"; then
3642   echo "$as_me:$LINENO: result: $CMP" >&5
3643 echo "${ECHO_T}$CMP" >&6
3644 else
3645   echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6
3647 fi
3648
3649 # Extract the first word of "tbl", so it can be a program name with args.
3650 set dummy tbl; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_path_TBL+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   case $TBL in
3657   [\\/]* | ?:[\\/]*)
3658   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3659   ;;
3660   *)
3661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   test -z "$as_dir" && as_dir=.
3666   for ac_exec_ext in '' $ac_executable_extensions; do
3667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670     break 2
3671   fi
3672 done
3673 done
3674
3675   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3676   ;;
3677 esac
3678 fi
3679 TBL=$ac_cv_path_TBL
3680
3681 if test -n "$TBL"; then
3682   echo "$as_me:$LINENO: result: $TBL" >&5
3683 echo "${ECHO_T}$TBL" >&6
3684 else
3685   echo "$as_me:$LINENO: result: no" >&5
3686 echo "${ECHO_T}no" >&6
3687 fi
3688
3689 # Extract the first word of "ar", so it can be a program name with args.
3690 set dummy ar; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_path_AR+set}" = set; then
3694   echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696   case $AR in
3697   [\\/]* | ?:[\\/]*)
3698   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3699   ;;
3700   *)
3701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704   IFS=$as_save_IFS
3705   test -z "$as_dir" && as_dir=.
3706   for ac_exec_ext in '' $ac_executable_extensions; do
3707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710     break 2
3711   fi
3712 done
3713 done
3714
3715   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3716   ;;
3717 esac
3718 fi
3719 AR=$ac_cv_path_AR
3720
3721 if test -n "$AR"; then
3722   echo "$as_me:$LINENO: result: $AR" >&5
3723 echo "${ECHO_T}$AR" >&6
3724 else
3725   echo "$as_me:$LINENO: result: no" >&5
3726 echo "${ECHO_T}no" >&6
3727 fi
3728
3729 # Extract the first word of "openssl", so it can be a program name with args.
3730 set dummy openssl; ac_word=$2
3731 echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733 if test "${ac_cv_path_OPENSSL+set}" = set; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   case $OPENSSL in
3737   [\\/]* | ?:[\\/]*)
3738   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3739   ;;
3740   *)
3741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_exec_ext in '' $ac_executable_extensions; do
3747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753 done
3754
3755   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3756   ;;
3757 esac
3758 fi
3759 OPENSSL=$ac_cv_path_OPENSSL
3760
3761 if test -n "$OPENSSL"; then
3762   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3763 echo "${ECHO_T}$OPENSSL" >&6
3764 else
3765   echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3767 fi
3768
3769 # Extract the first word of "mtx", so it can be a program name with args.
3770 set dummy mtx; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_path_MTX+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   case $MTX in
3777   [\\/]* | ?:[\\/]*)
3778   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3779   ;;
3780   *)
3781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784   IFS=$as_save_IFS
3785   test -z "$as_dir" && as_dir=.
3786   for ac_exec_ext in '' $ac_executable_extensions; do
3787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790     break 2
3791   fi
3792 done
3793 done
3794
3795   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3796   ;;
3797 esac
3798 fi
3799 MTX=$ac_cv_path_MTX
3800
3801 if test -n "$MTX"; then
3802   echo "$as_me:$LINENO: result: $MTX" >&5
3803 echo "${ECHO_T}$MTX" >&6
3804 else
3805   echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6
3807 fi
3808
3809 # Extract the first word of "df", so it can be a program name with args.
3810 set dummy df; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_path_DF+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   case $DF in
3817   [\\/]* | ?:[\\/]*)
3818   ac_cv_path_DF="$DF" # Let the user override the test with a path.
3819   ;;
3820   *)
3821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824   IFS=$as_save_IFS
3825   test -z "$as_dir" && as_dir=.
3826   for ac_exec_ext in '' $ac_executable_extensions; do
3827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830     break 2
3831   fi
3832 done
3833 done
3834
3835   test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3836   ;;
3837 esac
3838 fi
3839 DF=$ac_cv_path_DF
3840
3841 if test -n "$DF"; then
3842   echo "$as_me:$LINENO: result: $DF" >&5
3843 echo "${ECHO_T}$DF" >&6
3844 else
3845   echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6
3847 fi
3848
3849 # Extract the first word of "mkisofs", so it can be a program name with args.
3850 set dummy mkisofs; ac_word=$2
3851 echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853 if test "${ac_cv_path_MKISOFS+set}" = set; then
3854   echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856   case $MKISOFS in
3857   [\\/]* | ?:[\\/]*)
3858   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3859   ;;
3860   *)
3861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866   for ac_exec_ext in '' $ac_executable_extensions; do
3867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870     break 2
3871   fi
3872 done
3873 done
3874
3875   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3876   ;;
3877 esac
3878 fi
3879 MKISOFS=$ac_cv_path_MKISOFS
3880
3881 if test -n "$MKISOFS"; then
3882   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3883 echo "${ECHO_T}$MKISOFS" >&6
3884 else
3885   echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6
3887 fi
3888
3889 # Extract the first word of "python", so it can be a program name with args.
3890 set dummy python; ac_word=$2
3891 echo "$as_me:$LINENO: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3893 if test "${ac_cv_path_PYTHON+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   case $PYTHON in
3897   [\\/]* | ?:[\\/]*)
3898   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3899   ;;
3900   *)
3901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904   IFS=$as_save_IFS
3905   test -z "$as_dir" && as_dir=.
3906   for ac_exec_ext in '' $ac_executable_extensions; do
3907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910     break 2
3911   fi
3912 done
3913 done
3914
3915   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3916   ;;
3917 esac
3918 fi
3919 PYTHON=$ac_cv_path_PYTHON
3920
3921 if test -n "$PYTHON"; then
3922   echo "$as_me:$LINENO: result: $PYTHON" >&5
3923 echo "${ECHO_T}$PYTHON" >&6
3924 else
3925   echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3927 fi
3928
3929 # Extract the first word of "growisofs", so it can be a program name with args.
3930 set dummy growisofs; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   case $GROWISOFS in
3937   [\\/]* | ?:[\\/]*)
3938   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3939   ;;
3940   *)
3941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944   IFS=$as_save_IFS
3945   test -z "$as_dir" && as_dir=.
3946   for ac_exec_ext in '' $ac_executable_extensions; do
3947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3948     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3950     break 2
3951   fi
3952 done
3953 done
3954
3955   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3956   ;;
3957 esac
3958 fi
3959 GROWISOFS=$ac_cv_path_GROWISOFS
3960
3961 if test -n "$GROWISOFS"; then
3962   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3963 echo "${ECHO_T}$GROWISOFS" >&6
3964 else
3965   echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3967 fi
3968
3969 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3970 set dummy dvd+rw-mediainfo; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   case $DVDRWMEDIAINFO in
3977   [\\/]* | ?:[\\/]*)
3978   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3979   ;;
3980   *)
3981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3983 do
3984   IFS=$as_save_IFS
3985   test -z "$as_dir" && as_dir=.
3986   for ac_exec_ext in '' $ac_executable_extensions; do
3987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990     break 2
3991   fi
3992 done
3993 done
3994
3995   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3996   ;;
3997 esac
3998 fi
3999 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4000
4001 if test -n "$DVDRWMEDIAINFO"; then
4002   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4003 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4004 else
4005   echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4007 fi
4008
4009 # Extract the first word of "pkg-config", so it can be a program name with args.
4010 set dummy pkg-config; ac_word=$2
4011 echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   case $PKGCONFIG in
4017   [\\/]* | ?:[\\/]*)
4018   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4019   ;;
4020   *)
4021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024   IFS=$as_save_IFS
4025   test -z "$as_dir" && as_dir=.
4026   for ac_exec_ext in '' $ac_executable_extensions; do
4027   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030     break 2
4031   fi
4032 done
4033 done
4034
4035   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4036   ;;
4037 esac
4038 fi
4039 PKGCONFIG=$ac_cv_path_PKGCONFIG
4040
4041 if test -n "$PKGCONFIG"; then
4042   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4043 echo "${ECHO_T}$PKGCONFIG" >&6
4044 else
4045   echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4047 fi
4048
4049
4050 if test "x$WXCONFIG" = x; then
4051   WXCONFIG=wx-config
4052 fi
4053 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4054 set dummy ${WXCONFIG}; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   case $WXCONFIG in
4061   [\\/]* | ?:[\\/]*)
4062   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4063   ;;
4064   *)
4065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068   IFS=$as_save_IFS
4069   test -z "$as_dir" && as_dir=.
4070   for ac_exec_ext in '' $ac_executable_extensions; do
4071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4074     break 2
4075   fi
4076 done
4077 done
4078
4079   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4080   ;;
4081 esac
4082 fi
4083 WXCONFIG=$ac_cv_path_WXCONFIG
4084
4085 if test -n "$WXCONFIG"; then
4086   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4087 echo "${ECHO_T}$WXCONFIG" >&6
4088 else
4089   echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4091 fi
4092
4093
4094 # Extract the first word of "cdrecord", so it can be a program name with args.
4095 set dummy cdrecord; ac_word=$2
4096 echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098 if test "${ac_cv_path_CDRECORD+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   case $CDRECORD in
4102   [\\/]* | ?:[\\/]*)
4103   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4104   ;;
4105   *)
4106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109   IFS=$as_save_IFS
4110   test -z "$as_dir" && as_dir=.
4111   for ac_exec_ext in '' $ac_executable_extensions; do
4112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4115     break 2
4116   fi
4117 done
4118 done
4119
4120   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4121   ;;
4122 esac
4123 fi
4124 CDRECORD=$ac_cv_path_CDRECORD
4125
4126 if test -n "$CDRECORD"; then
4127   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4128 echo "${ECHO_T}$CDRECORD" >&6
4129 else
4130   echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4132 fi
4133
4134 # Extract the first word of "pidof", so it can be a program name with args.
4135 set dummy pidof; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_PIDOF+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   case $PIDOF in
4142   [\\/]* | ?:[\\/]*)
4143   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4144   ;;
4145   *)
4146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149   IFS=$as_save_IFS
4150   test -z "$as_dir" && as_dir=.
4151   for ac_exec_ext in '' $ac_executable_extensions; do
4152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155     break 2
4156   fi
4157 done
4158 done
4159
4160   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4161   ;;
4162 esac
4163 fi
4164 PIDOF=$ac_cv_path_PIDOF
4165
4166 if test -n "$PIDOF"; then
4167   echo "$as_me:$LINENO: result: $PIDOF" >&5
4168 echo "${ECHO_T}$PIDOF" >&6
4169 else
4170   echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4172 fi
4173
4174 for ac_prog in gawk mawk nawk awk
4175 do
4176   # Extract the first word of "$ac_prog", so it can be a program name with args.
4177 set dummy $ac_prog; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_AWK+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   if test -n "$AWK"; then
4184   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191   for ac_exec_ext in '' $ac_executable_extensions; do
4192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193     ac_cv_prog_AWK="$ac_prog"
4194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195     break 2
4196   fi
4197 done
4198 done
4199
4200 fi
4201 fi
4202 AWK=$ac_cv_prog_AWK
4203 if test -n "$AWK"; then
4204   echo "$as_me:$LINENO: result: $AWK" >&5
4205 echo "${ECHO_T}$AWK" >&6
4206 else
4207   echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4209 fi
4210
4211   test -n "$AWK" && break
4212 done
4213
4214 # Some AWK programs fail, so test it and warn the user
4215 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4216       { if ((prog == $2) || (("(" prog ")") == $2) ||
4217            (("" prog "") == $2) ||
4218            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4219 else
4220   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4221    The regex engine of $AWK is too broken to be used you
4222    might want to install GNU AWK.
4223    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4224 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4225    The regex engine of $AWK is too broken to be used you
4226    might want to install GNU AWK.
4227    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4228    { (exit 1); exit 1; }; }
4229 fi
4230 THE_AWK=$AWK
4231 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4232 set dummy $THE_AWK; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_path_AWK+set}" = set; then
4236   echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238   case $AWK in
4239   [\\/]* | ?:[\\/]*)
4240   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4241   ;;
4242   *)
4243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248   for ac_exec_ext in '' $ac_executable_extensions; do
4249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252     break 2
4253   fi
4254 done
4255 done
4256
4257   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4258   ;;
4259 esac
4260 fi
4261 AWK=$ac_cv_path_AWK
4262
4263 if test -n "$AWK"; then
4264   echo "$as_me:$LINENO: result: $AWK" >&5
4265 echo "${ECHO_T}$AWK" >&6
4266 else
4267   echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4269 fi
4270
4271
4272 test -n "$ARFLAG" || ARFLAGS="cr"
4273
4274
4275 MAKE_SHELL=/bin/sh
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285 # Make sure we can run config.sub.
4286 $ac_config_sub sun4 >/dev/null 2>&1 ||
4287   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4288 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4289    { (exit 1); exit 1; }; }
4290
4291 echo "$as_me:$LINENO: checking build system type" >&5
4292 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4293 if test "${ac_cv_build+set}" = set; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   ac_cv_build_alias=$build_alias
4297 test -z "$ac_cv_build_alias" &&
4298   ac_cv_build_alias=`$ac_config_guess`
4299 test -z "$ac_cv_build_alias" &&
4300   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4301 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4302    { (exit 1); exit 1; }; }
4303 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4304   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4305 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4306    { (exit 1); exit 1; }; }
4307
4308 fi
4309 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4310 echo "${ECHO_T}$ac_cv_build" >&6
4311 build=$ac_cv_build
4312 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4313 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4314 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4315
4316
4317
4318 echo "$as_me:$LINENO: checking host system type" >&5
4319 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4320 if test "${ac_cv_host+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   ac_cv_host_alias=$host_alias
4324 test -z "$ac_cv_host_alias" &&
4325   ac_cv_host_alias=$ac_cv_build_alias
4326 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4327   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4328 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4329    { (exit 1); exit 1; }; }
4330
4331 fi
4332 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4333 echo "${ECHO_T}$ac_cv_host" >&6
4334 host=$ac_cv_host
4335 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4336 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4337 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4338
4339
4340 case $host_os in
4341   *cygwin* ) CYGWIN=yes;;
4342          * ) CYGWIN=no;;
4343 esac
4344
4345 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4346 then
4347
4348
4349 if $TRUEPRG; then
4350   HAVE_SUN_OS_TRUE=
4351   HAVE_SUN_OS_FALSE='#'
4352 else
4353   HAVE_SUN_OS_TRUE='#'
4354   HAVE_SUN_OS_FALSE=
4355 fi
4356         cat >>confdefs.h <<\_ACEOF
4357 #define HAVE_SUN_OS 1
4358 _ACEOF
4359
4360 else
4361
4362
4363 if $FALSEPRG; then
4364   HAVE_SUN_OS_TRUE=
4365   HAVE_SUN_OS_FALSE='#'
4366 else
4367   HAVE_SUN_OS_TRUE='#'
4368   HAVE_SUN_OS_FALSE=
4369 fi
4370 fi
4371
4372 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4373 then
4374
4375
4376 if $TRUEPRG; then
4377   HAVE_OSF1_OS_TRUE=
4378   HAVE_OSF1_OS_FALSE='#'
4379 else
4380   HAVE_OSF1_OS_TRUE='#'
4381   HAVE_OSF1_OS_FALSE=
4382 fi
4383         cat >>confdefs.h <<\_ACEOF
4384 #define HAVE_OSF1_OS 1
4385 _ACEOF
4386
4387 else
4388
4389
4390 if $FALSEPRG; then
4391   HAVE_OSF1_OS_TRUE=
4392   HAVE_OSF1_OS_FALSE='#'
4393 else
4394   HAVE_OSF1_OS_TRUE='#'
4395   HAVE_OSF1_OS_FALSE=
4396 fi
4397 fi
4398
4399 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4400 then
4401
4402
4403 if $TRUEPRG; then
4404   HAVE_AIX_OS_TRUE=
4405   HAVE_AIX_OS_FALSE='#'
4406 else
4407   HAVE_AIX_OS_TRUE='#'
4408   HAVE_AIX_OS_FALSE=
4409 fi
4410         cat >>confdefs.h <<\_ACEOF
4411 #define HAVE_AIX_OS 1
4412 _ACEOF
4413
4414 else
4415
4416
4417 if $FALSEPRG; then
4418   HAVE_AIX_OS_TRUE=
4419   HAVE_AIX_OS_FALSE='#'
4420 else
4421   HAVE_AIX_OS_TRUE='#'
4422   HAVE_AIX_OS_FALSE=
4423 fi
4424 fi
4425
4426 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4427 then
4428
4429
4430 if $TRUEPRG; then
4431   HAVE_HPUX_OS_TRUE=
4432   HAVE_HPUX_OS_FALSE='#'
4433 else
4434   HAVE_HPUX_OS_TRUE='#'
4435   HAVE_HPUX_OS_FALSE=
4436 fi
4437         cat >>confdefs.h <<\_ACEOF
4438 #define HAVE_HPUX_OS 1
4439 _ACEOF
4440
4441 else
4442
4443
4444 if $FALSEPRG; then
4445   HAVE_HPUX_OS_TRUE=
4446   HAVE_HPUX_OS_FALSE='#'
4447 else
4448   HAVE_HPUX_OS_TRUE='#'
4449   HAVE_HPUX_OS_FALSE=
4450 fi
4451 fi
4452
4453 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4454 then
4455
4456
4457 if $TRUEPRG; then
4458   HAVE_LINUX_OS_TRUE=
4459   HAVE_LINUX_OS_FALSE='#'
4460 else
4461   HAVE_LINUX_OS_TRUE='#'
4462   HAVE_LINUX_OS_FALSE=
4463 fi
4464         cat >>confdefs.h <<\_ACEOF
4465 #define HAVE_LINUX_OS 1
4466 _ACEOF
4467
4468 else
4469
4470
4471 if $FALSEPRG; then
4472   HAVE_LINUX_OS_TRUE=
4473   HAVE_LINUX_OS_FALSE='#'
4474 else
4475   HAVE_LINUX_OS_TRUE='#'
4476   HAVE_LINUX_OS_FALSE=
4477 fi
4478 fi
4479
4480 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4481 then
4482
4483
4484 if $TRUEPRG; then
4485   HAVE_FREEBSD_OS_TRUE=
4486   HAVE_FREEBSD_OS_FALSE='#'
4487 else
4488   HAVE_FREEBSD_OS_TRUE='#'
4489   HAVE_FREEBSD_OS_FALSE=
4490 fi
4491         cat >>confdefs.h <<\_ACEOF
4492 #define HAVE_FREEBSD_OS 1
4493 _ACEOF
4494
4495 else
4496
4497
4498 if $FALSEPRG; then
4499   HAVE_FREEBSD_OS_TRUE=
4500   HAVE_FREEBSD_OS_FALSE='#'
4501 else
4502   HAVE_FREEBSD_OS_TRUE='#'
4503   HAVE_FREEBSD_OS_FALSE=
4504 fi
4505 fi
4506
4507 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4508 then
4509
4510
4511 if $TRUEPRG; then
4512   HAVE_NETBSD_OS_TRUE=
4513   HAVE_NETBSD_OS_FALSE='#'
4514 else
4515   HAVE_NETBSD_OS_TRUE='#'
4516   HAVE_NETBSD_OS_FALSE=
4517 fi
4518         cat >>confdefs.h <<\_ACEOF
4519 #define HAVE_NETBSD_OS 1
4520 _ACEOF
4521
4522 else
4523
4524
4525 if $FALSEPRG; then
4526   HAVE_NETBSD_OS_TRUE=
4527   HAVE_NETBSD_OS_FALSE='#'
4528 else
4529   HAVE_NETBSD_OS_TRUE='#'
4530   HAVE_NETBSD_OS_FALSE=
4531 fi
4532 fi
4533
4534 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4535 then
4536
4537
4538 if $TRUEPRG; then
4539   HAVE_OPENBSD_OS_TRUE=
4540   HAVE_OPENBSD_OS_FALSE='#'
4541 else
4542   HAVE_OPENBSD_OS_TRUE='#'
4543   HAVE_OPENBSD_OS_FALSE=
4544 fi
4545         cat >>confdefs.h <<\_ACEOF
4546 #define HAVE_OPENBSD_OS 1
4547 _ACEOF
4548
4549 else
4550
4551
4552 if $FALSEPRG; then
4553   HAVE_OPENBSD_OS_TRUE=
4554   HAVE_OPENBSD_OS_FALSE='#'
4555 else
4556   HAVE_OPENBSD_OS_TRUE='#'
4557   HAVE_OPENBSD_OS_FALSE=
4558 fi
4559 fi
4560
4561 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4562 then
4563
4564
4565 if $TRUEPRG; then
4566   HAVE_BSDI_OS_TRUE=
4567   HAVE_BSDI_OS_FALSE='#'
4568 else
4569   HAVE_BSDI_OS_TRUE='#'
4570   HAVE_BSDI_OS_FALSE=
4571 fi
4572         cat >>confdefs.h <<\_ACEOF
4573 #define HAVE_BSDI_OS 1
4574 _ACEOF
4575
4576 else
4577
4578
4579 if $FALSEPRG; then
4580   HAVE_BSDI_OS_TRUE=
4581   HAVE_BSDI_OS_FALSE='#'
4582 else
4583   HAVE_BSDI_OS_TRUE='#'
4584   HAVE_BSDI_OS_FALSE=
4585 fi
4586 fi
4587
4588 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4589 then
4590
4591
4592 if $TRUEPRG; then
4593   HAVE_SGI_OS_TRUE=
4594   HAVE_SGI_OS_FALSE='#'
4595 else
4596   HAVE_SGI_OS_TRUE='#'
4597   HAVE_SGI_OS_FALSE=
4598 fi
4599         cat >>confdefs.h <<\_ACEOF
4600 #define HAVE_SGI_OS 1
4601 _ACEOF
4602
4603 else
4604
4605
4606 if $FALSEPRG; then
4607   HAVE_SGI_OS_TRUE=
4608   HAVE_SGI_OS_FALSE='#'
4609 else
4610   HAVE_SGI_OS_TRUE='#'
4611   HAVE_SGI_OS_FALSE=
4612 fi
4613 fi
4614
4615 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4616 then
4617
4618
4619 if $TRUEPRG; then
4620   HAVE_IRIX_OS_TRUE=
4621   HAVE_IRIX_OS_FALSE='#'
4622 else
4623   HAVE_IRIX_OS_TRUE='#'
4624   HAVE_IRIX_OS_FALSE=
4625 fi
4626         cat >>confdefs.h <<\_ACEOF
4627 #define HAVE_IRIX_OS 1
4628 _ACEOF
4629
4630 else
4631
4632
4633 if $FALSEPRG; then
4634   HAVE_IRIX_OS_TRUE=
4635   HAVE_IRIX_OS_FALSE='#'
4636 else
4637   HAVE_IRIX_OS_TRUE='#'
4638   HAVE_IRIX_OS_FALSE=
4639 fi
4640 fi
4641
4642 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4643 then
4644
4645
4646 if $TRUEPRG; then
4647   HAVE_DARWIN_OS_TRUE=
4648   HAVE_DARWIN_OS_FALSE='#'
4649 else
4650   HAVE_DARWIN_OS_TRUE='#'
4651   HAVE_DARWIN_OS_FALSE=
4652 fi
4653     cat >>confdefs.h <<\_ACEOF
4654 #define HAVE_DARWIN_OS 1
4655 _ACEOF
4656
4657 else
4658
4659
4660 if $FALSEPRG; then
4661   HAVE_DARWIN_OS_TRUE=
4662   HAVE_DARWIN_OS_FALSE='#'
4663 else
4664   HAVE_DARWIN_OS_TRUE='#'
4665   HAVE_DARWIN_OS_FALSE=
4666 fi
4667 fi
4668
4669
4670 # -----------------------------------------------------------
4671 # ----------------------------------------------------------
4672 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4673 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4674 if test "x$DISTNAME" != "x"
4675 then
4676         echo "distname set to $DISTNAME"
4677 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4678 then
4679         DISTNAME=alpha
4680 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4681 then
4682         DISTNAME=aix
4683 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4684 then
4685         DISTNAME=hpux
4686 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4687 then
4688         DISTNAME=solaris
4689 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4690 then
4691         DISTNAME=freebsd
4692 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4693 then
4694         DISTNAME=netbsd
4695 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4696 then
4697         DISTNAME=openbsd
4698 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4699 then
4700         DISTNAME=irix
4701 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4702 then
4703         DISTNAME=bsdi
4704 elif test -f /etc/SuSE-release
4705 then
4706         DISTNAME=suse
4707 elif test -d /etc/SuSEconfig
4708 then
4709         DISTNAME=suse5
4710 elif test -f /etc/mandrake-release
4711 then
4712         DISTNAME=mandrake
4713 elif test -f /etc/whitebox-release
4714 then
4715        DISTNAME=redhat
4716 elif test -f /etc/redhat-release
4717 then
4718         DISTNAME=redhat
4719 elif test -f /etc/gentoo-release
4720 then
4721         DISTNAME=gentoo
4722 elif test -f /etc/debian_version
4723 then
4724         DISTNAME=debian
4725 elif test -f /etc/slackware-version
4726 then
4727         DISTNAME=slackware
4728 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4729 then
4730     DISTNAME=darwin
4731 elif test -f /etc/engarde-version
4732 then
4733         DISTNAME=engarde
4734 elif test "$CYGWIN" = yes
4735 then
4736         DISTNAME=cygwin
4737         cat >>confdefs.h <<\_ACEOF
4738 #define HAVE_CYGWIN 1
4739 _ACEOF
4740
4741 else
4742         DISTNAME=unknown
4743 fi
4744 echo "$as_me:$LINENO: result: done" >&5
4745 echo "${ECHO_T}done" >&6
4746
4747
4748 # -----------------------------------------------------------
4749 # ----------------------------------------------------------
4750
4751
4752
4753 if false; then
4754   INSIDE_GNOME_COMMON_TRUE=
4755   INSIDE_GNOME_COMMON_FALSE='#'
4756 else
4757   INSIDE_GNOME_COMMON_TRUE='#'
4758   INSIDE_GNOME_COMMON_FALSE=
4759 fi
4760
4761         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4762
4763         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4764
4765
4766 # ------------------------------------------------------------------
4767 #  If the user has not set --prefix, we set our default to nothing.
4768 #  In this case, if the user has not set --sysconfdir, we set it
4769 #  to the package default of /etc/bacula.  If either --prefix or
4770 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4771 # ------------------------------------------------------------------
4772 if test x${prefix} = xNONE ; then
4773     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4774         sysconfdir=/etc/bacula
4775     fi
4776     prefix=
4777 fi
4778 sysconfdir=`eval echo ${sysconfdir}`
4779
4780 # -------------------------------------------------------------------------
4781 #  If the user has not set --exec-prefix, we default to ${prefix}
4782 # -------------------------------------------------------------------------
4783 if test x${exec_prefix} = xNONE ; then
4784     exec_prefix=${prefix}
4785 fi
4786
4787 # ------------------------------------------------------------------
4788 # If the user has not set --sbindir, we set our default as /sbin
4789 # ------------------------------------------------------------------
4790 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4791     sbindir=${exec_prefix}/sbin
4792 fi
4793 sbindir=`eval echo ${sbindir}`
4794
4795 # -------------------------------------------------------------------------
4796 #  If the user has not set --mandir, we default to /usr/share/man
4797 # -------------------------------------------------------------------------
4798 if test x$mandir = x'${prefix}/man' ; then
4799    mandir=/usr/share/man
4800 fi
4801
4802
4803 # ------------------------------------------------------------------
4804 # All list of languages for which a translation exist. Each
4805 #  language is separated by a space.
4806 # ------------------------------------------------------------------
4807 ALL_LINGUAS=""
4808
4809 for ac_prog in msgfmt
4810 do
4811   # Extract the first word of "$ac_prog", so it can be a program name with args.
4812 set dummy $ac_prog; ac_word=$2
4813 echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815 if test "${ac_cv_path_MSGFMT+set}" = set; then
4816   echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818   case $MSGFMT in
4819   [\\/]* | ?:[\\/]*)
4820   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4821   ;;
4822   *)
4823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828   for ac_exec_ext in '' $ac_executable_extensions; do
4829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4832     break 2
4833   fi
4834 done
4835 done
4836
4837   ;;
4838 esac
4839 fi
4840 MSGFMT=$ac_cv_path_MSGFMT
4841
4842 if test -n "$MSGFMT"; then
4843   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4844 echo "${ECHO_T}$MSGFMT" >&6
4845 else
4846   echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4848 fi
4849
4850   test -n "$MSGFMT" && break
4851 done
4852 test -n "$MSGFMT" || MSGFMT="no"
4853
4854 if test "$MSGFMT" = "no"
4855 then
4856    echo 'msgfmt program not found, disabling NLS !'
4857    USE_NLS=no
4858    USE_INCLUDED_LIBINTL=no
4859 #else
4860 #   AM_GNU_GETTEXT
4861 fi
4862
4863
4864 support_mysql=no
4865 support_sqlite=no
4866 support_sqlite3=no
4867 support_postgresql=no
4868 support_smartalloc=yes
4869 support_readline=yes
4870 support_conio=yes
4871 support_gnome=no
4872 support_wx_console=no
4873 support_tls=no
4874 gnome_version=
4875 wx_version=
4876 support_static_tools=no
4877 support_static_fd=no
4878 support_static_sd=no
4879 support_static_dir=no
4880 support_static_cons=no
4881 support_python=no
4882 build_client_only=no
4883 cats=
4884 db_name=Internal
4885 DB_NAME=bdb
4886
4887
4888 # -------------------------------------------
4889 # gnome (default off)
4890 # -------------------------------------------
4891 # Check whether --enable-gnome or --disable-gnome was given.
4892 if test "${enable_gnome+set}" = set; then
4893   enableval="$enable_gnome"
4894   if test x$enableval = xyes; then
4895     support_gnome=yes
4896   fi
4897 fi;
4898
4899 GNOME_DIR=
4900 if test x$support_gnome = xyes; then
4901   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4902   pkg=$?
4903   if test $pkg = 0; then
4904      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4905      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4906      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4907      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4908
4909
4910
4911
4912      GNOME_DIR=src/gnome2-console
4913      gnome_version="Version 2.x"
4914   else
4915      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
4916 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
4917    { (exit 1); exit 1; }; }
4918   fi
4919 fi
4920
4921
4922
4923 # -------------------------------------------
4924 # wx-console (default off)
4925 # -------------------------------------------
4926 # Check whether --enable-wx-console or --disable-wx-console was given.
4927 if test "${enable_wx_console+set}" = set; then
4928   enableval="$enable_wx_console"
4929   if test x$enableval = xyes; then
4930     support_wx_console=yes
4931   fi
4932 fi;
4933
4934 WX_DIR=
4935 if test x$support_wx_console = xyes; then
4936   abc=`$WXCONFIG $WXFLAGS --cppflags`
4937   pkg=$?
4938   if test $pkg = 0; then
4939      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
4940      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
4941      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
4942
4943
4944
4945      WX_DIR=src/wx-console
4946   else
4947      echo " "
4948      echo "wx-config program not found. wx-console disabled."
4949      echo " "
4950      support_wx_console=no
4951   fi
4952 fi
4953
4954
4955
4956 # -------------------------------------------
4957 # tray-monitor (default off)
4958 # -------------------------------------------
4959 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4960 if test "${enable_tray_monitor+set}" = set; then
4961   enableval="$enable_tray_monitor"
4962   if test x$enableval = xyes; then
4963     support_tray_monitor=yes
4964   fi
4965 fi;
4966
4967 TRAY_MONITOR_DIR=
4968 if test x$support_tray_monitor = xyes; then
4969   abc=`$PKGCONFIG --exists gtk+-2.0`
4970   pkg=$?
4971   if test $pkg = 0; then
4972      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4973      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4974
4975
4976      TRAY_MONITOR_DIR=src/tray-monitor
4977      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4978      pkg=$?
4979      if test $pkg = 0; then
4980         cat >>confdefs.h <<\_ACEOF
4981 #define HAVE_GTK_2_4 1
4982 _ACEOF
4983
4984      fi
4985   fi
4986 fi
4987
4988
4989 # -------------------------------------------
4990 # smartalloc (default off)
4991 # -------------------------------------------
4992 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4993 if test "${enable_smartalloc+set}" = set; then
4994   enableval="$enable_smartalloc"
4995   if test x$enableval = xno; then
4996     support_smartalloc=no
4997   fi
4998 fi;
4999
5000 if test x$support_smartalloc = xyes; then
5001    cat >>confdefs.h <<\_ACEOF
5002 #define SMARTALLOC 1
5003 _ACEOF
5004
5005 fi
5006
5007 # -------------------------------------------
5008 # static-tools (default off)
5009 # -------------------------------------------
5010 # Check whether --enable-static-tools or --disable-static-tools was given.
5011 if test "${enable_static_tools+set}" = set; then
5012   enableval="$enable_static_tools"
5013   if test x$enableval = xyes; then
5014      support_static_tools=yes
5015    fi
5016 fi;
5017
5018 TTOOL_LDFLAGS=
5019 if test x$support_static_tools = xyes; then
5020    TTOOL_LDFLAGS="-static"
5021 fi
5022
5023
5024 # -------------------------------------------
5025 # static-fd    (default off)
5026 # -------------------------------------------
5027 # Check whether --enable-static-fd or --disable-static-fd was given.
5028 if test "${enable_static_fd+set}" = set; then
5029   enableval="$enable_static_fd"
5030   if test x$enableval = xyes; then
5031      support_static_fd=yes
5032    fi
5033 fi;
5034
5035 STATIC_FD=
5036 if test x$support_static_fd = xyes; then
5037    STATIC_FD="static-bacula-fd"
5038 fi
5039
5040
5041 # -------------------------------------------
5042 # static-sd    (default off)
5043 # -------------------------------------------
5044 # Check whether --enable-static-sd or --disable-static-sd was given.
5045 if test "${enable_static_sd+set}" = set; then
5046   enableval="$enable_static_sd"
5047   if test x$enableval = xyes; then
5048      support_static_sd=yes
5049    fi
5050 fi;
5051
5052 STATIC_SD=
5053 if test x$support_static_sd = xyes; then
5054    STATIC_SD="static-bacula-sd"
5055 fi
5056
5057
5058 # -------------------------------------------
5059 # static-dir   (default off)
5060 # -------------------------------------------
5061 # Check whether --enable-static-dir or --disable-static-dir was given.
5062 if test "${enable_static_dir+set}" = set; then
5063   enableval="$enable_static_dir"
5064   if test x$enableval = xyes; then
5065      support_static_dir=yes
5066    fi
5067 fi;
5068
5069 STATIC_DIR=
5070 if test x$support_static_dir = xyes; then
5071    STATIC_DIR="static-bacula-dir"
5072 fi
5073
5074
5075 # -------------------------------------------
5076 # static-cons  (default off)
5077 # -------------------------------------------
5078 # Check whether --enable-static-cons or --disable-static-cons was given.
5079 if test "${enable_static_cons+set}" = set; then
5080   enableval="$enable_static_cons"
5081   if test x$enableval = xyes; then
5082      support_static_cons=yes
5083    fi
5084 fi;
5085
5086 STATIC_CONS=
5087 STATIC_GNOME_CONS=
5088 STATIC_WX_CONS=
5089 if test x$support_static_cons = xyes; then
5090    STATIC_CONS="static-bconsole"
5091    STATIC_GNOME_CONS="static-gnome-console"
5092    STATIC_WX_CONS="static-wx-console"
5093 fi
5094
5095
5096
5097
5098 # -------------------------------------------
5099 # client_only  (default off)
5100 # -------------------------------------------
5101 # Check whether --enable-client-only or --disable-client-only was given.
5102 if test "${enable_client_only+set}" = set; then
5103   enableval="$enable_client_only"
5104   if test x$enableval = xyes; then
5105      build_client_only=yes
5106     db_name=None
5107     DB_NAME=none
5108    fi
5109 fi;
5110 if test x$build_client_only = xno; then
5111    ALL_DIRS="subdirs"
5112 else
5113    ALL_DIRS=""
5114 fi
5115
5116
5117 # ---------------------------------------------------
5118 # Check for conio (Bacula readline substitute)(
5119 # ---------------------------------------------------
5120 # this allows you to turn it completely off
5121 # Check whether --enable-conio or --disable-conio was given.
5122 if test "${enable_conio+set}" = set; then
5123   enableval="$enable_conio"
5124   if test x$enableval = xno; then
5125     support_conio=no
5126   fi
5127 fi;
5128
5129 got_conio="no"
5130 if test x$support_conio = xyes; then
5131    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5133 if test "${ac_cv_header_stdc+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h.  */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h.  */
5142 #include <stdlib.h>
5143 #include <stdarg.h>
5144 #include <string.h>
5145 #include <float.h>
5146
5147 int
5148 main ()
5149 {
5150
5151   ;
5152   return 0;
5153 }
5154 _ACEOF
5155 rm -f conftest.$ac_objext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157   (eval $ac_compile) 2>conftest.er1
5158   ac_status=$?
5159   grep -v '^ *+' conftest.er1 >conftest.err
5160   rm -f conftest.er1
5161   cat conftest.err >&5
5162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163   (exit $ac_status); } &&
5164          { ac_try='test -z "$ac_c_werror_flag"
5165                          || test ! -s conftest.err'
5166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167   (eval $ac_try) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); }; } &&
5171          { ac_try='test -s conftest.$ac_objext'
5172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173   (eval $ac_try) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; }; then
5177   ac_cv_header_stdc=yes
5178 else
5179   echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5181
5182 ac_cv_header_stdc=no
5183 fi
5184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5185
5186 if test $ac_cv_header_stdc = yes; then
5187   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5188   cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h.  */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h.  */
5194 #include <string.h>
5195
5196 _ACEOF
5197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5198   $EGREP "memchr" >/dev/null 2>&1; then
5199   :
5200 else
5201   ac_cv_header_stdc=no
5202 fi
5203 rm -f conftest*
5204
5205 fi
5206
5207 if test $ac_cv_header_stdc = yes; then
5208   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5209   cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h.  */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h.  */
5215 #include <stdlib.h>
5216
5217 _ACEOF
5218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5219   $EGREP "free" >/dev/null 2>&1; then
5220   :
5221 else
5222   ac_cv_header_stdc=no
5223 fi
5224 rm -f conftest*
5225
5226 fi
5227
5228 if test $ac_cv_header_stdc = yes; then
5229   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5230   if test "$cross_compiling" = yes; then
5231   :
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 #include <ctype.h>
5240 #if ((' ' & 0x0FF) == 0x020)
5241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5243 #else
5244 # define ISLOWER(c) \
5245                    (('a' <= (c) && (c) <= 'i') \
5246                      || ('j' <= (c) && (c) <= 'r') \
5247                      || ('s' <= (c) && (c) <= 'z'))
5248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5249 #endif
5250
5251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5252 int
5253 main ()
5254 {
5255   int i;
5256   for (i = 0; i < 256; i++)
5257     if (XOR (islower (i), ISLOWER (i))
5258         || toupper (i) != TOUPPER (i))
5259       exit(2);
5260   exit (0);
5261 }
5262 _ACEOF
5263 rm -f conftest$ac_exeext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5265   (eval $ac_link) 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270   (eval $ac_try) 2>&5
5271   ac_status=$?
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); }; }; then
5274   :
5275 else
5276   echo "$as_me: program exited with status $ac_status" >&5
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280 ( exit $ac_status )
5281 ac_cv_header_stdc=no
5282 fi
5283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5284 fi
5285 fi
5286 fi
5287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5289 if test $ac_cv_header_stdc = yes; then
5290
5291 cat >>confdefs.h <<\_ACEOF
5292 #define STDC_HEADERS 1
5293 _ACEOF
5294
5295 fi
5296
5297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5308                   inttypes.h stdint.h unistd.h
5309 do
5310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311 echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h.  */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h.  */
5322 $ac_includes_default
5323
5324 #include <$ac_header>
5325 _ACEOF
5326 rm -f conftest.$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328   (eval $ac_compile) 2>conftest.er1
5329   ac_status=$?
5330   grep -v '^ *+' conftest.er1 >conftest.err
5331   rm -f conftest.er1
5332   cat conftest.err >&5
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); } &&
5335          { ac_try='test -z "$ac_c_werror_flag"
5336                          || test ! -s conftest.err'
5337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338   (eval $ac_try) 2>&5
5339   ac_status=$?
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); }; } &&
5342          { ac_try='test -s conftest.$ac_objext'
5343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344   (eval $ac_try) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; }; then
5348   eval "$as_ac_Header=yes"
5349 else
5350   echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 eval "$as_ac_Header=no"
5354 fi
5355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5356 fi
5357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5360   cat >>confdefs.h <<_ACEOF
5361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5362 _ACEOF
5363
5364 fi
5365
5366 done
5367
5368
5369 if test "${ac_cv_header_termcap_h+set}" = set; then
5370   echo "$as_me:$LINENO: checking for termcap.h" >&5
5371 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5372 if test "${ac_cv_header_termcap_h+set}" = set; then
5373   echo $ECHO_N "(cached) $ECHO_C" >&6
5374 fi
5375 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5376 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5377 else
5378   # Is the header compilable?
5379 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5380 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5381 cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h.  */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h.  */
5387 $ac_includes_default
5388 #include <termcap.h>
5389 _ACEOF
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392   (eval $ac_compile) 2>conftest.er1
5393   ac_status=$?
5394   grep -v '^ *+' conftest.er1 >conftest.err
5395   rm -f conftest.er1
5396   cat conftest.err >&5
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); } &&
5399          { ac_try='test -z "$ac_c_werror_flag"
5400                          || test ! -s conftest.err'
5401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402   (eval $ac_try) 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); }; } &&
5406          { ac_try='test -s conftest.$ac_objext'
5407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408   (eval $ac_try) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; }; then
5412   ac_header_compiler=yes
5413 else
5414   echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417 ac_header_compiler=no
5418 fi
5419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5421 echo "${ECHO_T}$ac_header_compiler" >&6
5422
5423 # Is the header present?
5424 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5425 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5426 cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h.  */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h.  */
5432 #include <termcap.h>
5433 _ACEOF
5434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5436   ac_status=$?
5437   grep -v '^ *+' conftest.er1 >conftest.err
5438   rm -f conftest.er1
5439   cat conftest.err >&5
5440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441   (exit $ac_status); } >/dev/null; then
5442   if test -s conftest.err; then
5443     ac_cpp_err=$ac_c_preproc_warn_flag
5444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5445   else
5446     ac_cpp_err=
5447   fi
5448 else
5449   ac_cpp_err=yes
5450 fi
5451 if test -z "$ac_cpp_err"; then
5452   ac_header_preproc=yes
5453 else
5454   echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457   ac_header_preproc=no
5458 fi
5459 rm -f conftest.err conftest.$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5461 echo "${ECHO_T}$ac_header_preproc" >&6
5462
5463 # So?  What about this header?
5464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5465   yes:no: )
5466     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5467 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5468     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5469 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5470     ac_header_preproc=yes
5471     ;;
5472   no:yes:* )
5473     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5474 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5475     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5476 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5477     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5478 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5479     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5480 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5481     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5482 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5483     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5484 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5485     (
5486       cat <<\_ASBOX
5487 ## ------------------------------------------ ##
5488 ## Report this to the AC_PACKAGE_NAME lists.  ##
5489 ## ------------------------------------------ ##
5490 _ASBOX
5491     ) |
5492       sed "s/^/$as_me: WARNING:     /" >&2
5493     ;;
5494 esac
5495 echo "$as_me:$LINENO: checking for termcap.h" >&5
5496 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5497 if test "${ac_cv_header_termcap_h+set}" = set; then
5498   echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500   ac_cv_header_termcap_h=$ac_header_preproc
5501 fi
5502 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5503 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5504
5505 fi
5506 if test $ac_cv_header_termcap_h = yes; then
5507    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5508 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5509 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512   ac_check_lib_save_LIBS=$LIBS
5513 LIBS="-ltermcap  $LIBS"
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h.  */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h.  */
5520
5521 /* Override any gcc2 internal prototype to avoid an error.  */
5522 #ifdef __cplusplus
5523 extern "C"
5524 #endif
5525 /* We use char because int might match the return type of a gcc2
5526    builtin and then its argument prototype would still apply.  */
5527 char tgetent ();
5528 int
5529 main ()
5530 {
5531 tgetent ();
5532   ;
5533   return 0;
5534 }
5535 _ACEOF
5536 rm -f conftest.$ac_objext conftest$ac_exeext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538   (eval $ac_link) 2>conftest.er1
5539   ac_status=$?
5540   grep -v '^ *+' conftest.er1 >conftest.err
5541   rm -f conftest.er1
5542   cat conftest.err >&5
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); } &&
5545          { ac_try='test -z "$ac_c_werror_flag"
5546                          || test ! -s conftest.err'
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); }; } &&
5552          { ac_try='test -s conftest$ac_exeext'
5553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554   (eval $ac_try) 2>&5
5555   ac_status=$?
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); }; }; then
5558   ac_cv_lib_termcap_tgetent=yes
5559 else
5560   echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563 ac_cv_lib_termcap_tgetent=no
5564 fi
5565 rm -f conftest.err conftest.$ac_objext \
5566       conftest$ac_exeext conftest.$ac_ext
5567 LIBS=$ac_check_lib_save_LIBS
5568 fi
5569 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5570 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5571 if test $ac_cv_lib_termcap_tgetent = yes; then
5572    CONS_LIBS="-ltermcap"
5573          CONS_OBJ="conio.o"
5574          CONS_SRC="conio.c"
5575          got_conio="yes"
5576          support_readline=no
5577
5578 cat >>confdefs.h <<\_ACEOF
5579 #define HAVE_CONIO 1
5580 _ACEOF
5581
5582
5583 else
5584    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5585 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5586 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5587   echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589   ac_check_lib_save_LIBS=$LIBS
5590 LIBS="-lncurses  $LIBS"
5591 cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h.  */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h.  */
5597
5598 /* Override any gcc2 internal prototype to avoid an error.  */
5599 #ifdef __cplusplus
5600 extern "C"
5601 #endif
5602 /* We use char because int might match the return type of a gcc2
5603    builtin and then its argument prototype would still apply.  */
5604 char tgetent ();
5605 int
5606 main ()
5607 {
5608 tgetent ();
5609   ;
5610   return 0;
5611 }
5612 _ACEOF
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615   (eval $ac_link) 2>conftest.er1
5616   ac_status=$?
5617   grep -v '^ *+' conftest.er1 >conftest.err
5618   rm -f conftest.er1
5619   cat conftest.err >&5
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); } &&
5622          { ac_try='test -z "$ac_c_werror_flag"
5623                          || test ! -s conftest.err'
5624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625   (eval $ac_try) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); }; } &&
5629          { ac_try='test -s conftest$ac_exeext'
5630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631   (eval $ac_try) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); }; }; then
5635   ac_cv_lib_ncurses_tgetent=yes
5636 else
5637   echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 ac_cv_lib_ncurses_tgetent=no
5641 fi
5642 rm -f conftest.err conftest.$ac_objext \
5643       conftest$ac_exeext conftest.$ac_ext
5644 LIBS=$ac_check_lib_save_LIBS
5645 fi
5646 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5647 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5648 if test $ac_cv_lib_ncurses_tgetent = yes; then
5649    CONS_LIBS="-lncurses"
5650            CONS_OBJ="conio.o"
5651            CONS_SRC="conio.c"
5652            got_conio="yes"
5653            support_readline=no
5654
5655 cat >>confdefs.h <<\_ACEOF
5656 #define HAVE_CONIO 1
5657 _ACEOF
5658
5659
5660 fi
5661
5662
5663 fi
5664
5665
5666 else
5667
5668
5669 for ac_header in curses.h
5670 do
5671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5673   echo "$as_me:$LINENO: checking for $ac_header" >&5
5674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 fi
5678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5680 else
5681   # Is the header compilable?
5682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h.  */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h.  */
5690 $ac_includes_default
5691 #include <$ac_header>
5692 _ACEOF
5693 rm -f conftest.$ac_objext
5694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695   (eval $ac_compile) 2>conftest.er1
5696   ac_status=$?
5697   grep -v '^ *+' conftest.er1 >conftest.err
5698   rm -f conftest.er1
5699   cat conftest.err >&5
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); } &&
5702          { ac_try='test -z "$ac_c_werror_flag"
5703                          || test ! -s conftest.err'
5704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705   (eval $ac_try) 2>&5
5706   ac_status=$?
5707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708   (exit $ac_status); }; } &&
5709          { ac_try='test -s conftest.$ac_objext'
5710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711   (eval $ac_try) 2>&5
5712   ac_status=$?
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); }; }; then
5715   ac_header_compiler=yes
5716 else
5717   echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720 ac_header_compiler=no
5721 fi
5722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5724 echo "${ECHO_T}$ac_header_compiler" >&6
5725
5726 # Is the header present?
5727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h.  */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h.  */
5735 #include <$ac_header>
5736 _ACEOF
5737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5739   ac_status=$?
5740   grep -v '^ *+' conftest.er1 >conftest.err
5741   rm -f conftest.er1
5742   cat conftest.err >&5
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); } >/dev/null; then
5745   if test -s conftest.err; then
5746     ac_cpp_err=$ac_c_preproc_warn_flag
5747     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5748   else
5749     ac_cpp_err=
5750   fi
5751 else
5752   ac_cpp_err=yes
5753 fi
5754 if test -z "$ac_cpp_err"; then
5755   ac_header_preproc=yes
5756 else
5757   echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5759
5760   ac_header_preproc=no
5761 fi
5762 rm -f conftest.err conftest.$ac_ext
5763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5764 echo "${ECHO_T}$ac_header_preproc" >&6
5765
5766 # So?  What about this header?
5767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5768   yes:no: )
5769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5773     ac_header_preproc=yes
5774     ;;
5775   no:yes:* )
5776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5778     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5779 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5780     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5782     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5783 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5786     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5788     (
5789       cat <<\_ASBOX
5790 ## ------------------------------------------ ##
5791 ## Report this to the AC_PACKAGE_NAME lists.  ##
5792 ## ------------------------------------------ ##
5793 _ASBOX
5794     ) |
5795       sed "s/^/$as_me: WARNING:     /" >&2
5796     ;;
5797 esac
5798 echo "$as_me:$LINENO: checking for $ac_header" >&5
5799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5801   echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803   eval "$as_ac_Header=\$ac_header_preproc"
5804 fi
5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5807
5808 fi
5809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5810   cat >>confdefs.h <<_ACEOF
5811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5812 _ACEOF
5813
5814 fi
5815
5816 done
5817
5818          echo "$as_me:$LINENO: checking for term.h" >&5
5819 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5820 if test "${ac_cv_header_term_h+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h.  */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h.  */
5829 #if HAVE_CURSES_H
5830 #include <curses.h>
5831 #endif
5832
5833
5834 #include <term.h>
5835 _ACEOF
5836 rm -f conftest.$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838   (eval $ac_compile) 2>conftest.er1
5839   ac_status=$?
5840   grep -v '^ *+' conftest.er1 >conftest.err
5841   rm -f conftest.er1
5842   cat conftest.err >&5
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } &&
5845          { ac_try='test -z "$ac_c_werror_flag"
5846                          || test ! -s conftest.err'
5847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848   (eval $ac_try) 2>&5
5849   ac_status=$?
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); }; } &&
5852          { ac_try='test -s conftest.$ac_objext'
5853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854   (eval $ac_try) 2>&5
5855   ac_status=$?
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); }; }; then
5858   ac_cv_header_term_h=yes
5859 else
5860   echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5862
5863 ac_cv_header_term_h=no
5864 fi
5865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5866 fi
5867 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5868 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5869 if test $ac_cv_header_term_h = yes; then
5870    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5871 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5872 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   ac_check_lib_save_LIBS=$LIBS
5876 LIBS="-lcurses  $LIBS"
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h.  */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h.  */
5883
5884 /* Override any gcc2 internal prototype to avoid an error.  */
5885 #ifdef __cplusplus
5886 extern "C"
5887 #endif
5888 /* We use char because int might match the return type of a gcc2
5889    builtin and then its argument prototype would still apply.  */
5890 char tgetent ();
5891 int
5892 main ()
5893 {
5894 tgetent ();
5895   ;
5896   return 0;
5897 }
5898 _ACEOF
5899 rm -f conftest.$ac_objext conftest$ac_exeext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901   (eval $ac_link) 2>conftest.er1
5902   ac_status=$?
5903   grep -v '^ *+' conftest.er1 >conftest.err
5904   rm -f conftest.er1
5905   cat conftest.err >&5
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); } &&
5908          { ac_try='test -z "$ac_c_werror_flag"
5909                          || test ! -s conftest.err'
5910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911   (eval $ac_try) 2>&5
5912   ac_status=$?
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); }; } &&
5915          { ac_try='test -s conftest$ac_exeext'
5916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917   (eval $ac_try) 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; }; then
5921   ac_cv_lib_curses_tgetent=yes
5922 else
5923   echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5925
5926 ac_cv_lib_curses_tgetent=no
5927 fi
5928 rm -f conftest.err conftest.$ac_objext \
5929       conftest$ac_exeext conftest.$ac_ext
5930 LIBS=$ac_check_lib_save_LIBS
5931 fi
5932 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5933 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5934 if test $ac_cv_lib_curses_tgetent = yes; then
5935    CONS_LIBS="-lcurses"
5936                    CONS_OBJ="conio.o"
5937                    CONS_SRC="conio.c"
5938                    got_conio="yes"
5939                    support_readline=no
5940
5941 cat >>confdefs.h <<\_ACEOF
5942 #define HAVE_CONIO 1
5943 _ACEOF
5944
5945
5946 fi
5947
5948
5949 else
5950    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5951 fi
5952
5953
5954
5955 fi
5956
5957
5958 fi
5959
5960
5961 # ---------------------------------------------------
5962 # Check for readline support/directory (default off)
5963 # ---------------------------------------------------
5964 # this allows you to turn it completely off
5965 # Check whether --enable-readline or --disable-readline was given.
5966 if test "${enable_readline+set}" = set; then
5967   enableval="$enable_readline"
5968   if test x$enableval = xno; then
5969     support_readline=no
5970   fi
5971 fi;
5972
5973 got_readline="no"
5974 READLINE_SRC=
5975 if test x$support_readline = xyes; then
5976
5977 # Check whether --with-readline or --without-readline was given.
5978 if test "${with_readline+set}" = set; then
5979   withval="$with_readline"
5980
5981         case "$with_readline" in
5982         no) : ;;
5983         yes|*)
5984           if test "$with_readline" != "yes"; then
5985             CONS_INC="-I${with_readline}"
5986             CONS_LDFLAGS="-L$with_readline"
5987           else
5988              with_readline="/usr/include/readline"
5989           fi
5990           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5992   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5993 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5995   echo $ECHO_N "(cached) $ECHO_C" >&6
5996 fi
5997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5999 else
6000   # Is the header compilable?
6001 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6002 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6003 cat >conftest.$ac_ext <<_ACEOF
6004 /* confdefs.h.  */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h.  */
6009 $ac_includes_default
6010 #include <${with_readline}/readline.h>
6011 _ACEOF
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014   (eval $ac_compile) 2>conftest.er1
6015   ac_status=$?
6016   grep -v '^ *+' conftest.er1 >conftest.err
6017   rm -f conftest.er1
6018   cat conftest.err >&5
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); } &&
6021          { ac_try='test -z "$ac_c_werror_flag"
6022                          || test ! -s conftest.err'
6023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024   (eval $ac_try) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); }; } &&
6028          { ac_try='test -s conftest.$ac_objext'
6029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030   (eval $ac_try) 2>&5
6031   ac_status=$?
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); }; }; then
6034   ac_header_compiler=yes
6035 else
6036   echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6038
6039 ac_header_compiler=no
6040 fi
6041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6043 echo "${ECHO_T}$ac_header_compiler" >&6
6044
6045 # Is the header present?
6046 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6047 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h.  */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h.  */
6054 #include <${with_readline}/readline.h>
6055 _ACEOF
6056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6058   ac_status=$?
6059   grep -v '^ *+' conftest.er1 >conftest.err
6060   rm -f conftest.er1
6061   cat conftest.err >&5
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); } >/dev/null; then
6064   if test -s conftest.err; then
6065     ac_cpp_err=$ac_c_preproc_warn_flag
6066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6067   else
6068     ac_cpp_err=
6069   fi
6070 else
6071   ac_cpp_err=yes
6072 fi
6073 if test -z "$ac_cpp_err"; then
6074   ac_header_preproc=yes
6075 else
6076   echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6078
6079   ac_header_preproc=no
6080 fi
6081 rm -f conftest.err conftest.$ac_ext
6082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6083 echo "${ECHO_T}$ac_header_preproc" >&6
6084
6085 # So?  What about this header?
6086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6087   yes:no: )
6088     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6089 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6090     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6091 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6092     ac_header_preproc=yes
6093     ;;
6094   no:yes:* )
6095     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6096 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6097     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6098 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6099     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6100 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6101     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6102 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6103     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6104 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6105     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6106 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6107     (
6108       cat <<\_ASBOX
6109 ## ------------------------------------------ ##
6110 ## Report this to the AC_PACKAGE_NAME lists.  ##
6111 ## ------------------------------------------ ##
6112 _ASBOX
6113     ) |
6114       sed "s/^/$as_me: WARNING:     /" >&2
6115     ;;
6116 esac
6117 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6118 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6120   echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122   eval "$as_ac_Header=\$ac_header_preproc"
6123 fi
6124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6126
6127 fi
6128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6129    cat >>confdefs.h <<\_ACEOF
6130 #define HAVE_READLINE 1
6131 _ACEOF
6132
6133                CONS_LIBS="-lreadline -ltermcap"
6134                got_readline="yes"
6135
6136 else
6137    echo " "
6138                echo "readline.h not found. readline turned off ..."
6139                echo " "
6140
6141
6142 fi
6143
6144
6145           ;;
6146         esac
6147
6148 else
6149
6150        # check for standard readline library
6151        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6152   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6153 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6154 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6155   echo $ECHO_N "(cached) $ECHO_C" >&6
6156 fi
6157 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6158 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6159 else
6160   # Is the header compilable?
6161 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6162 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6163 cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169 $ac_includes_default
6170 #include </usr/include/readline/readline.h>
6171 _ACEOF
6172 rm -f conftest.$ac_objext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6174   (eval $ac_compile) 2>conftest.er1
6175   ac_status=$?
6176   grep -v '^ *+' conftest.er1 >conftest.err
6177   rm -f conftest.er1
6178   cat conftest.err >&5
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } &&
6181          { ac_try='test -z "$ac_c_werror_flag"
6182                          || test ! -s conftest.err'
6183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184   (eval $ac_try) 2>&5
6185   ac_status=$?
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); }; } &&
6188          { ac_try='test -s conftest.$ac_objext'
6189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190   (eval $ac_try) 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); }; }; then
6194   ac_header_compiler=yes
6195 else
6196   echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6198
6199 ac_header_compiler=no
6200 fi
6201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6203 echo "${ECHO_T}$ac_header_compiler" >&6
6204
6205 # Is the header present?
6206 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6207 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6208 cat >conftest.$ac_ext <<_ACEOF
6209 /* confdefs.h.  */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h.  */
6214 #include </usr/include/readline/readline.h>
6215 _ACEOF
6216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6218   ac_status=$?
6219   grep -v '^ *+' conftest.er1 >conftest.err
6220   rm -f conftest.er1
6221   cat conftest.err >&5
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); } >/dev/null; then
6224   if test -s conftest.err; then
6225     ac_cpp_err=$ac_c_preproc_warn_flag
6226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6227   else
6228     ac_cpp_err=
6229   fi
6230 else
6231   ac_cpp_err=yes
6232 fi
6233 if test -z "$ac_cpp_err"; then
6234   ac_header_preproc=yes
6235 else
6236   echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239   ac_header_preproc=no
6240 fi
6241 rm -f conftest.err conftest.$ac_ext
6242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6243 echo "${ECHO_T}$ac_header_preproc" >&6
6244
6245 # So?  What about this header?
6246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6247   yes:no: )
6248     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6249 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6250     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6251 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6252     ac_header_preproc=yes
6253     ;;
6254   no:yes:* )
6255     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6256 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6257     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6258 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6259     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6260 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6261     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6262 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6263     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6264 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6265     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6266 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6267     (
6268       cat <<\_ASBOX
6269 ## ------------------------------------------ ##
6270 ## Report this to the AC_PACKAGE_NAME lists.  ##
6271 ## ------------------------------------------ ##
6272 _ASBOX
6273     ) |
6274       sed "s/^/$as_me: WARNING:     /" >&2
6275     ;;
6276 esac
6277 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6278 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6279 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6280   echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6283 fi
6284 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6285 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6286
6287 fi
6288 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6289    cat >>confdefs.h <<\_ACEOF
6290 #define HAVE_READLINE 1
6291 _ACEOF
6292
6293            got_readline="yes"
6294            CONS_INC="-I/usr/include/readline"
6295            CONS_LIBS="-lreadline -ltermcap"
6296
6297 else
6298
6299            # Did not find standard library, so try Bacula's default
6300             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6302   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6303 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6305   echo $ECHO_N "(cached) $ECHO_C" >&6
6306 fi
6307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6309 else
6310   # Is the header compilable?
6311 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6312 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6313 cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h.  */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h.  */
6319 $ac_includes_default
6320 #include <${TOP_DIR}/depkgs/readline/readline.h>
6321 _ACEOF
6322 rm -f conftest.$ac_objext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324   (eval $ac_compile) 2>conftest.er1
6325   ac_status=$?
6326   grep -v '^ *+' conftest.er1 >conftest.err
6327   rm -f conftest.er1
6328   cat conftest.err >&5
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); } &&
6331          { ac_try='test -z "$ac_c_werror_flag"
6332                          || test ! -s conftest.err'
6333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334   (eval $ac_try) 2>&5
6335   ac_status=$?
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); }; } &&
6338          { ac_try='test -s conftest.$ac_objext'
6339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340   (eval $ac_try) 2>&5
6341   ac_status=$?
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); }; }; then
6344   ac_header_compiler=yes
6345 else
6346   echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6348
6349 ac_header_compiler=no
6350 fi
6351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6353 echo "${ECHO_T}$ac_header_compiler" >&6
6354
6355 # Is the header present?
6356 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6357 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6358 cat >conftest.$ac_ext <<_ACEOF
6359 /* confdefs.h.  */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h.  */
6364 #include <${TOP_DIR}/depkgs/readline/readline.h>
6365 _ACEOF
6366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6368   ac_status=$?
6369   grep -v '^ *+' conftest.er1 >conftest.err
6370   rm -f conftest.er1
6371   cat conftest.err >&5
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); } >/dev/null; then
6374   if test -s conftest.err; then
6375     ac_cpp_err=$ac_c_preproc_warn_flag
6376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6377   else
6378     ac_cpp_err=
6379   fi
6380 else
6381   ac_cpp_err=yes
6382 fi
6383 if test -z "$ac_cpp_err"; then
6384   ac_header_preproc=yes
6385 else
6386   echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6388
6389   ac_header_preproc=no
6390 fi
6391 rm -f conftest.err conftest.$ac_ext
6392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6393 echo "${ECHO_T}$ac_header_preproc" >&6
6394
6395 # So?  What about this header?
6396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6397   yes:no: )
6398     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6399 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6400     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6401 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6402     ac_header_preproc=yes
6403     ;;
6404   no:yes:* )
6405     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6406 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6407     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6408 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6409     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6410 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6411     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6412 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6413     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6414 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6415     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6416 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6417     (
6418       cat <<\_ASBOX
6419 ## ------------------------------------------ ##
6420 ## Report this to the AC_PACKAGE_NAME lists.  ##
6421 ## ------------------------------------------ ##
6422 _ASBOX
6423     ) |
6424       sed "s/^/$as_me: WARNING:     /" >&2
6425     ;;
6426 esac
6427 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6428 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6430   echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432   eval "$as_ac_Header=\$ac_header_preproc"
6433 fi
6434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6436
6437 fi
6438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6439    cat >>confdefs.h <<\_ACEOF
6440 #define HAVE_READLINE 1
6441 _ACEOF
6442
6443                  got_readline="yes"
6444                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6445                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6446                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6447                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6448
6449 else
6450    echo " "
6451                 echo "readline.h not found. readline turned off ..."
6452                 echo " "
6453
6454
6455 fi
6456
6457
6458
6459
6460 fi
6461
6462
6463
6464
6465 fi;
6466 fi
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477 # Minimal stuff for readline Makefile configuration
6478 MAKE_SHELL=/bin/sh
6479
6480 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6481 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6482 if test "${ac_cv_header_stat_broken+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   cat >conftest.$ac_ext <<_ACEOF
6486 /* confdefs.h.  */
6487 _ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h.  */
6491 #include <sys/types.h>
6492 #include <sys/stat.h>
6493
6494 #if defined(S_ISBLK) && defined(S_IFDIR)
6495 # if S_ISBLK (S_IFDIR)
6496 You lose.
6497 # endif
6498 #endif
6499
6500 #if defined(S_ISBLK) && defined(S_IFCHR)
6501 # if S_ISBLK (S_IFCHR)
6502 You lose.
6503 # endif
6504 #endif
6505
6506 #if defined(S_ISLNK) && defined(S_IFREG)
6507 # if S_ISLNK (S_IFREG)
6508 You lose.
6509 # endif
6510 #endif
6511
6512 #if defined(S_ISSOCK) && defined(S_IFREG)
6513 # if S_ISSOCK (S_IFREG)
6514 You lose.
6515 # endif
6516 #endif
6517
6518 _ACEOF
6519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6520   $EGREP "You lose" >/dev/null 2>&1; then
6521   ac_cv_header_stat_broken=yes
6522 else
6523   ac_cv_header_stat_broken=no
6524 fi
6525 rm -f conftest*
6526
6527 fi
6528 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6529 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6530 if test $ac_cv_header_stat_broken = yes; then
6531
6532 cat >>confdefs.h <<\_ACEOF
6533 #define STAT_MACROS_BROKEN 1
6534 _ACEOF
6535
6536 fi
6537
6538
6539
6540
6541
6542
6543 ac_header_dirent=no
6544 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6545   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6546 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6547 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551   cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h.  */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h.  */
6557 #include <sys/types.h>
6558 #include <$ac_hdr>
6559
6560 int
6561 main ()
6562 {
6563 if ((DIR *) 0)
6564 return 0;
6565   ;
6566   return 0;
6567 }
6568 _ACEOF
6569 rm -f conftest.$ac_objext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571   (eval $ac_compile) 2>conftest.er1
6572   ac_status=$?
6573   grep -v '^ *+' conftest.er1 >conftest.err
6574   rm -f conftest.er1
6575   cat conftest.err >&5
6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577   (exit $ac_status); } &&
6578          { ac_try='test -z "$ac_c_werror_flag"
6579                          || test ! -s conftest.err'
6580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581   (eval $ac_try) 2>&5
6582   ac_status=$?
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); }; } &&
6585          { ac_try='test -s conftest.$ac_objext'
6586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587   (eval $ac_try) 2>&5
6588   ac_status=$?
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); }; }; then
6591   eval "$as_ac_Header=yes"
6592 else
6593   echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6595
6596 eval "$as_ac_Header=no"
6597 fi
6598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6599 fi
6600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6603   cat >>confdefs.h <<_ACEOF
6604 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6605 _ACEOF
6606
6607 ac_header_dirent=$ac_hdr; break
6608 fi
6609
6610 done
6611 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6612 if test $ac_header_dirent = dirent.h; then
6613   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6614 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6615 if test "${ac_cv_search_opendir+set}" = set; then
6616   echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618   ac_func_search_save_LIBS=$LIBS
6619 ac_cv_search_opendir=no
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h.  */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h.  */
6626
6627 /* Override any gcc2 internal prototype to avoid an error.  */
6628 #ifdef __cplusplus
6629 extern "C"
6630 #endif
6631 /* We use char because int might match the return type of a gcc2
6632    builtin and then its argument prototype would still apply.  */
6633 char opendir ();
6634 int
6635 main ()
6636 {
6637 opendir ();
6638   ;
6639   return 0;
6640 }
6641 _ACEOF
6642 rm -f conftest.$ac_objext conftest$ac_exeext
6643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6644   (eval $ac_link) 2>conftest.er1
6645   ac_status=$?
6646   grep -v '^ *+' conftest.er1 >conftest.err
6647   rm -f conftest.er1
6648   cat conftest.err >&5
6649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); } &&
6651          { ac_try='test -z "$ac_c_werror_flag"
6652                          || test ! -s conftest.err'
6653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654   (eval $ac_try) 2>&5
6655   ac_status=$?
6656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657   (exit $ac_status); }; } &&
6658          { ac_try='test -s conftest$ac_exeext'
6659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660   (eval $ac_try) 2>&5
6661   ac_status=$?
6662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663   (exit $ac_status); }; }; then
6664   ac_cv_search_opendir="none required"
6665 else
6666   echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6668
6669 fi
6670 rm -f conftest.err conftest.$ac_objext \
6671       conftest$ac_exeext conftest.$ac_ext
6672 if test "$ac_cv_search_opendir" = no; then
6673   for ac_lib in dir; do
6674     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6675     cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h.  */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h.  */
6681
6682 /* Override any gcc2 internal prototype to avoid an error.  */
6683 #ifdef __cplusplus
6684 extern "C"
6685 #endif
6686 /* We use char because int might match the return type of a gcc2
6687    builtin and then its argument prototype would still apply.  */
6688 char opendir ();
6689 int
6690 main ()
6691 {
6692 opendir ();
6693   ;
6694   return 0;
6695 }
6696 _ACEOF
6697 rm -f conftest.$ac_objext conftest$ac_exeext
6698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6699   (eval $ac_link) 2>conftest.er1
6700   ac_status=$?
6701   grep -v '^ *+' conftest.er1 >conftest.err
6702   rm -f conftest.er1
6703   cat conftest.err >&5
6704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705   (exit $ac_status); } &&
6706          { ac_try='test -z "$ac_c_werror_flag"
6707                          || test ! -s conftest.err'
6708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709   (eval $ac_try) 2>&5
6710   ac_status=$?
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); }; } &&
6713          { ac_try='test -s conftest$ac_exeext'
6714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715   (eval $ac_try) 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); }; }; then
6719   ac_cv_search_opendir="-l$ac_lib"
6720 break
6721 else
6722   echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6724
6725 fi
6726 rm -f conftest.err conftest.$ac_objext \
6727       conftest$ac_exeext conftest.$ac_ext
6728   done
6729 fi
6730 LIBS=$ac_func_search_save_LIBS
6731 fi
6732 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6733 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6734 if test "$ac_cv_search_opendir" != no; then
6735   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6736
6737 fi
6738
6739 else
6740   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6741 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6742 if test "${ac_cv_search_opendir+set}" = set; then
6743   echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745   ac_func_search_save_LIBS=$LIBS
6746 ac_cv_search_opendir=no
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h.  */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h.  */
6753
6754 /* Override any gcc2 internal prototype to avoid an error.  */
6755 #ifdef __cplusplus
6756 extern "C"
6757 #endif
6758 /* We use char because int might match the return type of a gcc2
6759    builtin and then its argument prototype would still apply.  */
6760 char opendir ();
6761 int
6762 main ()
6763 {
6764 opendir ();
6765   ;
6766   return 0;
6767 }
6768 _ACEOF
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6771   (eval $ac_link) 2>conftest.er1
6772   ac_status=$?
6773   grep -v '^ *+' conftest.er1 >conftest.err
6774   rm -f conftest.er1
6775   cat conftest.err >&5
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } &&
6778          { ac_try='test -z "$ac_c_werror_flag"
6779                          || test ! -s conftest.err'
6780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781   (eval $ac_try) 2>&5
6782   ac_status=$?
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); }; } &&
6785          { ac_try='test -s conftest$ac_exeext'
6786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787   (eval $ac_try) 2>&5
6788   ac_status=$?
6789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790   (exit $ac_status); }; }; then
6791   ac_cv_search_opendir="none required"
6792 else
6793   echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 fi
6797 rm -f conftest.err conftest.$ac_objext \
6798       conftest$ac_exeext conftest.$ac_ext
6799 if test "$ac_cv_search_opendir" = no; then
6800   for ac_lib in x; do
6801     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6802     cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h.  */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h.  */
6808
6809 /* Override any gcc2 internal prototype to avoid an error.  */
6810 #ifdef __cplusplus
6811 extern "C"
6812 #endif
6813 /* We use char because int might match the return type of a gcc2
6814    builtin and then its argument prototype would still apply.  */
6815 char opendir ();
6816 int
6817 main ()
6818 {
6819 opendir ();
6820   ;
6821   return 0;
6822 }
6823 _ACEOF
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826   (eval $ac_link) 2>conftest.er1
6827   ac_status=$?
6828   grep -v '^ *+' conftest.er1 >conftest.err
6829   rm -f conftest.er1
6830   cat conftest.err >&5
6831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832   (exit $ac_status); } &&
6833          { ac_try='test -z "$ac_c_werror_flag"
6834                          || test ! -s conftest.err'
6835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836   (eval $ac_try) 2>&5
6837   ac_status=$?
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); }; } &&
6840          { ac_try='test -s conftest$ac_exeext'
6841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842   (eval $ac_try) 2>&5
6843   ac_status=$?
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); }; }; then
6846   ac_cv_search_opendir="-l$ac_lib"
6847 break
6848 else
6849   echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6851
6852 fi
6853 rm -f conftest.err conftest.$ac_objext \
6854       conftest$ac_exeext conftest.$ac_ext
6855   done
6856 fi
6857 LIBS=$ac_func_search_save_LIBS
6858 fi
6859 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6860 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6861 if test "$ac_cv_search_opendir" != no; then
6862   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6863
6864 fi
6865
6866 fi
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6877 do
6878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6879 echo "$as_me:$LINENO: checking for $ac_func" >&5
6880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6881 if eval "test \"\${$as_ac_var+set}\" = set"; then
6882   echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884   cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h.  */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h.  */
6890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6892 #define $ac_func innocuous_$ac_func
6893
6894 /* System header to define __stub macros and hopefully few prototypes,
6895     which can conflict with char $ac_func (); below.
6896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6897     <limits.h> exists even on freestanding compilers.  */
6898
6899 #ifdef __STDC__
6900 # include <limits.h>
6901 #else
6902 # include <assert.h>
6903 #endif
6904
6905 #undef $ac_func
6906
6907 /* Override any gcc2 internal prototype to avoid an error.  */
6908 #ifdef __cplusplus
6909 extern "C"
6910 {
6911 #endif
6912 /* We use char because int might match the return type of a gcc2
6913    builtin and then its argument prototype would still apply.  */
6914 char $ac_func ();
6915 /* The GNU C library defines this for functions which it implements
6916     to always fail with ENOSYS.  Some functions are actually named
6917     something starting with __ and the normal name is an alias.  */
6918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6919 choke me
6920 #else
6921 char (*f) () = $ac_func;
6922 #endif
6923 #ifdef __cplusplus
6924 }
6925 #endif
6926
6927 int
6928 main ()
6929 {
6930 return f != $ac_func;
6931   ;
6932   return 0;
6933 }
6934 _ACEOF
6935 rm -f conftest.$ac_objext conftest$ac_exeext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937   (eval $ac_link) 2>conftest.er1
6938   ac_status=$?
6939   grep -v '^ *+' conftest.er1 >conftest.err
6940   rm -f conftest.er1
6941   cat conftest.err >&5
6942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943   (exit $ac_status); } &&
6944          { ac_try='test -z "$ac_c_werror_flag"
6945                          || test ! -s conftest.err'
6946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947   (eval $ac_try) 2>&5
6948   ac_status=$?
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); }; } &&
6951          { ac_try='test -s conftest$ac_exeext'
6952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953   (eval $ac_try) 2>&5
6954   ac_status=$?
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); }; }; then
6957   eval "$as_ac_var=yes"
6958 else
6959   echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6961
6962 eval "$as_ac_var=no"
6963 fi
6964 rm -f conftest.err conftest.$ac_objext \
6965       conftest$ac_exeext conftest.$ac_ext
6966 fi
6967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6969 if test `eval echo '${'$as_ac_var'}'` = yes; then
6970   cat >>confdefs.h <<_ACEOF
6971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6972 _ACEOF
6973
6974 fi
6975 done
6976
6977
6978
6979 for ac_func in nanosleep nl_langinfo
6980 do
6981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6982 echo "$as_me:$LINENO: checking for $ac_func" >&5
6983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6984 if eval "test \"\${$as_ac_var+set}\" = set"; then
6985   echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987   cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h.  */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h.  */
6993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6995 #define $ac_func innocuous_$ac_func
6996
6997 /* System header to define __stub macros and hopefully few prototypes,
6998     which can conflict with char $ac_func (); below.
6999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7000     <limits.h> exists even on freestanding compilers.  */
7001
7002 #ifdef __STDC__
7003 # include <limits.h>
7004 #else
7005 # include <assert.h>
7006 #endif
7007
7008 #undef $ac_func
7009
7010 /* Override any gcc2 internal prototype to avoid an error.  */
7011 #ifdef __cplusplus
7012 extern "C"
7013 {
7014 #endif
7015 /* We use char because int might match the return type of a gcc2
7016    builtin and then its argument prototype would still apply.  */
7017 char $ac_func ();
7018 /* The GNU C library defines this for functions which it implements
7019     to always fail with ENOSYS.  Some functions are actually named
7020     something starting with __ and the normal name is an alias.  */
7021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7022 choke me
7023 #else
7024 char (*f) () = $ac_func;
7025 #endif
7026 #ifdef __cplusplus
7027 }
7028 #endif
7029
7030 int
7031 main ()
7032 {
7033 return f != $ac_func;
7034   ;
7035   return 0;
7036 }
7037 _ACEOF
7038 rm -f conftest.$ac_objext conftest$ac_exeext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040   (eval $ac_link) 2>conftest.er1
7041   ac_status=$?
7042   grep -v '^ *+' conftest.er1 >conftest.err
7043   rm -f conftest.er1
7044   cat conftest.err >&5
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); } &&
7047          { ac_try='test -z "$ac_c_werror_flag"
7048                          || test ! -s conftest.err'
7049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050   (eval $ac_try) 2>&5
7051   ac_status=$?
7052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053   (exit $ac_status); }; } &&
7054          { ac_try='test -s conftest$ac_exeext'
7055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056   (eval $ac_try) 2>&5
7057   ac_status=$?
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); }; }; then
7060   eval "$as_ac_var=yes"
7061 else
7062   echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7064
7065 eval "$as_ac_var=no"
7066 fi
7067 rm -f conftest.err conftest.$ac_objext \
7068       conftest$ac_exeext conftest.$ac_ext
7069 fi
7070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7072 if test `eval echo '${'$as_ac_var'}'` = yes; then
7073   cat >>confdefs.h <<_ACEOF
7074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7075 _ACEOF
7076
7077 fi
7078 done
7079
7080
7081 for ac_header in varargs.h
7082 do
7083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7085   echo "$as_me:$LINENO: checking for $ac_header" >&5
7086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 fi
7090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7092 else
7093   # Is the header compilable?
7094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7096 cat >conftest.$ac_ext <<_ACEOF
7097 /* confdefs.h.  */
7098 _ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h.  */
7102 $ac_includes_default
7103 #include <$ac_header>
7104 _ACEOF
7105 rm -f conftest.$ac_objext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107   (eval $ac_compile) 2>conftest.er1
7108   ac_status=$?
7109   grep -v '^ *+' conftest.er1 >conftest.err
7110   rm -f conftest.er1
7111   cat conftest.err >&5
7112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113   (exit $ac_status); } &&
7114          { ac_try='test -z "$ac_c_werror_flag"
7115                          || test ! -s conftest.err'
7116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117   (eval $ac_try) 2>&5
7118   ac_status=$?
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); }; } &&
7121          { ac_try='test -s conftest.$ac_objext'
7122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123   (eval $ac_try) 2>&5
7124   ac_status=$?
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); }; }; then
7127   ac_header_compiler=yes
7128 else
7129   echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132 ac_header_compiler=no
7133 fi
7134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7136 echo "${ECHO_T}$ac_header_compiler" >&6
7137
7138 # Is the header present?
7139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7141 cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h.  */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h.  */
7147 #include <$ac_header>
7148 _ACEOF
7149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7151   ac_status=$?
7152   grep -v '^ *+' conftest.er1 >conftest.err
7153   rm -f conftest.er1
7154   cat conftest.err >&5
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); } >/dev/null; then
7157   if test -s conftest.err; then
7158     ac_cpp_err=$ac_c_preproc_warn_flag
7159     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7160   else
7161     ac_cpp_err=
7162   fi
7163 else
7164   ac_cpp_err=yes
7165 fi
7166 if test -z "$ac_cpp_err"; then
7167   ac_header_preproc=yes
7168 else
7169   echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7171
7172   ac_header_preproc=no
7173 fi
7174 rm -f conftest.err conftest.$ac_ext
7175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7176 echo "${ECHO_T}$ac_header_preproc" >&6
7177
7178 # So?  What about this header?
7179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7180   yes:no: )
7181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7185     ac_header_preproc=yes
7186     ;;
7187   no:yes:* )
7188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7190     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7191 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7192     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7194     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7195 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7198     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7200     (
7201       cat <<\_ASBOX
7202 ## ------------------------------------------ ##
7203 ## Report this to the AC_PACKAGE_NAME lists.  ##
7204 ## ------------------------------------------ ##
7205 _ASBOX
7206     ) |
7207       sed "s/^/$as_me: WARNING:     /" >&2
7208     ;;
7209 esac
7210 echo "$as_me:$LINENO: checking for $ac_header" >&5
7211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7213   echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215   eval "$as_ac_Header=\$ac_header_preproc"
7216 fi
7217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7219
7220 fi
7221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7222   cat >>confdefs.h <<_ACEOF
7223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7224 _ACEOF
7225
7226 fi
7227
7228 done
7229
7230
7231 # End of readline/conio stuff
7232 # -----------------------------------------------------------------------
7233
7234 # -----------------------------------------------------------------------
7235 #  Check for Python support
7236 #
7237 echo "$as_me:$LINENO: checking for Python support" >&5
7238 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7239
7240 # Check whether --with-python or --without-python was given.
7241 if test "${with_python+set}" = set; then
7242   withval="$with_python"
7243
7244   PYTHON_INCDIR=
7245   PYTHON_LIBS=
7246   if test "$withval" != "no"; then
7247      if test "$withval" = "yes"; then
7248         if test -f /usr/include/python2.2/Python.h; then
7249            PYTHON_INCDIR=-I/usr/include/python2.2
7250            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7251         elif test -f /usr/include/python2.3/Python.h; then
7252            PYTHON_INCDIR=-I/usr/include/python2.3
7253            PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7254         elif test -f /usr/include/python2.4/Python.h; then
7255            PYTHON_INCDIR=-I/usr/include/python2.4
7256            PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7257         elif test -f $prefix/include/Python.h; then
7258            PYTHON_INCDIR=-I$prefix/include
7259            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7260         else
7261            echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6
7263            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7264 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7265    { (exit 1); exit 1; }; }
7266         fi
7267      else
7268         if test -f $withval/Python.h; then
7269            PYTHON_INCDIR=-I$withval
7270            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7271         elif test -f $withval/include/Python.h; then
7272            PYTHON_INCDIR=-I$withval/include
7273            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7274         else
7275            echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7277            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7278 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7279    { (exit 1); exit 1; }; }
7280         fi
7281      fi
7282      cat >>confdefs.h <<\_ACEOF
7283 #define HAVE_PYTHON 1
7284 _ACEOF
7285
7286      echo "$as_me:$LINENO: result: yes" >&5
7287 echo "${ECHO_T}yes" >&6
7288      support_python=yes
7289
7290   else
7291      echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6
7293   fi
7294
7295 else
7296
7297   echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6
7299
7300 fi;
7301
7302
7303
7304
7305 #
7306 # Find where sockets are (especially for Solaris)
7307 # Do this before the TCP Wrappers test since tcp wrappers
7308 # uses the socket library and some linkers are stupid.
7309 #
7310 echo "$as_me:$LINENO: checking for socket" >&5
7311 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7312 if test "${ac_cv_func_socket+set}" = set; then
7313   echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315   cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h.  */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h.  */
7321 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7323 #define socket innocuous_socket
7324
7325 /* System header to define __stub macros and hopefully few prototypes,
7326     which can conflict with char socket (); below.
7327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7328     <limits.h> exists even on freestanding compilers.  */
7329
7330 #ifdef __STDC__
7331 # include <limits.h>
7332 #else
7333 # include <assert.h>
7334 #endif
7335
7336 #undef socket
7337
7338 /* Override any gcc2 internal prototype to avoid an error.  */
7339 #ifdef __cplusplus
7340 extern "C"
7341 {
7342 #endif
7343 /* We use char because int might match the return type of a gcc2
7344    builtin and then its argument prototype would still apply.  */
7345 char socket ();
7346 /* The GNU C library defines this for functions which it implements
7347     to always fail with ENOSYS.  Some functions are actually named
7348     something starting with __ and the normal name is an alias.  */
7349 #if defined (__stub_socket) || defined (__stub___socket)
7350 choke me
7351 #else
7352 char (*f) () = socket;
7353 #endif
7354 #ifdef __cplusplus
7355 }
7356 #endif
7357
7358 int
7359 main ()
7360 {
7361 return f != socket;
7362   ;
7363   return 0;
7364 }
7365 _ACEOF
7366 rm -f conftest.$ac_objext conftest$ac_exeext
7367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7368   (eval $ac_link) 2>conftest.er1
7369   ac_status=$?
7370   grep -v '^ *+' conftest.er1 >conftest.err
7371   rm -f conftest.er1
7372   cat conftest.err >&5
7373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374   (exit $ac_status); } &&
7375          { ac_try='test -z "$ac_c_werror_flag"
7376                          || test ! -s conftest.err'
7377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378   (eval $ac_try) 2>&5
7379   ac_status=$?
7380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); }; } &&
7382          { ac_try='test -s conftest$ac_exeext'
7383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384   (eval $ac_try) 2>&5
7385   ac_status=$?
7386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387   (exit $ac_status); }; }; then
7388   ac_cv_func_socket=yes
7389 else
7390   echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7392
7393 ac_cv_func_socket=no
7394 fi
7395 rm -f conftest.err conftest.$ac_objext \
7396       conftest$ac_exeext conftest.$ac_ext
7397 fi
7398 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7399 echo "${ECHO_T}$ac_cv_func_socket" >&6
7400 if test $ac_cv_func_socket = yes; then
7401   echo "$as_me:$LINENO: result: using libc's socket" >&5
7402 echo "${ECHO_T}using libc's socket" >&6
7403 else
7404
7405 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7406 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7407 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7408   echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410   ac_check_lib_save_LIBS=$LIBS
7411 LIBS="-lxnet  $LIBS"
7412 cat >conftest.$ac_ext <<_ACEOF
7413 /* confdefs.h.  */
7414 _ACEOF
7415 cat confdefs.h >>conftest.$ac_ext
7416 cat >>conftest.$ac_ext <<_ACEOF
7417 /* end confdefs.h.  */
7418
7419 /* Override any gcc2 internal prototype to avoid an error.  */
7420 #ifdef __cplusplus
7421 extern "C"
7422 #endif
7423 /* We use char because int might match the return type of a gcc2
7424    builtin and then its argument prototype would still apply.  */
7425 char socket ();
7426 int
7427 main ()
7428 {
7429 socket ();
7430   ;
7431   return 0;
7432 }
7433 _ACEOF
7434 rm -f conftest.$ac_objext conftest$ac_exeext
7435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7436   (eval $ac_link) 2>conftest.er1
7437   ac_status=$?
7438   grep -v '^ *+' conftest.er1 >conftest.err
7439   rm -f conftest.er1
7440   cat conftest.err >&5
7441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442   (exit $ac_status); } &&
7443          { ac_try='test -z "$ac_c_werror_flag"
7444                          || test ! -s conftest.err'
7445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446   (eval $ac_try) 2>&5
7447   ac_status=$?
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); }; } &&
7450          { ac_try='test -s conftest$ac_exeext'
7451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452   (eval $ac_try) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }; }; then
7456   ac_cv_lib_xnet_socket=yes
7457 else
7458   echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7460
7461 ac_cv_lib_xnet_socket=no
7462 fi
7463 rm -f conftest.err conftest.$ac_objext \
7464       conftest$ac_exeext conftest.$ac_ext
7465 LIBS=$ac_check_lib_save_LIBS
7466 fi
7467 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7468 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7469 if test $ac_cv_lib_xnet_socket = yes; then
7470   cat >>confdefs.h <<_ACEOF
7471 #define HAVE_LIBXNET 1
7472 _ACEOF
7473
7474   LIBS="-lxnet $LIBS"
7475
7476 fi
7477
7478
7479 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7480 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7481 if test "${ac_cv_lib_socket_socket+set}" = set; then
7482   echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484   ac_check_lib_save_LIBS=$LIBS
7485 LIBS="-lsocket  $LIBS"
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h.  */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h.  */
7492
7493 /* Override any gcc2 internal prototype to avoid an error.  */
7494 #ifdef __cplusplus
7495 extern "C"
7496 #endif
7497 /* We use char because int might match the return type of a gcc2
7498    builtin and then its argument prototype would still apply.  */
7499 char socket ();
7500 int
7501 main ()
7502 {
7503 socket ();
7504   ;
7505   return 0;
7506 }
7507 _ACEOF
7508 rm -f conftest.$ac_objext conftest$ac_exeext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7510   (eval $ac_link) 2>conftest.er1
7511   ac_status=$?
7512   grep -v '^ *+' conftest.er1 >conftest.err
7513   rm -f conftest.er1
7514   cat conftest.err >&5
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); } &&
7517          { ac_try='test -z "$ac_c_werror_flag"
7518                          || test ! -s conftest.err'
7519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520   (eval $ac_try) 2>&5
7521   ac_status=$?
7522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523   (exit $ac_status); }; } &&
7524          { ac_try='test -s conftest$ac_exeext'
7525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526   (eval $ac_try) 2>&5
7527   ac_status=$?
7528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529   (exit $ac_status); }; }; then
7530   ac_cv_lib_socket_socket=yes
7531 else
7532   echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7534
7535 ac_cv_lib_socket_socket=no
7536 fi
7537 rm -f conftest.err conftest.$ac_objext \
7538       conftest$ac_exeext conftest.$ac_ext
7539 LIBS=$ac_check_lib_save_LIBS
7540 fi
7541 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7542 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7543 if test $ac_cv_lib_socket_socket = yes; then
7544   cat >>confdefs.h <<_ACEOF
7545 #define HAVE_LIBSOCKET 1
7546 _ACEOF
7547
7548   LIBS="-lsocket $LIBS"
7549
7550 fi
7551
7552
7553 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7554 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7555 if test "${ac_cv_lib_inet_socket+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   ac_check_lib_save_LIBS=$LIBS
7559 LIBS="-linet  $LIBS"
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h.  */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h.  */
7566
7567 /* Override any gcc2 internal prototype to avoid an error.  */
7568 #ifdef __cplusplus
7569 extern "C"
7570 #endif
7571 /* We use char because int might match the return type of a gcc2
7572    builtin and then its argument prototype would still apply.  */
7573 char socket ();
7574 int
7575 main ()
7576 {
7577 socket ();
7578   ;
7579   return 0;
7580 }
7581 _ACEOF
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7584   (eval $ac_link) 2>conftest.er1
7585   ac_status=$?
7586   grep -v '^ *+' conftest.er1 >conftest.err
7587   rm -f conftest.er1
7588   cat conftest.err >&5
7589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590   (exit $ac_status); } &&
7591          { ac_try='test -z "$ac_c_werror_flag"
7592                          || test ! -s conftest.err'
7593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594   (eval $ac_try) 2>&5
7595   ac_status=$?
7596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597   (exit $ac_status); }; } &&
7598          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7604   ac_cv_lib_inet_socket=yes
7605 else
7606   echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7608
7609 ac_cv_lib_inet_socket=no
7610 fi
7611 rm -f conftest.err conftest.$ac_objext \
7612       conftest$ac_exeext conftest.$ac_ext
7613 LIBS=$ac_check_lib_save_LIBS
7614 fi
7615 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7616 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7617 if test $ac_cv_lib_inet_socket = yes; then
7618   cat >>confdefs.h <<_ACEOF
7619 #define HAVE_LIBINET 1
7620 _ACEOF
7621
7622   LIBS="-linet $LIBS"
7623
7624 fi
7625
7626 fi
7627
7628
7629
7630 # -----------------------------------------------------------
7631 # Check whether user wants TCP wrappers support (default off)
7632 # -----------------------------------------------------------
7633 TCPW_MSG="no"
7634
7635 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7636 if test "${with_tcp_wrappers+set}" = set; then
7637   withval="$with_tcp_wrappers"
7638
7639     if test "x$withval" != "xno" ; then
7640        saved_LIBS="$LIBS"
7641        LIBS="$saved_LIBS -lwrap"
7642        echo "$as_me:$LINENO: checking for libwrap" >&5
7643 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7644        cat >conftest.$ac_ext <<_ACEOF
7645 /* confdefs.h.  */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h.  */
7650  #include <tcpd.h>
7651              int deny_severity = 0;
7652              int allow_severity = 0;
7653              struct request_info *req;
7654 int
7655 main ()
7656 {
7657  hosts_access(req);
7658   ;
7659   return 0;
7660 }
7661 _ACEOF
7662 rm -f conftest.$ac_objext conftest$ac_exeext
7663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7664   (eval $ac_link) 2>conftest.er1
7665   ac_status=$?
7666   grep -v '^ *+' conftest.er1 >conftest.err
7667   rm -f conftest.er1
7668   cat conftest.err >&5
7669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670   (exit $ac_status); } &&
7671          { ac_try='test -z "$ac_c_werror_flag"
7672                          || test ! -s conftest.err'
7673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674   (eval $ac_try) 2>&5
7675   ac_status=$?
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); }; } &&
7678          { ac_try='test -s conftest$ac_exeext'
7679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680   (eval $ac_try) 2>&5
7681   ac_status=$?
7682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683   (exit $ac_status); }; }; then
7684
7685             echo "$as_me:$LINENO: result: yes" >&5
7686 echo "${ECHO_T}yes" >&6
7687             cat >>confdefs.h <<\_ACEOF
7688 #define HAVE_LIBWRAP 1
7689 _ACEOF
7690
7691             TCPW_MSG="yes"
7692
7693 else
7694   echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7696
7697
7698             LIBS="$saved_LIBS -lwrap -lnsl"
7699             cat >conftest.$ac_ext <<_ACEOF
7700 /* confdefs.h.  */
7701 _ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h.  */
7705  #include <tcpd.h>
7706                  int deny_severity = 0;
7707                  int allow_severity = 0;
7708                  struct request_info *req;
7709 int
7710 main ()
7711 {
7712  hosts_access(req);
7713   ;
7714   return 0;
7715 }
7716 _ACEOF
7717 rm -f conftest.$ac_objext conftest$ac_exeext
7718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7719   (eval $ac_link) 2>conftest.er1
7720   ac_status=$?
7721   grep -v '^ *+' conftest.er1 >conftest.err
7722   rm -f conftest.er1
7723   cat conftest.err >&5
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   (exit $ac_status); } &&
7726          { ac_try='test -z "$ac_c_werror_flag"
7727                          || test ! -s conftest.err'
7728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729   (eval $ac_try) 2>&5
7730   ac_status=$?
7731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732   (exit $ac_status); }; } &&
7733          { ac_try='test -s conftest$ac_exeext'
7734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735   (eval $ac_try) 2>&5
7736   ac_status=$?
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); }; }; then
7739
7740                  echo "$as_me:$LINENO: result: yes" >&5
7741 echo "${ECHO_T}yes" >&6
7742                  cat >>confdefs.h <<\_ACEOF
7743 #define HAVE_LIBWRAP 1
7744 _ACEOF
7745
7746                  TCPW_MSG="yes"
7747
7748 else
7749   echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7751
7752 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7753 echo "$as_me: error: *** libwrap missing" >&2;}
7754    { (exit 1); exit 1; }; }
7755
7756 fi
7757 rm -f conftest.err conftest.$ac_objext \
7758       conftest$ac_exeext conftest.$ac_ext
7759
7760 fi
7761 rm -f conftest.err conftest.$ac_objext \
7762       conftest$ac_exeext conftest.$ac_ext
7763     fi
7764
7765
7766 fi;
7767
7768 # -----------------------------------------------------------
7769 # Check whether OpenSSL is available
7770 # -----------------------------------------------------------
7771 echo "$as_me:$LINENO: checking for OpenSSL" >&5
7772 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7773
7774 # Check whether --with-openssl or --without-openssl was given.
7775 if test "${with_openssl+set}" = set; then
7776   withval="$with_openssl"
7777   with_openssl_directory=${withval}
7778 fi;
7779
7780 if test "x$with_openssl_directory" != "x"; then
7781         OPENSSL_LIBS="-lssl -lcrypto"
7782         OPENSSL_INC=""
7783
7784         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
7785                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
7786                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
7787         fi
7788
7789         saved_LIBS="$LIBS"
7790         saved_CFLAGS="$CFLAGS"
7791         LIBS="$saved_LIBS $OPENSSL_LIBS"
7792         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
7793
7794         cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h.  */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h.  */
7800  #include <openssl/ssl.h>
7801 int
7802 main ()
7803 {
7804  CRYPTO_set_id_callback(NULL);
7805   ;
7806   return 0;
7807 }
7808 _ACEOF
7809 rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7811   (eval $ac_link) 2>conftest.er1
7812   ac_status=$?
7813   grep -v '^ *+' conftest.er1 >conftest.err
7814   rm -f conftest.er1
7815   cat conftest.err >&5
7816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817   (exit $ac_status); } &&
7818          { ac_try='test -z "$ac_c_werror_flag"
7819                          || test ! -s conftest.err'
7820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821   (eval $ac_try) 2>&5
7822   ac_status=$?
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); }; } &&
7825          { ac_try='test -s conftest$ac_exeext'
7826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827   (eval $ac_try) 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); }; }; then
7831    support_tls="yes"
7832 else
7833   echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7835
7836  support_tls="no"
7837
7838 fi
7839 rm -f conftest.err conftest.$ac_objext \
7840       conftest$ac_exeext conftest.$ac_ext
7841
7842         LIBS="$saved_LIBS"
7843         CFLAGS="$saved_CFLAGS"
7844
7845         if test "$support_tls" = "yes"; then
7846
7847 cat >>confdefs.h <<\_ACEOF
7848 #define HAVE_OPENSSL 1
7849 _ACEOF
7850
7851
7852 cat >>confdefs.h <<\_ACEOF
7853 #define HAVE_TLS 1
7854 _ACEOF
7855
7856         fi
7857 else
7858         support_tls="no"
7859         OPENSSL_LIBS=""
7860         OPENSSL_INC=""
7861 fi
7862
7863 echo "$as_me:$LINENO: result: $support_tls" >&5
7864 echo "${ECHO_T}$support_tls" >&6
7865
7866
7867
7868
7869
7870 # ------------------------------------------
7871 # Where to place working dir
7872 # ------------------------------------------
7873 working_dir=`eval echo ${prefix}/var/bacula/working`
7874
7875 # Check whether --with-working-dir or --without-working-dir was given.
7876 if test "${with_working_dir+set}" = set; then
7877   withval="$with_working_dir"
7878
7879        if test "x$withval" != "xno" ; then
7880               working_dir=$withval
7881        fi
7882
7883
7884 fi;
7885
7886
7887
7888
7889 # ------------------------------------------
7890 # Where to place scriptdir (script files)
7891 # ------------------------------------------
7892 scriptdir=`eval echo ${sysconfdir}`
7893
7894 # Check whether --with-scriptdir or --without-scriptdir was given.
7895 if test "${with_scriptdir+set}" = set; then
7896   withval="$with_scriptdir"
7897
7898        if test "x$withval" != "xno" ; then
7899               scriptdir=$withval
7900        fi
7901
7902
7903 fi;
7904
7905
7906
7907
7908 # ------------------------------------------
7909 # Where to send dump email
7910 # ------------------------------------------
7911 dump_email=root@localhost
7912
7913 # Check whether --with-dump-email or --without-dump-email was given.
7914 if test "${with_dump_email+set}" = set; then
7915   withval="$with_dump_email"
7916
7917        if test "x$withval" != "xno" ; then
7918               dump_email=$withval
7919        fi
7920
7921
7922 fi;
7923
7924
7925
7926 # ------------------------------------------
7927 # Where to send job email
7928 # ------------------------------------------
7929 job_email=root@localhost
7930
7931 # Check whether --with-job-email or --without-job-email was given.
7932 if test "${with_job_email+set}" = set; then
7933   withval="$with_job_email"
7934
7935        if test "x$withval" != "xno" ; then
7936               job_email=$withval
7937        fi
7938
7939
7940 fi;
7941
7942
7943
7944 # ------------------------------------------
7945 # Where to find smtp host
7946 # ------------------------------------------
7947 smtp_host=localhost
7948
7949 # Check whether --with-smtp_host or --without-smtp_host was given.
7950 if test "${with_smtp_host+set}" = set; then
7951   withval="$with_smtp_host"
7952
7953        if test "x$withval" != "xno" ; then
7954               smtp_host=$withval
7955        fi
7956
7957
7958 fi;
7959
7960
7961
7962
7963 # ------------------------------------
7964 # Where to place pid files
7965 # ------------------------------------
7966 piddir=/var/run
7967
7968 # Check whether --with-pid-dir or --without-pid-dir was given.
7969 if test "${with_pid_dir+set}" = set; then
7970   withval="$with_pid_dir"
7971
7972         if test "x$withval" != "xno" ; then
7973             piddir=$withval
7974         fi
7975
7976
7977 fi;
7978
7979 cat >>confdefs.h <<_ACEOF
7980 #define _PATH_BACULA_PIDDIR "$piddir"
7981 _ACEOF
7982
7983
7984
7985
7986 # ------------------------------------
7987 # Where to place subsys "lock file"
7988 # ------------------------------------
7989 subsysdir=/var/run/subsys
7990
7991 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7992 if test "${with_subsys_dir+set}" = set; then
7993   withval="$with_subsys_dir"
7994
7995         if test "x$withval" != "xno" ; then
7996             subsysdir=$withval
7997         fi
7998
7999
8000 fi;
8001
8002
8003
8004
8005
8006 # ------------------------------------
8007 # Where to start assigning ports
8008 # ------------------------------------
8009 baseport=9101
8010
8011 # Check whether --with-baseport or --without-baseport was given.
8012 if test "${with_baseport+set}" = set; then
8013   withval="$with_baseport"
8014
8015         if test "x$withval" != "xno" ; then
8016              baseport=$withval
8017         fi
8018
8019
8020 fi;
8021
8022
8023 dir_port=`expr $baseport`
8024 fd_port=`expr $baseport + 1`
8025 sd_port=`expr $fd_port + 1`
8026
8027
8028
8029
8030
8031
8032 # ------------------------------------------
8033 # Generate passwords
8034 # ------------------------------------------
8035 dir_password=
8036
8037 # Check whether --with-dir-password or --without-dir-password was given.
8038 if test "${with_dir_password+set}" = set; then
8039   withval="$with_dir_password"
8040
8041        if test "x$withval" != "xno" ; then
8042            dir_password=$withval
8043        fi
8044
8045
8046 fi;
8047
8048 if test "x$dir_password" = "x" ; then
8049    if test "x$OPENSSL" = "xnone" ; then
8050       key=`autoconf/randpass 33`
8051    else
8052       key=`openssl rand -base64 33`
8053    fi
8054    dir_password=$key
8055 fi
8056
8057 fd_password=
8058
8059 # Check whether --with-fd-password or --without-fd-password was given.
8060 if test "${with_fd_password+set}" = set; then
8061   withval="$with_fd_password"
8062
8063        if test "x$withval" != "xno" ; then
8064            fd_password=$withval
8065        fi
8066
8067
8068 fi;
8069
8070 if test "x$fd_password" = "x" ; then
8071    if test "x$OPENSSL" = "xnone" ; then
8072       key=`autoconf/randpass 37`
8073    else
8074       key=`openssl rand -base64 33`
8075    fi
8076    fd_password=$key
8077 fi
8078
8079 sd_password=
8080
8081 # Check whether --with-sd-password or --without-sd-password was given.
8082 if test "${with_sd_password+set}" = set; then
8083   withval="$with_sd_password"
8084
8085        if test "x$withval" != "xno" ; then
8086            sd_password=$withval
8087        fi
8088
8089
8090 fi;
8091
8092 if test "x$sd_password" = "x" ; then
8093    if test "x$OPENSSL" = "xnone" ; then
8094       key=`autoconf/randpass 41`
8095    else
8096       key=`openssl rand -base64 33`
8097    fi
8098    sd_password=$key
8099 fi
8100
8101 mon_dir_password=
8102
8103 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8104 if test "${with_mon_dir_password+set}" = set; then
8105   withval="$with_mon_dir_password"
8106
8107        if test "x$withval" != "xno" ; then
8108            mon_dir_password=$withval
8109        fi
8110
8111
8112 fi;
8113
8114 if test "x$mon_dir_password" = "x" ; then
8115    if test "x$OPENSSL" = "xnone" ; then
8116       key=`autoconf/randpass 33`
8117    else
8118       key=`openssl rand -base64 33`
8119    fi
8120    mon_dir_password=$key
8121 fi
8122
8123 mon_fd_password=
8124
8125 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8126 if test "${with_mon_fd_password+set}" = set; then
8127   withval="$with_mon_fd_password"
8128
8129        if test "x$withval" != "xno" ; then
8130            mon_fd_password=$withval
8131        fi
8132
8133
8134 fi;
8135
8136 if test "x$mon_fd_password" = "x" ; then
8137    if test "x$OPENSSL" = "xnone" ; then
8138       key=`autoconf/randpass 37`
8139    else
8140       key=`openssl rand -base64 33`
8141    fi
8142    mon_fd_password=$key
8143 fi
8144
8145 mon_sd_password=
8146
8147 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8148 if test "${with_mon_sd_password+set}" = set; then
8149   withval="$with_mon_sd_password"
8150
8151        if test "x$withval" != "xno" ; then
8152            mon_sd_password=$withval
8153        fi
8154
8155
8156 fi;
8157
8158 if test "x$mon_sd_password" = "x" ; then
8159    if test "x$OPENSSL" = "xnone" ; then
8160       key=`autoconf/randpass 41`
8161    else
8162       key=`openssl rand -base64 33`
8163    fi
8164    mon_sd_password=$key
8165 fi
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175 #
8176 # Handle users and groups for each daemon
8177 #
8178 dir_user=
8179
8180 # Check whether --with-dir_user or --without-dir_user was given.
8181 if test "${with_dir_user+set}" = set; then
8182   withval="$with_dir_user"
8183
8184         if test "x$withval" != "x" ; then
8185              dir_user=$withval
8186         fi
8187
8188
8189 fi;
8190
8191 dir_group=
8192
8193 # Check whether --with-dir_group or --without-dir_group was given.
8194 if test "${with_dir_group+set}" = set; then
8195   withval="$with_dir_group"
8196
8197         if test "x$withval" != "x" ; then
8198              dir_group=$withval
8199         fi
8200
8201
8202 fi;
8203
8204 sd_user=
8205
8206 # Check whether --with-sd_user or --without-sd_user was given.
8207 if test "${with_sd_user+set}" = set; then
8208   withval="$with_sd_user"
8209
8210         if test "x$withval" != "x" ; then
8211              sd_user=$withval
8212         fi
8213
8214
8215 fi;
8216
8217 sd_group=
8218
8219 # Check whether --with-sd_group or --without-sd_group was given.
8220 if test "${with_sd_group+set}" = set; then
8221   withval="$with_sd_group"
8222
8223         if test "x$withval" != "x" ; then
8224              sd_group=$withval
8225         fi
8226
8227
8228 fi;
8229
8230 fd_user=
8231
8232 # Check whether --with-fd_user or --without-fd_user was given.
8233 if test "${with_fd_user+set}" = set; then
8234   withval="$with_fd_user"
8235
8236         if test "x$withval" != "x" ; then
8237              fd_user=$withval
8238         fi
8239
8240
8241 fi;
8242
8243 fd_group=
8244
8245 # Check whether --with-fd_group or --without-fd_group was given.
8246 if test "${with_fd_group+set}" = set; then
8247   withval="$with_fd_group"
8248
8249         if test "x$withval" != "x" ; then
8250              fd_group=$withval
8251         fi
8252
8253
8254 fi;
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266 #
8267 # allow setting default executable permissions
8268 #
8269 SBINPERM=0754
8270
8271 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8272 if test "${with_sbin_perm+set}" = set; then
8273   withval="$with_sbin_perm"
8274
8275         if test "x$withval" != "x" ; then
8276             SBINPERM=$withval
8277         fi
8278
8279
8280 fi;
8281
8282
8283
8284 # ------------------------------------------------
8285 # Bacula check for various SQL database engines
8286 # ------------------------------------------------
8287
8288 db_found=no
8289 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8290 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8291
8292 # Check whether --with-postgresql or --without-postgresql was given.
8293 if test "${with_postgresql+set}" = set; then
8294   withval="$with_postgresql"
8295
8296   if test "$withval" != "no"; then
8297       if test "$db_found" = "yes"; then
8298           echo "$as_me:$LINENO: result: error" >&5
8299 echo "${ECHO_T}error" >&6
8300           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8301 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8302    { (exit 1); exit 1; }; };
8303       fi
8304       if test "$withval" = "yes"; then
8305           if test -f /usr/local/include/libpq-fe.h; then
8306               POSTGRESQL_INCDIR=/usr/local/include
8307               POSTGRESQL_LIBDIR=/usr/local/lib
8308               POSTGRESQL_BINDIR=/usr/local/bin
8309           elif test -f /usr/include/libpq-fe.h; then
8310               POSTGRESQL_INCDIR=/usr/include
8311               POSTGRESQL_LIBDIR=/usr/lib
8312               POSTGRESQL_BINDIR=/usr/bin
8313           elif test -f /usr/include/pgsql/libpq-fe.h; then
8314               POSTGRESQL_INCDIR=/usr/include/pgsql
8315               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8316               POSTGRESQL_BINDIR=/usr/bin
8317           elif test -f /usr/include/postgresql/libpq-fe.h; then
8318               POSTGRESQL_INCDIR=/usr/include/postgresql
8319               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8320               POSTGRESQL_BINDIR=/usr/bin
8321           else
8322               echo "$as_me:$LINENO: result: no" >&5
8323 echo "${ECHO_T}no" >&6
8324               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8325 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8326    { (exit 1); exit 1; }; }
8327           fi
8328       elif test -f $withval/include/libpq-fe.h; then
8329           POSTGRESQL_INCDIR=$withval/include
8330           POSTGRESQL_LIBDIR=$withval/lib
8331           POSTGRESQL_BINDIR=$withval/bin
8332       elif test -f $withval/include/postgresql/libpq-fe.h; then
8333           POSTGRESQL_INCDIR=$withval/include/postgresql
8334           POSTGRESQL_LIBDIR=$withval/lib
8335           POSTGRESQL_BINDIR=$withval/bin
8336       else
8337           echo "$as_me:$LINENO: result: no" >&5
8338 echo "${ECHO_T}no" >&6
8339           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8340 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8341    { (exit 1); exit 1; }; }
8342       fi
8343       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8344       echo "$as_me:$LINENO: checking for crypt" >&5
8345 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8346 if test "${ac_cv_func_crypt+set}" = set; then
8347   echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349   cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h.  */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h.  */
8355 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8357 #define crypt innocuous_crypt
8358
8359 /* System header to define __stub macros and hopefully few prototypes,
8360     which can conflict with char crypt (); below.
8361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8362     <limits.h> exists even on freestanding compilers.  */
8363
8364 #ifdef __STDC__
8365 # include <limits.h>
8366 #else
8367 # include <assert.h>
8368 #endif
8369
8370 #undef crypt
8371
8372 /* Override any gcc2 internal prototype to avoid an error.  */
8373 #ifdef __cplusplus
8374 extern "C"
8375 {
8376 #endif
8377 /* We use char because int might match the return type of a gcc2
8378    builtin and then its argument prototype would still apply.  */
8379 char crypt ();
8380 /* The GNU C library defines this for functions which it implements
8381     to always fail with ENOSYS.  Some functions are actually named
8382     something starting with __ and the normal name is an alias.  */
8383 #if defined (__stub_crypt) || defined (__stub___crypt)
8384 choke me
8385 #else
8386 char (*f) () = crypt;
8387 #endif
8388 #ifdef __cplusplus
8389 }
8390 #endif
8391
8392 int
8393 main ()
8394 {
8395 return f != crypt;
8396   ;
8397   return 0;
8398 }
8399 _ACEOF
8400 rm -f conftest.$ac_objext conftest$ac_exeext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8402   (eval $ac_link) 2>conftest.er1
8403   ac_status=$?
8404   grep -v '^ *+' conftest.er1 >conftest.err
8405   rm -f conftest.er1
8406   cat conftest.err >&5
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); } &&
8409          { ac_try='test -z "$ac_c_werror_flag"
8410                          || test ! -s conftest.err'
8411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412   (eval $ac_try) 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); }; } &&
8416          { ac_try='test -s conftest$ac_exeext'
8417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418   (eval $ac_try) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); }; }; then
8422   ac_cv_func_crypt=yes
8423 else
8424   echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8426
8427 ac_cv_func_crypt=no
8428 fi
8429 rm -f conftest.err conftest.$ac_objext \
8430       conftest$ac_exeext conftest.$ac_ext
8431 fi
8432 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8433 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8434 if test $ac_cv_func_crypt = yes; then
8435   :
8436 else
8437   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8438 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8439 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8440   echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442   ac_check_lib_save_LIBS=$LIBS
8443 LIBS="-lcrypt  $LIBS"
8444 cat >conftest.$ac_ext <<_ACEOF
8445 /* confdefs.h.  */
8446 _ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h.  */
8450
8451 /* Override any gcc2 internal prototype to avoid an error.  */
8452 #ifdef __cplusplus
8453 extern "C"
8454 #endif
8455 /* We use char because int might match the return type of a gcc2
8456    builtin and then its argument prototype would still apply.  */
8457 char crypt ();
8458 int
8459 main ()
8460 {
8461 crypt ();
8462   ;
8463   return 0;
8464 }
8465 _ACEOF
8466 rm -f conftest.$ac_objext conftest$ac_exeext
8467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8468   (eval $ac_link) 2>conftest.er1
8469   ac_status=$?
8470   grep -v '^ *+' conftest.er1 >conftest.err
8471   rm -f conftest.er1
8472   cat conftest.err >&5
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); } &&
8475          { ac_try='test -z "$ac_c_werror_flag"
8476                          || test ! -s conftest.err'
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); }; } &&
8482          { ac_try='test -s conftest$ac_exeext'
8483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484   (eval $ac_try) 2>&5
8485   ac_status=$?
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); }; }; then
8488   ac_cv_lib_crypt_crypt=yes
8489 else
8490   echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8492
8493 ac_cv_lib_crypt_crypt=no
8494 fi
8495 rm -f conftest.err conftest.$ac_objext \
8496       conftest$ac_exeext conftest.$ac_ext
8497 LIBS=$ac_check_lib_save_LIBS
8498 fi
8499 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8500 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8501 if test $ac_cv_lib_crypt_crypt = yes; then
8502   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8503 fi
8504
8505 fi
8506
8507       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8508       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8509       SQL_BINDIR=$POSTGRESQL_BINDIR
8510       cat >>confdefs.h <<\_ACEOF
8511 #define HAVE_POSTGRESQL 1
8512 _ACEOF
8513
8514       echo "$as_me:$LINENO: result: yes" >&5
8515 echo "${ECHO_T}yes" >&6
8516       db_found=yes
8517       support_postgresql=yes
8518       db_name=PostgreSQL
8519       DB_NAME=postgresql
8520   else
8521       echo "$as_me:$LINENO: result: no" >&5
8522 echo "${ECHO_T}no" >&6
8523   fi
8524
8525 else
8526
8527   echo "$as_me:$LINENO: result: no" >&5
8528 echo "${ECHO_T}no" >&6
8529
8530 fi;
8531
8532
8533
8534
8535
8536
8537
8538 db_found=no
8539 echo "$as_me:$LINENO: checking for MySQL support" >&5
8540 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8541
8542 # Check whether --with-mysql or --without-mysql was given.
8543 if test "${with_mysql+set}" = set; then
8544   withval="$with_mysql"
8545
8546   if test "$withval" != "no"; then
8547         if test "$withval" = "yes"; then
8548                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8549                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8550                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8551                         MYSQL_BINDIR=/usr/local/mysql/bin
8552                 elif test -f /usr/include/mysql/mysql.h; then
8553                         MYSQL_INCDIR=/usr/include/mysql
8554                         MYSQL_LIBDIR=/usr/lib/mysql
8555                         MYSQL_BINDIR=/usr/bin
8556                 elif test -f /usr/include/mysql.h; then
8557                         MYSQL_INCDIR=/usr/include
8558                         MYSQL_LIBDIR=/usr/lib
8559                         MYSQL_BINDIR=/usr/bin
8560                 elif test -f /usr/local/include/mysql/mysql.h; then
8561                         MYSQL_INCDIR=/usr/local/include/mysql
8562                         MYSQL_LIBDIR=/usr/local/lib/mysql
8563                         MYSQL_BINDIR=/usr/local/bin
8564                 elif test -f /usr/local/include/mysql.h; then
8565                         MYSQL_INCDIR=/usr/local/include
8566                         MYSQL_LIBDIR=/usr/local/lib
8567                         MYSQL_BINDIR=/usr/local/bin
8568                 else
8569                    echo "$as_me:$LINENO: result: no" >&5
8570 echo "${ECHO_T}no" >&6
8571                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8572 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8573    { (exit 1); exit 1; }; }
8574                 fi
8575         else
8576                 if test -f $withval/include/mysql/mysql.h; then
8577                         MYSQL_INCDIR=$withval/include/mysql
8578                         MYSQL_LIBDIR=$withval/lib/mysql
8579                         MYSQL_BINDIR=$withval/bin
8580                 elif test -f $withval/include/mysql.h; then
8581                         MYSQL_INCDIR=$withval/include
8582                         MYSQL_LIBDIR=$withval/lib
8583                         MYSQL_BINDIR=$withval/bin
8584                 else
8585                    echo "$as_me:$LINENO: result: no" >&5
8586 echo "${ECHO_T}no" >&6
8587                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8588 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8589    { (exit 1); exit 1; }; }
8590                 fi
8591         fi
8592     SQL_INCLUDE=-I$MYSQL_INCDIR
8593     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8594        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8595        cat >>confdefs.h <<\_ACEOF
8596 #define HAVE_THREAD_SAFE_MYSQL 1
8597 _ACEOF
8598
8599     else
8600        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8601     fi
8602     SQL_BINDIR=$MYSQL_BINDIR
8603
8604     cat >>confdefs.h <<\_ACEOF
8605 #define HAVE_MYSQL 1
8606 _ACEOF
8607
8608     echo "$as_me:$LINENO: result: yes" >&5
8609 echo "${ECHO_T}yes" >&6
8610     db_found=yes
8611     support_mysql=yes
8612     db_name=MySQL
8613     DB_NAME=mysql
8614
8615   else
8616         echo "$as_me:$LINENO: result: no" >&5
8617 echo "${ECHO_T}no" >&6
8618   fi
8619
8620
8621 fi;
8622
8623
8624 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8625 if test "${with_embedded_mysql+set}" = set; then
8626   withval="$with_embedded_mysql"
8627
8628   if test "$withval" != "no"; then
8629         if test "$withval" = "yes"; then
8630                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8631                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8632                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8633                         MYSQL_BINDIR=/usr/local/mysql/bin
8634                 elif test -f /usr/include/mysql/mysql.h; then
8635                         MYSQL_INCDIR=/usr/include/mysql
8636                         MYSQL_LIBDIR=/usr/lib/mysql
8637                         MYSQL_BINDIR=/usr/bin
8638                 elif test -f /usr/include/mysql.h; then
8639                         MYSQL_INCDIR=/usr/include
8640                         MYSQL_LIBDIR=/usr/lib
8641                         MYSQL_BINDIR=/usr/bin
8642                 elif test -f /usr/local/include/mysql/mysql.h; then
8643                         MYSQL_INCDIR=/usr/local/include/mysql
8644                         MYSQL_LIBDIR=/usr/local/lib/mysql
8645                         MYSQL_BINDIR=/usr/local/bin
8646                 elif test -f /usr/local/include/mysql.h; then
8647                         MYSQL_INCDIR=/usr/local/include
8648                         MYSQL_LIBDIR=/usr/local/lib
8649                         MYSQL_BINDIR=/usr/local/bin
8650                 else
8651                    echo "$as_me:$LINENO: result: no" >&5
8652 echo "${ECHO_T}no" >&6
8653                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8654 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8655    { (exit 1); exit 1; }; }
8656                 fi
8657         else
8658                 if test -f $withval/include/mysql/mysql.h; then
8659                         MYSQL_INCDIR=$withval/include/mysql
8660                         MYSQL_LIBDIR=$withval/lib/mysql
8661                         MYSQL_BINDIR=$withval/bin
8662                 elif test -f $withval/include/mysql.h; then
8663                         MYSQL_INCDIR=$withval/include
8664                         MYSQL_LIBDIR=$withval/lib
8665                         MYSQL_BINDIR=$withval/bin
8666                 else
8667                    echo "$as_me:$LINENO: result: no" >&5
8668 echo "${ECHO_T}no" >&6
8669                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8670 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8671    { (exit 1); exit 1; }; }
8672                 fi
8673         fi
8674     SQL_INCLUDE=-I$MYSQL_INCDIR
8675     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8676     SQL_BINDIR=$MYSQL_BINDIR
8677
8678     cat >>confdefs.h <<\_ACEOF
8679 #define HAVE_MYSQL 1
8680 _ACEOF
8681
8682     cat >>confdefs.h <<\_ACEOF
8683 #define HAVE_EMBEDDED_MYSQL 1
8684 _ACEOF
8685
8686     echo "$as_me:$LINENO: result: yes" >&5
8687 echo "${ECHO_T}yes" >&6
8688     db_found=yes
8689     support_mysql=yes
8690     db_name=MySQL
8691     DB_NAME=mysql
8692
8693   else
8694         echo "$as_me:$LINENO: result: no" >&5
8695 echo "${ECHO_T}no" >&6
8696   fi
8697
8698
8699 fi;
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709 db_found=no
8710 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
8711 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
8712
8713 # Check whether --with-sqlite3 or --without-sqlite3 was given.
8714 if test "${with_sqlite3+set}" = set; then
8715   withval="$with_sqlite3"
8716
8717   if test "$withval" != "no"; then
8718      if test "$withval" = "yes"; then
8719         if test -f /usr/local/include/sqlite3.h; then
8720            SQLITE_INCDIR=/usr/local/include
8721            SQLITE_LIBDIR=/usr/local/lib
8722            SQLITE_BINDIR=/usr/local/bin
8723         elif test -f /usr/include/sqlite3.h; then
8724            SQLITE_INCDIR=/usr/include
8725            SQLITE_LIBDIR=/usr/lib
8726            SQLITE_BINDIR=/usr/bin
8727         elif test -f $prefix/include/sqlite3.h; then
8728            SQLITE_INCDIR=$prefix/include
8729            SQLITE_LIBDIR=$prefix/lib
8730            SQLITE_BINDIR=$prefix/bin
8731         else
8732            echo "$as_me:$LINENO: result: no" >&5
8733 echo "${ECHO_T}no" >&6
8734            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
8735 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
8736    { (exit 1); exit 1; }; }
8737         fi
8738      else
8739         if test -f $withval/sqlite3.h; then
8740            SQLITE_INCDIR=$withval
8741            SQLITE_LIBDIR=$withval
8742            SQLITE_BINDIR=$withval
8743         elif test -f $withval/include/sqlite3.h; then
8744            SQLITE_INCDIR=$withval/include
8745            SQLITE_LIBDIR=$withval/lib
8746            SQLITE_BINDIR=$withval/bin
8747         else
8748            echo "$as_me:$LINENO: result: no" >&5
8749 echo "${ECHO_T}no" >&6
8750            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
8751 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
8752    { (exit 1); exit 1; }; }
8753         fi
8754      fi
8755      SQL_INCLUDE=-I$SQLITE_INCDIR
8756      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
8757      SQL_BINDIR=$SQLITE_BINDIR
8758
8759      cat >>confdefs.h <<\_ACEOF
8760 #define HAVE_SQLITE3 1
8761 _ACEOF
8762
8763      echo "$as_me:$LINENO: result: yes" >&5
8764 echo "${ECHO_T}yes" >&6
8765      db_found=yes
8766      support_sqlite3=yes
8767      db_name=SQLite3
8768      DB_NAME=sqlite3
8769
8770   else
8771      echo "$as_me:$LINENO: result: no" >&5
8772 echo "${ECHO_T}no" >&6
8773   fi
8774
8775 else
8776
8777   echo "$as_me:$LINENO: result: no" >&5
8778 echo "${ECHO_T}no" >&6
8779
8780 fi;
8781
8782
8783
8784
8785
8786
8787
8788 db_found=no
8789 echo "$as_me:$LINENO: checking for SQLite support" >&5
8790 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8791
8792 # Check whether --with-sqlite or --without-sqlite was given.
8793 if test "${with_sqlite+set}" = set; then
8794   withval="$with_sqlite"
8795
8796   if test "$withval" != "no"; then
8797      if test "$withval" = "yes"; then
8798         if test -f /usr/local/include/sqlite.h; then
8799            SQLITE_INCDIR=/usr/local/include
8800            SQLITE_LIBDIR=/usr/local/lib
8801            SQLITE_BINDIR=/usr/local/bin
8802         elif test -f /usr/include/sqlite.h; then
8803            SQLITE_INCDIR=/usr/include
8804            SQLITE_LIBDIR=/usr/lib
8805            SQLITE_BINDIR=/usr/bin
8806         elif test -f $prefix/include/sqlite.h; then
8807            SQLITE_INCDIR=$prefix/include
8808            SQLITE_LIBDIR=$prefix/lib
8809            SQLITE_BINDIR=$prefix/bin
8810         else
8811            echo "$as_me:$LINENO: result: no" >&5
8812 echo "${ECHO_T}no" >&6
8813            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8814 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8815    { (exit 1); exit 1; }; }
8816         fi
8817      else
8818         if test -f $withval/sqlite.h; then
8819            SQLITE_INCDIR=$withval
8820            SQLITE_LIBDIR=$withval
8821            SQLITE_BINDIR=$withval
8822         elif test -f $withval/include/sqlite.h; then
8823            SQLITE_INCDIR=$withval/include
8824            SQLITE_LIBDIR=$withval/lib
8825            SQLITE_BINDIR=$withval/bin
8826         else
8827            echo "$as_me:$LINENO: result: no" >&5
8828 echo "${ECHO_T}no" >&6
8829            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8830 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8831    { (exit 1); exit 1; }; }
8832         fi
8833      fi
8834      SQL_INCLUDE=-I$SQLITE_INCDIR
8835      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8836      SQL_BINDIR=$SQLITE_BINDIR
8837
8838      cat >>confdefs.h <<\_ACEOF
8839 #define HAVE_SQLITE 1
8840 _ACEOF
8841
8842      echo "$as_me:$LINENO: result: yes" >&5
8843 echo "${ECHO_T}yes" >&6
8844      db_found=yes
8845      support_sqlite=yes
8846      db_name=SQLite
8847      DB_NAME=sqlite
8848
8849   else
8850      echo "$as_me:$LINENO: result: no" >&5
8851 echo "${ECHO_T}no" >&6
8852   fi
8853
8854 else
8855
8856   echo "$as_me:$LINENO: result: no" >&5
8857 echo "${ECHO_T}no" >&6
8858
8859 fi;
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869 cat >>confdefs.h <<\_ACEOF
8870 #define PROTOTYPES 1
8871 _ACEOF
8872
8873
8874 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8875     if test -z "$CCOPTS"; then
8876         CCOPTS='-g -O2 -Wall'
8877     fi
8878     CFLAGS="$CCOPTS"
8879 fi
8880
8881
8882
8883
8884 largefile_support="no"
8885
8886    # Check whether --enable-largefile or --disable-largefile was given.
8887 if test "${enable_largefile+set}" = set; then
8888   enableval="$enable_largefile"
8889
8890 fi;
8891    if test "$enable_largefile" != no; then
8892      if test -n "$ac_tool_prefix"; then
8893   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8894 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8895 echo "$as_me:$LINENO: checking for $ac_word" >&5
8896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8897 if test "${ac_cv_prog_GETCONF+set}" = set; then
8898   echo $ECHO_N "(cached) $ECHO_C" >&6
8899 else
8900   if test -n "$GETCONF"; then
8901   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8902 else
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 for as_dir in $PATH
8905 do
8906   IFS=$as_save_IFS
8907   test -z "$as_dir" && as_dir=.
8908   for ac_exec_ext in '' $ac_executable_extensions; do
8909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8912     break 2
8913   fi
8914 done
8915 done
8916
8917 fi
8918 fi
8919 GETCONF=$ac_cv_prog_GETCONF
8920 if test -n "$GETCONF"; then
8921   echo "$as_me:$LINENO: result: $GETCONF" >&5
8922 echo "${ECHO_T}$GETCONF" >&6
8923 else
8924   echo "$as_me:$LINENO: result: no" >&5
8925 echo "${ECHO_T}no" >&6
8926 fi
8927
8928 fi
8929 if test -z "$ac_cv_prog_GETCONF"; then
8930   ac_ct_GETCONF=$GETCONF
8931   # Extract the first word of "getconf", so it can be a program name with args.
8932 set dummy getconf; ac_word=$2
8933 echo "$as_me:$LINENO: checking for $ac_word" >&5
8934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8935 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8936   echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938   if test -n "$ac_ct_GETCONF"; then
8939   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8940 else
8941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942 for as_dir in $PATH
8943 do
8944   IFS=$as_save_IFS
8945   test -z "$as_dir" && as_dir=.
8946   for ac_exec_ext in '' $ac_executable_extensions; do
8947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8948     ac_cv_prog_ac_ct_GETCONF="getconf"
8949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8950     break 2
8951   fi
8952 done
8953 done
8954
8955 fi
8956 fi
8957 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8958 if test -n "$ac_ct_GETCONF"; then
8959   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8960 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8961 else
8962   echo "$as_me:$LINENO: result: no" >&5
8963 echo "${ECHO_T}no" >&6
8964 fi
8965
8966   GETCONF=$ac_ct_GETCONF
8967 else
8968   GETCONF="$ac_cv_prog_GETCONF"
8969 fi
8970
8971      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8972 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8973 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8974   echo $ECHO_N "(cached) $ECHO_C" >&6
8975 else
8976   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8977         ac_cv_sys_largefile_CFLAGS=no
8978         case "$host_os" in
8979            # IRIX 6.2 and later require cc -n32.
8980            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8981              if test "$GCC" != yes; then
8982                ac_cv_sys_largefile_CFLAGS=-n32
8983              fi
8984              ac_save_CC="$CC"
8985              CC="$CC $ac_cv_sys_largefile_CFLAGS"
8986              cat >conftest.$ac_ext <<_ACEOF
8987 /* confdefs.h.  */
8988 _ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h.  */
8992
8993 int
8994 main ()
8995 {
8996
8997   ;
8998   return 0;
8999 }
9000 _ACEOF
9001 rm -f conftest.$ac_objext conftest$ac_exeext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9003   (eval $ac_link) 2>conftest.er1
9004   ac_status=$?
9005   grep -v '^ *+' conftest.er1 >conftest.err
9006   rm -f conftest.er1
9007   cat conftest.err >&5
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); } &&
9010          { ac_try='test -z "$ac_c_werror_flag"
9011                          || test ! -s conftest.err'
9012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013   (eval $ac_try) 2>&5
9014   ac_status=$?
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); }; } &&
9017          { ac_try='test -s conftest$ac_exeext'
9018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019   (eval $ac_try) 2>&5
9020   ac_status=$?
9021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   (exit $ac_status); }; }; then
9023   :
9024 else
9025   echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9027
9028 ac_cv_sys_largefile_CFLAGS=no
9029 fi
9030 rm -f conftest.err conftest.$ac_objext \
9031       conftest$ac_exeext conftest.$ac_ext
9032              CC="$ac_save_CC"
9033            esac
9034       }
9035 fi
9036 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9037 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9038      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9039 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9040 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9041   echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9044         ac_cv_sys_largefile_LDFLAGS=no
9045
9046       }
9047 fi
9048 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9049 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9050      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9051 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9052 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9053   echo $ECHO_N "(cached) $ECHO_C" >&6
9054 else
9055   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9056         ac_cv_sys_largefile_LIBS=no
9057
9058       }
9059 fi
9060 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9061 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9062
9063      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9064        case "$ac_flag" in
9065        no) ;;
9066        -D_FILE_OFFSET_BITS=*) ;;
9067        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9068        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9069        -D?* | -I?*)
9070          case "$ac_flag" in
9071    no) ;;
9072    ?*)
9073      case "$CPPFLAGS" in
9074      '') CPPFLAGS="$ac_flag" ;;
9075      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9076      esac ;;
9077    esac ;;
9078        *)
9079          case "$ac_flag" in
9080    no) ;;
9081    ?*)
9082      case "$CFLAGS" in
9083      '') CFLAGS="$ac_flag" ;;
9084      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9085      esac ;;
9086    esac ;;
9087        esac
9088      done
9089      case "$ac_cv_sys_largefile_LDFLAGS" in
9090    no) ;;
9091    ?*)
9092      case "$LDFLAGS" in
9093      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9094      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9095      esac ;;
9096    esac
9097      case "$ac_cv_sys_largefile_LIBS" in
9098    no) ;;
9099    ?*)
9100      case "$LIBS" in
9101      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9102      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9103      esac ;;
9104    esac
9105      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9106 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9107 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9108   echo $ECHO_N "(cached) $ECHO_C" >&6
9109 else
9110   ac_cv_sys_file_offset_bits=no
9111       ac_cv_sys_file_offset_bits=64
9112       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9113         case "$ac_flag" in
9114         -D_FILE_OFFSET_BITS)
9115           ac_cv_sys_file_offset_bits=1 ;;
9116         -D_FILE_OFFSET_BITS=*)
9117           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9118         esac
9119       done
9120
9121 fi
9122 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9123 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9124    if test "$ac_cv_sys_file_offset_bits" != no; then
9125
9126 cat >>confdefs.h <<_ACEOF
9127 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9128 _ACEOF
9129
9130    fi
9131      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9132 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9133 if test "${ac_cv_sys_largefile_source+set}" = set; then
9134   echo $ECHO_N "(cached) $ECHO_C" >&6
9135 else
9136   ac_cv_sys_largefile_source=no
9137       ac_cv_sys_largefile_source=1
9138       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9139         case "$ac_flag" in
9140         -D_LARGEFILE_SOURCE)
9141           ac_cv_sys_largefile_source=1 ;;
9142         -D_LARGEFILE_SOURCE=*)
9143           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9144         esac
9145       done
9146
9147 fi
9148 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9149 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9150    if test "$ac_cv_sys_largefile_source" != no; then
9151
9152 cat >>confdefs.h <<_ACEOF
9153 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9154 _ACEOF
9155
9156    fi
9157      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9158 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9159 if test "${ac_cv_sys_large_files+set}" = set; then
9160   echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162   ac_cv_sys_large_files=no
9163       ac_cv_sys_large_files=1
9164       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9165         case "$ac_flag" in
9166         -D_LARGE_FILES)
9167           ac_cv_sys_large_files=1 ;;
9168         -D_LARGE_FILES=*)
9169           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9170         esac
9171       done
9172
9173 fi
9174 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9175 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9176    if test "$ac_cv_sys_large_files" != no; then
9177
9178 cat >>confdefs.h <<_ACEOF
9179 #define _LARGE_FILES $ac_cv_sys_large_files
9180 _ACEOF
9181
9182    fi
9183    fi
9184
9185
9186
9187 echo "$as_me:$LINENO: checking for X" >&5
9188 echo $ECHO_N "checking for X... $ECHO_C" >&6
9189
9190
9191 # Check whether --with-x or --without-x was given.
9192 if test "${with_x+set}" = set; then
9193   withval="$with_x"
9194
9195 fi;
9196 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9197 if test "x$with_x" = xno; then
9198   # The user explicitly disabled X.
9199   have_x=disabled
9200 else
9201   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9202     # Both variables are already set.
9203     have_x=yes
9204   else
9205     if test "${ac_cv_have_x+set}" = set; then
9206   echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208   # One or both of the vars are not set, and there is no cached value.
9209 ac_x_includes=no ac_x_libraries=no
9210 rm -fr conftest.dir
9211 if mkdir conftest.dir; then
9212   cd conftest.dir
9213   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9214   cat >Imakefile <<'_ACEOF'
9215 acfindx:
9216         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9217 _ACEOF
9218   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9219     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9220     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9221     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9222     for ac_extension in a so sl; do
9223       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9224          test -f $ac_im_libdir/libX11.$ac_extension; then
9225         ac_im_usrlibdir=$ac_im_libdir; break
9226       fi
9227     done
9228     # Screen out bogus values from the imake configuration.  They are
9229     # bogus both because they are the default anyway, and because
9230     # using them would break gcc on systems where it needs fixed includes.
9231     case $ac_im_incroot in
9232         /usr/include) ;;
9233         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9234     esac
9235     case $ac_im_usrlibdir in
9236         /usr/lib | /lib) ;;
9237         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9238     esac
9239   fi
9240   cd ..
9241   rm -fr conftest.dir
9242 fi
9243
9244 # Standard set of common directories for X headers.
9245 # Check X11 before X11Rn because it is often a symlink to the current release.
9246 ac_x_header_dirs='
9247 /usr/X11/include
9248 /usr/X11R6/include
9249 /usr/X11R5/include
9250 /usr/X11R4/include
9251
9252 /usr/include/X11
9253 /usr/include/X11R6
9254 /usr/include/X11R5
9255 /usr/include/X11R4
9256
9257 /usr/local/X11/include
9258 /usr/local/X11R6/include
9259 /usr/local/X11R5/include
9260 /usr/local/X11R4/include
9261
9262 /usr/local/include/X11
9263 /usr/local/include/X11R6
9264 /usr/local/include/X11R5
9265 /usr/local/include/X11R4
9266
9267 /usr/X386/include
9268 /usr/x386/include
9269 /usr/XFree86/include/X11
9270
9271 /usr/include
9272 /usr/local/include
9273 /usr/unsupported/include
9274 /usr/athena/include
9275 /usr/local/x11r5/include
9276 /usr/lpp/Xamples/include
9277
9278 /usr/openwin/include
9279 /usr/openwin/share/include'
9280
9281 if test "$ac_x_includes" = no; then
9282   # Guess where to find include files, by looking for Intrinsic.h.
9283   # First, try using that file with no special directory specified.
9284   cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h.  */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h.  */
9290 #include <X11/Intrinsic.h>
9291 _ACEOF
9292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9294   ac_status=$?
9295   grep -v '^ *+' conftest.er1 >conftest.err
9296   rm -f conftest.er1
9297   cat conftest.err >&5
9298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299   (exit $ac_status); } >/dev/null; then
9300   if test -s conftest.err; then
9301     ac_cpp_err=$ac_c_preproc_warn_flag
9302     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9303   else
9304     ac_cpp_err=
9305   fi
9306 else
9307   ac_cpp_err=yes
9308 fi
9309 if test -z "$ac_cpp_err"; then
9310   # We can compile using X headers with no special include directory.
9311 ac_x_includes=
9312 else
9313   echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316   for ac_dir in $ac_x_header_dirs; do
9317   if test -r "$ac_dir/X11/Intrinsic.h"; then
9318     ac_x_includes=$ac_dir
9319     break
9320   fi
9321 done
9322 fi
9323 rm -f conftest.err conftest.$ac_ext
9324 fi # $ac_x_includes = no
9325
9326 if test "$ac_x_libraries" = no; then
9327   # Check for the libraries.
9328   # See if we find them without any special options.
9329   # Don't add to $LIBS permanently.
9330   ac_save_LIBS=$LIBS
9331   LIBS="-lXt $LIBS"
9332   cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h.  */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h.  */
9338 #include <X11/Intrinsic.h>
9339 int
9340 main ()
9341 {
9342 XtMalloc (0)
9343   ;
9344   return 0;
9345 }
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349   (eval $ac_link) 2>conftest.er1
9350   ac_status=$?
9351   grep -v '^ *+' conftest.er1 >conftest.err
9352   rm -f conftest.er1
9353   cat conftest.err >&5
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); } &&
9356          { ac_try='test -z "$ac_c_werror_flag"
9357                          || test ! -s conftest.err'
9358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359   (eval $ac_try) 2>&5
9360   ac_status=$?
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); }; } &&
9363          { ac_try='test -s conftest$ac_exeext'
9364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365   (eval $ac_try) 2>&5
9366   ac_status=$?
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); }; }; then
9369   LIBS=$ac_save_LIBS
9370 # We can link X programs with no special library path.
9371 ac_x_libraries=
9372 else
9373   echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9375
9376 LIBS=$ac_save_LIBS
9377 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9378 do
9379   # Don't even attempt the hair of trying to link an X program!
9380   for ac_extension in a so sl; do
9381     if test -r $ac_dir/libXt.$ac_extension; then
9382       ac_x_libraries=$ac_dir
9383       break 2
9384     fi
9385   done
9386 done
9387 fi
9388 rm -f conftest.err conftest.$ac_objext \
9389       conftest$ac_exeext conftest.$ac_ext
9390 fi # $ac_x_libraries = no
9391
9392 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9393   # Didn't find X anywhere.  Cache the known absence of X.
9394   ac_cv_have_x="have_x=no"
9395 else
9396   # Record where we found X for the cache.
9397   ac_cv_have_x="have_x=yes \
9398                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9399 fi
9400 fi
9401
9402   fi
9403   eval "$ac_cv_have_x"
9404 fi # $with_x != no
9405
9406 if test "$have_x" != yes; then
9407   echo "$as_me:$LINENO: result: $have_x" >&5
9408 echo "${ECHO_T}$have_x" >&6
9409   no_x=yes
9410 else
9411   # If each of the values was on the command line, it overrides each guess.
9412   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9413   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9414   # Update the cache value to reflect the command line values.
9415   ac_cv_have_x="have_x=yes \
9416                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9417   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9418 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9419 fi
9420
9421 if test "$no_x" = yes; then
9422   # Not all programs may use this symbol, but it does not hurt to define it.
9423
9424 cat >>confdefs.h <<\_ACEOF
9425 #define X_DISPLAY_MISSING 1
9426 _ACEOF
9427
9428   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9429 else
9430   if test -n "$x_includes"; then
9431     X_CFLAGS="$X_CFLAGS -I$x_includes"
9432   fi
9433
9434   # It would also be nice to do this for all -L options, not just this one.
9435   if test -n "$x_libraries"; then
9436     X_LIBS="$X_LIBS -L$x_libraries"
9437     # For Solaris; some versions of Sun CC require a space after -R and
9438     # others require no space.  Words are not sufficient . . . .
9439     case `(uname -sr) 2>/dev/null` in
9440     "SunOS 5"*)
9441       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9442 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9443       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9444       cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h.  */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h.  */
9450
9451 int
9452 main ()
9453 {
9454
9455   ;
9456   return 0;
9457 }
9458 _ACEOF
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9461   (eval $ac_link) 2>conftest.er1
9462   ac_status=$?
9463   grep -v '^ *+' conftest.er1 >conftest.err
9464   rm -f conftest.er1
9465   cat conftest.err >&5
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); } &&
9468          { ac_try='test -z "$ac_c_werror_flag"
9469                          || test ! -s conftest.err'
9470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471   (eval $ac_try) 2>&5
9472   ac_status=$?
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); }; } &&
9475          { ac_try='test -s conftest$ac_exeext'
9476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477   (eval $ac_try) 2>&5
9478   ac_status=$?
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); }; }; then
9481   ac_R_nospace=yes
9482 else
9483   echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9485
9486 ac_R_nospace=no
9487 fi
9488 rm -f conftest.err conftest.$ac_objext \
9489       conftest$ac_exeext conftest.$ac_ext
9490       if test $ac_R_nospace = yes; then
9491         echo "$as_me:$LINENO: result: no" >&5
9492 echo "${ECHO_T}no" >&6
9493         X_LIBS="$X_LIBS -R$x_libraries"
9494       else
9495         LIBS="$ac_xsave_LIBS -R $x_libraries"
9496         cat >conftest.$ac_ext <<_ACEOF
9497 /* confdefs.h.  */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h.  */
9502
9503 int
9504 main ()
9505 {
9506
9507   ;
9508   return 0;
9509 }
9510 _ACEOF
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513   (eval $ac_link) 2>conftest.er1
9514   ac_status=$?
9515   grep -v '^ *+' conftest.er1 >conftest.err
9516   rm -f conftest.er1
9517   cat conftest.err >&5
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); } &&
9520          { ac_try='test -z "$ac_c_werror_flag"
9521                          || test ! -s conftest.err'
9522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523   (eval $ac_try) 2>&5
9524   ac_status=$?
9525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526   (exit $ac_status); }; } &&
9527          { ac_try='test -s conftest$ac_exeext'
9528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529   (eval $ac_try) 2>&5
9530   ac_status=$?
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); }; }; then
9533   ac_R_space=yes
9534 else
9535   echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9537
9538 ac_R_space=no
9539 fi
9540 rm -f conftest.err conftest.$ac_objext \
9541       conftest$ac_exeext conftest.$ac_ext
9542         if test $ac_R_space = yes; then
9543           echo "$as_me:$LINENO: result: yes" >&5
9544 echo "${ECHO_T}yes" >&6
9545           X_LIBS="$X_LIBS -R $x_libraries"
9546         else
9547           echo "$as_me:$LINENO: result: neither works" >&5
9548 echo "${ECHO_T}neither works" >&6
9549         fi
9550       fi
9551       LIBS=$ac_xsave_LIBS
9552     esac
9553   fi
9554
9555   # Check for system-dependent libraries X programs must link with.
9556   # Do this before checking for the system-independent R6 libraries
9557   # (-lICE), since we may need -lsocket or whatever for X linking.
9558
9559   if test "$ISC" = yes; then
9560     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9561   else
9562     # Martyn Johnson says this is needed for Ultrix, if the X
9563     # libraries were built with DECnet support.  And Karl Berry says
9564     # the Alpha needs dnet_stub (dnet does not exist).
9565     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9566     cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h.  */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h.  */
9572
9573 /* Override any gcc2 internal prototype to avoid an error.  */
9574 #ifdef __cplusplus
9575 extern "C"
9576 #endif
9577 /* We use char because int might match the return type of a gcc2
9578    builtin and then its argument prototype would still apply.  */
9579 char XOpenDisplay ();
9580 int
9581 main ()
9582 {
9583 XOpenDisplay ();
9584   ;
9585   return 0;
9586 }
9587 _ACEOF
9588 rm -f conftest.$ac_objext conftest$ac_exeext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9590   (eval $ac_link) 2>conftest.er1
9591   ac_status=$?
9592   grep -v '^ *+' conftest.er1 >conftest.err
9593   rm -f conftest.er1
9594   cat conftest.err >&5
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); } &&
9597          { ac_try='test -z "$ac_c_werror_flag"
9598                          || test ! -s conftest.err'
9599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600   (eval $ac_try) 2>&5
9601   ac_status=$?
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); }; } &&
9604          { ac_try='test -s conftest$ac_exeext'
9605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606   (eval $ac_try) 2>&5
9607   ac_status=$?
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); }; }; then
9610   :
9611 else
9612   echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9614
9615 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9616 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9617 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9618   echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620   ac_check_lib_save_LIBS=$LIBS
9621 LIBS="-ldnet  $LIBS"
9622 cat >conftest.$ac_ext <<_ACEOF
9623 /* confdefs.h.  */
9624 _ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h.  */
9628
9629 /* Override any gcc2 internal prototype to avoid an error.  */
9630 #ifdef __cplusplus
9631 extern "C"
9632 #endif
9633 /* We use char because int might match the return type of a gcc2
9634    builtin and then its argument prototype would still apply.  */
9635 char dnet_ntoa ();
9636 int
9637 main ()
9638 {
9639 dnet_ntoa ();
9640   ;
9641   return 0;
9642 }
9643 _ACEOF
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9646   (eval $ac_link) 2>conftest.er1
9647   ac_status=$?
9648   grep -v '^ *+' conftest.er1 >conftest.err
9649   rm -f conftest.er1
9650   cat conftest.err >&5
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); } &&
9653          { ac_try='test -z "$ac_c_werror_flag"
9654                          || test ! -s conftest.err'
9655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656   (eval $ac_try) 2>&5
9657   ac_status=$?
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); }; } &&
9660          { ac_try='test -s conftest$ac_exeext'
9661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662   (eval $ac_try) 2>&5
9663   ac_status=$?
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); }; }; then
9666   ac_cv_lib_dnet_dnet_ntoa=yes
9667 else
9668   echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9670
9671 ac_cv_lib_dnet_dnet_ntoa=no
9672 fi
9673 rm -f conftest.err conftest.$ac_objext \
9674       conftest$ac_exeext conftest.$ac_ext
9675 LIBS=$ac_check_lib_save_LIBS
9676 fi
9677 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9678 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9679 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9680   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9681 fi
9682
9683     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9684       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9685 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9686 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9687   echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689   ac_check_lib_save_LIBS=$LIBS
9690 LIBS="-ldnet_stub  $LIBS"
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h.  */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h.  */
9697
9698 /* Override any gcc2 internal prototype to avoid an error.  */
9699 #ifdef __cplusplus
9700 extern "C"
9701 #endif
9702 /* We use char because int might match the return type of a gcc2
9703    builtin and then its argument prototype would still apply.  */
9704 char dnet_ntoa ();
9705 int
9706 main ()
9707 {
9708 dnet_ntoa ();
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715   (eval $ac_link) 2>conftest.er1
9716   ac_status=$?
9717   grep -v '^ *+' conftest.er1 >conftest.err
9718   rm -f conftest.er1
9719   cat conftest.err >&5
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } &&
9722          { ac_try='test -z "$ac_c_werror_flag"
9723                          || test ! -s conftest.err'
9724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725   (eval $ac_try) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); }; } &&
9729          { ac_try='test -s conftest$ac_exeext'
9730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; }; then
9735   ac_cv_lib_dnet_stub_dnet_ntoa=yes
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 ac_cv_lib_dnet_stub_dnet_ntoa=no
9741 fi
9742 rm -f conftest.err conftest.$ac_objext \
9743       conftest$ac_exeext conftest.$ac_ext
9744 LIBS=$ac_check_lib_save_LIBS
9745 fi
9746 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9747 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9748 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9749   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9750 fi
9751
9752     fi
9753 fi
9754 rm -f conftest.err conftest.$ac_objext \
9755       conftest$ac_exeext conftest.$ac_ext
9756     LIBS="$ac_xsave_LIBS"
9757
9758     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9759     # to get the SysV transport functions.
9760     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9761     # needs -lnsl.
9762     # The nsl library prevents programs from opening the X display
9763     # on Irix 5.2, according to T.E. Dickey.
9764     # The functions gethostbyname, getservbyname, and inet_addr are
9765     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9766     echo "$as_me:$LINENO: checking for gethostbyname" >&5
9767 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9768 if test "${ac_cv_func_gethostbyname+set}" = set; then
9769   echo $ECHO_N "(cached) $ECHO_C" >&6
9770 else
9771   cat >conftest.$ac_ext <<_ACEOF
9772 /* confdefs.h.  */
9773 _ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h.  */
9777 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9779 #define gethostbyname innocuous_gethostbyname
9780
9781 /* System header to define __stub macros and hopefully few prototypes,
9782     which can conflict with char gethostbyname (); below.
9783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9784     <limits.h> exists even on freestanding compilers.  */
9785
9786 #ifdef __STDC__
9787 # include <limits.h>
9788 #else
9789 # include <assert.h>
9790 #endif
9791
9792 #undef gethostbyname
9793
9794 /* Override any gcc2 internal prototype to avoid an error.  */
9795 #ifdef __cplusplus
9796 extern "C"
9797 {
9798 #endif
9799 /* We use char because int might match the return type of a gcc2
9800    builtin and then its argument prototype would still apply.  */
9801 char gethostbyname ();
9802 /* The GNU C library defines this for functions which it implements
9803     to always fail with ENOSYS.  Some functions are actually named
9804     something starting with __ and the normal name is an alias.  */
9805 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9806 choke me
9807 #else
9808 char (*f) () = gethostbyname;
9809 #endif
9810 #ifdef __cplusplus
9811 }
9812 #endif
9813
9814 int
9815 main ()
9816 {
9817 return f != gethostbyname;
9818   ;
9819   return 0;
9820 }
9821 _ACEOF
9822 rm -f conftest.$ac_objext conftest$ac_exeext
9823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9824   (eval $ac_link) 2>conftest.er1
9825   ac_status=$?
9826   grep -v '^ *+' conftest.er1 >conftest.err
9827   rm -f conftest.er1
9828   cat conftest.err >&5
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } &&
9831          { ac_try='test -z "$ac_c_werror_flag"
9832                          || test ! -s conftest.err'
9833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834   (eval $ac_try) 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); }; } &&
9838          { ac_try='test -s conftest$ac_exeext'
9839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840   (eval $ac_try) 2>&5
9841   ac_status=$?
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); }; }; then
9844   ac_cv_func_gethostbyname=yes
9845 else
9846   echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9848
9849 ac_cv_func_gethostbyname=no
9850 fi
9851 rm -f conftest.err conftest.$ac_objext \
9852       conftest$ac_exeext conftest.$ac_ext
9853 fi
9854 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9855 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9856
9857     if test $ac_cv_func_gethostbyname = no; then
9858       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9859 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9860 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9861   echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863   ac_check_lib_save_LIBS=$LIBS
9864 LIBS="-lnsl  $LIBS"
9865 cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h.  */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h.  */
9871
9872 /* Override any gcc2 internal prototype to avoid an error.  */
9873 #ifdef __cplusplus
9874 extern "C"
9875 #endif
9876 /* We use char because int might match the return type of a gcc2
9877    builtin and then its argument prototype would still apply.  */
9878 char gethostbyname ();
9879 int
9880 main ()
9881 {
9882 gethostbyname ();
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9889   (eval $ac_link) 2>conftest.er1
9890   ac_status=$?
9891   grep -v '^ *+' conftest.er1 >conftest.err
9892   rm -f conftest.er1
9893   cat conftest.err >&5
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); } &&
9896          { ac_try='test -z "$ac_c_werror_flag"
9897                          || test ! -s conftest.err'
9898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899   (eval $ac_try) 2>&5
9900   ac_status=$?
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); }; } &&
9903          { ac_try='test -s conftest$ac_exeext'
9904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905   (eval $ac_try) 2>&5
9906   ac_status=$?
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); }; }; then
9909   ac_cv_lib_nsl_gethostbyname=yes
9910 else
9911   echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9913
9914 ac_cv_lib_nsl_gethostbyname=no
9915 fi
9916 rm -f conftest.err conftest.$ac_objext \
9917       conftest$ac_exeext conftest.$ac_ext
9918 LIBS=$ac_check_lib_save_LIBS
9919 fi
9920 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9921 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9922 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9923   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9924 fi
9925
9926       if test $ac_cv_lib_nsl_gethostbyname = no; then
9927         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9928 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9929 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9930   echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932   ac_check_lib_save_LIBS=$LIBS
9933 LIBS="-lbsd  $LIBS"
9934 cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h.  */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h.  */
9940
9941 /* Override any gcc2 internal prototype to avoid an error.  */
9942 #ifdef __cplusplus
9943 extern "C"
9944 #endif
9945 /* We use char because int might match the return type of a gcc2
9946    builtin and then its argument prototype would still apply.  */
9947 char gethostbyname ();
9948 int
9949 main ()
9950 {
9951 gethostbyname ();
9952   ;
9953   return 0;
9954 }
9955 _ACEOF
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958   (eval $ac_link) 2>conftest.er1
9959   ac_status=$?
9960   grep -v '^ *+' conftest.er1 >conftest.err
9961   rm -f conftest.er1
9962   cat conftest.err >&5
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } &&
9965          { ac_try='test -z "$ac_c_werror_flag"
9966                          || test ! -s conftest.err'
9967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968   (eval $ac_try) 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); }; } &&
9972          { ac_try='test -s conftest$ac_exeext'
9973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974   (eval $ac_try) 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; }; then
9978   ac_cv_lib_bsd_gethostbyname=yes
9979 else
9980   echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9982
9983 ac_cv_lib_bsd_gethostbyname=no
9984 fi
9985 rm -f conftest.err conftest.$ac_objext \
9986       conftest$ac_exeext conftest.$ac_ext
9987 LIBS=$ac_check_lib_save_LIBS
9988 fi
9989 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9990 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9991 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9992   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9993 fi
9994
9995       fi
9996     fi
9997
9998     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9999     # socket/setsockopt and other routines are undefined under SCO ODT
10000     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10001     # on later versions), says Simon Leinen: it contains gethostby*
10002     # variants that don't use the name server (or something).  -lsocket
10003     # must be given before -lnsl if both are needed.  We assume that
10004     # if connect needs -lnsl, so does gethostbyname.
10005     echo "$as_me:$LINENO: checking for connect" >&5
10006 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10007 if test "${ac_cv_func_connect+set}" = set; then
10008   echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010   cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h.  */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h.  */
10016 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10018 #define connect innocuous_connect
10019
10020 /* System header to define __stub macros and hopefully few prototypes,
10021     which can conflict with char connect (); below.
10022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023     <limits.h> exists even on freestanding compilers.  */
10024
10025 #ifdef __STDC__
10026 # include <limits.h>
10027 #else
10028 # include <assert.h>
10029 #endif
10030
10031 #undef connect
10032
10033 /* Override any gcc2 internal prototype to avoid an error.  */
10034 #ifdef __cplusplus
10035 extern "C"
10036 {
10037 #endif
10038 /* We use char because int might match the return type of a gcc2
10039    builtin and then its argument prototype would still apply.  */
10040 char connect ();
10041 /* The GNU C library defines this for functions which it implements
10042     to always fail with ENOSYS.  Some functions are actually named
10043     something starting with __ and the normal name is an alias.  */
10044 #if defined (__stub_connect) || defined (__stub___connect)
10045 choke me
10046 #else
10047 char (*f) () = connect;
10048 #endif
10049 #ifdef __cplusplus
10050 }
10051 #endif
10052
10053 int
10054 main ()
10055 {
10056 return f != connect;
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063   (eval $ac_link) 2>conftest.er1
10064   ac_status=$?
10065   grep -v '^ *+' conftest.er1 >conftest.err
10066   rm -f conftest.er1
10067   cat conftest.err >&5
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); } &&
10070          { ac_try='test -z "$ac_c_werror_flag"
10071                          || test ! -s conftest.err'
10072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073   (eval $ac_try) 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; } &&
10077          { ac_try='test -s conftest$ac_exeext'
10078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079   (eval $ac_try) 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); }; }; then
10083   ac_cv_func_connect=yes
10084 else
10085   echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088 ac_cv_func_connect=no
10089 fi
10090 rm -f conftest.err conftest.$ac_objext \
10091       conftest$ac_exeext conftest.$ac_ext
10092 fi
10093 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10094 echo "${ECHO_T}$ac_cv_func_connect" >&6
10095
10096     if test $ac_cv_func_connect = no; then
10097       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10098 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10099 if test "${ac_cv_lib_socket_connect+set}" = set; then
10100   echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102   ac_check_lib_save_LIBS=$LIBS
10103 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h.  */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h.  */
10110
10111 /* Override any gcc2 internal prototype to avoid an error.  */
10112 #ifdef __cplusplus
10113 extern "C"
10114 #endif
10115 /* We use char because int might match the return type of a gcc2
10116    builtin and then its argument prototype would still apply.  */
10117 char connect ();
10118 int
10119 main ()
10120 {
10121 connect ();
10122   ;
10123   return 0;
10124 }
10125 _ACEOF
10126 rm -f conftest.$ac_objext conftest$ac_exeext
10127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10128   (eval $ac_link) 2>conftest.er1
10129   ac_status=$?
10130   grep -v '^ *+' conftest.er1 >conftest.err
10131   rm -f conftest.er1
10132   cat conftest.err >&5
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); } &&
10135          { ac_try='test -z "$ac_c_werror_flag"
10136                          || test ! -s conftest.err'
10137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138   (eval $ac_try) 2>&5
10139   ac_status=$?
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); }; } &&
10142          { ac_try='test -s conftest$ac_exeext'
10143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144   (eval $ac_try) 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); }; }; then
10148   ac_cv_lib_socket_connect=yes
10149 else
10150   echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10152
10153 ac_cv_lib_socket_connect=no
10154 fi
10155 rm -f conftest.err conftest.$ac_objext \
10156       conftest$ac_exeext conftest.$ac_ext
10157 LIBS=$ac_check_lib_save_LIBS
10158 fi
10159 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10160 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10161 if test $ac_cv_lib_socket_connect = yes; then
10162   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10163 fi
10164
10165     fi
10166
10167     # Guillermo Gomez says -lposix is necessary on A/UX.
10168     echo "$as_me:$LINENO: checking for remove" >&5
10169 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10170 if test "${ac_cv_func_remove+set}" = set; then
10171   echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173   cat >conftest.$ac_ext <<_ACEOF
10174 /* confdefs.h.  */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h.  */
10179 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10181 #define remove innocuous_remove
10182
10183 /* System header to define __stub macros and hopefully few prototypes,
10184     which can conflict with char remove (); below.
10185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10186     <limits.h> exists even on freestanding compilers.  */
10187
10188 #ifdef __STDC__
10189 # include <limits.h>
10190 #else
10191 # include <assert.h>
10192 #endif
10193
10194 #undef remove
10195
10196 /* Override any gcc2 internal prototype to avoid an error.  */
10197 #ifdef __cplusplus
10198 extern "C"
10199 {
10200 #endif
10201 /* We use char because int might match the return type of a gcc2
10202    builtin and then its argument prototype would still apply.  */
10203 char remove ();
10204 /* The GNU C library defines this for functions which it implements
10205     to always fail with ENOSYS.  Some functions are actually named
10206     something starting with __ and the normal name is an alias.  */
10207 #if defined (__stub_remove) || defined (__stub___remove)
10208 choke me
10209 #else
10210 char (*f) () = remove;
10211 #endif
10212 #ifdef __cplusplus
10213 }
10214 #endif
10215
10216 int
10217 main ()
10218 {
10219 return f != remove;
10220   ;
10221   return 0;
10222 }
10223 _ACEOF
10224 rm -f conftest.$ac_objext conftest$ac_exeext
10225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10226   (eval $ac_link) 2>conftest.er1
10227   ac_status=$?
10228   grep -v '^ *+' conftest.er1 >conftest.err
10229   rm -f conftest.er1
10230   cat conftest.err >&5
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); } &&
10233          { ac_try='test -z "$ac_c_werror_flag"
10234                          || test ! -s conftest.err'
10235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236   (eval $ac_try) 2>&5
10237   ac_status=$?
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); }; } &&
10240          { ac_try='test -s conftest$ac_exeext'
10241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242   (eval $ac_try) 2>&5
10243   ac_status=$?
10244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245   (exit $ac_status); }; }; then
10246   ac_cv_func_remove=yes
10247 else
10248   echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10250
10251 ac_cv_func_remove=no
10252 fi
10253 rm -f conftest.err conftest.$ac_objext \
10254       conftest$ac_exeext conftest.$ac_ext
10255 fi
10256 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10257 echo "${ECHO_T}$ac_cv_func_remove" >&6
10258
10259     if test $ac_cv_func_remove = no; then
10260       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10261 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10262 if test "${ac_cv_lib_posix_remove+set}" = set; then
10263   echo $ECHO_N "(cached) $ECHO_C" >&6
10264 else
10265   ac_check_lib_save_LIBS=$LIBS
10266 LIBS="-lposix  $LIBS"
10267 cat >conftest.$ac_ext <<_ACEOF
10268 /* confdefs.h.  */
10269 _ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h.  */
10273
10274 /* Override any gcc2 internal prototype to avoid an error.  */
10275 #ifdef __cplusplus
10276 extern "C"
10277 #endif
10278 /* We use char because int might match the return type of a gcc2
10279    builtin and then its argument prototype would still apply.  */
10280 char remove ();
10281 int
10282 main ()
10283 {
10284 remove ();
10285   ;
10286   return 0;
10287 }
10288 _ACEOF
10289 rm -f conftest.$ac_objext conftest$ac_exeext
10290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10291   (eval $ac_link) 2>conftest.er1
10292   ac_status=$?
10293   grep -v '^ *+' conftest.er1 >conftest.err
10294   rm -f conftest.er1
10295   cat conftest.err >&5
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); } &&
10298          { ac_try='test -z "$ac_c_werror_flag"
10299                          || test ! -s conftest.err'
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); }; } &&
10305          { ac_try='test -s conftest$ac_exeext'
10306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307   (eval $ac_try) 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); }; }; then
10311   ac_cv_lib_posix_remove=yes
10312 else
10313   echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10315
10316 ac_cv_lib_posix_remove=no
10317 fi
10318 rm -f conftest.err conftest.$ac_objext \
10319       conftest$ac_exeext conftest.$ac_ext
10320 LIBS=$ac_check_lib_save_LIBS
10321 fi
10322 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10323 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10324 if test $ac_cv_lib_posix_remove = yes; then
10325   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10326 fi
10327
10328     fi
10329
10330     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10331     echo "$as_me:$LINENO: checking for shmat" >&5
10332 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10333 if test "${ac_cv_func_shmat+set}" = set; then
10334   echo $ECHO_N "(cached) $ECHO_C" >&6
10335 else
10336   cat >conftest.$ac_ext <<_ACEOF
10337 /* confdefs.h.  */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h.  */
10342 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10344 #define shmat innocuous_shmat
10345
10346 /* System header to define __stub macros and hopefully few prototypes,
10347     which can conflict with char shmat (); below.
10348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10349     <limits.h> exists even on freestanding compilers.  */
10350
10351 #ifdef __STDC__
10352 # include <limits.h>
10353 #else
10354 # include <assert.h>
10355 #endif
10356
10357 #undef shmat
10358
10359 /* Override any gcc2 internal prototype to avoid an error.  */
10360 #ifdef __cplusplus
10361 extern "C"
10362 {
10363 #endif
10364 /* We use char because int might match the return type of a gcc2
10365    builtin and then its argument prototype would still apply.  */
10366 char shmat ();
10367 /* The GNU C library defines this for functions which it implements
10368     to always fail with ENOSYS.  Some functions are actually named
10369     something starting with __ and the normal name is an alias.  */
10370 #if defined (__stub_shmat) || defined (__stub___shmat)
10371 choke me
10372 #else
10373 char (*f) () = shmat;
10374 #endif
10375 #ifdef __cplusplus
10376 }
10377 #endif
10378
10379 int
10380 main ()
10381 {
10382 return f != shmat;
10383   ;
10384   return 0;
10385 }
10386 _ACEOF
10387 rm -f conftest.$ac_objext conftest$ac_exeext
10388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10389   (eval $ac_link) 2>conftest.er1
10390   ac_status=$?
10391   grep -v '^ *+' conftest.er1 >conftest.err
10392   rm -f conftest.er1
10393   cat conftest.err >&5
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); } &&
10396          { ac_try='test -z "$ac_c_werror_flag"
10397                          || test ! -s conftest.err'
10398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399   (eval $ac_try) 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); }; } &&
10403          { ac_try='test -s conftest$ac_exeext'
10404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405   (eval $ac_try) 2>&5
10406   ac_status=$?
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); }; }; then
10409   ac_cv_func_shmat=yes
10410 else
10411   echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10413
10414 ac_cv_func_shmat=no
10415 fi
10416 rm -f conftest.err conftest.$ac_objext \
10417       conftest$ac_exeext conftest.$ac_ext
10418 fi
10419 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10420 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10421
10422     if test $ac_cv_func_shmat = no; then
10423       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10424 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10425 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10426   echo $ECHO_N "(cached) $ECHO_C" >&6
10427 else
10428   ac_check_lib_save_LIBS=$LIBS
10429 LIBS="-lipc  $LIBS"
10430 cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h.  */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h.  */
10436
10437 /* Override any gcc2 internal prototype to avoid an error.  */
10438 #ifdef __cplusplus
10439 extern "C"
10440 #endif
10441 /* We use char because int might match the return type of a gcc2
10442    builtin and then its argument prototype would still apply.  */
10443 char shmat ();
10444 int
10445 main ()
10446 {
10447 shmat ();
10448   ;
10449   return 0;
10450 }
10451 _ACEOF
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454   (eval $ac_link) 2>conftest.er1
10455   ac_status=$?
10456   grep -v '^ *+' conftest.er1 >conftest.err
10457   rm -f conftest.er1
10458   cat conftest.err >&5
10459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460   (exit $ac_status); } &&
10461          { ac_try='test -z "$ac_c_werror_flag"
10462                          || test ! -s conftest.err'
10463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464   (eval $ac_try) 2>&5
10465   ac_status=$?
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); }; } &&
10468          { ac_try='test -s conftest$ac_exeext'
10469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470   (eval $ac_try) 2>&5
10471   ac_status=$?
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); }; }; then
10474   ac_cv_lib_ipc_shmat=yes
10475 else
10476   echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10478
10479 ac_cv_lib_ipc_shmat=no
10480 fi
10481 rm -f conftest.err conftest.$ac_objext \
10482       conftest$ac_exeext conftest.$ac_ext
10483 LIBS=$ac_check_lib_save_LIBS
10484 fi
10485 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10486 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10487 if test $ac_cv_lib_ipc_shmat = yes; then
10488   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10489 fi
10490
10491     fi
10492   fi
10493
10494   # Check for libraries that X11R6 Xt/Xaw programs need.
10495   ac_save_LDFLAGS=$LDFLAGS
10496   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10497   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10498   # check for ICE first), but we must link in the order -lSM -lICE or
10499   # we get undefined symbols.  So assume we have SM if we have ICE.
10500   # These have to be linked with before -lX11, unlike the other
10501   # libraries we check for below, so use a different variable.
10502   # John Interrante, Karl Berry
10503   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10504 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10505 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10506   echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508   ac_check_lib_save_LIBS=$LIBS
10509 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10510 cat >conftest.$ac_ext <<_ACEOF
10511 /* confdefs.h.  */
10512 _ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h.  */
10516
10517 /* Override any gcc2 internal prototype to avoid an error.  */
10518 #ifdef __cplusplus
10519 extern "C"
10520 #endif
10521 /* We use char because int might match the return type of a gcc2
10522    builtin and then its argument prototype would still apply.  */
10523 char IceConnectionNumber ();
10524 int
10525 main ()
10526 {
10527 IceConnectionNumber ();
10528   ;
10529   return 0;
10530 }
10531 _ACEOF
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534   (eval $ac_link) 2>conftest.er1
10535   ac_status=$?
10536   grep -v '^ *+' conftest.er1 >conftest.err
10537   rm -f conftest.er1
10538   cat conftest.err >&5
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); } &&
10541          { ac_try='test -z "$ac_c_werror_flag"
10542                          || test ! -s conftest.err'
10543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544   (eval $ac_try) 2>&5
10545   ac_status=$?
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); }; } &&
10548          { ac_try='test -s conftest$ac_exeext'
10549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550   (eval $ac_try) 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); }; }; then
10554   ac_cv_lib_ICE_IceConnectionNumber=yes
10555 else
10556   echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10558
10559 ac_cv_lib_ICE_IceConnectionNumber=no
10560 fi
10561 rm -f conftest.err conftest.$ac_objext \
10562       conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS
10564 fi
10565 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10566 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10567 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10568   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10569 fi
10570
10571   LDFLAGS=$ac_save_LDFLAGS
10572
10573 fi
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603 for ac_header in \
10604         assert.h \
10605         fcntl.h \
10606         grp.h \
10607         pwd.h \
10608         libc.h \
10609         limits.h \
10610         stdarg.h \
10611         stdlib.h \
10612         stdint.h \
10613         string.h \
10614         termios.h \
10615         termcap.h \
10616         term.h \
10617         unistd.h \
10618         sys/bitypes.h \
10619         sys/byteorder.h \
10620         sys/ioctl.h \
10621         sys/select.h \
10622         sys/sockio.h \
10623         sys/time.h \
10624         sys/socket.h \
10625         arpa/nameser.h \
10626         resolv.h \
10627         mtio.h \
10628         sys/mtio.h \
10629         sys/tape.h \
10630         regex.h \
10631
10632 do
10633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10635   echo "$as_me:$LINENO: checking for $ac_header" >&5
10636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10638   echo $ECHO_N "(cached) $ECHO_C" >&6
10639 fi
10640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10642 else
10643   # Is the header compilable?
10644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10646 cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h.  */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h.  */
10652 $ac_includes_default
10653 #include <$ac_header>
10654 _ACEOF
10655 rm -f conftest.$ac_objext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657   (eval $ac_compile) 2>conftest.er1
10658   ac_status=$?
10659   grep -v '^ *+' conftest.er1 >conftest.err
10660   rm -f conftest.er1
10661   cat conftest.err >&5
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } &&
10664          { ac_try='test -z "$ac_c_werror_flag"
10665                          || test ! -s conftest.err'
10666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667   (eval $ac_try) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; } &&
10671          { ac_try='test -s conftest.$ac_objext'
10672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673   (eval $ac_try) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); }; }; then
10677   ac_header_compiler=yes
10678 else
10679   echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10681
10682 ac_header_compiler=no
10683 fi
10684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10686 echo "${ECHO_T}$ac_header_compiler" >&6
10687
10688 # Is the header present?
10689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10691 cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h.  */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h.  */
10697 #include <$ac_header>
10698 _ACEOF
10699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10700   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10701   ac_status=$?
10702   grep -v '^ *+' conftest.er1 >conftest.err
10703   rm -f conftest.er1
10704   cat conftest.err >&5
10705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706   (exit $ac_status); } >/dev/null; then
10707   if test -s conftest.err; then
10708     ac_cpp_err=$ac_c_preproc_warn_flag
10709     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10710   else
10711     ac_cpp_err=
10712   fi
10713 else
10714   ac_cpp_err=yes
10715 fi
10716 if test -z "$ac_cpp_err"; then
10717   ac_header_preproc=yes
10718 else
10719   echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10721
10722   ac_header_preproc=no
10723 fi
10724 rm -f conftest.err conftest.$ac_ext
10725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10726 echo "${ECHO_T}$ac_header_preproc" >&6
10727
10728 # So?  What about this header?
10729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10730   yes:no: )
10731     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10735     ac_header_preproc=yes
10736     ;;
10737   no:yes:* )
10738     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10740     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10741 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10742     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10744     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10745 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10748     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10750     (
10751       cat <<\_ASBOX
10752 ## ------------------------------------------ ##
10753 ## Report this to the AC_PACKAGE_NAME lists.  ##
10754 ## ------------------------------------------ ##
10755 _ASBOX
10756     ) |
10757       sed "s/^/$as_me: WARNING:     /" >&2
10758     ;;
10759 esac
10760 echo "$as_me:$LINENO: checking for $ac_header" >&5
10761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10763   echo $ECHO_N "(cached) $ECHO_C" >&6
10764 else
10765   eval "$as_ac_Header=\$ac_header_preproc"
10766 fi
10767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10769
10770 fi
10771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10772   cat >>confdefs.h <<_ACEOF
10773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10774 _ACEOF
10775
10776 fi
10777
10778 done
10779
10780 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10781 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10782 if test "${ac_cv_header_stdc+set}" = set; then
10783   echo $ECHO_N "(cached) $ECHO_C" >&6
10784 else
10785   cat >conftest.$ac_ext <<_ACEOF
10786 /* confdefs.h.  */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h.  */
10791 #include <stdlib.h>
10792 #include <stdarg.h>
10793 #include <string.h>
10794 #include <float.h>
10795
10796 int
10797 main ()
10798 {
10799
10800   ;
10801   return 0;
10802 }
10803 _ACEOF
10804 rm -f conftest.$ac_objext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10806   (eval $ac_compile) 2>conftest.er1
10807   ac_status=$?
10808   grep -v '^ *+' conftest.er1 >conftest.err
10809   rm -f conftest.er1
10810   cat conftest.err >&5
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); } &&
10813          { ac_try='test -z "$ac_c_werror_flag"
10814                          || test ! -s conftest.err'
10815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816   (eval $ac_try) 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); }; } &&
10820          { ac_try='test -s conftest.$ac_objext'
10821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822   (eval $ac_try) 2>&5
10823   ac_status=$?
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); }; }; then
10826   ac_cv_header_stdc=yes
10827 else
10828   echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10830
10831 ac_cv_header_stdc=no
10832 fi
10833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10834
10835 if test $ac_cv_header_stdc = yes; then
10836   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10837   cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h.  */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h.  */
10843 #include <string.h>
10844
10845 _ACEOF
10846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10847   $EGREP "memchr" >/dev/null 2>&1; then
10848   :
10849 else
10850   ac_cv_header_stdc=no
10851 fi
10852 rm -f conftest*
10853
10854 fi
10855
10856 if test $ac_cv_header_stdc = yes; then
10857   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10858   cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h.  */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h.  */
10864 #include <stdlib.h>
10865
10866 _ACEOF
10867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10868   $EGREP "free" >/dev/null 2>&1; then
10869   :
10870 else
10871   ac_cv_header_stdc=no
10872 fi
10873 rm -f conftest*
10874
10875 fi
10876
10877 if test $ac_cv_header_stdc = yes; then
10878   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10879   if test "$cross_compiling" = yes; then
10880   :
10881 else
10882   cat >conftest.$ac_ext <<_ACEOF
10883 /* confdefs.h.  */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h.  */
10888 #include <ctype.h>
10889 #if ((' ' & 0x0FF) == 0x020)
10890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10892 #else
10893 # define ISLOWER(c) \
10894                    (('a' <= (c) && (c) <= 'i') \
10895                      || ('j' <= (c) && (c) <= 'r') \
10896                      || ('s' <= (c) && (c) <= 'z'))
10897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10898 #endif
10899
10900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10901 int
10902 main ()
10903 {
10904   int i;
10905   for (i = 0; i < 256; i++)
10906     if (XOR (islower (i), ISLOWER (i))
10907         || toupper (i) != TOUPPER (i))
10908       exit(2);
10909   exit (0);
10910 }
10911 _ACEOF
10912 rm -f conftest$ac_exeext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10914   (eval $ac_link) 2>&5
10915   ac_status=$?
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919   (eval $ac_try) 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); }; }; then
10923   :
10924 else
10925   echo "$as_me: program exited with status $ac_status" >&5
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10928
10929 ( exit $ac_status )
10930 ac_cv_header_stdc=no
10931 fi
10932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10933 fi
10934 fi
10935 fi
10936 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10937 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10938 if test $ac_cv_header_stdc = yes; then
10939
10940 cat >>confdefs.h <<\_ACEOF
10941 #define STDC_HEADERS 1
10942 _ACEOF
10943
10944 fi
10945
10946 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10947 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10948 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10949   echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951   cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h.  */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h.  */
10957 #include <sys/types.h>
10958 int
10959 main ()
10960 {
10961 return makedev(0, 0);
10962   ;
10963   return 0;
10964 }
10965 _ACEOF
10966 rm -f conftest.$ac_objext conftest$ac_exeext
10967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10968   (eval $ac_link) 2>conftest.er1
10969   ac_status=$?
10970   grep -v '^ *+' conftest.er1 >conftest.err
10971   rm -f conftest.er1
10972   cat conftest.err >&5
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); } &&
10975          { ac_try='test -z "$ac_c_werror_flag"
10976                          || test ! -s conftest.err'
10977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978   (eval $ac_try) 2>&5
10979   ac_status=$?
10980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981   (exit $ac_status); }; } &&
10982          { ac_try='test -s conftest$ac_exeext'
10983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984   (eval $ac_try) 2>&5
10985   ac_status=$?
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); }; }; then
10988   ac_cv_header_sys_types_h_makedev=yes
10989 else
10990   echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10992
10993 ac_cv_header_sys_types_h_makedev=no
10994 fi
10995 rm -f conftest.err conftest.$ac_objext \
10996       conftest$ac_exeext conftest.$ac_ext
10997
10998 fi
10999 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11000 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11001
11002 if test $ac_cv_header_sys_types_h_makedev = no; then
11003 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11004   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11005 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11006 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11007   echo $ECHO_N "(cached) $ECHO_C" >&6
11008 fi
11009 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11010 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11011 else
11012   # Is the header compilable?
11013 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11014 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11015 cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h.  */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h.  */
11021 $ac_includes_default
11022 #include <sys/mkdev.h>
11023 _ACEOF
11024 rm -f conftest.$ac_objext
11025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11026   (eval $ac_compile) 2>conftest.er1
11027   ac_status=$?
11028   grep -v '^ *+' conftest.er1 >conftest.err
11029   rm -f conftest.er1
11030   cat conftest.err >&5
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); } &&
11033          { ac_try='test -z "$ac_c_werror_flag"
11034                          || test ! -s conftest.err'
11035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036   (eval $ac_try) 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); }; } &&
11040          { ac_try='test -s conftest.$ac_objext'
11041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042   (eval $ac_try) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; }; then
11046   ac_header_compiler=yes
11047 else
11048   echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11050
11051 ac_header_compiler=no
11052 fi
11053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11055 echo "${ECHO_T}$ac_header_compiler" >&6
11056
11057 # Is the header present?
11058 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11059 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11060 cat >conftest.$ac_ext <<_ACEOF
11061 /* confdefs.h.  */
11062 _ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h.  */
11066 #include <sys/mkdev.h>
11067 _ACEOF
11068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11069   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11070   ac_status=$?
11071   grep -v '^ *+' conftest.er1 >conftest.err
11072   rm -f conftest.er1
11073   cat conftest.err >&5
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); } >/dev/null; then
11076   if test -s conftest.err; then
11077     ac_cpp_err=$ac_c_preproc_warn_flag
11078     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11079   else
11080     ac_cpp_err=
11081   fi
11082 else
11083   ac_cpp_err=yes
11084 fi
11085 if test -z "$ac_cpp_err"; then
11086   ac_header_preproc=yes
11087 else
11088   echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11090
11091   ac_header_preproc=no
11092 fi
11093 rm -f conftest.err conftest.$ac_ext
11094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11095 echo "${ECHO_T}$ac_header_preproc" >&6
11096
11097 # So?  What about this header?
11098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11099   yes:no: )
11100     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11101 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11102     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11103 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11104     ac_header_preproc=yes
11105     ;;
11106   no:yes:* )
11107     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11108 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11109     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11110 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11111     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11112 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11113     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11114 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11115     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11116 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11117     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11118 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11119     (
11120       cat <<\_ASBOX
11121 ## ------------------------------------------ ##
11122 ## Report this to the AC_PACKAGE_NAME lists.  ##
11123 ## ------------------------------------------ ##
11124 _ASBOX
11125     ) |
11126       sed "s/^/$as_me: WARNING:     /" >&2
11127     ;;
11128 esac
11129 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11130 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11131 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11132   echo $ECHO_N "(cached) $ECHO_C" >&6
11133 else
11134   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11135 fi
11136 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11137 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11138
11139 fi
11140 if test $ac_cv_header_sys_mkdev_h = yes; then
11141
11142 cat >>confdefs.h <<\_ACEOF
11143 #define MAJOR_IN_MKDEV 1
11144 _ACEOF
11145
11146 fi
11147
11148
11149
11150   if test $ac_cv_header_sys_mkdev_h = no; then
11151     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11152   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11153 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11154 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11155   echo $ECHO_N "(cached) $ECHO_C" >&6
11156 fi
11157 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11158 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11159 else
11160   # Is the header compilable?
11161 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11162 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h.  */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h.  */
11169 $ac_includes_default
11170 #include <sys/sysmacros.h>
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11174   (eval $ac_compile) 2>conftest.er1
11175   ac_status=$?
11176   grep -v '^ *+' conftest.er1 >conftest.err
11177   rm -f conftest.er1
11178   cat conftest.err >&5
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); } &&
11181          { ac_try='test -z "$ac_c_werror_flag"
11182                          || test ! -s conftest.err'
11183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184   (eval $ac_try) 2>&5
11185   ac_status=$?
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); }; } &&
11188          { ac_try='test -s conftest.$ac_objext'
11189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190   (eval $ac_try) 2>&5
11191   ac_status=$?
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); }; }; then
11194   ac_header_compiler=yes
11195 else
11196   echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11198
11199 ac_header_compiler=no
11200 fi
11201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11203 echo "${ECHO_T}$ac_header_compiler" >&6
11204
11205 # Is the header present?
11206 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11207 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11208 cat >conftest.$ac_ext <<_ACEOF
11209 /* confdefs.h.  */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h.  */
11214 #include <sys/sysmacros.h>
11215 _ACEOF
11216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11218   ac_status=$?
11219   grep -v '^ *+' conftest.er1 >conftest.err
11220   rm -f conftest.er1
11221   cat conftest.err >&5
11222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); } >/dev/null; then
11224   if test -s conftest.err; then
11225     ac_cpp_err=$ac_c_preproc_warn_flag
11226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11227   else
11228     ac_cpp_err=
11229   fi
11230 else
11231   ac_cpp_err=yes
11232 fi
11233 if test -z "$ac_cpp_err"; then
11234   ac_header_preproc=yes
11235 else
11236   echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11238
11239   ac_header_preproc=no
11240 fi
11241 rm -f conftest.err conftest.$ac_ext
11242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11243 echo "${ECHO_T}$ac_header_preproc" >&6
11244
11245 # So?  What about this header?
11246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11247   yes:no: )
11248     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11249 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11250     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11251 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11252     ac_header_preproc=yes
11253     ;;
11254   no:yes:* )
11255     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11256 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11257     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11258 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11259     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11260 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11261     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11262 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11263     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11264 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11265     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11266 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11267     (
11268       cat <<\_ASBOX
11269 ## ------------------------------------------ ##
11270 ## Report this to the AC_PACKAGE_NAME lists.  ##
11271 ## ------------------------------------------ ##
11272 _ASBOX
11273     ) |
11274       sed "s/^/$as_me: WARNING:     /" >&2
11275     ;;
11276 esac
11277 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11278 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11279 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11280   echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11283 fi
11284 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11285 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11286
11287 fi
11288 if test $ac_cv_header_sys_sysmacros_h = yes; then
11289
11290 cat >>confdefs.h <<\_ACEOF
11291 #define MAJOR_IN_SYSMACROS 1
11292 _ACEOF
11293
11294 fi
11295
11296
11297   fi
11298 fi
11299
11300
11301
11302
11303
11304
11305 ac_header_dirent=no
11306 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11307   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11308 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11309 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11311   echo $ECHO_N "(cached) $ECHO_C" >&6
11312 else
11313   cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h.  */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h.  */
11319 #include <sys/types.h>
11320 #include <$ac_hdr>
11321
11322 int
11323 main ()
11324 {
11325 if ((DIR *) 0)
11326 return 0;
11327   ;
11328   return 0;
11329 }
11330 _ACEOF
11331 rm -f conftest.$ac_objext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11333   (eval $ac_compile) 2>conftest.er1
11334   ac_status=$?
11335   grep -v '^ *+' conftest.er1 >conftest.err
11336   rm -f conftest.er1
11337   cat conftest.err >&5
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); } &&
11340          { ac_try='test -z "$ac_c_werror_flag"
11341                          || test ! -s conftest.err'
11342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343   (eval $ac_try) 2>&5
11344   ac_status=$?
11345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346   (exit $ac_status); }; } &&
11347          { ac_try='test -s conftest.$ac_objext'
11348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349   (eval $ac_try) 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); }; }; then
11353   eval "$as_ac_Header=yes"
11354 else
11355   echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11357
11358 eval "$as_ac_Header=no"
11359 fi
11360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11361 fi
11362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11365   cat >>confdefs.h <<_ACEOF
11366 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11367 _ACEOF
11368
11369 ac_header_dirent=$ac_hdr; break
11370 fi
11371
11372 done
11373 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11374 if test $ac_header_dirent = dirent.h; then
11375   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11376 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11377 if test "${ac_cv_search_opendir+set}" = set; then
11378   echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380   ac_func_search_save_LIBS=$LIBS
11381 ac_cv_search_opendir=no
11382 cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h.  */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h.  */
11388
11389 /* Override any gcc2 internal prototype to avoid an error.  */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 /* We use char because int might match the return type of a gcc2
11394    builtin and then its argument prototype would still apply.  */
11395 char opendir ();
11396 int
11397 main ()
11398 {
11399 opendir ();
11400   ;
11401   return 0;
11402 }
11403 _ACEOF
11404 rm -f conftest.$ac_objext conftest$ac_exeext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11406   (eval $ac_link) 2>conftest.er1
11407   ac_status=$?
11408   grep -v '^ *+' conftest.er1 >conftest.err
11409   rm -f conftest.er1
11410   cat conftest.err >&5
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); } &&
11413          { ac_try='test -z "$ac_c_werror_flag"
11414                          || test ! -s conftest.err'
11415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416   (eval $ac_try) 2>&5
11417   ac_status=$?
11418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); }; } &&
11420          { ac_try='test -s conftest$ac_exeext'
11421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422   (eval $ac_try) 2>&5
11423   ac_status=$?
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); }; }; then
11426   ac_cv_search_opendir="none required"
11427 else
11428   echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.$ac_ext >&5
11430
11431 fi
11432 rm -f conftest.err conftest.$ac_objext \
11433       conftest$ac_exeext conftest.$ac_ext
11434 if test "$ac_cv_search_opendir" = no; then
11435   for ac_lib in dir; do
11436     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11437     cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h.  */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h.  */
11443
11444 /* Override any gcc2 internal prototype to avoid an error.  */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 /* We use char because int might match the return type of a gcc2
11449    builtin and then its argument prototype would still apply.  */
11450 char opendir ();
11451 int
11452 main ()
11453 {
11454 opendir ();
11455   ;
11456   return 0;
11457 }
11458 _ACEOF
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461   (eval $ac_link) 2>conftest.er1
11462   ac_status=$?
11463   grep -v '^ *+' conftest.er1 >conftest.err
11464   rm -f conftest.er1
11465   cat conftest.err >&5
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); } &&
11468          { ac_try='test -z "$ac_c_werror_flag"
11469                          || test ! -s conftest.err'
11470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471   (eval $ac_try) 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); }; } &&
11475          { ac_try='test -s conftest$ac_exeext'
11476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477   (eval $ac_try) 2>&5
11478   ac_status=$?
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); }; }; then
11481   ac_cv_search_opendir="-l$ac_lib"
11482 break
11483 else
11484   echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11486
11487 fi
11488 rm -f conftest.err conftest.$ac_objext \
11489       conftest$ac_exeext conftest.$ac_ext
11490   done
11491 fi
11492 LIBS=$ac_func_search_save_LIBS
11493 fi
11494 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11495 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11496 if test "$ac_cv_search_opendir" != no; then
11497   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11498
11499 fi
11500
11501 else
11502   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11503 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11504 if test "${ac_cv_search_opendir+set}" = set; then
11505   echo $ECHO_N "(cached) $ECHO_C" >&6
11506 else
11507   ac_func_search_save_LIBS=$LIBS
11508 ac_cv_search_opendir=no
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h.  */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h.  */
11515
11516 /* Override any gcc2 internal prototype to avoid an error.  */
11517 #ifdef __cplusplus
11518 extern "C"
11519 #endif
11520 /* We use char because int might match the return type of a gcc2
11521    builtin and then its argument prototype would still apply.  */
11522 char opendir ();
11523 int
11524 main ()
11525 {
11526 opendir ();
11527   ;
11528   return 0;
11529 }
11530 _ACEOF
11531 rm -f conftest.$ac_objext conftest$ac_exeext
11532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11533   (eval $ac_link) 2>conftest.er1
11534   ac_status=$?
11535   grep -v '^ *+' conftest.er1 >conftest.err
11536   rm -f conftest.er1
11537   cat conftest.err >&5
11538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539   (exit $ac_status); } &&
11540          { ac_try='test -z "$ac_c_werror_flag"
11541                          || test ! -s conftest.err'
11542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543   (eval $ac_try) 2>&5
11544   ac_status=$?
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); }; } &&
11547          { ac_try='test -s conftest$ac_exeext'
11548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549   (eval $ac_try) 2>&5
11550   ac_status=$?
11551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552   (exit $ac_status); }; }; then
11553   ac_cv_search_opendir="none required"
11554 else
11555   echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11557
11558 fi
11559 rm -f conftest.err conftest.$ac_objext \
11560       conftest$ac_exeext conftest.$ac_ext
11561 if test "$ac_cv_search_opendir" = no; then
11562   for ac_lib in x; do
11563     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11564     cat >conftest.$ac_ext <<_ACEOF
11565 /* confdefs.h.  */
11566 _ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h.  */
11570
11571 /* Override any gcc2 internal prototype to avoid an error.  */
11572 #ifdef __cplusplus
11573 extern "C"
11574 #endif
11575 /* We use char because int might match the return type of a gcc2
11576    builtin and then its argument prototype would still apply.  */
11577 char opendir ();
11578 int
11579 main ()
11580 {
11581 opendir ();
11582   ;
11583   return 0;
11584 }
11585 _ACEOF
11586 rm -f conftest.$ac_objext conftest$ac_exeext
11587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11588   (eval $ac_link) 2>conftest.er1
11589   ac_status=$?
11590   grep -v '^ *+' conftest.er1 >conftest.err
11591   rm -f conftest.er1
11592   cat conftest.err >&5
11593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594   (exit $ac_status); } &&
11595          { ac_try='test -z "$ac_c_werror_flag"
11596                          || test ! -s conftest.err'
11597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598   (eval $ac_try) 2>&5
11599   ac_status=$?
11600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); }; } &&
11602          { ac_try='test -s conftest$ac_exeext'
11603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604   (eval $ac_try) 2>&5
11605   ac_status=$?
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); }; }; then
11608   ac_cv_search_opendir="-l$ac_lib"
11609 break
11610 else
11611   echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11613
11614 fi
11615 rm -f conftest.err conftest.$ac_objext \
11616       conftest$ac_exeext conftest.$ac_ext
11617   done
11618 fi
11619 LIBS=$ac_func_search_save_LIBS
11620 fi
11621 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11622 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11623 if test "$ac_cv_search_opendir" != no; then
11624   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11625
11626 fi
11627
11628 fi
11629
11630 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11631 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11632 if test "${ac_cv_header_stat_broken+set}" = set; then
11633   echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635   cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h.  */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h.  */
11641 #include <sys/types.h>
11642 #include <sys/stat.h>
11643
11644 #if defined(S_ISBLK) && defined(S_IFDIR)
11645 # if S_ISBLK (S_IFDIR)
11646 You lose.
11647 # endif
11648 #endif
11649
11650 #if defined(S_ISBLK) && defined(S_IFCHR)
11651 # if S_ISBLK (S_IFCHR)
11652 You lose.
11653 # endif
11654 #endif
11655
11656 #if defined(S_ISLNK) && defined(S_IFREG)
11657 # if S_ISLNK (S_IFREG)
11658 You lose.
11659 # endif
11660 #endif
11661
11662 #if defined(S_ISSOCK) && defined(S_IFREG)
11663 # if S_ISSOCK (S_IFREG)
11664 You lose.
11665 # endif
11666 #endif
11667
11668 _ACEOF
11669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11670   $EGREP "You lose" >/dev/null 2>&1; then
11671   ac_cv_header_stat_broken=yes
11672 else
11673   ac_cv_header_stat_broken=no
11674 fi
11675 rm -f conftest*
11676
11677 fi
11678 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11679 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11680 if test $ac_cv_header_stat_broken = yes; then
11681
11682 cat >>confdefs.h <<\_ACEOF
11683 #define STAT_MACROS_BROKEN 1
11684 _ACEOF
11685
11686 fi
11687
11688 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11689 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11690 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11691   echo $ECHO_N "(cached) $ECHO_C" >&6
11692 else
11693   cat >conftest.$ac_ext <<_ACEOF
11694 /* confdefs.h.  */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h.  */
11699 #include <sys/types.h>
11700 #include <sys/wait.h>
11701 #ifndef WEXITSTATUS
11702 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11703 #endif
11704 #ifndef WIFEXITED
11705 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11706 #endif
11707
11708 int
11709 main ()
11710 {
11711   int s;
11712   wait (&s);
11713   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11714   ;
11715   return 0;
11716 }
11717 _ACEOF
11718 rm -f conftest.$ac_objext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11720   (eval $ac_compile) 2>conftest.er1
11721   ac_status=$?
11722   grep -v '^ *+' conftest.er1 >conftest.err
11723   rm -f conftest.er1
11724   cat conftest.err >&5
11725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); } &&
11727          { ac_try='test -z "$ac_c_werror_flag"
11728                          || test ! -s conftest.err'
11729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730   (eval $ac_try) 2>&5
11731   ac_status=$?
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); }; } &&
11734          { ac_try='test -s conftest.$ac_objext'
11735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736   (eval $ac_try) 2>&5
11737   ac_status=$?
11738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); }; }; then
11740   ac_cv_header_sys_wait_h=yes
11741 else
11742   echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11744
11745 ac_cv_header_sys_wait_h=no
11746 fi
11747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11748 fi
11749 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11750 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11751 if test $ac_cv_header_sys_wait_h = yes; then
11752
11753 cat >>confdefs.h <<\_ACEOF
11754 #define HAVE_SYS_WAIT_H 1
11755 _ACEOF
11756
11757 fi
11758
11759 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11760 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11761 if test "${ac_cv_header_time+set}" = set; then
11762   echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764   cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h.  */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h.  */
11770 #include <sys/types.h>
11771 #include <sys/time.h>
11772 #include <time.h>
11773
11774 int
11775 main ()
11776 {
11777 if ((struct tm *) 0)
11778 return 0;
11779   ;
11780   return 0;
11781 }
11782 _ACEOF
11783 rm -f conftest.$ac_objext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11785   (eval $ac_compile) 2>conftest.er1
11786   ac_status=$?
11787   grep -v '^ *+' conftest.er1 >conftest.err
11788   rm -f conftest.er1
11789   cat conftest.err >&5
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); } &&
11792          { ac_try='test -z "$ac_c_werror_flag"
11793                          || test ! -s conftest.err'
11794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795   (eval $ac_try) 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); }; } &&
11799          { ac_try='test -s conftest.$ac_objext'
11800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801   (eval $ac_try) 2>&5
11802   ac_status=$?
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); }; }; then
11805   ac_cv_header_time=yes
11806 else
11807   echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11809
11810 ac_cv_header_time=no
11811 fi
11812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11813 fi
11814 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11815 echo "${ECHO_T}$ac_cv_header_time" >&6
11816 if test $ac_cv_header_time = yes; then
11817
11818 cat >>confdefs.h <<\_ACEOF
11819 #define TIME_WITH_SYS_TIME 1
11820 _ACEOF
11821
11822 fi
11823
11824
11825 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11826 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11827 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11828   echo $ECHO_N "(cached) $ECHO_C" >&6
11829 else
11830   cat >conftest.$ac_ext <<_ACEOF
11831 /* confdefs.h.  */
11832 _ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h.  */
11836 $ac_includes_default
11837 int
11838 main ()
11839 {
11840 static struct stat ac_aggr;
11841 if (ac_aggr.st_blksize)
11842 return 0;
11843   ;
11844   return 0;
11845 }
11846 _ACEOF
11847 rm -f conftest.$ac_objext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11849   (eval $ac_compile) 2>conftest.er1
11850   ac_status=$?
11851   grep -v '^ *+' conftest.er1 >conftest.err
11852   rm -f conftest.er1
11853   cat conftest.err >&5
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); } &&
11856          { ac_try='test -z "$ac_c_werror_flag"
11857                          || test ! -s conftest.err'
11858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859   (eval $ac_try) 2>&5
11860   ac_status=$?
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); }; } &&
11863          { ac_try='test -s conftest.$ac_objext'
11864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865   (eval $ac_try) 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); }; }; then
11869   ac_cv_member_struct_stat_st_blksize=yes
11870 else
11871   echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11873
11874 cat >conftest.$ac_ext <<_ACEOF
11875 /* confdefs.h.  */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h.  */
11880 $ac_includes_default
11881 int
11882 main ()
11883 {
11884 static struct stat ac_aggr;
11885 if (sizeof ac_aggr.st_blksize)
11886 return 0;
11887   ;
11888   return 0;
11889 }
11890 _ACEOF
11891 rm -f conftest.$ac_objext
11892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11893   (eval $ac_compile) 2>conftest.er1
11894   ac_status=$?
11895   grep -v '^ *+' conftest.er1 >conftest.err
11896   rm -f conftest.er1
11897   cat conftest.err >&5
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); } &&
11900          { ac_try='test -z "$ac_c_werror_flag"
11901                          || test ! -s conftest.err'
11902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903   (eval $ac_try) 2>&5
11904   ac_status=$?
11905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); }; } &&
11907          { ac_try='test -s conftest.$ac_objext'
11908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909   (eval $ac_try) 2>&5
11910   ac_status=$?
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); }; }; then
11913   ac_cv_member_struct_stat_st_blksize=yes
11914 else
11915   echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11917
11918 ac_cv_member_struct_stat_st_blksize=no
11919 fi
11920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11921 fi
11922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11923 fi
11924 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11925 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11926 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11927
11928 cat >>confdefs.h <<_ACEOF
11929 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11930 _ACEOF
11931
11932
11933 cat >>confdefs.h <<\_ACEOF
11934 #define HAVE_ST_BLKSIZE 1
11935 _ACEOF
11936
11937 fi
11938
11939
11940 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11941 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11942 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11943   echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945   cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h.  */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h.  */
11951 $ac_includes_default
11952 int
11953 main ()
11954 {
11955 static struct stat ac_aggr;
11956 if (ac_aggr.st_blocks)
11957 return 0;
11958   ;
11959   return 0;
11960 }
11961 _ACEOF
11962 rm -f conftest.$ac_objext
11963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11964   (eval $ac_compile) 2>conftest.er1
11965   ac_status=$?
11966   grep -v '^ *+' conftest.er1 >conftest.err
11967   rm -f conftest.er1
11968   cat conftest.err >&5
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); } &&
11971          { ac_try='test -z "$ac_c_werror_flag"
11972                          || test ! -s conftest.err'
11973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974   (eval $ac_try) 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); }; } &&
11978          { ac_try='test -s conftest.$ac_objext'
11979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980   (eval $ac_try) 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); }; }; then
11984   ac_cv_member_struct_stat_st_blocks=yes
11985 else
11986   echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11988
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h.  */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h.  */
11995 $ac_includes_default
11996 int
11997 main ()
11998 {
11999 static struct stat ac_aggr;
12000 if (sizeof ac_aggr.st_blocks)
12001 return 0;
12002   ;
12003   return 0;
12004 }
12005 _ACEOF
12006 rm -f conftest.$ac_objext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12008   (eval $ac_compile) 2>conftest.er1
12009   ac_status=$?
12010   grep -v '^ *+' conftest.er1 >conftest.err
12011   rm -f conftest.er1
12012   cat conftest.err >&5
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); } &&
12015          { ac_try='test -z "$ac_c_werror_flag"
12016                          || test ! -s conftest.err'
12017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018   (eval $ac_try) 2>&5
12019   ac_status=$?
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); }; } &&
12022          { ac_try='test -s conftest.$ac_objext'
12023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024   (eval $ac_try) 2>&5
12025   ac_status=$?
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); }; }; then
12028   ac_cv_member_struct_stat_st_blocks=yes
12029 else
12030   echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12032
12033 ac_cv_member_struct_stat_st_blocks=no
12034 fi
12035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12036 fi
12037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12038 fi
12039 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12040 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12041 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12042
12043 cat >>confdefs.h <<_ACEOF
12044 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12045 _ACEOF
12046
12047
12048 cat >>confdefs.h <<\_ACEOF
12049 #define HAVE_ST_BLOCKS 1
12050 _ACEOF
12051
12052 else
12053   case $LIBOBJS in
12054     "fileblocks.$ac_objext"   | \
12055   *" fileblocks.$ac_objext"   | \
12056     "fileblocks.$ac_objext "* | \
12057   *" fileblocks.$ac_objext "* ) ;;
12058   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12059 esac
12060
12061 fi
12062
12063
12064 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12065 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12066 if test "${ac_cv_struct_tm+set}" = set; then
12067   echo $ECHO_N "(cached) $ECHO_C" >&6
12068 else
12069   cat >conftest.$ac_ext <<_ACEOF
12070 /* confdefs.h.  */
12071 _ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h.  */
12075 #include <sys/types.h>
12076 #include <time.h>
12077
12078 int
12079 main ()
12080 {
12081 struct tm *tp; tp->tm_sec;
12082   ;
12083   return 0;
12084 }
12085 _ACEOF
12086 rm -f conftest.$ac_objext
12087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12088   (eval $ac_compile) 2>conftest.er1
12089   ac_status=$?
12090   grep -v '^ *+' conftest.er1 >conftest.err
12091   rm -f conftest.er1
12092   cat conftest.err >&5
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } &&
12095          { ac_try='test -z "$ac_c_werror_flag"
12096                          || test ! -s conftest.err'
12097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098   (eval $ac_try) 2>&5
12099   ac_status=$?
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); }; } &&
12102          { ac_try='test -s conftest.$ac_objext'
12103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104   (eval $ac_try) 2>&5
12105   ac_status=$?
12106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); }; }; then
12108   ac_cv_struct_tm=time.h
12109 else
12110   echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 ac_cv_struct_tm=sys/time.h
12114 fi
12115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12116 fi
12117 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12118 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12119 if test $ac_cv_struct_tm = sys/time.h; then
12120
12121 cat >>confdefs.h <<\_ACEOF
12122 #define TM_IN_SYS_TIME 1
12123 _ACEOF
12124
12125 fi
12126
12127 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12128 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12129 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12130   echo $ECHO_N "(cached) $ECHO_C" >&6
12131 else
12132   cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h.  */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h.  */
12138 #include <sys/types.h>
12139 #include <$ac_cv_struct_tm>
12140
12141
12142 int
12143 main ()
12144 {
12145 static struct tm ac_aggr;
12146 if (ac_aggr.tm_zone)
12147 return 0;
12148   ;
12149   return 0;
12150 }
12151 _ACEOF
12152 rm -f conftest.$ac_objext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12154   (eval $ac_compile) 2>conftest.er1
12155   ac_status=$?
12156   grep -v '^ *+' conftest.er1 >conftest.err
12157   rm -f conftest.er1
12158   cat conftest.err >&5
12159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160   (exit $ac_status); } &&
12161          { ac_try='test -z "$ac_c_werror_flag"
12162                          || test ! -s conftest.err'
12163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164   (eval $ac_try) 2>&5
12165   ac_status=$?
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); }; } &&
12168          { ac_try='test -s conftest.$ac_objext'
12169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170   (eval $ac_try) 2>&5
12171   ac_status=$?
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); }; }; then
12174   ac_cv_member_struct_tm_tm_zone=yes
12175 else
12176   echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12178
12179 cat >conftest.$ac_ext <<_ACEOF
12180 /* confdefs.h.  */
12181 _ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h.  */
12185 #include <sys/types.h>
12186 #include <$ac_cv_struct_tm>
12187
12188
12189 int
12190 main ()
12191 {
12192 static struct tm ac_aggr;
12193 if (sizeof ac_aggr.tm_zone)
12194 return 0;
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 rm -f conftest.$ac_objext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201   (eval $ac_compile) 2>conftest.er1
12202   ac_status=$?
12203   grep -v '^ *+' conftest.er1 >conftest.err
12204   rm -f conftest.er1
12205   cat conftest.err >&5
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); } &&
12208          { ac_try='test -z "$ac_c_werror_flag"
12209                          || test ! -s conftest.err'
12210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211   (eval $ac_try) 2>&5
12212   ac_status=$?
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); }; } &&
12215          { ac_try='test -s conftest.$ac_objext'
12216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217   (eval $ac_try) 2>&5
12218   ac_status=$?
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); }; }; then
12221   ac_cv_member_struct_tm_tm_zone=yes
12222 else
12223   echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226 ac_cv_member_struct_tm_tm_zone=no
12227 fi
12228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12229 fi
12230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12231 fi
12232 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12233 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12234 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12235
12236 cat >>confdefs.h <<_ACEOF
12237 #define HAVE_STRUCT_TM_TM_ZONE 1
12238 _ACEOF
12239
12240
12241 fi
12242
12243 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12244
12245 cat >>confdefs.h <<\_ACEOF
12246 #define HAVE_TM_ZONE 1
12247 _ACEOF
12248
12249 else
12250   echo "$as_me:$LINENO: checking for tzname" >&5
12251 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12252 if test "${ac_cv_var_tzname+set}" = set; then
12253   echo $ECHO_N "(cached) $ECHO_C" >&6
12254 else
12255   cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h.  */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h.  */
12261 #include <time.h>
12262 #ifndef tzname /* For SGI.  */
12263 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12264 #endif
12265
12266 int
12267 main ()
12268 {
12269 atoi(*tzname);
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12276   (eval $ac_link) 2>conftest.er1
12277   ac_status=$?
12278   grep -v '^ *+' conftest.er1 >conftest.err
12279   rm -f conftest.er1
12280   cat conftest.err >&5
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); } &&
12283          { ac_try='test -z "$ac_c_werror_flag"
12284                          || test ! -s conftest.err'
12285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286   (eval $ac_try) 2>&5
12287   ac_status=$?
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); }; } &&
12290          { ac_try='test -s conftest$ac_exeext'
12291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292   (eval $ac_try) 2>&5
12293   ac_status=$?
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); }; }; then
12296   ac_cv_var_tzname=yes
12297 else
12298   echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301 ac_cv_var_tzname=no
12302 fi
12303 rm -f conftest.err conftest.$ac_objext \
12304       conftest$ac_exeext conftest.$ac_ext
12305 fi
12306 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12307 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12308   if test $ac_cv_var_tzname = yes; then
12309
12310 cat >>confdefs.h <<\_ACEOF
12311 #define HAVE_TZNAME 1
12312 _ACEOF
12313
12314   fi
12315 fi
12316
12317
12318 echo "$as_me:$LINENO: checking for utime.h" >&5
12319 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12320 if test "${ba_cv_header_utime_h+set}" = set; then
12321   echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
12323   cat >conftest.$ac_ext <<_ACEOF
12324 /* confdefs.h.  */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h.  */
12329
12330 #include <sys/types.h>
12331 #include <utime.h>
12332 int
12333 main ()
12334 {
12335 struct utimbuf foo
12336   ;
12337   return 0;
12338 }
12339 _ACEOF
12340 rm -f conftest.$ac_objext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12342   (eval $ac_compile) 2>conftest.er1
12343   ac_status=$?
12344   grep -v '^ *+' conftest.er1 >conftest.err
12345   rm -f conftest.er1
12346   cat conftest.err >&5
12347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348   (exit $ac_status); } &&
12349          { ac_try='test -z "$ac_c_werror_flag"
12350                          || test ! -s conftest.err'
12351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352   (eval $ac_try) 2>&5
12353   ac_status=$?
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); }; } &&
12356          { ac_try='test -s conftest.$ac_objext'
12357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358   (eval $ac_try) 2>&5
12359   ac_status=$?
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); }; }; then
12362   ba_cv_header_utime_h=yes
12363 else
12364   echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12366
12367 ba_cv_header_utime_h=no
12368 fi
12369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12370 fi
12371 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12372 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12373 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12374 #define HAVE_UTIME_H 1
12375 _ACEOF
12376
12377
12378 echo "$as_me:$LINENO: checking for socklen_t" >&5
12379 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12380 if test "${ba_cv_header_socklen_t+set}" = set; then
12381   echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383   cat >conftest.$ac_ext <<_ACEOF
12384 /* confdefs.h.  */
12385 _ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h.  */
12389
12390 #include <sys/types.h>
12391 #include <sys/socket.h>
12392 int
12393 main ()
12394 {
12395 socklen_t x
12396   ;
12397   return 0;
12398 }
12399 _ACEOF
12400 rm -f conftest.$ac_objext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12402   (eval $ac_compile) 2>conftest.er1
12403   ac_status=$?
12404   grep -v '^ *+' conftest.er1 >conftest.err
12405   rm -f conftest.er1
12406   cat conftest.err >&5
12407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408   (exit $ac_status); } &&
12409          { ac_try='test -z "$ac_c_werror_flag"
12410                          || test ! -s conftest.err'
12411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412   (eval $ac_try) 2>&5
12413   ac_status=$?
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); }; } &&
12416          { ac_try='test -s conftest.$ac_objext'
12417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418   (eval $ac_try) 2>&5
12419   ac_status=$?
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); }; }; then
12422   ba_cv_header_socklen_t=yes
12423 else
12424   echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12426
12427 ba_cv_header_socklen_t=no
12428 fi
12429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12430 fi
12431 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12432 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12433 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12434 #define HAVE_SOCKLEN_T 1
12435 _ACEOF
12436
12437
12438 echo "$as_me:$LINENO: checking for bigendian" >&5
12439 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12440 if test "${ba_cv_bigendian+set}" = set; then
12441   echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443   if test "$cross_compiling" = yes; then
12444   ba_cv_bigendian=no
12445 else
12446   cat >conftest.$ac_ext <<_ACEOF
12447 /* confdefs.h.  */
12448 _ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h.  */
12452 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12453 _ACEOF
12454 rm -f conftest$ac_exeext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456   (eval $ac_link) 2>&5
12457   ac_status=$?
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461   (eval $ac_try) 2>&5
12462   ac_status=$?
12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464   (exit $ac_status); }; }; then
12465   ba_cv_bigendian=yes
12466 else
12467   echo "$as_me: program exited with status $ac_status" >&5
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12470
12471 ( exit $ac_status )
12472 ba_cv_bigendian=no
12473 fi
12474 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12475 fi
12476 fi
12477 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12478 echo "${ECHO_T}$ba_cv_bigendian" >&6
12479 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12480 #define HAVE_BIGENDIAN 1
12481 _ACEOF
12482
12483
12484
12485 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12486 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12487 if test "${ac_cv_c_const+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
12497 int
12498 main ()
12499 {
12500 /* FIXME: Include the comments suggested by Paul. */
12501 #ifndef __cplusplus
12502   /* Ultrix mips cc rejects this.  */
12503   typedef int charset[2];
12504   const charset x;
12505   /* SunOS 4.1.1 cc rejects this.  */
12506   char const *const *ccp;
12507   char **p;
12508   /* NEC SVR4.0.2 mips cc rejects this.  */
12509   struct point {int x, y;};
12510   static struct point const zero = {0,0};
12511   /* AIX XL C 1.02.0.0 rejects this.
12512      It does not let you subtract one const X* pointer from another in
12513      an arm of an if-expression whose if-part is not a constant
12514      expression */
12515   const char *g = "string";
12516   ccp = &g + (g ? g-g : 0);
12517   /* HPUX 7.0 cc rejects these. */
12518   ++ccp;
12519   p = (char**) ccp;
12520   ccp = (char const *const *) p;
12521   { /* SCO 3.2v4 cc rejects this.  */
12522     char *t;
12523     char const *s = 0 ? (char *) 0 : (char const *) 0;
12524
12525     *t++ = 0;
12526   }
12527   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12528     int x[] = {25, 17};
12529     const int *foo = &x[0];
12530     ++foo;
12531   }
12532   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12533     typedef const int *iptr;
12534     iptr p = 0;
12535     ++p;
12536   }
12537   { /* AIX XL C 1.02.0.0 rejects this saying
12538        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12539     struct s { int j; const int *ap[3]; };
12540     struct s *b; b->j = 5;
12541   }
12542   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12543     const int foo = 10;
12544   }
12545 #endif
12546
12547   ;
12548   return 0;
12549 }
12550 _ACEOF
12551 rm -f conftest.$ac_objext
12552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12553   (eval $ac_compile) 2>conftest.er1
12554   ac_status=$?
12555   grep -v '^ *+' conftest.er1 >conftest.err
12556   rm -f conftest.er1
12557   cat conftest.err >&5
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); } &&
12560          { ac_try='test -z "$ac_c_werror_flag"
12561                          || test ! -s conftest.err'
12562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563   (eval $ac_try) 2>&5
12564   ac_status=$?
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); }; } &&
12567          { ac_try='test -s conftest.$ac_objext'
12568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569   (eval $ac_try) 2>&5
12570   ac_status=$?
12571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572   (exit $ac_status); }; }; then
12573   ac_cv_c_const=yes
12574 else
12575   echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12577
12578 ac_cv_c_const=no
12579 fi
12580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12581 fi
12582 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12583 echo "${ECHO_T}$ac_cv_c_const" >&6
12584 if test $ac_cv_c_const = no; then
12585
12586 cat >>confdefs.h <<\_ACEOF
12587 #define const
12588 _ACEOF
12589
12590 fi
12591
12592
12593
12594 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12595 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12596 fstype=no
12597 # The order of these tests is important.
12598 cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h.  */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h.  */
12604 #include <sys/statvfs.h>
12605 #include <sys/fstyp.h>
12606 _ACEOF
12607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12609   ac_status=$?
12610   grep -v '^ *+' conftest.er1 >conftest.err
12611   rm -f conftest.er1
12612   cat conftest.err >&5
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); } >/dev/null; then
12615   if test -s conftest.err; then
12616     ac_cpp_err=$ac_c_preproc_warn_flag
12617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12618   else
12619     ac_cpp_err=
12620   fi
12621 else
12622   ac_cpp_err=yes
12623 fi
12624 if test -z "$ac_cpp_err"; then
12625   cat >>confdefs.h <<\_ACEOF
12626 #define FSTYPE_STATVFS 1
12627 _ACEOF
12628  fstype=SVR4
12629 else
12630   echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12632
12633
12634 fi
12635 rm -f conftest.err conftest.$ac_ext
12636 if test $fstype = no; then
12637 cat >conftest.$ac_ext <<_ACEOF
12638 /* confdefs.h.  */
12639 _ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h.  */
12643 #include <sys/statfs.h>
12644 #include <sys/fstyp.h>
12645 _ACEOF
12646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12648   ac_status=$?
12649   grep -v '^ *+' conftest.er1 >conftest.err
12650   rm -f conftest.er1
12651   cat conftest.err >&5
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); } >/dev/null; then
12654   if test -s conftest.err; then
12655     ac_cpp_err=$ac_c_preproc_warn_flag
12656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12657   else
12658     ac_cpp_err=
12659   fi
12660 else
12661   ac_cpp_err=yes
12662 fi
12663 if test -z "$ac_cpp_err"; then
12664   cat >>confdefs.h <<\_ACEOF
12665 #define FSTYPE_USG_STATFS 1
12666 _ACEOF
12667  fstype=SVR3
12668 else
12669   echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.$ac_ext >&5
12671
12672
12673 fi
12674 rm -f conftest.err conftest.$ac_ext
12675 fi
12676 if test $fstype = no; then
12677 cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h.  */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h.  */
12683 #include <sys/statfs.h>
12684 #include <sys/vmount.h>
12685 _ACEOF
12686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12687   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12688   ac_status=$?
12689   grep -v '^ *+' conftest.er1 >conftest.err
12690   rm -f conftest.er1
12691   cat conftest.err >&5
12692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); } >/dev/null; then
12694   if test -s conftest.err; then
12695     ac_cpp_err=$ac_c_preproc_warn_flag
12696     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12697   else
12698     ac_cpp_err=
12699   fi
12700 else
12701   ac_cpp_err=yes
12702 fi
12703 if test -z "$ac_cpp_err"; then
12704   cat >>confdefs.h <<\_ACEOF
12705 #define FSTYPE_AIX_STATFS 1
12706 _ACEOF
12707  fstype=AIX
12708 else
12709   echo "$as_me: failed program was:" >&5
12710 sed 's/^/| /' conftest.$ac_ext >&5
12711
12712
12713 fi
12714 rm -f conftest.err conftest.$ac_ext
12715 fi
12716 if test $fstype = no; then
12717 cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h.  */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h.  */
12723 #include <mntent.h>
12724 _ACEOF
12725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12727   ac_status=$?
12728   grep -v '^ *+' conftest.er1 >conftest.err
12729   rm -f conftest.er1
12730   cat conftest.err >&5
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); } >/dev/null; then
12733   if test -s conftest.err; then
12734     ac_cpp_err=$ac_c_preproc_warn_flag
12735     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12736   else
12737     ac_cpp_err=
12738   fi
12739 else
12740   ac_cpp_err=yes
12741 fi
12742 if test -z "$ac_cpp_err"; then
12743   cat >>confdefs.h <<\_ACEOF
12744 #define FSTYPE_MNTENT 1
12745 _ACEOF
12746  fstype=4.3BSD
12747 else
12748   echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12750
12751
12752 fi
12753 rm -f conftest.err conftest.$ac_ext
12754 fi
12755 if test $fstype = no; then
12756 cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h.  */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h.  */
12762 #include <sys/mount.h>
12763
12764 _ACEOF
12765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12766   $EGREP "f_type;" >/dev/null 2>&1; then
12767   cat >>confdefs.h <<\_ACEOF
12768 #define FSTYPE_STATFS 1
12769 _ACEOF
12770  fstype=4.4BSD/OSF1
12771 fi
12772 rm -f conftest*
12773
12774 fi
12775 if test $fstype = no; then
12776 cat >conftest.$ac_ext <<_ACEOF
12777 /* confdefs.h.  */
12778 _ACEOF
12779 cat confdefs.h >>conftest.$ac_ext
12780 cat >>conftest.$ac_ext <<_ACEOF
12781 /* end confdefs.h.  */
12782 #include <sys/mount.h>
12783 #include <sys/fs_types.h>
12784 _ACEOF
12785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12786   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12787   ac_status=$?
12788   grep -v '^ *+' conftest.er1 >conftest.err
12789   rm -f conftest.er1
12790   cat conftest.err >&5
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); } >/dev/null; then
12793   if test -s conftest.err; then
12794     ac_cpp_err=$ac_c_preproc_warn_flag
12795     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12796   else
12797     ac_cpp_err=
12798   fi
12799 else
12800   ac_cpp_err=yes
12801 fi
12802 if test -z "$ac_cpp_err"; then
12803   cat >>confdefs.h <<\_ACEOF
12804 #define FSTYPE_GETMNT 1
12805 _ACEOF
12806  fstype=Ultrix
12807 else
12808   echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12810
12811
12812 fi
12813 rm -f conftest.err conftest.$ac_ext
12814 fi
12815 echo "$as_me:$LINENO: result: $fstype" >&5
12816 echo "${ECHO_T}$fstype" >&6
12817
12818 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12819 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12820 if test "${ac_cv_type_signal+set}" = set; then
12821   echo $ECHO_N "(cached) $ECHO_C" >&6
12822 else
12823   cat >conftest.$ac_ext <<_ACEOF
12824 /* confdefs.h.  */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h.  */
12829 #include <sys/types.h>
12830 #include <signal.h>
12831 #ifdef signal
12832 # undef signal
12833 #endif
12834 #ifdef __cplusplus
12835 extern "C" void (*signal (int, void (*)(int)))(int);
12836 #else
12837 void (*signal ()) ();
12838 #endif
12839
12840 int
12841 main ()
12842 {
12843 int i;
12844   ;
12845   return 0;
12846 }
12847 _ACEOF
12848 rm -f conftest.$ac_objext
12849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850   (eval $ac_compile) 2>conftest.er1
12851   ac_status=$?
12852   grep -v '^ *+' conftest.er1 >conftest.err
12853   rm -f conftest.er1
12854   cat conftest.err >&5
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); } &&
12857          { ac_try='test -z "$ac_c_werror_flag"
12858                          || test ! -s conftest.err'
12859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860   (eval $ac_try) 2>&5
12861   ac_status=$?
12862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863   (exit $ac_status); }; } &&
12864          { ac_try='test -s conftest.$ac_objext'
12865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866   (eval $ac_try) 2>&5
12867   ac_status=$?
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); }; }; then
12870   ac_cv_type_signal=void
12871 else
12872   echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12874
12875 ac_cv_type_signal=int
12876 fi
12877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12878 fi
12879 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12880 echo "${ECHO_T}$ac_cv_type_signal" >&6
12881
12882 cat >>confdefs.h <<_ACEOF
12883 #define RETSIGTYPE $ac_cv_type_signal
12884 _ACEOF
12885
12886
12887
12888 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12889 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12890 if test "${bash_cv_signal_vintage+set}" = set; then
12891   echo $ECHO_N "(cached) $ECHO_C" >&6
12892 else
12893
12894   cat >conftest.$ac_ext <<_ACEOF
12895 /* confdefs.h.  */
12896 _ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h.  */
12900 #include <signal.h>
12901 int
12902 main ()
12903 {
12904
12905     sigset_t ss;
12906     struct sigaction sa;
12907     sigemptyset(&ss); sigsuspend(&ss);
12908     sigaction(SIGINT, &sa, (struct sigaction *) 0);
12909     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12910
12911   ;
12912   return 0;
12913 }
12914 _ACEOF
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917   (eval $ac_link) 2>conftest.er1
12918   ac_status=$?
12919   grep -v '^ *+' conftest.er1 >conftest.err
12920   rm -f conftest.er1
12921   cat conftest.err >&5
12922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923   (exit $ac_status); } &&
12924          { ac_try='test -z "$ac_c_werror_flag"
12925                          || test ! -s conftest.err'
12926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927   (eval $ac_try) 2>&5
12928   ac_status=$?
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); }; } &&
12931          { ac_try='test -s conftest$ac_exeext'
12932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933   (eval $ac_try) 2>&5
12934   ac_status=$?
12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936   (exit $ac_status); }; }; then
12937   bash_cv_signal_vintage=posix
12938 else
12939   echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12941
12942
12943     cat >conftest.$ac_ext <<_ACEOF
12944 /* confdefs.h.  */
12945 _ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h.  */
12949 #include <signal.h>
12950 int
12951 main ()
12952 {
12953
12954         int mask = sigmask(SIGINT);
12955         sigsetmask(mask); sigblock(mask); sigpause(mask);
12956
12957   ;
12958   return 0;
12959 }
12960 _ACEOF
12961 rm -f conftest.$ac_objext conftest$ac_exeext
12962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12963   (eval $ac_link) 2>conftest.er1
12964   ac_status=$?
12965   grep -v '^ *+' conftest.er1 >conftest.err
12966   rm -f conftest.er1
12967   cat conftest.err >&5
12968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969   (exit $ac_status); } &&
12970          { ac_try='test -z "$ac_c_werror_flag"
12971                          || test ! -s conftest.err'
12972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973   (eval $ac_try) 2>&5
12974   ac_status=$?
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); }; } &&
12977          { ac_try='test -s conftest$ac_exeext'
12978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979   (eval $ac_try) 2>&5
12980   ac_status=$?
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); }; }; then
12983   bash_cv_signal_vintage=4.2bsd
12984 else
12985   echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12987
12988
12989       cat >conftest.$ac_ext <<_ACEOF
12990 /* confdefs.h.  */
12991 _ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h.  */
12995
12996         #include <signal.h>
12997         RETSIGTYPE foo() { }
12998 int
12999 main ()
13000 {
13001
13002                 int mask = sigmask(SIGINT);
13003                 sigset(SIGINT, foo); sigrelse(SIGINT);
13004                 sighold(SIGINT); sigpause(SIGINT);
13005
13006   ;
13007   return 0;
13008 }
13009 _ACEOF
13010 rm -f conftest.$ac_objext conftest$ac_exeext
13011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13012   (eval $ac_link) 2>conftest.er1
13013   ac_status=$?
13014   grep -v '^ *+' conftest.er1 >conftest.err
13015   rm -f conftest.er1
13016   cat conftest.err >&5
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); } &&
13019          { ac_try='test -z "$ac_c_werror_flag"
13020                          || test ! -s conftest.err'
13021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022   (eval $ac_try) 2>&5
13023   ac_status=$?
13024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); }; } &&
13026          { ac_try='test -s conftest$ac_exeext'
13027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028   (eval $ac_try) 2>&5
13029   ac_status=$?
13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); }; }; then
13032   bash_cv_signal_vintage=svr3
13033 else
13034   echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13036
13037 bash_cv_signal_vintage=v7
13038
13039 fi
13040 rm -f conftest.err conftest.$ac_objext \
13041       conftest$ac_exeext conftest.$ac_ext
13042
13043 fi
13044 rm -f conftest.err conftest.$ac_objext \
13045       conftest$ac_exeext conftest.$ac_ext
13046
13047 fi
13048 rm -f conftest.err conftest.$ac_objext \
13049       conftest$ac_exeext conftest.$ac_ext
13050
13051 fi
13052
13053 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13054 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13055 if test "$bash_cv_signal_vintage" = posix; then
13056 cat >>confdefs.h <<\_ACEOF
13057 #define HAVE_POSIX_SIGNALS 1
13058 _ACEOF
13059
13060 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13061 cat >>confdefs.h <<\_ACEOF
13062 #define HAVE_BSD_SIGNALS 1
13063 _ACEOF
13064
13065 elif test "$bash_cv_signal_vintage" = svr3; then
13066 cat >>confdefs.h <<\_ACEOF
13067 #define HAVE_USG_SIGHOLD 1
13068 _ACEOF
13069
13070 fi
13071
13072 echo "$as_me:$LINENO: checking for mode_t" >&5
13073 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13074 if test "${ac_cv_type_mode_t+set}" = set; then
13075   echo $ECHO_N "(cached) $ECHO_C" >&6
13076 else
13077   cat >conftest.$ac_ext <<_ACEOF
13078 /* confdefs.h.  */
13079 _ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h.  */
13083 $ac_includes_default
13084 int
13085 main ()
13086 {
13087 if ((mode_t *) 0)
13088   return 0;
13089 if (sizeof (mode_t))
13090   return 0;
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097   (eval $ac_compile) 2>conftest.er1
13098   ac_status=$?
13099   grep -v '^ *+' conftest.er1 >conftest.err
13100   rm -f conftest.er1
13101   cat conftest.err >&5
13102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103   (exit $ac_status); } &&
13104          { ac_try='test -z "$ac_c_werror_flag"
13105                          || test ! -s conftest.err'
13106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107   (eval $ac_try) 2>&5
13108   ac_status=$?
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); }; } &&
13111          { ac_try='test -s conftest.$ac_objext'
13112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113   (eval $ac_try) 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); }; }; then
13117   ac_cv_type_mode_t=yes
13118 else
13119   echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13121
13122 ac_cv_type_mode_t=no
13123 fi
13124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13125 fi
13126 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13127 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13128 if test $ac_cv_type_mode_t = yes; then
13129   :
13130 else
13131
13132 cat >>confdefs.h <<_ACEOF
13133 #define mode_t int
13134 _ACEOF
13135
13136 fi
13137
13138 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13139 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13140 if test "${ac_cv_type_uid_t+set}" = set; then
13141   echo $ECHO_N "(cached) $ECHO_C" >&6
13142 else
13143   cat >conftest.$ac_ext <<_ACEOF
13144 /* confdefs.h.  */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h.  */
13149 #include <sys/types.h>
13150
13151 _ACEOF
13152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13153   $EGREP "uid_t" >/dev/null 2>&1; then
13154   ac_cv_type_uid_t=yes
13155 else
13156   ac_cv_type_uid_t=no
13157 fi
13158 rm -f conftest*
13159
13160 fi
13161 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13162 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13163 if test $ac_cv_type_uid_t = no; then
13164
13165 cat >>confdefs.h <<\_ACEOF
13166 #define uid_t int
13167 _ACEOF
13168
13169
13170 cat >>confdefs.h <<\_ACEOF
13171 #define gid_t int
13172 _ACEOF
13173
13174 fi
13175
13176 echo "$as_me:$LINENO: checking for size_t" >&5
13177 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13178 if test "${ac_cv_type_size_t+set}" = set; then
13179   echo $ECHO_N "(cached) $ECHO_C" >&6
13180 else
13181   cat >conftest.$ac_ext <<_ACEOF
13182 /* confdefs.h.  */
13183 _ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h.  */
13187 $ac_includes_default
13188 int
13189 main ()
13190 {
13191 if ((size_t *) 0)
13192   return 0;
13193 if (sizeof (size_t))
13194   return 0;
13195   ;
13196   return 0;
13197 }
13198 _ACEOF
13199 rm -f conftest.$ac_objext
13200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13201   (eval $ac_compile) 2>conftest.er1
13202   ac_status=$?
13203   grep -v '^ *+' conftest.er1 >conftest.err
13204   rm -f conftest.er1
13205   cat conftest.err >&5
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); } &&
13208          { ac_try='test -z "$ac_c_werror_flag"
13209                          || test ! -s conftest.err'
13210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211   (eval $ac_try) 2>&5
13212   ac_status=$?
13213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214   (exit $ac_status); }; } &&
13215          { ac_try='test -s conftest.$ac_objext'
13216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217   (eval $ac_try) 2>&5
13218   ac_status=$?
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); }; }; then
13221   ac_cv_type_size_t=yes
13222 else
13223   echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13225
13226 ac_cv_type_size_t=no
13227 fi
13228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13229 fi
13230 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13231 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13232 if test $ac_cv_type_size_t = yes; then
13233   :
13234 else
13235
13236 cat >>confdefs.h <<_ACEOF
13237 #define size_t unsigned
13238 _ACEOF
13239
13240 fi
13241
13242 echo "$as_me:$LINENO: checking for pid_t" >&5
13243 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13244 if test "${ac_cv_type_pid_t+set}" = set; then
13245   echo $ECHO_N "(cached) $ECHO_C" >&6
13246 else
13247   cat >conftest.$ac_ext <<_ACEOF
13248 /* confdefs.h.  */
13249 _ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h.  */
13253 $ac_includes_default
13254 int
13255 main ()
13256 {
13257 if ((pid_t *) 0)
13258   return 0;
13259 if (sizeof (pid_t))
13260   return 0;
13261   ;
13262   return 0;
13263 }
13264 _ACEOF
13265 rm -f conftest.$ac_objext
13266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13267   (eval $ac_compile) 2>conftest.er1
13268   ac_status=$?
13269   grep -v '^ *+' conftest.er1 >conftest.err
13270   rm -f conftest.er1
13271   cat conftest.err >&5
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); } &&
13274          { ac_try='test -z "$ac_c_werror_flag"
13275                          || test ! -s conftest.err'
13276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277   (eval $ac_try) 2>&5
13278   ac_status=$?
13279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); }; } &&
13281          { ac_try='test -s conftest.$ac_objext'
13282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283   (eval $ac_try) 2>&5
13284   ac_status=$?
13285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286   (exit $ac_status); }; }; then
13287   ac_cv_type_pid_t=yes
13288 else
13289   echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13291
13292 ac_cv_type_pid_t=no
13293 fi
13294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13295 fi
13296 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13297 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13298 if test $ac_cv_type_pid_t = yes; then
13299   :
13300 else
13301
13302 cat >>confdefs.h <<_ACEOF
13303 #define pid_t int
13304 _ACEOF
13305
13306 fi
13307
13308 echo "$as_me:$LINENO: checking for off_t" >&5
13309 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13310 if test "${ac_cv_type_off_t+set}" = set; then
13311   echo $ECHO_N "(cached) $ECHO_C" >&6
13312 else
13313   cat >conftest.$ac_ext <<_ACEOF
13314 /* confdefs.h.  */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h.  */
13319 $ac_includes_default
13320 int
13321 main ()
13322 {
13323 if ((off_t *) 0)
13324   return 0;
13325 if (sizeof (off_t))
13326   return 0;
13327   ;
13328   return 0;
13329 }
13330 _ACEOF
13331 rm -f conftest.$ac_objext
13332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13333   (eval $ac_compile) 2>conftest.er1
13334   ac_status=$?
13335   grep -v '^ *+' conftest.er1 >conftest.err
13336   rm -f conftest.er1
13337   cat conftest.err >&5
13338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); } &&
13340          { ac_try='test -z "$ac_c_werror_flag"
13341                          || test ! -s conftest.err'
13342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13343   (eval $ac_try) 2>&5
13344   ac_status=$?
13345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346   (exit $ac_status); }; } &&
13347          { ac_try='test -s conftest.$ac_objext'
13348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349   (eval $ac_try) 2>&5
13350   ac_status=$?
13351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); }; }; then
13353   ac_cv_type_off_t=yes
13354 else
13355   echo "$as_me: failed program was:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13357
13358 ac_cv_type_off_t=no
13359 fi
13360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13361 fi
13362 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13363 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13364 if test $ac_cv_type_off_t = yes; then
13365   :
13366 else
13367
13368 cat >>confdefs.h <<_ACEOF
13369 #define off_t long
13370 _ACEOF
13371
13372 fi
13373
13374 echo "$as_me:$LINENO: checking for ino_t" >&5
13375 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13376 if test "${ac_cv_type_ino_t+set}" = set; then
13377   echo $ECHO_N "(cached) $ECHO_C" >&6
13378 else
13379   cat >conftest.$ac_ext <<_ACEOF
13380 /* confdefs.h.  */
13381 _ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h.  */
13385 $ac_includes_default
13386 int
13387 main ()
13388 {
13389 if ((ino_t *) 0)
13390   return 0;
13391 if (sizeof (ino_t))
13392   return 0;
13393   ;
13394   return 0;
13395 }
13396 _ACEOF
13397 rm -f conftest.$ac_objext
13398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13399   (eval $ac_compile) 2>conftest.er1
13400   ac_status=$?
13401   grep -v '^ *+' conftest.er1 >conftest.err
13402   rm -f conftest.er1
13403   cat conftest.err >&5
13404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); } &&
13406          { ac_try='test -z "$ac_c_werror_flag"
13407                          || test ! -s conftest.err'
13408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409   (eval $ac_try) 2>&5
13410   ac_status=$?
13411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412   (exit $ac_status); }; } &&
13413          { ac_try='test -s conftest.$ac_objext'
13414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415   (eval $ac_try) 2>&5
13416   ac_status=$?
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); }; }; then
13419   ac_cv_type_ino_t=yes
13420 else
13421   echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13423
13424 ac_cv_type_ino_t=no
13425 fi
13426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13427 fi
13428 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13429 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13430 if test $ac_cv_type_ino_t = yes; then
13431   :
13432 else
13433
13434 cat >>confdefs.h <<_ACEOF
13435 #define ino_t unsigned long
13436 _ACEOF
13437
13438 fi
13439
13440 echo "$as_me:$LINENO: checking for dev_t" >&5
13441 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13442 if test "${ac_cv_type_dev_t+set}" = set; then
13443   echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445   cat >conftest.$ac_ext <<_ACEOF
13446 /* confdefs.h.  */
13447 _ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h.  */
13451 $ac_includes_default
13452 int
13453 main ()
13454 {
13455 if ((dev_t *) 0)
13456   return 0;
13457 if (sizeof (dev_t))
13458   return 0;
13459   ;
13460   return 0;
13461 }
13462 _ACEOF
13463 rm -f conftest.$ac_objext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13465   (eval $ac_compile) 2>conftest.er1
13466   ac_status=$?
13467   grep -v '^ *+' conftest.er1 >conftest.err
13468   rm -f conftest.er1
13469   cat conftest.err >&5
13470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471   (exit $ac_status); } &&
13472          { ac_try='test -z "$ac_c_werror_flag"
13473                          || test ! -s conftest.err'
13474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475   (eval $ac_try) 2>&5
13476   ac_status=$?
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); }; } &&
13479          { ac_try='test -s conftest.$ac_objext'
13480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481   (eval $ac_try) 2>&5
13482   ac_status=$?
13483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484   (exit $ac_status); }; }; then
13485   ac_cv_type_dev_t=yes
13486 else
13487   echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13489
13490 ac_cv_type_dev_t=no
13491 fi
13492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13493 fi
13494 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13495 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13496 if test $ac_cv_type_dev_t = yes; then
13497   :
13498 else
13499
13500 cat >>confdefs.h <<_ACEOF
13501 #define dev_t unsigned long
13502 _ACEOF
13503
13504 fi
13505
13506 echo "$as_me:$LINENO: checking for daddr_t" >&5
13507 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13508 if test "${ac_cv_type_daddr_t+set}" = set; then
13509   echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13511   cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h.  */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h.  */
13517 $ac_includes_default
13518 int
13519 main ()
13520 {
13521 if ((daddr_t *) 0)
13522   return 0;
13523 if (sizeof (daddr_t))
13524   return 0;
13525   ;
13526   return 0;
13527 }
13528 _ACEOF
13529 rm -f conftest.$ac_objext
13530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13531   (eval $ac_compile) 2>conftest.er1
13532   ac_status=$?
13533   grep -v '^ *+' conftest.er1 >conftest.err
13534   rm -f conftest.er1
13535   cat conftest.err >&5
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); } &&
13538          { ac_try='test -z "$ac_c_werror_flag"
13539                          || test ! -s conftest.err'
13540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541   (eval $ac_try) 2>&5
13542   ac_status=$?
13543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); }; } &&
13545          { ac_try='test -s conftest.$ac_objext'
13546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547   (eval $ac_try) 2>&5
13548   ac_status=$?
13549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550   (exit $ac_status); }; }; then
13551   ac_cv_type_daddr_t=yes
13552 else
13553   echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13555
13556 ac_cv_type_daddr_t=no
13557 fi
13558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13559 fi
13560 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13561 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13562 if test $ac_cv_type_daddr_t = yes; then
13563   :
13564 else
13565
13566 cat >>confdefs.h <<_ACEOF
13567 #define daddr_t long
13568 _ACEOF
13569
13570 fi
13571
13572 echo "$as_me:$LINENO: checking for major_t" >&5
13573 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13574 if test "${ac_cv_type_major_t+set}" = set; then
13575   echo $ECHO_N "(cached) $ECHO_C" >&6
13576 else
13577   cat >conftest.$ac_ext <<_ACEOF
13578 /* confdefs.h.  */
13579 _ACEOF
13580 cat confdefs.h >>conftest.$ac_ext
13581 cat >>conftest.$ac_ext <<_ACEOF
13582 /* end confdefs.h.  */
13583 $ac_includes_default
13584 int
13585 main ()
13586 {
13587 if ((major_t *) 0)
13588   return 0;
13589 if (sizeof (major_t))
13590   return 0;
13591   ;
13592   return 0;
13593 }
13594 _ACEOF
13595 rm -f conftest.$ac_objext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13597   (eval $ac_compile) 2>conftest.er1
13598   ac_status=$?
13599   grep -v '^ *+' conftest.er1 >conftest.err
13600   rm -f conftest.er1
13601   cat conftest.err >&5
13602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603   (exit $ac_status); } &&
13604          { ac_try='test -z "$ac_c_werror_flag"
13605                          || test ! -s conftest.err'
13606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607   (eval $ac_try) 2>&5
13608   ac_status=$?
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); }; } &&
13611          { ac_try='test -s conftest.$ac_objext'
13612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613   (eval $ac_try) 2>&5
13614   ac_status=$?
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); }; }; then
13617   ac_cv_type_major_t=yes
13618 else
13619   echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13621
13622 ac_cv_type_major_t=no
13623 fi
13624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13625 fi
13626 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13627 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13628 if test $ac_cv_type_major_t = yes; then
13629   :
13630 else
13631
13632 cat >>confdefs.h <<_ACEOF
13633 #define major_t int
13634 _ACEOF
13635
13636 fi
13637
13638 echo "$as_me:$LINENO: checking for minor_t" >&5
13639 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13640 if test "${ac_cv_type_minor_t+set}" = set; then
13641   echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643   cat >conftest.$ac_ext <<_ACEOF
13644 /* confdefs.h.  */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h.  */
13649 $ac_includes_default
13650 int
13651 main ()
13652 {
13653 if ((minor_t *) 0)
13654   return 0;
13655 if (sizeof (minor_t))
13656   return 0;
13657   ;
13658   return 0;
13659 }
13660 _ACEOF
13661 rm -f conftest.$ac_objext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663   (eval $ac_compile) 2>conftest.er1
13664   ac_status=$?
13665   grep -v '^ *+' conftest.er1 >conftest.err
13666   rm -f conftest.er1
13667   cat conftest.err >&5
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); } &&
13670          { ac_try='test -z "$ac_c_werror_flag"
13671                          || test ! -s conftest.err'
13672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673   (eval $ac_try) 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; } &&
13677          { ac_try='test -s conftest.$ac_objext'
13678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679   (eval $ac_try) 2>&5
13680   ac_status=$?
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); }; }; then
13683   ac_cv_type_minor_t=yes
13684 else
13685   echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13687
13688 ac_cv_type_minor_t=no
13689 fi
13690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13691 fi
13692 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13693 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13694 if test $ac_cv_type_minor_t = yes; then
13695   :
13696 else
13697
13698 cat >>confdefs.h <<_ACEOF
13699 #define minor_t int
13700 _ACEOF
13701
13702 fi
13703
13704 echo "$as_me:$LINENO: checking for ssize_t" >&5
13705 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13706 if test "${ac_cv_type_ssize_t+set}" = set; then
13707   echo $ECHO_N "(cached) $ECHO_C" >&6
13708 else
13709   cat >conftest.$ac_ext <<_ACEOF
13710 /* confdefs.h.  */
13711 _ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h.  */
13715 $ac_includes_default
13716 int
13717 main ()
13718 {
13719 if ((ssize_t *) 0)
13720   return 0;
13721 if (sizeof (ssize_t))
13722   return 0;
13723   ;
13724   return 0;
13725 }
13726 _ACEOF
13727 rm -f conftest.$ac_objext
13728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13729   (eval $ac_compile) 2>conftest.er1
13730   ac_status=$?
13731   grep -v '^ *+' conftest.er1 >conftest.err
13732   rm -f conftest.er1
13733   cat conftest.err >&5
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); } &&
13736          { ac_try='test -z "$ac_c_werror_flag"
13737                          || test ! -s conftest.err'
13738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739   (eval $ac_try) 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; } &&
13743          { ac_try='test -s conftest.$ac_objext'
13744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745   (eval $ac_try) 2>&5
13746   ac_status=$?
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); }; }; then
13749   ac_cv_type_ssize_t=yes
13750 else
13751   echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.$ac_ext >&5
13753
13754 ac_cv_type_ssize_t=no
13755 fi
13756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13757 fi
13758 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13759 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13760 if test $ac_cv_type_ssize_t = yes; then
13761   :
13762 else
13763
13764 cat >>confdefs.h <<_ACEOF
13765 #define ssize_t int
13766 _ACEOF
13767
13768 fi
13769
13770 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13771 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13772 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13773   echo $ECHO_N "(cached) $ECHO_C" >&6
13774 else
13775   cat >conftest.$ac_ext <<_ACEOF
13776 /* confdefs.h.  */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h.  */
13781 $ac_includes_default
13782 int
13783 main ()
13784 {
13785 static struct stat ac_aggr;
13786 if (ac_aggr.st_blocks)
13787 return 0;
13788   ;
13789   return 0;
13790 }
13791 _ACEOF
13792 rm -f conftest.$ac_objext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794   (eval $ac_compile) 2>conftest.er1
13795   ac_status=$?
13796   grep -v '^ *+' conftest.er1 >conftest.err
13797   rm -f conftest.er1
13798   cat conftest.err >&5
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); } &&
13801          { ac_try='test -z "$ac_c_werror_flag"
13802                          || test ! -s conftest.err'
13803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804   (eval $ac_try) 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); }; } &&
13808          { ac_try='test -s conftest.$ac_objext'
13809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810   (eval $ac_try) 2>&5
13811   ac_status=$?
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); }; }; then
13814   ac_cv_member_struct_stat_st_blocks=yes
13815 else
13816   echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13818
13819 cat >conftest.$ac_ext <<_ACEOF
13820 /* confdefs.h.  */
13821 _ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h.  */
13825 $ac_includes_default
13826 int
13827 main ()
13828 {
13829 static struct stat ac_aggr;
13830 if (sizeof ac_aggr.st_blocks)
13831 return 0;
13832   ;
13833   return 0;
13834 }
13835 _ACEOF
13836 rm -f conftest.$ac_objext
13837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13838   (eval $ac_compile) 2>conftest.er1
13839   ac_status=$?
13840   grep -v '^ *+' conftest.er1 >conftest.err
13841   rm -f conftest.er1
13842   cat conftest.err >&5
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); } &&
13845          { ac_try='test -z "$ac_c_werror_flag"
13846                          || test ! -s conftest.err'
13847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848   (eval $ac_try) 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); }; } &&
13852          { ac_try='test -s conftest.$ac_objext'
13853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854   (eval $ac_try) 2>&5
13855   ac_status=$?
13856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857   (exit $ac_status); }; }; then
13858   ac_cv_member_struct_stat_st_blocks=yes
13859 else
13860   echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13862
13863 ac_cv_member_struct_stat_st_blocks=no
13864 fi
13865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13866 fi
13867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13868 fi
13869 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13870 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13871 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13872
13873 cat >>confdefs.h <<_ACEOF
13874 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13875 _ACEOF
13876
13877
13878 cat >>confdefs.h <<\_ACEOF
13879 #define HAVE_ST_BLOCKS 1
13880 _ACEOF
13881
13882 else
13883   case $LIBOBJS in
13884     "fileblocks.$ac_objext"   | \
13885   *" fileblocks.$ac_objext"   | \
13886     "fileblocks.$ac_objext "* | \
13887   *" fileblocks.$ac_objext "* ) ;;
13888   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
13889 esac
13890
13891 fi
13892
13893
13894
13895 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13896 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13897 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13898   echo $ECHO_N "(cached) $ECHO_C" >&6
13899 else
13900   cat >conftest.$ac_ext <<_ACEOF
13901 /* confdefs.h.  */
13902 _ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h.  */
13906 $ac_includes_default
13907 int
13908 main ()
13909 {
13910 static struct stat ac_aggr;
13911 if (ac_aggr.st_rdev)
13912 return 0;
13913   ;
13914   return 0;
13915 }
13916 _ACEOF
13917 rm -f conftest.$ac_objext
13918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13919   (eval $ac_compile) 2>conftest.er1
13920   ac_status=$?
13921   grep -v '^ *+' conftest.er1 >conftest.err
13922   rm -f conftest.er1
13923   cat conftest.err >&5
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); } &&
13926          { ac_try='test -z "$ac_c_werror_flag"
13927                          || test ! -s conftest.err'
13928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929   (eval $ac_try) 2>&5
13930   ac_status=$?
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); }; } &&
13933          { ac_try='test -s conftest.$ac_objext'
13934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935   (eval $ac_try) 2>&5
13936   ac_status=$?
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); }; }; then
13939   ac_cv_member_struct_stat_st_rdev=yes
13940 else
13941   echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13943
13944 cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h.  */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h.  */
13950 $ac_includes_default
13951 int
13952 main ()
13953 {
13954 static struct stat ac_aggr;
13955 if (sizeof ac_aggr.st_rdev)
13956 return 0;
13957   ;
13958   return 0;
13959 }
13960 _ACEOF
13961 rm -f conftest.$ac_objext
13962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13963   (eval $ac_compile) 2>conftest.er1
13964   ac_status=$?
13965   grep -v '^ *+' conftest.er1 >conftest.err
13966   rm -f conftest.er1
13967   cat conftest.err >&5
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); } &&
13970          { ac_try='test -z "$ac_c_werror_flag"
13971                          || test ! -s conftest.err'
13972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973   (eval $ac_try) 2>&5
13974   ac_status=$?
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); }; } &&
13977          { ac_try='test -s conftest.$ac_objext'
13978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979   (eval $ac_try) 2>&5
13980   ac_status=$?
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); }; }; then
13983   ac_cv_member_struct_stat_st_rdev=yes
13984 else
13985   echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13987
13988 ac_cv_member_struct_stat_st_rdev=no
13989 fi
13990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13991 fi
13992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13993 fi
13994 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13995 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13996 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13997
13998 cat >>confdefs.h <<_ACEOF
13999 #define HAVE_STRUCT_STAT_ST_RDEV 1
14000 _ACEOF
14001
14002
14003 cat >>confdefs.h <<\_ACEOF
14004 #define HAVE_ST_RDEV 1
14005 _ACEOF
14006
14007 fi
14008
14009
14010 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14011 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14012 if test "${ac_cv_struct_tm+set}" = set; then
14013   echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015   cat >conftest.$ac_ext <<_ACEOF
14016 /* confdefs.h.  */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h.  */
14021 #include <sys/types.h>
14022 #include <time.h>
14023
14024 int
14025 main ()
14026 {
14027 struct tm *tp; tp->tm_sec;
14028   ;
14029   return 0;
14030 }
14031 _ACEOF
14032 rm -f conftest.$ac_objext
14033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14034   (eval $ac_compile) 2>conftest.er1
14035   ac_status=$?
14036   grep -v '^ *+' conftest.er1 >conftest.err
14037   rm -f conftest.er1
14038   cat conftest.err >&5
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); } &&
14041          { ac_try='test -z "$ac_c_werror_flag"
14042                          || test ! -s conftest.err'
14043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044   (eval $ac_try) 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); }; } &&
14048          { ac_try='test -s conftest.$ac_objext'
14049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050   (eval $ac_try) 2>&5
14051   ac_status=$?
14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); }; }; then
14054   ac_cv_struct_tm=time.h
14055 else
14056   echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14058
14059 ac_cv_struct_tm=sys/time.h
14060 fi
14061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14062 fi
14063 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14064 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14065 if test $ac_cv_struct_tm = sys/time.h; then
14066
14067 cat >>confdefs.h <<\_ACEOF
14068 #define TM_IN_SYS_TIME 1
14069 _ACEOF
14070
14071 fi
14072
14073 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14074 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14075 if test "${ac_cv_c_const+set}" = set; then
14076   echo $ECHO_N "(cached) $ECHO_C" >&6
14077 else
14078   cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h.  */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h.  */
14084
14085 int
14086 main ()
14087 {
14088 /* FIXME: Include the comments suggested by Paul. */
14089 #ifndef __cplusplus
14090   /* Ultrix mips cc rejects this.  */
14091   typedef int charset[2];
14092   const charset x;
14093   /* SunOS 4.1.1 cc rejects this.  */
14094   char const *const *ccp;
14095   char **p;
14096   /* NEC SVR4.0.2 mips cc rejects this.  */
14097   struct point {int x, y;};
14098   static struct point const zero = {0,0};
14099   /* AIX XL C 1.02.0.0 rejects this.
14100      It does not let you subtract one const X* pointer from another in
14101      an arm of an if-expression whose if-part is not a constant
14102      expression */
14103   const char *g = "string";
14104   ccp = &g + (g ? g-g : 0);
14105   /* HPUX 7.0 cc rejects these. */
14106   ++ccp;
14107   p = (char**) ccp;
14108   ccp = (char const *const *) p;
14109   { /* SCO 3.2v4 cc rejects this.  */
14110     char *t;
14111     char const *s = 0 ? (char *) 0 : (char const *) 0;
14112
14113     *t++ = 0;
14114   }
14115   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14116     int x[] = {25, 17};
14117     const int *foo = &x[0];
14118     ++foo;
14119   }
14120   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14121     typedef const int *iptr;
14122     iptr p = 0;
14123     ++p;
14124   }
14125   { /* AIX XL C 1.02.0.0 rejects this saying
14126        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14127     struct s { int j; const int *ap[3]; };
14128     struct s *b; b->j = 5;
14129   }
14130   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14131     const int foo = 10;
14132   }
14133 #endif
14134
14135   ;
14136   return 0;
14137 }
14138 _ACEOF
14139 rm -f conftest.$ac_objext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14141   (eval $ac_compile) 2>conftest.er1
14142   ac_status=$?
14143   grep -v '^ *+' conftest.er1 >conftest.err
14144   rm -f conftest.er1
14145   cat conftest.err >&5
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); } &&
14148          { ac_try='test -z "$ac_c_werror_flag"
14149                          || test ! -s conftest.err'
14150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151   (eval $ac_try) 2>&5
14152   ac_status=$?
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); }; } &&
14155          { ac_try='test -s conftest.$ac_objext'
14156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157   (eval $ac_try) 2>&5
14158   ac_status=$?
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); }; }; then
14161   ac_cv_c_const=yes
14162 else
14163   echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14165
14166 ac_cv_c_const=no
14167 fi
14168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14169 fi
14170 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14171 echo "${ECHO_T}$ac_cv_c_const" >&6
14172 if test $ac_cv_c_const = no; then
14173
14174 cat >>confdefs.h <<\_ACEOF
14175 #define const
14176 _ACEOF
14177
14178 fi
14179
14180
14181
14182 echo "$as_me:$LINENO: checking for char" >&5
14183 echo $ECHO_N "checking for char... $ECHO_C" >&6
14184 if test "${ac_cv_type_char+set}" = set; then
14185   echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187   cat >conftest.$ac_ext <<_ACEOF
14188 /* confdefs.h.  */
14189 _ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h.  */
14193 $ac_includes_default
14194 int
14195 main ()
14196 {
14197 if ((char *) 0)
14198   return 0;
14199 if (sizeof (char))
14200   return 0;
14201   ;
14202   return 0;
14203 }
14204 _ACEOF
14205 rm -f conftest.$ac_objext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14207   (eval $ac_compile) 2>conftest.er1
14208   ac_status=$?
14209   grep -v '^ *+' conftest.er1 >conftest.err
14210   rm -f conftest.er1
14211   cat conftest.err >&5
14212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213   (exit $ac_status); } &&
14214          { ac_try='test -z "$ac_c_werror_flag"
14215                          || test ! -s conftest.err'
14216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217   (eval $ac_try) 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; } &&
14221          { ac_try='test -s conftest.$ac_objext'
14222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223   (eval $ac_try) 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); }; }; then
14227   ac_cv_type_char=yes
14228 else
14229   echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14231
14232 ac_cv_type_char=no
14233 fi
14234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14235 fi
14236 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14237 echo "${ECHO_T}$ac_cv_type_char" >&6
14238
14239 echo "$as_me:$LINENO: checking size of char" >&5
14240 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14241 if test "${ac_cv_sizeof_char+set}" = set; then
14242   echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244   if test "$ac_cv_type_char" = yes; then
14245   # The cast to unsigned long works around a bug in the HP C Compiler
14246   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14247   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14248   # This bug is HP SR number 8606223364.
14249   if test "$cross_compiling" = yes; then
14250   # Depending upon the size, compute the lo and hi bounds.
14251 cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h.  */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h.  */
14257 $ac_includes_default
14258 int
14259 main ()
14260 {
14261 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14262 test_array [0] = 0
14263
14264   ;
14265   return 0;
14266 }
14267 _ACEOF
14268 rm -f conftest.$ac_objext
14269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14270   (eval $ac_compile) 2>conftest.er1
14271   ac_status=$?
14272   grep -v '^ *+' conftest.er1 >conftest.err
14273   rm -f conftest.er1
14274   cat conftest.err >&5
14275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); } &&
14277          { ac_try='test -z "$ac_c_werror_flag"
14278                          || test ! -s conftest.err'
14279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280   (eval $ac_try) 2>&5
14281   ac_status=$?
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); }; } &&
14284          { ac_try='test -s conftest.$ac_objext'
14285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286   (eval $ac_try) 2>&5
14287   ac_status=$?
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); }; }; then
14290   ac_lo=0 ac_mid=0
14291   while :; do
14292     cat >conftest.$ac_ext <<_ACEOF
14293 /* confdefs.h.  */
14294 _ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h.  */
14298 $ac_includes_default
14299 int
14300 main ()
14301 {
14302 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14303 test_array [0] = 0
14304
14305   ;
14306   return 0;
14307 }
14308 _ACEOF
14309 rm -f conftest.$ac_objext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14311   (eval $ac_compile) 2>conftest.er1
14312   ac_status=$?
14313   grep -v '^ *+' conftest.er1 >conftest.err
14314   rm -f conftest.er1
14315   cat conftest.err >&5
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); } &&
14318          { ac_try='test -z "$ac_c_werror_flag"
14319                          || test ! -s conftest.err'
14320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321   (eval $ac_try) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; } &&
14325          { ac_try='test -s conftest.$ac_objext'
14326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327   (eval $ac_try) 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; }; then
14331   ac_hi=$ac_mid; break
14332 else
14333   echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14335
14336 ac_lo=`expr $ac_mid + 1`
14337                     if test $ac_lo -le $ac_mid; then
14338                       ac_lo= ac_hi=
14339                       break
14340                     fi
14341                     ac_mid=`expr 2 '*' $ac_mid + 1`
14342 fi
14343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14344   done
14345 else
14346   echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14348
14349 cat >conftest.$ac_ext <<_ACEOF
14350 /* confdefs.h.  */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h.  */
14355 $ac_includes_default
14356 int
14357 main ()
14358 {
14359 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14360 test_array [0] = 0
14361
14362   ;
14363   return 0;
14364 }
14365 _ACEOF
14366 rm -f conftest.$ac_objext
14367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14368   (eval $ac_compile) 2>conftest.er1
14369   ac_status=$?
14370   grep -v '^ *+' conftest.er1 >conftest.err
14371   rm -f conftest.er1
14372   cat conftest.err >&5
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); } &&
14375          { ac_try='test -z "$ac_c_werror_flag"
14376                          || test ! -s conftest.err'
14377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378   (eval $ac_try) 2>&5
14379   ac_status=$?
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); }; } &&
14382          { ac_try='test -s conftest.$ac_objext'
14383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384   (eval $ac_try) 2>&5
14385   ac_status=$?
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); }; }; then
14388   ac_hi=-1 ac_mid=-1
14389   while :; do
14390     cat >conftest.$ac_ext <<_ACEOF
14391 /* confdefs.h.  */
14392 _ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h.  */
14396 $ac_includes_default
14397 int
14398 main ()
14399 {
14400 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14401 test_array [0] = 0
14402
14403   ;
14404   return 0;
14405 }
14406 _ACEOF
14407 rm -f conftest.$ac_objext
14408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14409   (eval $ac_compile) 2>conftest.er1
14410   ac_status=$?
14411   grep -v '^ *+' conftest.er1 >conftest.err
14412   rm -f conftest.er1
14413   cat conftest.err >&5
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); } &&
14416          { ac_try='test -z "$ac_c_werror_flag"
14417                          || test ! -s conftest.err'
14418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419   (eval $ac_try) 2>&5
14420   ac_status=$?
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); }; } &&
14423          { ac_try='test -s conftest.$ac_objext'
14424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425   (eval $ac_try) 2>&5
14426   ac_status=$?
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); }; }; then
14429   ac_lo=$ac_mid; break
14430 else
14431   echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14433
14434 ac_hi=`expr '(' $ac_mid ')' - 1`
14435                        if test $ac_mid -le $ac_hi; then
14436                          ac_lo= ac_hi=
14437                          break
14438                        fi
14439                        ac_mid=`expr 2 '*' $ac_mid`
14440 fi
14441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14442   done
14443 else
14444   echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447 ac_lo= ac_hi=
14448 fi
14449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14450 fi
14451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14452 # Binary search between lo and hi bounds.
14453 while test "x$ac_lo" != "x$ac_hi"; do
14454   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14455   cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h.  */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h.  */
14461 $ac_includes_default
14462 int
14463 main ()
14464 {
14465 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14466 test_array [0] = 0
14467
14468   ;
14469   return 0;
14470 }
14471 _ACEOF
14472 rm -f conftest.$ac_objext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14474   (eval $ac_compile) 2>conftest.er1
14475   ac_status=$?
14476   grep -v '^ *+' conftest.er1 >conftest.err
14477   rm -f conftest.er1
14478   cat conftest.err >&5
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); } &&
14481          { ac_try='test -z "$ac_c_werror_flag"
14482                          || test ! -s conftest.err'
14483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484   (eval $ac_try) 2>&5
14485   ac_status=$?
14486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); }; } &&
14488          { ac_try='test -s conftest.$ac_objext'
14489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490   (eval $ac_try) 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); }; }; then
14494   ac_hi=$ac_mid
14495 else
14496   echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14498
14499 ac_lo=`expr '(' $ac_mid ')' + 1`
14500 fi
14501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14502 done
14503 case $ac_lo in
14504 ?*) ac_cv_sizeof_char=$ac_lo;;
14505 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14506 See \`config.log' for more details." >&5
14507 echo "$as_me: error: cannot compute sizeof (char), 77
14508 See \`config.log' for more details." >&2;}
14509    { (exit 1); exit 1; }; } ;;
14510 esac
14511 else
14512   if test "$cross_compiling" = yes; then
14513   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14514 See \`config.log' for more details." >&5
14515 echo "$as_me: error: cannot run test program while cross compiling
14516 See \`config.log' for more details." >&2;}
14517    { (exit 1); exit 1; }; }
14518 else
14519   cat >conftest.$ac_ext <<_ACEOF
14520 /* confdefs.h.  */
14521 _ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h.  */
14525 $ac_includes_default
14526 long longval () { return (long) (sizeof (char)); }
14527 unsigned long ulongval () { return (long) (sizeof (char)); }
14528 #include <stdio.h>
14529 #include <stdlib.h>
14530 int
14531 main ()
14532 {
14533
14534   FILE *f = fopen ("conftest.val", "w");
14535   if (! f)
14536     exit (1);
14537   if (((long) (sizeof (char))) < 0)
14538     {
14539       long i = longval ();
14540       if (i != ((long) (sizeof (char))))
14541         exit (1);
14542       fprintf (f, "%ld\n", i);
14543     }
14544   else
14545     {
14546       unsigned long i = ulongval ();
14547       if (i != ((long) (sizeof (char))))
14548         exit (1);
14549       fprintf (f, "%lu\n", i);
14550     }
14551   exit (ferror (f) || fclose (f) != 0);
14552
14553   ;
14554   return 0;
14555 }
14556 _ACEOF
14557 rm -f conftest$ac_exeext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14559   (eval $ac_link) 2>&5
14560   ac_status=$?
14561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564   (eval $ac_try) 2>&5
14565   ac_status=$?
14566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567   (exit $ac_status); }; }; then
14568   ac_cv_sizeof_char=`cat conftest.val`
14569 else
14570   echo "$as_me: program exited with status $ac_status" >&5
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14573
14574 ( exit $ac_status )
14575 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14576 See \`config.log' for more details." >&5
14577 echo "$as_me: error: cannot compute sizeof (char), 77
14578 See \`config.log' for more details." >&2;}
14579    { (exit 1); exit 1; }; }
14580 fi
14581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14582 fi
14583 fi
14584 rm -f conftest.val
14585 else
14586   ac_cv_sizeof_char=0
14587 fi
14588 fi
14589 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14590 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14591 cat >>confdefs.h <<_ACEOF
14592 #define SIZEOF_CHAR $ac_cv_sizeof_char
14593 _ACEOF
14594
14595
14596 echo "$as_me:$LINENO: checking for short int" >&5
14597 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14598 if test "${ac_cv_type_short_int+set}" = set; then
14599   echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601   cat >conftest.$ac_ext <<_ACEOF
14602 /* confdefs.h.  */
14603 _ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h.  */
14607 $ac_includes_default
14608 int
14609 main ()
14610 {
14611 if ((short int *) 0)
14612   return 0;
14613 if (sizeof (short int))
14614   return 0;
14615   ;
14616   return 0;
14617 }
14618 _ACEOF
14619 rm -f conftest.$ac_objext
14620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14621   (eval $ac_compile) 2>conftest.er1
14622   ac_status=$?
14623   grep -v '^ *+' conftest.er1 >conftest.err
14624   rm -f conftest.er1
14625   cat conftest.err >&5
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); } &&
14628          { ac_try='test -z "$ac_c_werror_flag"
14629                          || test ! -s conftest.err'
14630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631   (eval $ac_try) 2>&5
14632   ac_status=$?
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); }; } &&
14635          { ac_try='test -s conftest.$ac_objext'
14636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637   (eval $ac_try) 2>&5
14638   ac_status=$?
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); }; }; then
14641   ac_cv_type_short_int=yes
14642 else
14643   echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14645
14646 ac_cv_type_short_int=no
14647 fi
14648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14649 fi
14650 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14651 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14652
14653 echo "$as_me:$LINENO: checking size of short int" >&5
14654 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14655 if test "${ac_cv_sizeof_short_int+set}" = set; then
14656   echo $ECHO_N "(cached) $ECHO_C" >&6
14657 else
14658   if test "$ac_cv_type_short_int" = yes; then
14659   # The cast to unsigned long works around a bug in the HP C Compiler
14660   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14661   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14662   # This bug is HP SR number 8606223364.
14663   if test "$cross_compiling" = yes; then
14664   # Depending upon the size, compute the lo and hi bounds.
14665 cat >conftest.$ac_ext <<_ACEOF
14666 /* confdefs.h.  */
14667 _ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h.  */
14671 $ac_includes_default
14672 int
14673 main ()
14674 {
14675 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14676 test_array [0] = 0
14677
14678   ;
14679   return 0;
14680 }
14681 _ACEOF
14682 rm -f conftest.$ac_objext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684   (eval $ac_compile) 2>conftest.er1
14685   ac_status=$?
14686   grep -v '^ *+' conftest.er1 >conftest.err
14687   rm -f conftest.er1
14688   cat conftest.err >&5
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); } &&
14691          { ac_try='test -z "$ac_c_werror_flag"
14692                          || test ! -s conftest.err'
14693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694   (eval $ac_try) 2>&5
14695   ac_status=$?
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); }; } &&
14698          { ac_try='test -s conftest.$ac_objext'
14699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700   (eval $ac_try) 2>&5
14701   ac_status=$?
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); }; }; then
14704   ac_lo=0 ac_mid=0
14705   while :; do
14706     cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h.  */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h.  */
14712 $ac_includes_default
14713 int
14714 main ()
14715 {
14716 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14717 test_array [0] = 0
14718
14719   ;
14720   return 0;
14721 }
14722 _ACEOF
14723 rm -f conftest.$ac_objext
14724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14725   (eval $ac_compile) 2>conftest.er1
14726   ac_status=$?
14727   grep -v '^ *+' conftest.er1 >conftest.err
14728   rm -f conftest.er1
14729   cat conftest.err >&5
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); } &&
14732          { ac_try='test -z "$ac_c_werror_flag"
14733                          || test ! -s conftest.err'
14734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735   (eval $ac_try) 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; } &&
14739          { ac_try='test -s conftest.$ac_objext'
14740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741   (eval $ac_try) 2>&5
14742   ac_status=$?
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); }; }; then
14745   ac_hi=$ac_mid; break
14746 else
14747   echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14749
14750 ac_lo=`expr $ac_mid + 1`
14751                     if test $ac_lo -le $ac_mid; then
14752                       ac_lo= ac_hi=
14753                       break
14754                     fi
14755                     ac_mid=`expr 2 '*' $ac_mid + 1`
14756 fi
14757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14758   done
14759 else
14760   echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14762
14763 cat >conftest.$ac_ext <<_ACEOF
14764 /* confdefs.h.  */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h.  */
14769 $ac_includes_default
14770 int
14771 main ()
14772 {
14773 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
14774 test_array [0] = 0
14775
14776   ;
14777   return 0;
14778 }
14779 _ACEOF
14780 rm -f conftest.$ac_objext
14781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14782   (eval $ac_compile) 2>conftest.er1
14783   ac_status=$?
14784   grep -v '^ *+' conftest.er1 >conftest.err
14785   rm -f conftest.er1
14786   cat conftest.err >&5
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); } &&
14789          { ac_try='test -z "$ac_c_werror_flag"
14790                          || test ! -s conftest.err'
14791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792   (eval $ac_try) 2>&5
14793   ac_status=$?
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); }; } &&
14796          { ac_try='test -s conftest.$ac_objext'
14797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798   (eval $ac_try) 2>&5
14799   ac_status=$?
14800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); }; }; then
14802   ac_hi=-1 ac_mid=-1
14803   while :; do
14804     cat >conftest.$ac_ext <<_ACEOF
14805 /* confdefs.h.  */
14806 _ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h.  */
14810 $ac_includes_default
14811 int
14812 main ()
14813 {
14814 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
14815 test_array [0] = 0
14816
14817   ;
14818   return 0;
14819 }
14820 _ACEOF
14821 rm -f conftest.$ac_objext
14822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14823   (eval $ac_compile) 2>conftest.er1
14824   ac_status=$?
14825   grep -v '^ *+' conftest.er1 >conftest.err
14826   rm -f conftest.er1
14827   cat conftest.err >&5
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); } &&
14830          { ac_try='test -z "$ac_c_werror_flag"
14831                          || test ! -s conftest.err'
14832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833   (eval $ac_try) 2>&5
14834   ac_status=$?
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); }; } &&
14837          { ac_try='test -s conftest.$ac_objext'
14838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839   (eval $ac_try) 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); }; }; then
14843   ac_lo=$ac_mid; break
14844 else
14845   echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14847
14848 ac_hi=`expr '(' $ac_mid ')' - 1`
14849                        if test $ac_mid -le $ac_hi; then
14850                          ac_lo= ac_hi=
14851                          break
14852                        fi
14853                        ac_mid=`expr 2 '*' $ac_mid`
14854 fi
14855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14856   done
14857 else
14858   echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14860
14861 ac_lo= ac_hi=
14862 fi
14863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14864 fi
14865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14866 # Binary search between lo and hi bounds.
14867 while test "x$ac_lo" != "x$ac_hi"; do
14868   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14869   cat >conftest.$ac_ext <<_ACEOF
14870 /* confdefs.h.  */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h.  */
14875 $ac_includes_default
14876 int
14877 main ()
14878 {
14879 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14880 test_array [0] = 0
14881
14882   ;
14883   return 0;
14884 }
14885 _ACEOF
14886 rm -f conftest.$ac_objext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14888   (eval $ac_compile) 2>conftest.er1
14889   ac_status=$?
14890   grep -v '^ *+' conftest.er1 >conftest.err
14891   rm -f conftest.er1
14892   cat conftest.err >&5
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); } &&
14895          { ac_try='test -z "$ac_c_werror_flag"
14896                          || test ! -s conftest.err'
14897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898   (eval $ac_try) 2>&5
14899   ac_status=$?
14900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901   (exit $ac_status); }; } &&
14902          { ac_try='test -s conftest.$ac_objext'
14903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904   (eval $ac_try) 2>&5
14905   ac_status=$?
14906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907   (exit $ac_status); }; }; then
14908   ac_hi=$ac_mid
14909 else
14910   echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14912
14913 ac_lo=`expr '(' $ac_mid ')' + 1`
14914 fi
14915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14916 done
14917 case $ac_lo in
14918 ?*) ac_cv_sizeof_short_int=$ac_lo;;
14919 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14920 See \`config.log' for more details." >&5
14921 echo "$as_me: error: cannot compute sizeof (short int), 77
14922 See \`config.log' for more details." >&2;}
14923    { (exit 1); exit 1; }; } ;;
14924 esac
14925 else
14926   if test "$cross_compiling" = yes; then
14927   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14928 See \`config.log' for more details." >&5
14929 echo "$as_me: error: cannot run test program while cross compiling
14930 See \`config.log' for more details." >&2;}
14931    { (exit 1); exit 1; }; }
14932 else
14933   cat >conftest.$ac_ext <<_ACEOF
14934 /* confdefs.h.  */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h.  */
14939 $ac_includes_default
14940 long longval () { return (long) (sizeof (short int)); }
14941 unsigned long ulongval () { return (long) (sizeof (short int)); }
14942 #include <stdio.h>
14943 #include <stdlib.h>
14944 int
14945 main ()
14946 {
14947
14948   FILE *f = fopen ("conftest.val", "w");
14949   if (! f)
14950     exit (1);
14951   if (((long) (sizeof (short int))) < 0)
14952     {
14953       long i = longval ();
14954       if (i != ((long) (sizeof (short int))))
14955         exit (1);
14956       fprintf (f, "%ld\n", i);
14957     }
14958   else
14959     {
14960       unsigned long i = ulongval ();
14961       if (i != ((long) (sizeof (short int))))
14962         exit (1);
14963       fprintf (f, "%lu\n", i);
14964     }
14965   exit (ferror (f) || fclose (f) != 0);
14966
14967   ;
14968   return 0;
14969 }
14970 _ACEOF
14971 rm -f conftest$ac_exeext
14972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14973   (eval $ac_link) 2>&5
14974   ac_status=$?
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978   (eval $ac_try) 2>&5
14979   ac_status=$?
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); }; }; then
14982   ac_cv_sizeof_short_int=`cat conftest.val`
14983 else
14984   echo "$as_me: program exited with status $ac_status" >&5
14985 echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14987
14988 ( exit $ac_status )
14989 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14990 See \`config.log' for more details." >&5
14991 echo "$as_me: error: cannot compute sizeof (short int), 77
14992 See \`config.log' for more details." >&2;}
14993    { (exit 1); exit 1; }; }
14994 fi
14995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14996 fi
14997 fi
14998 rm -f conftest.val
14999 else
15000   ac_cv_sizeof_short_int=0
15001 fi
15002 fi
15003 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15004 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15005 cat >>confdefs.h <<_ACEOF
15006 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15007 _ACEOF
15008
15009
15010 echo "$as_me:$LINENO: checking for int" >&5
15011 echo $ECHO_N "checking for int... $ECHO_C" >&6
15012 if test "${ac_cv_type_int+set}" = set; then
15013   echo $ECHO_N "(cached) $ECHO_C" >&6
15014 else
15015   cat >conftest.$ac_ext <<_ACEOF
15016 /* confdefs.h.  */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h.  */
15021 $ac_includes_default
15022 int
15023 main ()
15024 {
15025 if ((int *) 0)
15026   return 0;
15027 if (sizeof (int))
15028   return 0;
15029   ;
15030   return 0;
15031 }
15032 _ACEOF
15033 rm -f conftest.$ac_objext
15034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15035   (eval $ac_compile) 2>conftest.er1
15036   ac_status=$?
15037   grep -v '^ *+' conftest.er1 >conftest.err
15038   rm -f conftest.er1
15039   cat conftest.err >&5
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); } &&
15042          { ac_try='test -z "$ac_c_werror_flag"
15043                          || test ! -s conftest.err'
15044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045   (eval $ac_try) 2>&5
15046   ac_status=$?
15047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048   (exit $ac_status); }; } &&
15049          { ac_try='test -s conftest.$ac_objext'
15050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051   (eval $ac_try) 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); }; }; then
15055   ac_cv_type_int=yes
15056 else
15057   echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15059
15060 ac_cv_type_int=no
15061 fi
15062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15063 fi
15064 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15065 echo "${ECHO_T}$ac_cv_type_int" >&6
15066
15067 echo "$as_me:$LINENO: checking size of int" >&5
15068 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15069 if test "${ac_cv_sizeof_int+set}" = set; then
15070   echo $ECHO_N "(cached) $ECHO_C" >&6
15071 else
15072   if test "$ac_cv_type_int" = yes; then
15073   # The cast to unsigned long works around a bug in the HP C Compiler
15074   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15075   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15076   # This bug is HP SR number 8606223364.
15077   if test "$cross_compiling" = yes; then
15078   # Depending upon the size, compute the lo and hi bounds.
15079 cat >conftest.$ac_ext <<_ACEOF
15080 /* confdefs.h.  */
15081 _ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h.  */
15085 $ac_includes_default
15086 int
15087 main ()
15088 {
15089 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15090 test_array [0] = 0
15091
15092   ;
15093   return 0;
15094 }
15095 _ACEOF
15096 rm -f conftest.$ac_objext
15097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15098   (eval $ac_compile) 2>conftest.er1
15099   ac_status=$?
15100   grep -v '^ *+' conftest.er1 >conftest.err
15101   rm -f conftest.er1
15102   cat conftest.err >&5
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); } &&
15105          { ac_try='test -z "$ac_c_werror_flag"
15106                          || test ! -s conftest.err'
15107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108   (eval $ac_try) 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; } &&
15112          { ac_try='test -s conftest.$ac_objext'
15113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114   (eval $ac_try) 2>&5
15115   ac_status=$?
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); }; }; then
15118   ac_lo=0 ac_mid=0
15119   while :; do
15120     cat >conftest.$ac_ext <<_ACEOF
15121 /* confdefs.h.  */
15122 _ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h.  */
15126 $ac_includes_default
15127 int
15128 main ()
15129 {
15130 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15131 test_array [0] = 0
15132
15133   ;
15134   return 0;
15135 }
15136 _ACEOF
15137 rm -f conftest.$ac_objext
15138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15139   (eval $ac_compile) 2>conftest.er1
15140   ac_status=$?
15141   grep -v '^ *+' conftest.er1 >conftest.err
15142   rm -f conftest.er1
15143   cat conftest.err >&5
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } &&
15146          { ac_try='test -z "$ac_c_werror_flag"
15147                          || test ! -s conftest.err'
15148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149   (eval $ac_try) 2>&5
15150   ac_status=$?
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); }; } &&
15153          { ac_try='test -s conftest.$ac_objext'
15154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155   (eval $ac_try) 2>&5
15156   ac_status=$?
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); }; }; then
15159   ac_hi=$ac_mid; break
15160 else
15161   echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15163
15164 ac_lo=`expr $ac_mid + 1`
15165                     if test $ac_lo -le $ac_mid; then
15166                       ac_lo= ac_hi=
15167                       break
15168                     fi
15169                     ac_mid=`expr 2 '*' $ac_mid + 1`
15170 fi
15171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15172   done
15173 else
15174   echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15176
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h.  */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h.  */
15183 $ac_includes_default
15184 int
15185 main ()
15186 {
15187 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15188 test_array [0] = 0
15189
15190   ;
15191   return 0;
15192 }
15193 _ACEOF
15194 rm -f conftest.$ac_objext
15195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15196   (eval $ac_compile) 2>conftest.er1
15197   ac_status=$?
15198   grep -v '^ *+' conftest.er1 >conftest.err
15199   rm -f conftest.er1
15200   cat conftest.err >&5
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); } &&
15203          { ac_try='test -z "$ac_c_werror_flag"
15204                          || test ! -s conftest.err'
15205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206   (eval $ac_try) 2>&5
15207   ac_status=$?
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); }; } &&
15210          { ac_try='test -s conftest.$ac_objext'
15211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212   (eval $ac_try) 2>&5
15213   ac_status=$?
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); }; }; then
15216   ac_hi=-1 ac_mid=-1
15217   while :; do
15218     cat >conftest.$ac_ext <<_ACEOF
15219 /* confdefs.h.  */
15220 _ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h.  */
15224 $ac_includes_default
15225 int
15226 main ()
15227 {
15228 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15229 test_array [0] = 0
15230
15231   ;
15232   return 0;
15233 }
15234 _ACEOF
15235 rm -f conftest.$ac_objext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15237   (eval $ac_compile) 2>conftest.er1
15238   ac_status=$?
15239   grep -v '^ *+' conftest.er1 >conftest.err
15240   rm -f conftest.er1
15241   cat conftest.err >&5
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); } &&
15244          { ac_try='test -z "$ac_c_werror_flag"
15245                          || test ! -s conftest.err'
15246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15247   (eval $ac_try) 2>&5
15248   ac_status=$?
15249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250   (exit $ac_status); }; } &&
15251          { ac_try='test -s conftest.$ac_objext'
15252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253   (eval $ac_try) 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); }; }; then
15257   ac_lo=$ac_mid; break
15258 else
15259   echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15261
15262 ac_hi=`expr '(' $ac_mid ')' - 1`
15263                        if test $ac_mid -le $ac_hi; then
15264                          ac_lo= ac_hi=
15265                          break
15266                        fi
15267                        ac_mid=`expr 2 '*' $ac_mid`
15268 fi
15269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15270   done
15271 else
15272   echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15274
15275 ac_lo= ac_hi=
15276 fi
15277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15278 fi
15279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15280 # Binary search between lo and hi bounds.
15281 while test "x$ac_lo" != "x$ac_hi"; do
15282   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15283   cat >conftest.$ac_ext <<_ACEOF
15284 /* confdefs.h.  */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h.  */
15289 $ac_includes_default
15290 int
15291 main ()
15292 {
15293 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15294 test_array [0] = 0
15295
15296   ;
15297   return 0;
15298 }
15299 _ACEOF
15300 rm -f conftest.$ac_objext
15301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15302   (eval $ac_compile) 2>conftest.er1
15303   ac_status=$?
15304   grep -v '^ *+' conftest.er1 >conftest.err
15305   rm -f conftest.er1
15306   cat conftest.err >&5
15307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308   (exit $ac_status); } &&
15309          { ac_try='test -z "$ac_c_werror_flag"
15310                          || test ! -s conftest.err'
15311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312   (eval $ac_try) 2>&5
15313   ac_status=$?
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); }; } &&
15316          { ac_try='test -s conftest.$ac_objext'
15317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318   (eval $ac_try) 2>&5
15319   ac_status=$?
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); }; }; then
15322   ac_hi=$ac_mid
15323 else
15324   echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327 ac_lo=`expr '(' $ac_mid ')' + 1`
15328 fi
15329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15330 done
15331 case $ac_lo in
15332 ?*) ac_cv_sizeof_int=$ac_lo;;
15333 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15334 See \`config.log' for more details." >&5
15335 echo "$as_me: error: cannot compute sizeof (int), 77
15336 See \`config.log' for more details." >&2;}
15337    { (exit 1); exit 1; }; } ;;
15338 esac
15339 else
15340   if test "$cross_compiling" = yes; then
15341   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15342 See \`config.log' for more details." >&5
15343 echo "$as_me: error: cannot run test program while cross compiling
15344 See \`config.log' for more details." >&2;}
15345    { (exit 1); exit 1; }; }
15346 else
15347   cat >conftest.$ac_ext <<_ACEOF
15348 /* confdefs.h.  */
15349 _ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h.  */
15353 $ac_includes_default
15354 long longval () { return (long) (sizeof (int)); }
15355 unsigned long ulongval () { return (long) (sizeof (int)); }
15356 #include <stdio.h>
15357 #include <stdlib.h>
15358 int
15359 main ()
15360 {
15361
15362   FILE *f = fopen ("conftest.val", "w");
15363   if (! f)
15364     exit (1);
15365   if (((long) (sizeof (int))) < 0)
15366     {
15367       long i = longval ();
15368       if (i != ((long) (sizeof (int))))
15369         exit (1);
15370       fprintf (f, "%ld\n", i);
15371     }
15372   else
15373     {
15374       unsigned long i = ulongval ();
15375       if (i != ((long) (sizeof (int))))
15376         exit (1);
15377       fprintf (f, "%lu\n", i);
15378     }
15379   exit (ferror (f) || fclose (f) != 0);
15380
15381   ;
15382   return 0;
15383 }
15384 _ACEOF
15385 rm -f conftest$ac_exeext
15386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15387   (eval $ac_link) 2>&5
15388   ac_status=$?
15389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392   (eval $ac_try) 2>&5
15393   ac_status=$?
15394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); }; }; then
15396   ac_cv_sizeof_int=`cat conftest.val`
15397 else
15398   echo "$as_me: program exited with status $ac_status" >&5
15399 echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15401
15402 ( exit $ac_status )
15403 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15404 See \`config.log' for more details." >&5
15405 echo "$as_me: error: cannot compute sizeof (int), 77
15406 See \`config.log' for more details." >&2;}
15407    { (exit 1); exit 1; }; }
15408 fi
15409 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15410 fi
15411 fi
15412 rm -f conftest.val
15413 else
15414   ac_cv_sizeof_int=0
15415 fi
15416 fi
15417 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15418 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15419 cat >>confdefs.h <<_ACEOF
15420 #define SIZEOF_INT $ac_cv_sizeof_int
15421 _ACEOF
15422
15423
15424 echo "$as_me:$LINENO: checking for long int" >&5
15425 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15426 if test "${ac_cv_type_long_int+set}" = set; then
15427   echo $ECHO_N "(cached) $ECHO_C" >&6
15428 else
15429   cat >conftest.$ac_ext <<_ACEOF
15430 /* confdefs.h.  */
15431 _ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h.  */
15435 $ac_includes_default
15436 int
15437 main ()
15438 {
15439 if ((long int *) 0)
15440   return 0;
15441 if (sizeof (long int))
15442   return 0;
15443   ;
15444   return 0;
15445 }
15446 _ACEOF
15447 rm -f conftest.$ac_objext
15448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15449   (eval $ac_compile) 2>conftest.er1
15450   ac_status=$?
15451   grep -v '^ *+' conftest.er1 >conftest.err
15452   rm -f conftest.er1
15453   cat conftest.err >&5
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); } &&
15456          { ac_try='test -z "$ac_c_werror_flag"
15457                          || test ! -s conftest.err'
15458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459   (eval $ac_try) 2>&5
15460   ac_status=$?
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); }; } &&
15463          { ac_try='test -s conftest.$ac_objext'
15464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465   (eval $ac_try) 2>&5
15466   ac_status=$?
15467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468   (exit $ac_status); }; }; then
15469   ac_cv_type_long_int=yes
15470 else
15471   echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15473
15474 ac_cv_type_long_int=no
15475 fi
15476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15477 fi
15478 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15479 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15480
15481 echo "$as_me:$LINENO: checking size of long int" >&5
15482 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15483 if test "${ac_cv_sizeof_long_int+set}" = set; then
15484   echo $ECHO_N "(cached) $ECHO_C" >&6
15485 else
15486   if test "$ac_cv_type_long_int" = yes; then
15487   # The cast to unsigned long works around a bug in the HP C Compiler
15488   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15489   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15490   # This bug is HP SR number 8606223364.
15491   if test "$cross_compiling" = yes; then
15492   # Depending upon the size, compute the lo and hi bounds.
15493 cat >conftest.$ac_ext <<_ACEOF
15494 /* confdefs.h.  */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h.  */
15499 $ac_includes_default
15500 int
15501 main ()
15502 {
15503 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15504 test_array [0] = 0
15505
15506   ;
15507   return 0;
15508 }
15509 _ACEOF
15510 rm -f conftest.$ac_objext
15511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15512   (eval $ac_compile) 2>conftest.er1
15513   ac_status=$?
15514   grep -v '^ *+' conftest.er1 >conftest.err
15515   rm -f conftest.er1
15516   cat conftest.err >&5
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); } &&
15519          { ac_try='test -z "$ac_c_werror_flag"
15520                          || test ! -s conftest.err'
15521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522   (eval $ac_try) 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); }; } &&
15526          { ac_try='test -s conftest.$ac_objext'
15527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528   (eval $ac_try) 2>&5
15529   ac_status=$?
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); }; }; then
15532   ac_lo=0 ac_mid=0
15533   while :; do
15534     cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h.  */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h.  */
15540 $ac_includes_default
15541 int
15542 main ()
15543 {
15544 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15545 test_array [0] = 0
15546
15547   ;
15548   return 0;
15549 }
15550 _ACEOF
15551 rm -f conftest.$ac_objext
15552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15553   (eval $ac_compile) 2>conftest.er1
15554   ac_status=$?
15555   grep -v '^ *+' conftest.er1 >conftest.err
15556   rm -f conftest.er1
15557   cat conftest.err >&5
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); } &&
15560          { ac_try='test -z "$ac_c_werror_flag"
15561                          || test ! -s conftest.err'
15562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563   (eval $ac_try) 2>&5
15564   ac_status=$?
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); }; } &&
15567          { ac_try='test -s conftest.$ac_objext'
15568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569   (eval $ac_try) 2>&5
15570   ac_status=$?
15571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572   (exit $ac_status); }; }; then
15573   ac_hi=$ac_mid; break
15574 else
15575   echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15577
15578 ac_lo=`expr $ac_mid + 1`
15579                     if test $ac_lo -le $ac_mid; then
15580                       ac_lo= ac_hi=
15581                       break
15582                     fi
15583                     ac_mid=`expr 2 '*' $ac_mid + 1`
15584 fi
15585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15586   done
15587 else
15588   echo "$as_me: failed program was:" >&5
15589 sed 's/^/| /' conftest.$ac_ext >&5
15590
15591 cat >conftest.$ac_ext <<_ACEOF
15592 /* confdefs.h.  */
15593 _ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h.  */
15597 $ac_includes_default
15598 int
15599 main ()
15600 {
15601 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15602 test_array [0] = 0
15603
15604   ;
15605   return 0;
15606 }
15607 _ACEOF
15608 rm -f conftest.$ac_objext
15609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15610   (eval $ac_compile) 2>conftest.er1
15611   ac_status=$?
15612   grep -v '^ *+' conftest.er1 >conftest.err
15613   rm -f conftest.er1
15614   cat conftest.err >&5
15615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616   (exit $ac_status); } &&
15617          { ac_try='test -z "$ac_c_werror_flag"
15618                          || test ! -s conftest.err'
15619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620   (eval $ac_try) 2>&5
15621   ac_status=$?
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); }; } &&
15624          { ac_try='test -s conftest.$ac_objext'
15625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626   (eval $ac_try) 2>&5
15627   ac_status=$?
15628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629   (exit $ac_status); }; }; then
15630   ac_hi=-1 ac_mid=-1
15631   while :; do
15632     cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h.  */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h.  */
15638 $ac_includes_default
15639 int
15640 main ()
15641 {
15642 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15643 test_array [0] = 0
15644
15645   ;
15646   return 0;
15647 }
15648 _ACEOF
15649 rm -f conftest.$ac_objext
15650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15651   (eval $ac_compile) 2>conftest.er1
15652   ac_status=$?
15653   grep -v '^ *+' conftest.er1 >conftest.err
15654   rm -f conftest.er1
15655   cat conftest.err >&5
15656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657   (exit $ac_status); } &&
15658          { ac_try='test -z "$ac_c_werror_flag"
15659                          || test ! -s conftest.err'
15660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661   (eval $ac_try) 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); }; } &&
15665          { ac_try='test -s conftest.$ac_objext'
15666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667   (eval $ac_try) 2>&5
15668   ac_status=$?
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); }; }; then
15671   ac_lo=$ac_mid; break
15672 else
15673   echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15675
15676 ac_hi=`expr '(' $ac_mid ')' - 1`
15677                        if test $ac_mid -le $ac_hi; then
15678                          ac_lo= ac_hi=
15679                          break
15680                        fi
15681                        ac_mid=`expr 2 '*' $ac_mid`
15682 fi
15683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15684   done
15685 else
15686   echo "$as_me: failed program was:" >&5
15687 sed 's/^/| /' conftest.$ac_ext >&5
15688
15689 ac_lo= ac_hi=
15690 fi
15691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15692 fi
15693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15694 # Binary search between lo and hi bounds.
15695 while test "x$ac_lo" != "x$ac_hi"; do
15696   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15697   cat >conftest.$ac_ext <<_ACEOF
15698 /* confdefs.h.  */
15699 _ACEOF
15700 cat confdefs.h >>conftest.$ac_ext
15701 cat >>conftest.$ac_ext <<_ACEOF
15702 /* end confdefs.h.  */
15703 $ac_includes_default
15704 int
15705 main ()
15706 {
15707 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15708 test_array [0] = 0
15709
15710   ;
15711   return 0;
15712 }
15713 _ACEOF
15714 rm -f conftest.$ac_objext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15716   (eval $ac_compile) 2>conftest.er1
15717   ac_status=$?
15718   grep -v '^ *+' conftest.er1 >conftest.err
15719   rm -f conftest.er1
15720   cat conftest.err >&5
15721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722   (exit $ac_status); } &&
15723          { ac_try='test -z "$ac_c_werror_flag"
15724                          || test ! -s conftest.err'
15725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726   (eval $ac_try) 2>&5
15727   ac_status=$?
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); }; } &&
15730          { ac_try='test -s conftest.$ac_objext'
15731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732   (eval $ac_try) 2>&5
15733   ac_status=$?
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); }; }; then
15736   ac_hi=$ac_mid
15737 else
15738   echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15740
15741 ac_lo=`expr '(' $ac_mid ')' + 1`
15742 fi
15743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15744 done
15745 case $ac_lo in
15746 ?*) ac_cv_sizeof_long_int=$ac_lo;;
15747 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15748 See \`config.log' for more details." >&5
15749 echo "$as_me: error: cannot compute sizeof (long int), 77
15750 See \`config.log' for more details." >&2;}
15751    { (exit 1); exit 1; }; } ;;
15752 esac
15753 else
15754   if test "$cross_compiling" = yes; then
15755   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15756 See \`config.log' for more details." >&5
15757 echo "$as_me: error: cannot run test program while cross compiling
15758 See \`config.log' for more details." >&2;}
15759    { (exit 1); exit 1; }; }
15760 else
15761   cat >conftest.$ac_ext <<_ACEOF
15762 /* confdefs.h.  */
15763 _ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h.  */
15767 $ac_includes_default
15768 long longval () { return (long) (sizeof (long int)); }
15769 unsigned long ulongval () { return (long) (sizeof (long int)); }
15770 #include <stdio.h>
15771 #include <stdlib.h>
15772 int
15773 main ()
15774 {
15775
15776   FILE *f = fopen ("conftest.val", "w");
15777   if (! f)
15778     exit (1);
15779   if (((long) (sizeof (long int))) < 0)
15780     {
15781       long i = longval ();
15782       if (i != ((long) (sizeof (long int))))
15783         exit (1);
15784       fprintf (f, "%ld\n", i);
15785     }
15786   else
15787     {
15788       unsigned long i = ulongval ();
15789       if (i != ((long) (sizeof (long int))))
15790         exit (1);
15791       fprintf (f, "%lu\n", i);
15792     }
15793   exit (ferror (f) || fclose (f) != 0);
15794
15795   ;
15796   return 0;
15797 }
15798 _ACEOF
15799 rm -f conftest$ac_exeext
15800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15801   (eval $ac_link) 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806   (eval $ac_try) 2>&5
15807   ac_status=$?
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); }; }; then
15810   ac_cv_sizeof_long_int=`cat conftest.val`
15811 else
15812   echo "$as_me: program exited with status $ac_status" >&5
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15815
15816 ( exit $ac_status )
15817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15818 See \`config.log' for more details." >&5
15819 echo "$as_me: error: cannot compute sizeof (long int), 77
15820 See \`config.log' for more details." >&2;}
15821    { (exit 1); exit 1; }; }
15822 fi
15823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15824 fi
15825 fi
15826 rm -f conftest.val
15827 else
15828   ac_cv_sizeof_long_int=0
15829 fi
15830 fi
15831 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
15832 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
15833 cat >>confdefs.h <<_ACEOF
15834 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15835 _ACEOF
15836
15837
15838 echo "$as_me:$LINENO: checking for long long int" >&5
15839 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15840 if test "${ac_cv_type_long_long_int+set}" = set; then
15841   echo $ECHO_N "(cached) $ECHO_C" >&6
15842 else
15843   cat >conftest.$ac_ext <<_ACEOF
15844 /* confdefs.h.  */
15845 _ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h.  */
15849 $ac_includes_default
15850 int
15851 main ()
15852 {
15853 if ((long long int *) 0)
15854   return 0;
15855 if (sizeof (long long int))
15856   return 0;
15857   ;
15858   return 0;
15859 }
15860 _ACEOF
15861 rm -f conftest.$ac_objext
15862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15863   (eval $ac_compile) 2>conftest.er1
15864   ac_status=$?
15865   grep -v '^ *+' conftest.er1 >conftest.err
15866   rm -f conftest.er1
15867   cat conftest.err >&5
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); } &&
15870          { ac_try='test -z "$ac_c_werror_flag"
15871                          || test ! -s conftest.err'
15872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873   (eval $ac_try) 2>&5
15874   ac_status=$?
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); }; } &&
15877          { ac_try='test -s conftest.$ac_objext'
15878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879   (eval $ac_try) 2>&5
15880   ac_status=$?
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); }; }; then
15883   ac_cv_type_long_long_int=yes
15884 else
15885   echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15887
15888 ac_cv_type_long_long_int=no
15889 fi
15890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15891 fi
15892 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15893 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15894
15895 echo "$as_me:$LINENO: checking size of long long int" >&5
15896 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
15897 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
15898   echo $ECHO_N "(cached) $ECHO_C" >&6
15899 else
15900   if test "$ac_cv_type_long_long_int" = yes; then
15901   # The cast to unsigned long works around a bug in the HP C Compiler
15902   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15903   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15904   # This bug is HP SR number 8606223364.
15905   if test "$cross_compiling" = yes; then
15906   # Depending upon the size, compute the lo and hi bounds.
15907 cat >conftest.$ac_ext <<_ACEOF
15908 /* confdefs.h.  */
15909 _ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h.  */
15913 $ac_includes_default
15914 int
15915 main ()
15916 {
15917 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15918 test_array [0] = 0
15919
15920   ;
15921   return 0;
15922 }
15923 _ACEOF
15924 rm -f conftest.$ac_objext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15926   (eval $ac_compile) 2>conftest.er1
15927   ac_status=$?
15928   grep -v '^ *+' conftest.er1 >conftest.err
15929   rm -f conftest.er1
15930   cat conftest.err >&5
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); } &&
15933          { ac_try='test -z "$ac_c_werror_flag"
15934                          || test ! -s conftest.err'
15935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936   (eval $ac_try) 2>&5
15937   ac_status=$?
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); }; } &&
15940          { ac_try='test -s conftest.$ac_objext'
15941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942   (eval $ac_try) 2>&5
15943   ac_status=$?
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); }; }; then
15946   ac_lo=0 ac_mid=0
15947   while :; do
15948     cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h.  */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h.  */
15954 $ac_includes_default
15955 int
15956 main ()
15957 {
15958 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15959 test_array [0] = 0
15960
15961   ;
15962   return 0;
15963 }
15964 _ACEOF
15965 rm -f conftest.$ac_objext
15966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15967   (eval $ac_compile) 2>conftest.er1
15968   ac_status=$?
15969   grep -v '^ *+' conftest.er1 >conftest.err
15970   rm -f conftest.er1
15971   cat conftest.err >&5
15972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973   (exit $ac_status); } &&
15974          { ac_try='test -z "$ac_c_werror_flag"
15975                          || test ! -s conftest.err'
15976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977   (eval $ac_try) 2>&5
15978   ac_status=$?
15979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980   (exit $ac_status); }; } &&
15981          { ac_try='test -s conftest.$ac_objext'
15982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983   (eval $ac_try) 2>&5
15984   ac_status=$?
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); }; }; then
15987   ac_hi=$ac_mid; break
15988 else
15989   echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15991
15992 ac_lo=`expr $ac_mid + 1`
15993                     if test $ac_lo -le $ac_mid; then
15994                       ac_lo= ac_hi=
15995                       break
15996                     fi
15997                     ac_mid=`expr 2 '*' $ac_mid + 1`
15998 fi
15999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16000   done
16001 else
16002   echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
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 $ac_includes_default
16012 int
16013 main ()
16014 {
16015 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16016 test_array [0] = 0
16017
16018   ;
16019   return 0;
16020 }
16021 _ACEOF
16022 rm -f conftest.$ac_objext
16023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16024   (eval $ac_compile) 2>conftest.er1
16025   ac_status=$?
16026   grep -v '^ *+' conftest.er1 >conftest.err
16027   rm -f conftest.er1
16028   cat conftest.err >&5
16029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030   (exit $ac_status); } &&
16031          { ac_try='test -z "$ac_c_werror_flag"
16032                          || test ! -s conftest.err'
16033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034   (eval $ac_try) 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); }; } &&
16038          { ac_try='test -s conftest.$ac_objext'
16039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040   (eval $ac_try) 2>&5
16041   ac_status=$?
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); }; }; then
16044   ac_hi=-1 ac_mid=-1
16045   while :; do
16046     cat >conftest.$ac_ext <<_ACEOF
16047 /* confdefs.h.  */
16048 _ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h.  */
16052 $ac_includes_default
16053 int
16054 main ()
16055 {
16056 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16057 test_array [0] = 0
16058
16059   ;
16060   return 0;
16061 }
16062 _ACEOF
16063 rm -f conftest.$ac_objext
16064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16065   (eval $ac_compile) 2>conftest.er1
16066   ac_status=$?
16067   grep -v '^ *+' conftest.er1 >conftest.err
16068   rm -f conftest.er1
16069   cat conftest.err >&5
16070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071   (exit $ac_status); } &&
16072          { ac_try='test -z "$ac_c_werror_flag"
16073                          || test ! -s conftest.err'
16074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075   (eval $ac_try) 2>&5
16076   ac_status=$?
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); }; } &&
16079          { ac_try='test -s conftest.$ac_objext'
16080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081   (eval $ac_try) 2>&5
16082   ac_status=$?
16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084   (exit $ac_status); }; }; then
16085   ac_lo=$ac_mid; break
16086 else
16087   echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16089
16090 ac_hi=`expr '(' $ac_mid ')' - 1`
16091                        if test $ac_mid -le $ac_hi; then
16092                          ac_lo= ac_hi=
16093                          break
16094                        fi
16095                        ac_mid=`expr 2 '*' $ac_mid`
16096 fi
16097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16098   done
16099 else
16100   echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16102
16103 ac_lo= ac_hi=
16104 fi
16105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16106 fi
16107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16108 # Binary search between lo and hi bounds.
16109 while test "x$ac_lo" != "x$ac_hi"; do
16110   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16111   cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h.  */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h.  */
16117 $ac_includes_default
16118 int
16119 main ()
16120 {
16121 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16122 test_array [0] = 0
16123
16124   ;
16125   return 0;
16126 }
16127 _ACEOF
16128 rm -f conftest.$ac_objext
16129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16130   (eval $ac_compile) 2>conftest.er1
16131   ac_status=$?
16132   grep -v '^ *+' conftest.er1 >conftest.err
16133   rm -f conftest.er1
16134   cat conftest.err >&5
16135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136   (exit $ac_status); } &&
16137          { ac_try='test -z "$ac_c_werror_flag"
16138                          || test ! -s conftest.err'
16139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140   (eval $ac_try) 2>&5
16141   ac_status=$?
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); }; } &&
16144          { ac_try='test -s conftest.$ac_objext'
16145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146   (eval $ac_try) 2>&5
16147   ac_status=$?
16148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149   (exit $ac_status); }; }; then
16150   ac_hi=$ac_mid
16151 else
16152   echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16154
16155 ac_lo=`expr '(' $ac_mid ')' + 1`
16156 fi
16157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16158 done
16159 case $ac_lo in
16160 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16161 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16162 See \`config.log' for more details." >&5
16163 echo "$as_me: error: cannot compute sizeof (long long int), 77
16164 See \`config.log' for more details." >&2;}
16165    { (exit 1); exit 1; }; } ;;
16166 esac
16167 else
16168   if test "$cross_compiling" = yes; then
16169   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16170 See \`config.log' for more details." >&5
16171 echo "$as_me: error: cannot run test program while cross compiling
16172 See \`config.log' for more details." >&2;}
16173    { (exit 1); exit 1; }; }
16174 else
16175   cat >conftest.$ac_ext <<_ACEOF
16176 /* confdefs.h.  */
16177 _ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h.  */
16181 $ac_includes_default
16182 long longval () { return (long) (sizeof (long long int)); }
16183 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16184 #include <stdio.h>
16185 #include <stdlib.h>
16186 int
16187 main ()
16188 {
16189
16190   FILE *f = fopen ("conftest.val", "w");
16191   if (! f)
16192     exit (1);
16193   if (((long) (sizeof (long long int))) < 0)
16194     {
16195       long i = longval ();
16196       if (i != ((long) (sizeof (long long int))))
16197         exit (1);
16198       fprintf (f, "%ld\n", i);
16199     }
16200   else
16201     {
16202       unsigned long i = ulongval ();
16203       if (i != ((long) (sizeof (long long int))))
16204         exit (1);
16205       fprintf (f, "%lu\n", i);
16206     }
16207   exit (ferror (f) || fclose (f) != 0);
16208
16209   ;
16210   return 0;
16211 }
16212 _ACEOF
16213 rm -f conftest$ac_exeext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16215   (eval $ac_link) 2>&5
16216   ac_status=$?
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220   (eval $ac_try) 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); }; }; then
16224   ac_cv_sizeof_long_long_int=`cat conftest.val`
16225 else
16226   echo "$as_me: program exited with status $ac_status" >&5
16227 echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16229
16230 ( exit $ac_status )
16231 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16232 See \`config.log' for more details." >&5
16233 echo "$as_me: error: cannot compute sizeof (long long int), 77
16234 See \`config.log' for more details." >&2;}
16235    { (exit 1); exit 1; }; }
16236 fi
16237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16238 fi
16239 fi
16240 rm -f conftest.val
16241 else
16242   ac_cv_sizeof_long_long_int=0
16243 fi
16244 fi
16245 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16246 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16247 cat >>confdefs.h <<_ACEOF
16248 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16249 _ACEOF
16250
16251
16252 echo "$as_me:$LINENO: checking for int *" >&5
16253 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16254 if test "${ac_cv_type_int_p+set}" = set; then
16255   echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257   cat >conftest.$ac_ext <<_ACEOF
16258 /* confdefs.h.  */
16259 _ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h.  */
16263 $ac_includes_default
16264 int
16265 main ()
16266 {
16267 if ((int * *) 0)
16268   return 0;
16269 if (sizeof (int *))
16270   return 0;
16271   ;
16272   return 0;
16273 }
16274 _ACEOF
16275 rm -f conftest.$ac_objext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16277   (eval $ac_compile) 2>conftest.er1
16278   ac_status=$?
16279   grep -v '^ *+' conftest.er1 >conftest.err
16280   rm -f conftest.er1
16281   cat conftest.err >&5
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); } &&
16284          { ac_try='test -z "$ac_c_werror_flag"
16285                          || test ! -s conftest.err'
16286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287   (eval $ac_try) 2>&5
16288   ac_status=$?
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); }; } &&
16291          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16297   ac_cv_type_int_p=yes
16298 else
16299   echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16301
16302 ac_cv_type_int_p=no
16303 fi
16304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16305 fi
16306 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16307 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16308
16309 echo "$as_me:$LINENO: checking size of int *" >&5
16310 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16311 if test "${ac_cv_sizeof_int_p+set}" = set; then
16312   echo $ECHO_N "(cached) $ECHO_C" >&6
16313 else
16314   if test "$ac_cv_type_int_p" = yes; then
16315   # The cast to unsigned long works around a bug in the HP C Compiler
16316   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16317   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16318   # This bug is HP SR number 8606223364.
16319   if test "$cross_compiling" = yes; then
16320   # Depending upon the size, compute the lo and hi bounds.
16321 cat >conftest.$ac_ext <<_ACEOF
16322 /* confdefs.h.  */
16323 _ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h.  */
16327 $ac_includes_default
16328 int
16329 main ()
16330 {
16331 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16332 test_array [0] = 0
16333
16334   ;
16335   return 0;
16336 }
16337 _ACEOF
16338 rm -f conftest.$ac_objext
16339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16340   (eval $ac_compile) 2>conftest.er1
16341   ac_status=$?
16342   grep -v '^ *+' conftest.er1 >conftest.err
16343   rm -f conftest.er1
16344   cat conftest.err >&5
16345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346   (exit $ac_status); } &&
16347          { ac_try='test -z "$ac_c_werror_flag"
16348                          || test ! -s conftest.err'
16349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350   (eval $ac_try) 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); }; } &&
16354          { ac_try='test -s conftest.$ac_objext'
16355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356   (eval $ac_try) 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }; }; then
16360   ac_lo=0 ac_mid=0
16361   while :; do
16362     cat >conftest.$ac_ext <<_ACEOF
16363 /* confdefs.h.  */
16364 _ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h.  */
16368 $ac_includes_default
16369 int
16370 main ()
16371 {
16372 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16373 test_array [0] = 0
16374
16375   ;
16376   return 0;
16377 }
16378 _ACEOF
16379 rm -f conftest.$ac_objext
16380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16381   (eval $ac_compile) 2>conftest.er1
16382   ac_status=$?
16383   grep -v '^ *+' conftest.er1 >conftest.err
16384   rm -f conftest.er1
16385   cat conftest.err >&5
16386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387   (exit $ac_status); } &&
16388          { ac_try='test -z "$ac_c_werror_flag"
16389                          || test ! -s conftest.err'
16390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391   (eval $ac_try) 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); }; } &&
16395          { ac_try='test -s conftest.$ac_objext'
16396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397   (eval $ac_try) 2>&5
16398   ac_status=$?
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); }; }; then
16401   ac_hi=$ac_mid; break
16402 else
16403   echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16405
16406 ac_lo=`expr $ac_mid + 1`
16407                     if test $ac_lo -le $ac_mid; then
16408                       ac_lo= ac_hi=
16409                       break
16410                     fi
16411                     ac_mid=`expr 2 '*' $ac_mid + 1`
16412 fi
16413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16414   done
16415 else
16416   echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16418
16419 cat >conftest.$ac_ext <<_ACEOF
16420 /* confdefs.h.  */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h.  */
16425 $ac_includes_default
16426 int
16427 main ()
16428 {
16429 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16430 test_array [0] = 0
16431
16432   ;
16433   return 0;
16434 }
16435 _ACEOF
16436 rm -f conftest.$ac_objext
16437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16438   (eval $ac_compile) 2>conftest.er1
16439   ac_status=$?
16440   grep -v '^ *+' conftest.er1 >conftest.err
16441   rm -f conftest.er1
16442   cat conftest.err >&5
16443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444   (exit $ac_status); } &&
16445          { ac_try='test -z "$ac_c_werror_flag"
16446                          || test ! -s conftest.err'
16447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448   (eval $ac_try) 2>&5
16449   ac_status=$?
16450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451   (exit $ac_status); }; } &&
16452          { ac_try='test -s conftest.$ac_objext'
16453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454   (eval $ac_try) 2>&5
16455   ac_status=$?
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); }; }; then
16458   ac_hi=-1 ac_mid=-1
16459   while :; do
16460     cat >conftest.$ac_ext <<_ACEOF
16461 /* confdefs.h.  */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h.  */
16466 $ac_includes_default
16467 int
16468 main ()
16469 {
16470 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16471 test_array [0] = 0
16472
16473   ;
16474   return 0;
16475 }
16476 _ACEOF
16477 rm -f conftest.$ac_objext
16478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16479   (eval $ac_compile) 2>conftest.er1
16480   ac_status=$?
16481   grep -v '^ *+' conftest.er1 >conftest.err
16482   rm -f conftest.er1
16483   cat conftest.err >&5
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); } &&
16486          { ac_try='test -z "$ac_c_werror_flag"
16487                          || test ! -s conftest.err'
16488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489   (eval $ac_try) 2>&5
16490   ac_status=$?
16491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492   (exit $ac_status); }; } &&
16493          { ac_try='test -s conftest.$ac_objext'
16494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495   (eval $ac_try) 2>&5
16496   ac_status=$?
16497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); }; }; then
16499   ac_lo=$ac_mid; break
16500 else
16501   echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16503
16504 ac_hi=`expr '(' $ac_mid ')' - 1`
16505                        if test $ac_mid -le $ac_hi; then
16506                          ac_lo= ac_hi=
16507                          break
16508                        fi
16509                        ac_mid=`expr 2 '*' $ac_mid`
16510 fi
16511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16512   done
16513 else
16514   echo "$as_me: failed program was:" >&5
16515 sed 's/^/| /' conftest.$ac_ext >&5
16516
16517 ac_lo= ac_hi=
16518 fi
16519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16520 fi
16521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16522 # Binary search between lo and hi bounds.
16523 while test "x$ac_lo" != "x$ac_hi"; do
16524   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16525   cat >conftest.$ac_ext <<_ACEOF
16526 /* confdefs.h.  */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h.  */
16531 $ac_includes_default
16532 int
16533 main ()
16534 {
16535 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16536 test_array [0] = 0
16537
16538   ;
16539   return 0;
16540 }
16541 _ACEOF
16542 rm -f conftest.$ac_objext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16544   (eval $ac_compile) 2>conftest.er1
16545   ac_status=$?
16546   grep -v '^ *+' conftest.er1 >conftest.err
16547   rm -f conftest.er1
16548   cat conftest.err >&5
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); } &&
16551          { ac_try='test -z "$ac_c_werror_flag"
16552                          || test ! -s conftest.err'
16553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554   (eval $ac_try) 2>&5
16555   ac_status=$?
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); }; } &&
16558          { ac_try='test -s conftest.$ac_objext'
16559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560   (eval $ac_try) 2>&5
16561   ac_status=$?
16562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); }; }; then
16564   ac_hi=$ac_mid
16565 else
16566   echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16568
16569 ac_lo=`expr '(' $ac_mid ')' + 1`
16570 fi
16571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16572 done
16573 case $ac_lo in
16574 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16575 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16576 See \`config.log' for more details." >&5
16577 echo "$as_me: error: cannot compute sizeof (int *), 77
16578 See \`config.log' for more details." >&2;}
16579    { (exit 1); exit 1; }; } ;;
16580 esac
16581 else
16582   if test "$cross_compiling" = yes; then
16583   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16584 See \`config.log' for more details." >&5
16585 echo "$as_me: error: cannot run test program while cross compiling
16586 See \`config.log' for more details." >&2;}
16587    { (exit 1); exit 1; }; }
16588 else
16589   cat >conftest.$ac_ext <<_ACEOF
16590 /* confdefs.h.  */
16591 _ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h.  */
16595 $ac_includes_default
16596 long longval () { return (long) (sizeof (int *)); }
16597 unsigned long ulongval () { return (long) (sizeof (int *)); }
16598 #include <stdio.h>
16599 #include <stdlib.h>
16600 int
16601 main ()
16602 {
16603
16604   FILE *f = fopen ("conftest.val", "w");
16605   if (! f)
16606     exit (1);
16607   if (((long) (sizeof (int *))) < 0)
16608     {
16609       long i = longval ();
16610       if (i != ((long) (sizeof (int *))))
16611         exit (1);
16612       fprintf (f, "%ld\n", i);
16613     }
16614   else
16615     {
16616       unsigned long i = ulongval ();
16617       if (i != ((long) (sizeof (int *))))
16618         exit (1);
16619       fprintf (f, "%lu\n", i);
16620     }
16621   exit (ferror (f) || fclose (f) != 0);
16622
16623   ;
16624   return 0;
16625 }
16626 _ACEOF
16627 rm -f conftest$ac_exeext
16628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16629   (eval $ac_link) 2>&5
16630   ac_status=$?
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634   (eval $ac_try) 2>&5
16635   ac_status=$?
16636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637   (exit $ac_status); }; }; then
16638   ac_cv_sizeof_int_p=`cat conftest.val`
16639 else
16640   echo "$as_me: program exited with status $ac_status" >&5
16641 echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.$ac_ext >&5
16643
16644 ( exit $ac_status )
16645 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16646 See \`config.log' for more details." >&5
16647 echo "$as_me: error: cannot compute sizeof (int *), 77
16648 See \`config.log' for more details." >&2;}
16649    { (exit 1); exit 1; }; }
16650 fi
16651 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16652 fi
16653 fi
16654 rm -f conftest.val
16655 else
16656   ac_cv_sizeof_int_p=0
16657 fi
16658 fi
16659 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16660 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16661 cat >>confdefs.h <<_ACEOF
16662 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16663 _ACEOF
16664
16665
16666
16667 # Check for sys/types.h types
16668 echo "$as_me:$LINENO: checking for u_int type" >&5
16669 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16670 if test "${ac_cv_have_u_int+set}" = set; then
16671   echo $ECHO_N "(cached) $ECHO_C" >&6
16672 else
16673
16674     cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h.  */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h.  */
16680  #include <sys/types.h>
16681 int
16682 main ()
16683 {
16684  u_int a; a = 1;
16685   ;
16686   return 0;
16687 }
16688 _ACEOF
16689 rm -f conftest.$ac_objext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16691   (eval $ac_compile) 2>conftest.er1
16692   ac_status=$?
16693   grep -v '^ *+' conftest.er1 >conftest.err
16694   rm -f conftest.er1
16695   cat conftest.err >&5
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); } &&
16698          { ac_try='test -z "$ac_c_werror_flag"
16699                          || test ! -s conftest.err'
16700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701   (eval $ac_try) 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); }; } &&
16705          { ac_try='test -s conftest.$ac_objext'
16706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707   (eval $ac_try) 2>&5
16708   ac_status=$?
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); }; }; then
16711    ac_cv_have_u_int="yes"
16712 else
16713   echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16715
16716  ac_cv_have_u_int="no"
16717
16718 fi
16719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16720
16721 fi
16722 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
16723 echo "${ECHO_T}$ac_cv_have_u_int" >&6
16724 if test "x$ac_cv_have_u_int" = "xyes" ; then
16725    cat >>confdefs.h <<\_ACEOF
16726 #define HAVE_U_INT 1
16727 _ACEOF
16728
16729    have_u_int=1
16730 fi
16731
16732 echo "$as_me:$LINENO: checking for intmax_t type" >&5
16733 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
16734 if test "${ac_cv_have_intmax_t+set}" = set; then
16735   echo $ECHO_N "(cached) $ECHO_C" >&6
16736 else
16737
16738    cat >conftest.$ac_ext <<_ACEOF
16739 /* confdefs.h.  */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h.  */
16744  #include <sys/types.h>
16745 int
16746 main ()
16747 {
16748  intmax_t a; a = 1;
16749   ;
16750   return 0;
16751 }
16752 _ACEOF
16753 rm -f conftest.$ac_objext
16754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16755   (eval $ac_compile) 2>conftest.er1
16756   ac_status=$?
16757   grep -v '^ *+' conftest.er1 >conftest.err
16758   rm -f conftest.er1
16759   cat conftest.err >&5
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); } &&
16762          { ac_try='test -z "$ac_c_werror_flag"
16763                          || test ! -s conftest.err'
16764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765   (eval $ac_try) 2>&5
16766   ac_status=$?
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); }; } &&
16769          { ac_try='test -s conftest.$ac_objext'
16770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771   (eval $ac_try) 2>&5
16772   ac_status=$?
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); }; }; then
16775    ac_cv_have_intmax_t="yes"
16776 else
16777   echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16779
16780
16781          cat >conftest.$ac_ext <<_ACEOF
16782 /* confdefs.h.  */
16783 _ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h.  */
16787  #include <stdint.h>
16788 int
16789 main ()
16790 {
16791  intmax_t a; a = 1;
16792   ;
16793   return 0;
16794 }
16795 _ACEOF
16796 rm -f conftest.$ac_objext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16798   (eval $ac_compile) 2>conftest.er1
16799   ac_status=$?
16800   grep -v '^ *+' conftest.er1 >conftest.err
16801   rm -f conftest.er1
16802   cat conftest.err >&5
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); } &&
16805          { ac_try='test -z "$ac_c_werror_flag"
16806                          || test ! -s conftest.err'
16807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808   (eval $ac_try) 2>&5
16809   ac_status=$?
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); }; } &&
16812          { ac_try='test -s conftest.$ac_objext'
16813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814   (eval $ac_try) 2>&5
16815   ac_status=$?
16816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817   (exit $ac_status); }; }; then
16818    ac_cv_have_intmax_t="yes"
16819 else
16820   echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16822
16823  ac_cv_have_intmax_t="no"
16824
16825 fi
16826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16827
16828
16829 fi
16830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16831
16832
16833 fi
16834 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
16835 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
16836 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
16837    cat >>confdefs.h <<\_ACEOF
16838 #define HAVE_INTMAX_T 1
16839 _ACEOF
16840
16841    have_intmax_t=1
16842 fi
16843
16844
16845 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
16846 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
16847 if test "${ac_cv_have_u_intmax_t+set}" = set; then
16848   echo $ECHO_N "(cached) $ECHO_C" >&6
16849 else
16850
16851    cat >conftest.$ac_ext <<_ACEOF
16852 /* confdefs.h.  */
16853 _ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h.  */
16857  #include <sys/types.h>
16858 int
16859 main ()
16860 {
16861  u_intmax_t a; a = 1;
16862   ;
16863   return 0;
16864 }
16865 _ACEOF
16866 rm -f conftest.$ac_objext
16867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16868   (eval $ac_compile) 2>conftest.er1
16869   ac_status=$?
16870   grep -v '^ *+' conftest.er1 >conftest.err
16871   rm -f conftest.er1
16872   cat conftest.err >&5
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); } &&
16875          { ac_try='test -z "$ac_c_werror_flag"
16876                          || test ! -s conftest.err'
16877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878   (eval $ac_try) 2>&5
16879   ac_status=$?
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); }; } &&
16882          { ac_try='test -s conftest.$ac_objext'
16883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884   (eval $ac_try) 2>&5
16885   ac_status=$?
16886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); }; }; then
16888    ac_cv_have_u_intmax_t="yes"
16889 else
16890   echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16892
16893
16894          cat >conftest.$ac_ext <<_ACEOF
16895 /* confdefs.h.  */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h.  */
16900  #include <stdint.h>
16901 int
16902 main ()
16903 {
16904  u_intmax_t a; a = 1;
16905   ;
16906   return 0;
16907 }
16908 _ACEOF
16909 rm -f conftest.$ac_objext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911   (eval $ac_compile) 2>conftest.er1
16912   ac_status=$?
16913   grep -v '^ *+' conftest.er1 >conftest.err
16914   rm -f conftest.er1
16915   cat conftest.err >&5
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); } &&
16918          { ac_try='test -z "$ac_c_werror_flag"
16919                          || test ! -s conftest.err'
16920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921   (eval $ac_try) 2>&5
16922   ac_status=$?
16923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); }; } &&
16925          { ac_try='test -s conftest.$ac_objext'
16926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927   (eval $ac_try) 2>&5
16928   ac_status=$?
16929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930   (exit $ac_status); }; }; then
16931    ac_cv_have_u_intmax_t="yes"
16932 else
16933   echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16935
16936  ac_cv_have_u_intmax_t="no"
16937
16938 fi
16939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16940
16941
16942 fi
16943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16944
16945 fi
16946 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
16947 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
16948 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
16949    cat >>confdefs.h <<\_ACEOF
16950 #define HAVE_U_INTMAX_T 1
16951 _ACEOF
16952
16953    have_u_intmax_t=1
16954 fi
16955
16956
16957 echo "$as_me:$LINENO: checking for intXX_t types" >&5
16958 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
16959 if test "${ac_cv_have_intxx_t+set}" = set; then
16960   echo $ECHO_N "(cached) $ECHO_C" >&6
16961 else
16962
16963    cat >conftest.$ac_ext <<_ACEOF
16964 /* confdefs.h.  */
16965 _ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h.  */
16969  #include <sys/types.h>
16970 int
16971 main ()
16972 {
16973  int8_t a; int16_t b; int32_t c; a = b = c = 1;
16974   ;
16975   return 0;
16976 }
16977 _ACEOF
16978 rm -f conftest.$ac_objext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980   (eval $ac_compile) 2>conftest.er1
16981   ac_status=$?
16982   grep -v '^ *+' conftest.er1 >conftest.err
16983   rm -f conftest.er1
16984   cat conftest.err >&5
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); } &&
16987          { ac_try='test -z "$ac_c_werror_flag"
16988                          || test ! -s conftest.err'
16989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990   (eval $ac_try) 2>&5
16991   ac_status=$?
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); }; } &&
16994          { ac_try='test -s conftest.$ac_objext'
16995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996   (eval $ac_try) 2>&5
16997   ac_status=$?
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); }; }; then
17000    ac_cv_have_intxx_t="yes"
17001 else
17002   echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17004
17005  ac_cv_have_intxx_t="no"
17006
17007 fi
17008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17009
17010 fi
17011 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17012 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17013 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17014    cat >>confdefs.h <<\_ACEOF
17015 #define HAVE_INTXX_T 1
17016 _ACEOF
17017
17018    have_intxx_t=1
17019 fi
17020
17021 echo "$as_me:$LINENO: checking for int64_t type" >&5
17022 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17023 if test "${ac_cv_have_int64_t+set}" = set; then
17024   echo $ECHO_N "(cached) $ECHO_C" >&6
17025 else
17026
17027    cat >conftest.$ac_ext <<_ACEOF
17028 /* confdefs.h.  */
17029 _ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h.  */
17033  #include <sys/types.h>
17034 int
17035 main ()
17036 {
17037  int64_t a; a = 1;
17038   ;
17039   return 0;
17040 }
17041 _ACEOF
17042 rm -f conftest.$ac_objext
17043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17044   (eval $ac_compile) 2>conftest.er1
17045   ac_status=$?
17046   grep -v '^ *+' conftest.er1 >conftest.err
17047   rm -f conftest.er1
17048   cat conftest.err >&5
17049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050   (exit $ac_status); } &&
17051          { ac_try='test -z "$ac_c_werror_flag"
17052                          || test ! -s conftest.err'
17053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054   (eval $ac_try) 2>&5
17055   ac_status=$?
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); }; } &&
17058          { ac_try='test -s conftest.$ac_objext'
17059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060   (eval $ac_try) 2>&5
17061   ac_status=$?
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); }; }; then
17064    ac_cv_have_int64_t="yes"
17065 else
17066   echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17068
17069  ac_cv_have_int64_t="no"
17070
17071 fi
17072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17073
17074 fi
17075 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17076 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17077 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17078    cat >>confdefs.h <<\_ACEOF
17079 #define HAVE_INT64_T 1
17080 _ACEOF
17081
17082    have_int64_t=1
17083 fi
17084
17085 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17086 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17087 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17088   echo $ECHO_N "(cached) $ECHO_C" >&6
17089 else
17090
17091    cat >conftest.$ac_ext <<_ACEOF
17092 /* confdefs.h.  */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h.  */
17097  #include <sys/types.h>
17098 int
17099 main ()
17100 {
17101  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17102   ;
17103   return 0;
17104 }
17105 _ACEOF
17106 rm -f conftest.$ac_objext
17107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17108   (eval $ac_compile) 2>conftest.er1
17109   ac_status=$?
17110   grep -v '^ *+' conftest.er1 >conftest.err
17111   rm -f conftest.er1
17112   cat conftest.err >&5
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); } &&
17115          { ac_try='test -z "$ac_c_werror_flag"
17116                          || test ! -s conftest.err'
17117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118   (eval $ac_try) 2>&5
17119   ac_status=$?
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); }; } &&
17122          { ac_try='test -s conftest.$ac_objext'
17123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124   (eval $ac_try) 2>&5
17125   ac_status=$?
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); }; }; then
17128    ac_cv_have_u_intxx_t="yes"
17129 else
17130   echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17132
17133  ac_cv_have_u_intxx_t="no"
17134
17135 fi
17136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17137
17138 fi
17139 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17140 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17141 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17142    cat >>confdefs.h <<\_ACEOF
17143 #define HAVE_U_INTXX_T 1
17144 _ACEOF
17145
17146    have_u_intxx_t=1
17147 fi
17148
17149 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17150 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17151 if test "${ac_cv_have_u_int64_t+set}" = set; then
17152   echo $ECHO_N "(cached) $ECHO_C" >&6
17153 else
17154
17155    cat >conftest.$ac_ext <<_ACEOF
17156 /* confdefs.h.  */
17157 _ACEOF
17158 cat confdefs.h >>conftest.$ac_ext
17159 cat >>conftest.$ac_ext <<_ACEOF
17160 /* end confdefs.h.  */
17161  #include <sys/types.h>
17162 int
17163 main ()
17164 {
17165  u_int64_t a; a = 1;
17166   ;
17167   return 0;
17168 }
17169 _ACEOF
17170 rm -f conftest.$ac_objext
17171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17172   (eval $ac_compile) 2>conftest.er1
17173   ac_status=$?
17174   grep -v '^ *+' conftest.er1 >conftest.err
17175   rm -f conftest.er1
17176   cat conftest.err >&5
17177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178   (exit $ac_status); } &&
17179          { ac_try='test -z "$ac_c_werror_flag"
17180                          || test ! -s conftest.err'
17181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182   (eval $ac_try) 2>&5
17183   ac_status=$?
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); }; } &&
17186          { ac_try='test -s conftest.$ac_objext'
17187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188   (eval $ac_try) 2>&5
17189   ac_status=$?
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); }; }; then
17192    ac_cv_have_u_int64_t="yes"
17193 else
17194   echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17196
17197  ac_cv_have_u_int64_t="no"
17198
17199 fi
17200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17201
17202 fi
17203 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17204 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17205 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17206    cat >>confdefs.h <<\_ACEOF
17207 #define HAVE_U_INT64_T 1
17208 _ACEOF
17209
17210    have_u_int64_t=1
17211 fi
17212
17213 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17214            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17215 then
17216    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17217 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17218    cat >conftest.$ac_ext <<_ACEOF
17219 /* confdefs.h.  */
17220 _ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h.  */
17224  #include <sys/bitypes.h>
17225 int
17226 main ()
17227 {
17228  int8_t a; int16_t b; int32_t c;
17229         u_int8_t e; u_int16_t f; u_int32_t g;
17230         a = b = c = e = f = g = 1;
17231   ;
17232   return 0;
17233 }
17234 _ACEOF
17235 rm -f conftest.$ac_objext
17236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17237   (eval $ac_compile) 2>conftest.er1
17238   ac_status=$?
17239   grep -v '^ *+' conftest.er1 >conftest.err
17240   rm -f conftest.er1
17241   cat conftest.err >&5
17242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243   (exit $ac_status); } &&
17244          { ac_try='test -z "$ac_c_werror_flag"
17245                          || test ! -s conftest.err'
17246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247   (eval $ac_try) 2>&5
17248   ac_status=$?
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); }; } &&
17251          { ac_try='test -s conftest.$ac_objext'
17252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253   (eval $ac_try) 2>&5
17254   ac_status=$?
17255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256   (exit $ac_status); }; }; then
17257    cat >>confdefs.h <<\_ACEOF
17258 #define HAVE_U_INTXX_T 1
17259 _ACEOF
17260
17261         cat >>confdefs.h <<\_ACEOF
17262 #define HAVE_INTXX_T 1
17263 _ACEOF
17264
17265         cat >>confdefs.h <<\_ACEOF
17266 #define HAVE_SYS_BITYPES_H 1
17267 _ACEOF
17268
17269         echo "$as_me:$LINENO: result: yes" >&5
17270 echo "${ECHO_T}yes" >&6
17271 else
17272   echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17274
17275  echo "$as_me:$LINENO: result: no" >&5
17276 echo "${ECHO_T}no" >&6
17277
17278 fi
17279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17280 fi
17281
17282 if test -z "$have_u_intxx_t" ; then
17283    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17284 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17285 if test "${ac_cv_have_uintxx_t+set}" = set; then
17286   echo $ECHO_N "(cached) $ECHO_C" >&6
17287 else
17288
17289       cat >conftest.$ac_ext <<_ACEOF
17290 /* confdefs.h.  */
17291 _ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h.  */
17295  #include <sys/types.h>
17296 int
17297 main ()
17298 {
17299  uint8_t a; uint16_t b;
17300            uint32_t c; a = b = c = 1;
17301   ;
17302   return 0;
17303 }
17304 _ACEOF
17305 rm -f conftest.$ac_objext
17306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17307   (eval $ac_compile) 2>conftest.er1
17308   ac_status=$?
17309   grep -v '^ *+' conftest.er1 >conftest.err
17310   rm -f conftest.er1
17311   cat conftest.err >&5
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); } &&
17314          { ac_try='test -z "$ac_c_werror_flag"
17315                          || test ! -s conftest.err'
17316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317   (eval $ac_try) 2>&5
17318   ac_status=$?
17319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320   (exit $ac_status); }; } &&
17321          { ac_try='test -s conftest.$ac_objext'
17322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323   (eval $ac_try) 2>&5
17324   ac_status=$?
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); }; }; then
17327    ac_cv_have_uintxx_t="yes"
17328 else
17329   echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17331
17332  ac_cv_have_uintxx_t="no"
17333
17334 fi
17335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17336
17337 fi
17338 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17339 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17340    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17341       cat >>confdefs.h <<\_ACEOF
17342 #define HAVE_UINTXX_T 1
17343 _ACEOF
17344
17345    fi
17346 fi
17347
17348 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17349           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17350 then
17351    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17352 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17353    cat >conftest.$ac_ext <<_ACEOF
17354 /* confdefs.h.  */
17355 _ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h.  */
17359  #include <sys/bitypes.h>
17360 int
17361 main ()
17362 {
17363  int64_t a; u_int64_t b;
17364        a = b = 1;
17365   ;
17366   return 0;
17367 }
17368 _ACEOF
17369 rm -f conftest.$ac_objext
17370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17371   (eval $ac_compile) 2>conftest.er1
17372   ac_status=$?
17373   grep -v '^ *+' conftest.er1 >conftest.err
17374   rm -f conftest.er1
17375   cat conftest.err >&5
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); } &&
17378          { ac_try='test -z "$ac_c_werror_flag"
17379                          || test ! -s conftest.err'
17380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381   (eval $ac_try) 2>&5
17382   ac_status=$?
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); }; } &&
17385          { ac_try='test -s conftest.$ac_objext'
17386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387   (eval $ac_try) 2>&5
17388   ac_status=$?
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); }; }; then
17391    cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_U_INT64_T 1
17393 _ACEOF
17394
17395        cat >>confdefs.h <<\_ACEOF
17396 #define HAVE_INT64_T 1
17397 _ACEOF
17398
17399        echo "$as_me:$LINENO: result: yes" >&5
17400 echo "${ECHO_T}yes" >&6
17401 else
17402   echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17404
17405  echo "$as_me:$LINENO: result: no" >&5
17406 echo "${ECHO_T}no" >&6
17407
17408 fi
17409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17410 fi
17411
17412 if (test -z "$have_uintxx_t" && \
17413           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17414 then
17415    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17416 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17417    cat >conftest.$ac_ext <<_ACEOF
17418 /* confdefs.h.  */
17419 _ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h.  */
17423  #include <sys/bitypes.h>
17424 int
17425 main ()
17426 {
17427  uint8_t a; uint16_t b;
17428           uint32_t c; a = b = c = 1;
17429   ;
17430   return 0;
17431 }
17432 _ACEOF
17433 rm -f conftest.$ac_objext
17434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17435   (eval $ac_compile) 2>conftest.er1
17436   ac_status=$?
17437   grep -v '^ *+' conftest.er1 >conftest.err
17438   rm -f conftest.er1
17439   cat conftest.err >&5
17440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441   (exit $ac_status); } &&
17442          { ac_try='test -z "$ac_c_werror_flag"
17443                          || test ! -s conftest.err'
17444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445   (eval $ac_try) 2>&5
17446   ac_status=$?
17447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448   (exit $ac_status); }; } &&
17449          { ac_try='test -s conftest.$ac_objext'
17450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451   (eval $ac_try) 2>&5
17452   ac_status=$?
17453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454   (exit $ac_status); }; }; then
17455    cat >>confdefs.h <<\_ACEOF
17456 #define HAVE_UINTXX_T 1
17457 _ACEOF
17458
17459        echo "$as_me:$LINENO: result: yes" >&5
17460 echo "${ECHO_T}yes" >&6
17461 else
17462   echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17464
17465  echo "$as_me:$LINENO: result: no" >&5
17466 echo "${ECHO_T}no" >&6
17467
17468 fi
17469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17470
17471 fi
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489 for ac_func in \
17490         fork \
17491         getcwd \
17492         gethostname \
17493         getpid \
17494         gettimeofday \
17495         setpgid \
17496         setpgrp \
17497         setsid \
17498         signal \
17499         strerror \
17500         strncmp \
17501         strncpy \
17502         vfprintf \
17503
17504 do
17505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17506 echo "$as_me:$LINENO: checking for $ac_func" >&5
17507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17508 if eval "test \"\${$as_ac_var+set}\" = set"; then
17509   echo $ECHO_N "(cached) $ECHO_C" >&6
17510 else
17511   cat >conftest.$ac_ext <<_ACEOF
17512 /* confdefs.h.  */
17513 _ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h.  */
17517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17519 #define $ac_func innocuous_$ac_func
17520
17521 /* System header to define __stub macros and hopefully few prototypes,
17522     which can conflict with char $ac_func (); below.
17523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17524     <limits.h> exists even on freestanding compilers.  */
17525
17526 #ifdef __STDC__
17527 # include <limits.h>
17528 #else
17529 # include <assert.h>
17530 #endif
17531
17532 #undef $ac_func
17533
17534 /* Override any gcc2 internal prototype to avoid an error.  */
17535 #ifdef __cplusplus
17536 extern "C"
17537 {
17538 #endif
17539 /* We use char because int might match the return type of a gcc2
17540    builtin and then its argument prototype would still apply.  */
17541 char $ac_func ();
17542 /* The GNU C library defines this for functions which it implements
17543     to always fail with ENOSYS.  Some functions are actually named
17544     something starting with __ and the normal name is an alias.  */
17545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17546 choke me
17547 #else
17548 char (*f) () = $ac_func;
17549 #endif
17550 #ifdef __cplusplus
17551 }
17552 #endif
17553
17554 int
17555 main ()
17556 {
17557 return f != $ac_func;
17558   ;
17559   return 0;
17560 }
17561 _ACEOF
17562 rm -f conftest.$ac_objext conftest$ac_exeext
17563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17564   (eval $ac_link) 2>conftest.er1
17565   ac_status=$?
17566   grep -v '^ *+' conftest.er1 >conftest.err
17567   rm -f conftest.er1
17568   cat conftest.err >&5
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); } &&
17571          { ac_try='test -z "$ac_c_werror_flag"
17572                          || test ! -s conftest.err'
17573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574   (eval $ac_try) 2>&5
17575   ac_status=$?
17576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577   (exit $ac_status); }; } &&
17578          { ac_try='test -s conftest$ac_exeext'
17579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580   (eval $ac_try) 2>&5
17581   ac_status=$?
17582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583   (exit $ac_status); }; }; then
17584   eval "$as_ac_var=yes"
17585 else
17586   echo "$as_me: failed program was:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17588
17589 eval "$as_ac_var=no"
17590 fi
17591 rm -f conftest.err conftest.$ac_objext \
17592       conftest$ac_exeext conftest.$ac_ext
17593 fi
17594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17596 if test `eval echo '${'$as_ac_var'}'` = yes; then
17597   cat >>confdefs.h <<_ACEOF
17598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17599 _ACEOF
17600
17601 else
17602   echo 'configure: cannot find needed function.'; exit 1
17603
17604 fi
17605 done
17606
17607
17608
17609 for ac_func in fchdir
17610 do
17611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17612 echo "$as_me:$LINENO: checking for $ac_func" >&5
17613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17614 if eval "test \"\${$as_ac_var+set}\" = set"; then
17615   echo $ECHO_N "(cached) $ECHO_C" >&6
17616 else
17617   cat >conftest.$ac_ext <<_ACEOF
17618 /* confdefs.h.  */
17619 _ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h.  */
17623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17625 #define $ac_func innocuous_$ac_func
17626
17627 /* System header to define __stub macros and hopefully few prototypes,
17628     which can conflict with char $ac_func (); below.
17629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17630     <limits.h> exists even on freestanding compilers.  */
17631
17632 #ifdef __STDC__
17633 # include <limits.h>
17634 #else
17635 # include <assert.h>
17636 #endif
17637
17638 #undef $ac_func
17639
17640 /* Override any gcc2 internal prototype to avoid an error.  */
17641 #ifdef __cplusplus
17642 extern "C"
17643 {
17644 #endif
17645 /* We use char because int might match the return type of a gcc2
17646    builtin and then its argument prototype would still apply.  */
17647 char $ac_func ();
17648 /* The GNU C library defines this for functions which it implements
17649     to always fail with ENOSYS.  Some functions are actually named
17650     something starting with __ and the normal name is an alias.  */
17651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17652 choke me
17653 #else
17654 char (*f) () = $ac_func;
17655 #endif
17656 #ifdef __cplusplus
17657 }
17658 #endif
17659
17660 int
17661 main ()
17662 {
17663 return f != $ac_func;
17664   ;
17665   return 0;
17666 }
17667 _ACEOF
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17670   (eval $ac_link) 2>conftest.er1
17671   ac_status=$?
17672   grep -v '^ *+' conftest.er1 >conftest.err
17673   rm -f conftest.er1
17674   cat conftest.err >&5
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); } &&
17677          { ac_try='test -z "$ac_c_werror_flag"
17678                          || test ! -s conftest.err'
17679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680   (eval $ac_try) 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); }; } &&
17684          { ac_try='test -s conftest$ac_exeext'
17685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686   (eval $ac_try) 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); }; }; then
17690   eval "$as_ac_var=yes"
17691 else
17692   echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17694
17695 eval "$as_ac_var=no"
17696 fi
17697 rm -f conftest.err conftest.$ac_objext \
17698       conftest$ac_exeext conftest.$ac_ext
17699 fi
17700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17702 if test `eval echo '${'$as_ac_var'}'` = yes; then
17703   cat >>confdefs.h <<_ACEOF
17704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17705 _ACEOF
17706  cat >>confdefs.h <<\_ACEOF
17707 #define HAVE_FCHDIR 1
17708 _ACEOF
17709
17710 fi
17711 done
17712
17713
17714 for ac_func in strtoll
17715 do
17716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17717 echo "$as_me:$LINENO: checking for $ac_func" >&5
17718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17719 if eval "test \"\${$as_ac_var+set}\" = set"; then
17720   echo $ECHO_N "(cached) $ECHO_C" >&6
17721 else
17722   cat >conftest.$ac_ext <<_ACEOF
17723 /* confdefs.h.  */
17724 _ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h.  */
17728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17730 #define $ac_func innocuous_$ac_func
17731
17732 /* System header to define __stub macros and hopefully few prototypes,
17733     which can conflict with char $ac_func (); below.
17734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17735     <limits.h> exists even on freestanding compilers.  */
17736
17737 #ifdef __STDC__
17738 # include <limits.h>
17739 #else
17740 # include <assert.h>
17741 #endif
17742
17743 #undef $ac_func
17744
17745 /* Override any gcc2 internal prototype to avoid an error.  */
17746 #ifdef __cplusplus
17747 extern "C"
17748 {
17749 #endif
17750 /* We use char because int might match the return type of a gcc2
17751    builtin and then its argument prototype would still apply.  */
17752 char $ac_func ();
17753 /* The GNU C library defines this for functions which it implements
17754     to always fail with ENOSYS.  Some functions are actually named
17755     something starting with __ and the normal name is an alias.  */
17756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17757 choke me
17758 #else
17759 char (*f) () = $ac_func;
17760 #endif
17761 #ifdef __cplusplus
17762 }
17763 #endif
17764
17765 int
17766 main ()
17767 {
17768 return f != $ac_func;
17769   ;
17770   return 0;
17771 }
17772 _ACEOF
17773 rm -f conftest.$ac_objext conftest$ac_exeext
17774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17775   (eval $ac_link) 2>conftest.er1
17776   ac_status=$?
17777   grep -v '^ *+' conftest.er1 >conftest.err
17778   rm -f conftest.er1
17779   cat conftest.err >&5
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); } &&
17782          { ac_try='test -z "$ac_c_werror_flag"
17783                          || test ! -s conftest.err'
17784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785   (eval $ac_try) 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); }; } &&
17789          { ac_try='test -s conftest$ac_exeext'
17790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791   (eval $ac_try) 2>&5
17792   ac_status=$?
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); }; }; then
17795   eval "$as_ac_var=yes"
17796 else
17797   echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17799
17800 eval "$as_ac_var=no"
17801 fi
17802 rm -f conftest.err conftest.$ac_objext \
17803       conftest$ac_exeext conftest.$ac_ext
17804 fi
17805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17807 if test `eval echo '${'$as_ac_var'}'` = yes; then
17808   cat >>confdefs.h <<_ACEOF
17809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17810 _ACEOF
17811  cat >>confdefs.h <<\_ACEOF
17812 #define HAVE_STRTOLL 1
17813 _ACEOF
17814
17815 fi
17816 done
17817
17818
17819
17820 for ac_func in chflags
17821 do
17822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17823 echo "$as_me:$LINENO: checking for $ac_func" >&5
17824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17825 if eval "test \"\${$as_ac_var+set}\" = set"; then
17826   echo $ECHO_N "(cached) $ECHO_C" >&6
17827 else
17828   cat >conftest.$ac_ext <<_ACEOF
17829 /* confdefs.h.  */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h.  */
17834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17836 #define $ac_func innocuous_$ac_func
17837
17838 /* System header to define __stub macros and hopefully few prototypes,
17839     which can conflict with char $ac_func (); below.
17840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17841     <limits.h> exists even on freestanding compilers.  */
17842
17843 #ifdef __STDC__
17844 # include <limits.h>
17845 #else
17846 # include <assert.h>
17847 #endif
17848
17849 #undef $ac_func
17850
17851 /* Override any gcc2 internal prototype to avoid an error.  */
17852 #ifdef __cplusplus
17853 extern "C"
17854 {
17855 #endif
17856 /* We use char because int might match the return type of a gcc2
17857    builtin and then its argument prototype would still apply.  */
17858 char $ac_func ();
17859 /* The GNU C library defines this for functions which it implements
17860     to always fail with ENOSYS.  Some functions are actually named
17861     something starting with __ and the normal name is an alias.  */
17862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17863 choke me
17864 #else
17865 char (*f) () = $ac_func;
17866 #endif
17867 #ifdef __cplusplus
17868 }
17869 #endif
17870
17871 int
17872 main ()
17873 {
17874 return f != $ac_func;
17875   ;
17876   return 0;
17877 }
17878 _ACEOF
17879 rm -f conftest.$ac_objext conftest$ac_exeext
17880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17881   (eval $ac_link) 2>conftest.er1
17882   ac_status=$?
17883   grep -v '^ *+' conftest.er1 >conftest.err
17884   rm -f conftest.er1
17885   cat conftest.err >&5
17886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887   (exit $ac_status); } &&
17888          { ac_try='test -z "$ac_c_werror_flag"
17889                          || test ! -s conftest.err'
17890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891   (eval $ac_try) 2>&5
17892   ac_status=$?
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); }; } &&
17895          { ac_try='test -s conftest$ac_exeext'
17896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897   (eval $ac_try) 2>&5
17898   ac_status=$?
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); }; }; then
17901   eval "$as_ac_var=yes"
17902 else
17903   echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906 eval "$as_ac_var=no"
17907 fi
17908 rm -f conftest.err conftest.$ac_objext \
17909       conftest$ac_exeext conftest.$ac_ext
17910 fi
17911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17913 if test `eval echo '${'$as_ac_var'}'` = yes; then
17914   cat >>confdefs.h <<_ACEOF
17915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17916 _ACEOF
17917
17918 fi
17919 done
17920
17921
17922
17923
17924
17925
17926 for ac_func in snprintf vsnprintf gethostid fseeko
17927 do
17928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17929 echo "$as_me:$LINENO: checking for $ac_func" >&5
17930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17931 if eval "test \"\${$as_ac_var+set}\" = set"; then
17932   echo $ECHO_N "(cached) $ECHO_C" >&6
17933 else
17934   cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h.  */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h.  */
17940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17942 #define $ac_func innocuous_$ac_func
17943
17944 /* System header to define __stub macros and hopefully few prototypes,
17945     which can conflict with char $ac_func (); below.
17946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17947     <limits.h> exists even on freestanding compilers.  */
17948
17949 #ifdef __STDC__
17950 # include <limits.h>
17951 #else
17952 # include <assert.h>
17953 #endif
17954
17955 #undef $ac_func
17956
17957 /* Override any gcc2 internal prototype to avoid an error.  */
17958 #ifdef __cplusplus
17959 extern "C"
17960 {
17961 #endif
17962 /* We use char because int might match the return type of a gcc2
17963    builtin and then its argument prototype would still apply.  */
17964 char $ac_func ();
17965 /* The GNU C library defines this for functions which it implements
17966     to always fail with ENOSYS.  Some functions are actually named
17967     something starting with __ and the normal name is an alias.  */
17968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17969 choke me
17970 #else
17971 char (*f) () = $ac_func;
17972 #endif
17973 #ifdef __cplusplus
17974 }
17975 #endif
17976
17977 int
17978 main ()
17979 {
17980 return f != $ac_func;
17981   ;
17982   return 0;
17983 }
17984 _ACEOF
17985 rm -f conftest.$ac_objext conftest$ac_exeext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987   (eval $ac_link) 2>conftest.er1
17988   ac_status=$?
17989   grep -v '^ *+' conftest.er1 >conftest.err
17990   rm -f conftest.er1
17991   cat conftest.err >&5
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); } &&
17994          { ac_try='test -z "$ac_c_werror_flag"
17995                          || test ! -s conftest.err'
17996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997   (eval $ac_try) 2>&5
17998   ac_status=$?
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); }; } &&
18001          { ac_try='test -s conftest$ac_exeext'
18002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003   (eval $ac_try) 2>&5
18004   ac_status=$?
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); }; }; then
18007   eval "$as_ac_var=yes"
18008 else
18009   echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18011
18012 eval "$as_ac_var=no"
18013 fi
18014 rm -f conftest.err conftest.$ac_objext \
18015       conftest$ac_exeext conftest.$ac_ext
18016 fi
18017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18019 if test `eval echo '${'$as_ac_var'}'` = yes; then
18020   cat >>confdefs.h <<_ACEOF
18021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18022 _ACEOF
18023
18024 fi
18025 done
18026
18027
18028
18029
18030
18031
18032 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18033 do
18034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18035 echo "$as_me:$LINENO: checking for $ac_func" >&5
18036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18037 if eval "test \"\${$as_ac_var+set}\" = set"; then
18038   echo $ECHO_N "(cached) $ECHO_C" >&6
18039 else
18040   cat >conftest.$ac_ext <<_ACEOF
18041 /* confdefs.h.  */
18042 _ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h.  */
18046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18048 #define $ac_func innocuous_$ac_func
18049
18050 /* System header to define __stub macros and hopefully few prototypes,
18051     which can conflict with char $ac_func (); below.
18052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18053     <limits.h> exists even on freestanding compilers.  */
18054
18055 #ifdef __STDC__
18056 # include <limits.h>
18057 #else
18058 # include <assert.h>
18059 #endif
18060
18061 #undef $ac_func
18062
18063 /* Override any gcc2 internal prototype to avoid an error.  */
18064 #ifdef __cplusplus
18065 extern "C"
18066 {
18067 #endif
18068 /* We use char because int might match the return type of a gcc2
18069    builtin and then its argument prototype would still apply.  */
18070 char $ac_func ();
18071 /* The GNU C library defines this for functions which it implements
18072     to always fail with ENOSYS.  Some functions are actually named
18073     something starting with __ and the normal name is an alias.  */
18074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18075 choke me
18076 #else
18077 char (*f) () = $ac_func;
18078 #endif
18079 #ifdef __cplusplus
18080 }
18081 #endif
18082
18083 int
18084 main ()
18085 {
18086 return f != $ac_func;
18087   ;
18088   return 0;
18089 }
18090 _ACEOF
18091 rm -f conftest.$ac_objext conftest$ac_exeext
18092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18093   (eval $ac_link) 2>conftest.er1
18094   ac_status=$?
18095   grep -v '^ *+' conftest.er1 >conftest.err
18096   rm -f conftest.er1
18097   cat conftest.err >&5
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); } &&
18100          { ac_try='test -z "$ac_c_werror_flag"
18101                          || test ! -s conftest.err'
18102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103   (eval $ac_try) 2>&5
18104   ac_status=$?
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); }; } &&
18107          { ac_try='test -s conftest$ac_exeext'
18108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109   (eval $ac_try) 2>&5
18110   ac_status=$?
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); }; }; then
18113   eval "$as_ac_var=yes"
18114 else
18115   echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18117
18118 eval "$as_ac_var=no"
18119 fi
18120 rm -f conftest.err conftest.$ac_objext \
18121       conftest$ac_exeext conftest.$ac_ext
18122 fi
18123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18125 if test `eval echo '${'$as_ac_var'}'` = yes; then
18126   cat >>confdefs.h <<_ACEOF
18127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18128 _ACEOF
18129
18130 fi
18131 done
18132
18133
18134 # If resolver functions are not in libc check for -lnsl or -lresolv.
18135 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18136 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18137 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18138   echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18140   cat >conftest.$ac_ext <<_ACEOF
18141 /* confdefs.h.  */
18142 _ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h.  */
18146 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18148 #define gethostbyname_r innocuous_gethostbyname_r
18149
18150 /* System header to define __stub macros and hopefully few prototypes,
18151     which can conflict with char gethostbyname_r (); below.
18152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18153     <limits.h> exists even on freestanding compilers.  */
18154
18155 #ifdef __STDC__
18156 # include <limits.h>
18157 #else
18158 # include <assert.h>
18159 #endif
18160
18161 #undef gethostbyname_r
18162
18163 /* Override any gcc2 internal prototype to avoid an error.  */
18164 #ifdef __cplusplus
18165 extern "C"
18166 {
18167 #endif
18168 /* We use char because int might match the return type of a gcc2
18169    builtin and then its argument prototype would still apply.  */
18170 char gethostbyname_r ();
18171 /* The GNU C library defines this for functions which it implements
18172     to always fail with ENOSYS.  Some functions are actually named
18173     something starting with __ and the normal name is an alias.  */
18174 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18175 choke me
18176 #else
18177 char (*f) () = gethostbyname_r;
18178 #endif
18179 #ifdef __cplusplus
18180 }
18181 #endif
18182
18183 int
18184 main ()
18185 {
18186 return f != gethostbyname_r;
18187   ;
18188   return 0;
18189 }
18190 _ACEOF
18191 rm -f conftest.$ac_objext conftest$ac_exeext
18192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18193   (eval $ac_link) 2>conftest.er1
18194   ac_status=$?
18195   grep -v '^ *+' conftest.er1 >conftest.err
18196   rm -f conftest.er1
18197   cat conftest.err >&5
18198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199   (exit $ac_status); } &&
18200          { ac_try='test -z "$ac_c_werror_flag"
18201                          || test ! -s conftest.err'
18202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203   (eval $ac_try) 2>&5
18204   ac_status=$?
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); }; } &&
18207          { ac_try='test -s conftest$ac_exeext'
18208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209   (eval $ac_try) 2>&5
18210   ac_status=$?
18211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212   (exit $ac_status); }; }; then
18213   ac_cv_func_gethostbyname_r=yes
18214 else
18215   echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.$ac_ext >&5
18217
18218 ac_cv_func_gethostbyname_r=no
18219 fi
18220 rm -f conftest.err conftest.$ac_objext \
18221       conftest$ac_exeext conftest.$ac_ext
18222 fi
18223 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18224 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18225 if test $ac_cv_func_gethostbyname_r = yes; then
18226   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18227 echo "${ECHO_T}using libc's resolver" >&6
18228 else
18229
18230 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18231 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18232 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18233   echo $ECHO_N "(cached) $ECHO_C" >&6
18234 else
18235   ac_check_lib_save_LIBS=$LIBS
18236 LIBS="-lnsl  $LIBS"
18237 cat >conftest.$ac_ext <<_ACEOF
18238 /* confdefs.h.  */
18239 _ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h.  */
18243
18244 /* Override any gcc2 internal prototype to avoid an error.  */
18245 #ifdef __cplusplus
18246 extern "C"
18247 #endif
18248 /* We use char because int might match the return type of a gcc2
18249    builtin and then its argument prototype would still apply.  */
18250 char gethostbyname_r ();
18251 int
18252 main ()
18253 {
18254 gethostbyname_r ();
18255   ;
18256   return 0;
18257 }
18258 _ACEOF
18259 rm -f conftest.$ac_objext conftest$ac_exeext
18260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18261   (eval $ac_link) 2>conftest.er1
18262   ac_status=$?
18263   grep -v '^ *+' conftest.er1 >conftest.err
18264   rm -f conftest.er1
18265   cat conftest.err >&5
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); } &&
18268          { ac_try='test -z "$ac_c_werror_flag"
18269                          || test ! -s conftest.err'
18270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271   (eval $ac_try) 2>&5
18272   ac_status=$?
18273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); }; } &&
18275          { ac_try='test -s conftest$ac_exeext'
18276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277   (eval $ac_try) 2>&5
18278   ac_status=$?
18279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280   (exit $ac_status); }; }; then
18281   ac_cv_lib_nsl_gethostbyname_r=yes
18282 else
18283   echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18285
18286 ac_cv_lib_nsl_gethostbyname_r=no
18287 fi
18288 rm -f conftest.err conftest.$ac_objext \
18289       conftest$ac_exeext conftest.$ac_ext
18290 LIBS=$ac_check_lib_save_LIBS
18291 fi
18292 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18293 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18294 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18295   cat >>confdefs.h <<_ACEOF
18296 #define HAVE_LIBNSL 1
18297 _ACEOF
18298
18299   LIBS="-lnsl $LIBS"
18300
18301 fi
18302
18303
18304 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18305 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18306 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18307   echo $ECHO_N "(cached) $ECHO_C" >&6
18308 else
18309   ac_check_lib_save_LIBS=$LIBS
18310 LIBS="-lresolv  $LIBS"
18311 cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h.  */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h.  */
18317
18318 /* Override any gcc2 internal prototype to avoid an error.  */
18319 #ifdef __cplusplus
18320 extern "C"
18321 #endif
18322 /* We use char because int might match the return type of a gcc2
18323    builtin and then its argument prototype would still apply.  */
18324 char gethostbyname_r ();
18325 int
18326 main ()
18327 {
18328 gethostbyname_r ();
18329   ;
18330   return 0;
18331 }
18332 _ACEOF
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18335   (eval $ac_link) 2>conftest.er1
18336   ac_status=$?
18337   grep -v '^ *+' conftest.er1 >conftest.err
18338   rm -f conftest.er1
18339   cat conftest.err >&5
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); } &&
18342          { ac_try='test -z "$ac_c_werror_flag"
18343                          || test ! -s conftest.err'
18344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345   (eval $ac_try) 2>&5
18346   ac_status=$?
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); }; } &&
18349          { ac_try='test -s conftest$ac_exeext'
18350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351   (eval $ac_try) 2>&5
18352   ac_status=$?
18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354   (exit $ac_status); }; }; then
18355   ac_cv_lib_resolv_gethostbyname_r=yes
18356 else
18357   echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18359
18360 ac_cv_lib_resolv_gethostbyname_r=no
18361 fi
18362 rm -f conftest.err conftest.$ac_objext \
18363       conftest$ac_exeext conftest.$ac_ext
18364 LIBS=$ac_check_lib_save_LIBS
18365 fi
18366 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18367 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18368 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18369   cat >>confdefs.h <<_ACEOF
18370 #define HAVE_LIBRESOLV 1
18371 _ACEOF
18372
18373   LIBS="-lresolv $LIBS"
18374
18375 fi
18376
18377 fi
18378
18379
18380
18381
18382
18383 for ac_func in inet_pton
18384 do
18385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18386 echo "$as_me:$LINENO: checking for $ac_func" >&5
18387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18388 if eval "test \"\${$as_ac_var+set}\" = set"; then
18389   echo $ECHO_N "(cached) $ECHO_C" >&6
18390 else
18391   cat >conftest.$ac_ext <<_ACEOF
18392 /* confdefs.h.  */
18393 _ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h.  */
18397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18399 #define $ac_func innocuous_$ac_func
18400
18401 /* System header to define __stub macros and hopefully few prototypes,
18402     which can conflict with char $ac_func (); below.
18403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18404     <limits.h> exists even on freestanding compilers.  */
18405
18406 #ifdef __STDC__
18407 # include <limits.h>
18408 #else
18409 # include <assert.h>
18410 #endif
18411
18412 #undef $ac_func
18413
18414 /* Override any gcc2 internal prototype to avoid an error.  */
18415 #ifdef __cplusplus
18416 extern "C"
18417 {
18418 #endif
18419 /* We use char because int might match the return type of a gcc2
18420    builtin and then its argument prototype would still apply.  */
18421 char $ac_func ();
18422 /* The GNU C library defines this for functions which it implements
18423     to always fail with ENOSYS.  Some functions are actually named
18424     something starting with __ and the normal name is an alias.  */
18425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18426 choke me
18427 #else
18428 char (*f) () = $ac_func;
18429 #endif
18430 #ifdef __cplusplus
18431 }
18432 #endif
18433
18434 int
18435 main ()
18436 {
18437 return f != $ac_func;
18438   ;
18439   return 0;
18440 }
18441 _ACEOF
18442 rm -f conftest.$ac_objext conftest$ac_exeext
18443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18444   (eval $ac_link) 2>conftest.er1
18445   ac_status=$?
18446   grep -v '^ *+' conftest.er1 >conftest.err
18447   rm -f conftest.er1
18448   cat conftest.err >&5
18449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); } &&
18451          { ac_try='test -z "$ac_c_werror_flag"
18452                          || test ! -s conftest.err'
18453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18454   (eval $ac_try) 2>&5
18455   ac_status=$?
18456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457   (exit $ac_status); }; } &&
18458          { ac_try='test -s conftest$ac_exeext'
18459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460   (eval $ac_try) 2>&5
18461   ac_status=$?
18462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463   (exit $ac_status); }; }; then
18464   eval "$as_ac_var=yes"
18465 else
18466   echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18468
18469 eval "$as_ac_var=no"
18470 fi
18471 rm -f conftest.err conftest.$ac_objext \
18472       conftest$ac_exeext conftest.$ac_ext
18473 fi
18474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18476 if test `eval echo '${'$as_ac_var'}'` = yes; then
18477   cat >>confdefs.h <<_ACEOF
18478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18479 _ACEOF
18480  cat >>confdefs.h <<\_ACEOF
18481 #define HAVE_INET_PTON 1
18482 _ACEOF
18483
18484 fi
18485 done
18486
18487
18488 for ac_func in inet_ntop
18489 do
18490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18491 echo "$as_me:$LINENO: checking for $ac_func" >&5
18492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18493 if eval "test \"\${$as_ac_var+set}\" = set"; then
18494   echo $ECHO_N "(cached) $ECHO_C" >&6
18495 else
18496   cat >conftest.$ac_ext <<_ACEOF
18497 /* confdefs.h.  */
18498 _ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h.  */
18502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18504 #define $ac_func innocuous_$ac_func
18505
18506 /* System header to define __stub macros and hopefully few prototypes,
18507     which can conflict with char $ac_func (); below.
18508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18509     <limits.h> exists even on freestanding compilers.  */
18510
18511 #ifdef __STDC__
18512 # include <limits.h>
18513 #else
18514 # include <assert.h>
18515 #endif
18516
18517 #undef $ac_func
18518
18519 /* Override any gcc2 internal prototype to avoid an error.  */
18520 #ifdef __cplusplus
18521 extern "C"
18522 {
18523 #endif
18524 /* We use char because int might match the return type of a gcc2
18525    builtin and then its argument prototype would still apply.  */
18526 char $ac_func ();
18527 /* The GNU C library defines this for functions which it implements
18528     to always fail with ENOSYS.  Some functions are actually named
18529     something starting with __ and the normal name is an alias.  */
18530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18531 choke me
18532 #else
18533 char (*f) () = $ac_func;
18534 #endif
18535 #ifdef __cplusplus
18536 }
18537 #endif
18538
18539 int
18540 main ()
18541 {
18542 return f != $ac_func;
18543   ;
18544   return 0;
18545 }
18546 _ACEOF
18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18549   (eval $ac_link) 2>conftest.er1
18550   ac_status=$?
18551   grep -v '^ *+' conftest.er1 >conftest.err
18552   rm -f conftest.er1
18553   cat conftest.err >&5
18554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555   (exit $ac_status); } &&
18556          { ac_try='test -z "$ac_c_werror_flag"
18557                          || test ! -s conftest.err'
18558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559   (eval $ac_try) 2>&5
18560   ac_status=$?
18561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562   (exit $ac_status); }; } &&
18563          { ac_try='test -s conftest$ac_exeext'
18564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565   (eval $ac_try) 2>&5
18566   ac_status=$?
18567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); }; }; then
18569   eval "$as_ac_var=yes"
18570 else
18571   echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18573
18574 eval "$as_ac_var=no"
18575 fi
18576 rm -f conftest.err conftest.$ac_objext \
18577       conftest$ac_exeext conftest.$ac_ext
18578 fi
18579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18581 if test `eval echo '${'$as_ac_var'}'` = yes; then
18582   cat >>confdefs.h <<_ACEOF
18583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18584 _ACEOF
18585  cat >>confdefs.h <<\_ACEOF
18586 #define HAVE_INET_NTOP 1
18587 _ACEOF
18588
18589 fi
18590 done
18591
18592
18593 for ac_func in gethostbyname2
18594 do
18595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18596 echo "$as_me:$LINENO: checking for $ac_func" >&5
18597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18598 if eval "test \"\${$as_ac_var+set}\" = set"; then
18599   echo $ECHO_N "(cached) $ECHO_C" >&6
18600 else
18601   cat >conftest.$ac_ext <<_ACEOF
18602 /* confdefs.h.  */
18603 _ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h.  */
18607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18609 #define $ac_func innocuous_$ac_func
18610
18611 /* System header to define __stub macros and hopefully few prototypes,
18612     which can conflict with char $ac_func (); below.
18613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18614     <limits.h> exists even on freestanding compilers.  */
18615
18616 #ifdef __STDC__
18617 # include <limits.h>
18618 #else
18619 # include <assert.h>
18620 #endif
18621
18622 #undef $ac_func
18623
18624 /* Override any gcc2 internal prototype to avoid an error.  */
18625 #ifdef __cplusplus
18626 extern "C"
18627 {
18628 #endif
18629 /* We use char because int might match the return type of a gcc2
18630    builtin and then its argument prototype would still apply.  */
18631 char $ac_func ();
18632 /* The GNU C library defines this for functions which it implements
18633     to always fail with ENOSYS.  Some functions are actually named
18634     something starting with __ and the normal name is an alias.  */
18635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18636 choke me
18637 #else
18638 char (*f) () = $ac_func;
18639 #endif
18640 #ifdef __cplusplus
18641 }
18642 #endif
18643
18644 int
18645 main ()
18646 {
18647 return f != $ac_func;
18648   ;
18649   return 0;
18650 }
18651 _ACEOF
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18654   (eval $ac_link) 2>conftest.er1
18655   ac_status=$?
18656   grep -v '^ *+' conftest.er1 >conftest.err
18657   rm -f conftest.er1
18658   cat conftest.err >&5
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); } &&
18661          { ac_try='test -z "$ac_c_werror_flag"
18662                          || test ! -s conftest.err'
18663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664   (eval $ac_try) 2>&5
18665   ac_status=$?
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); }; } &&
18668          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18674   eval "$as_ac_var=yes"
18675 else
18676   echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18678
18679 eval "$as_ac_var=no"
18680 fi
18681 rm -f conftest.err conftest.$ac_objext \
18682       conftest$ac_exeext conftest.$ac_ext
18683 fi
18684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18686 if test `eval echo '${'$as_ac_var'}'` = yes; then
18687   cat >>confdefs.h <<_ACEOF
18688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18689 _ACEOF
18690  cat >>confdefs.h <<\_ACEOF
18691 #define HAVE_GETHOSTBYNAME2 1
18692 _ACEOF
18693
18694 fi
18695 done
18696
18697
18698 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18699 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18700 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18701   echo $ECHO_N "(cached) $ECHO_C" >&6
18702 else
18703   cat >conftest.$ac_ext <<_ACEOF
18704 /* confdefs.h.  */
18705 _ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h.  */
18709 #include <sys/socket.h>
18710 int
18711 main ()
18712 {
18713 struct sockaddr s; s.sa_len;
18714   ;
18715   return 0;
18716 }
18717 _ACEOF
18718 rm -f conftest.$ac_objext
18719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18720   (eval $ac_compile) 2>conftest.er1
18721   ac_status=$?
18722   grep -v '^ *+' conftest.er1 >conftest.err
18723   rm -f conftest.er1
18724   cat conftest.err >&5
18725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726   (exit $ac_status); } &&
18727          { ac_try='test -z "$ac_c_werror_flag"
18728                          || test ! -s conftest.err'
18729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730   (eval $ac_try) 2>&5
18731   ac_status=$?
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); }; } &&
18734          { ac_try='test -s conftest.$ac_objext'
18735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736   (eval $ac_try) 2>&5
18737   ac_status=$?
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); }; }; then
18740   ac_cv_struct_sockaddr_sa_len=yes
18741 else
18742   echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18744
18745 ac_cv_struct_sockaddr_sa_len=no
18746 fi
18747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18748 fi
18749 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18750 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18751
18752  if test $ac_cv_struct_sockaddr_sa_len = yes; then
18753
18754 cat >>confdefs.h <<\_ACEOF
18755 #define HAVE_SA_LEN 1
18756 _ACEOF
18757
18758  fi
18759
18760
18761 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18762 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18763 if test "${ac_cv_ipv6_support+set}" = set; then
18764   echo $ECHO_N "(cached) $ECHO_C" >&6
18765 else
18766   cat >conftest.$ac_ext <<_ACEOF
18767 /* confdefs.h.  */
18768 _ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h.  */
18772  #include <sys/types.h>
18773 #include <sys/socket.h>
18774 #include <netinet/in.h>
18775 int
18776 main ()
18777 {
18778 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18779  0;
18780   ;
18781   return 0;
18782 }
18783 _ACEOF
18784 rm -f conftest.$ac_objext conftest$ac_exeext
18785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18786   (eval $ac_link) 2>conftest.er1
18787   ac_status=$?
18788   grep -v '^ *+' conftest.er1 >conftest.err
18789   rm -f conftest.er1
18790   cat conftest.err >&5
18791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792   (exit $ac_status); } &&
18793          { ac_try='test -z "$ac_c_werror_flag"
18794                          || test ! -s conftest.err'
18795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796   (eval $ac_try) 2>&5
18797   ac_status=$?
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); }; } &&
18800          { ac_try='test -s conftest$ac_exeext'
18801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802   (eval $ac_try) 2>&5
18803   ac_status=$?
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); }; }; then
18806   ac_cv_ipv6_support=yes
18807 else
18808   echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18810
18811 ac_cv_ipv6_support=no
18812 fi
18813 rm -f conftest.err conftest.$ac_objext \
18814       conftest$ac_exeext conftest.$ac_ext
18815 fi
18816 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
18817 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
18818
18819 if test "$ac_cv_ipv6_support" = yes; then
18820
18821 cat >>confdefs.h <<\_ACEOF
18822 #define HAVE_IPV6 1
18823 _ACEOF
18824
18825 fi
18826
18827
18828
18829
18830 for ac_func in strftime
18831 do
18832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18833 echo "$as_me:$LINENO: checking for $ac_func" >&5
18834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18835 if eval "test \"\${$as_ac_var+set}\" = set"; then
18836   echo $ECHO_N "(cached) $ECHO_C" >&6
18837 else
18838   cat >conftest.$ac_ext <<_ACEOF
18839 /* confdefs.h.  */
18840 _ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h.  */
18844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18846 #define $ac_func innocuous_$ac_func
18847
18848 /* System header to define __stub macros and hopefully few prototypes,
18849     which can conflict with char $ac_func (); below.
18850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18851     <limits.h> exists even on freestanding compilers.  */
18852
18853 #ifdef __STDC__
18854 # include <limits.h>
18855 #else
18856 # include <assert.h>
18857 #endif
18858
18859 #undef $ac_func
18860
18861 /* Override any gcc2 internal prototype to avoid an error.  */
18862 #ifdef __cplusplus
18863 extern "C"
18864 {
18865 #endif
18866 /* We use char because int might match the return type of a gcc2
18867    builtin and then its argument prototype would still apply.  */
18868 char $ac_func ();
18869 /* The GNU C library defines this for functions which it implements
18870     to always fail with ENOSYS.  Some functions are actually named
18871     something starting with __ and the normal name is an alias.  */
18872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18873 choke me
18874 #else
18875 char (*f) () = $ac_func;
18876 #endif
18877 #ifdef __cplusplus
18878 }
18879 #endif
18880
18881 int
18882 main ()
18883 {
18884 return f != $ac_func;
18885   ;
18886   return 0;
18887 }
18888 _ACEOF
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18891   (eval $ac_link) 2>conftest.er1
18892   ac_status=$?
18893   grep -v '^ *+' conftest.er1 >conftest.err
18894   rm -f conftest.er1
18895   cat conftest.err >&5
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); } &&
18898          { ac_try='test -z "$ac_c_werror_flag"
18899                          || test ! -s conftest.err'
18900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901   (eval $ac_try) 2>&5
18902   ac_status=$?
18903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904   (exit $ac_status); }; } &&
18905          { ac_try='test -s conftest$ac_exeext'
18906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907   (eval $ac_try) 2>&5
18908   ac_status=$?
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); }; }; then
18911   eval "$as_ac_var=yes"
18912 else
18913   echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18915
18916 eval "$as_ac_var=no"
18917 fi
18918 rm -f conftest.err conftest.$ac_objext \
18919       conftest$ac_exeext conftest.$ac_ext
18920 fi
18921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18923 if test `eval echo '${'$as_ac_var'}'` = yes; then
18924   cat >>confdefs.h <<_ACEOF
18925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18926 _ACEOF
18927
18928 else
18929   # strftime is in -lintl on SCO UNIX.
18930 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18931 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18932 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18933   echo $ECHO_N "(cached) $ECHO_C" >&6
18934 else
18935   ac_check_lib_save_LIBS=$LIBS
18936 LIBS="-lintl  $LIBS"
18937 cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h.  */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h.  */
18943
18944 /* Override any gcc2 internal prototype to avoid an error.  */
18945 #ifdef __cplusplus
18946 extern "C"
18947 #endif
18948 /* We use char because int might match the return type of a gcc2
18949    builtin and then its argument prototype would still apply.  */
18950 char strftime ();
18951 int
18952 main ()
18953 {
18954 strftime ();
18955   ;
18956   return 0;
18957 }
18958 _ACEOF
18959 rm -f conftest.$ac_objext conftest$ac_exeext
18960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18961   (eval $ac_link) 2>conftest.er1
18962   ac_status=$?
18963   grep -v '^ *+' conftest.er1 >conftest.err
18964   rm -f conftest.er1
18965   cat conftest.err >&5
18966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); } &&
18968          { ac_try='test -z "$ac_c_werror_flag"
18969                          || test ! -s conftest.err'
18970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971   (eval $ac_try) 2>&5
18972   ac_status=$?
18973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974   (exit $ac_status); }; } &&
18975          { ac_try='test -s conftest$ac_exeext'
18976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977   (eval $ac_try) 2>&5
18978   ac_status=$?
18979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980   (exit $ac_status); }; }; then
18981   ac_cv_lib_intl_strftime=yes
18982 else
18983   echo "$as_me: failed program was:" >&5
18984 sed 's/^/| /' conftest.$ac_ext >&5
18985
18986 ac_cv_lib_intl_strftime=no
18987 fi
18988 rm -f conftest.err conftest.$ac_objext \
18989       conftest$ac_exeext conftest.$ac_ext
18990 LIBS=$ac_check_lib_save_LIBS
18991 fi
18992 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18993 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18994 if test $ac_cv_lib_intl_strftime = yes; then
18995   cat >>confdefs.h <<\_ACEOF
18996 #define HAVE_STRFTIME 1
18997 _ACEOF
18998
18999 LIBS="-lintl $LIBS"
19000 fi
19001
19002 fi
19003 done
19004
19005
19006 for ac_func in vprintf
19007 do
19008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19009 echo "$as_me:$LINENO: checking for $ac_func" >&5
19010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19011 if eval "test \"\${$as_ac_var+set}\" = set"; then
19012   echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014   cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h.  */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h.  */
19020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19021    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19022 #define $ac_func innocuous_$ac_func
19023
19024 /* System header to define __stub macros and hopefully few prototypes,
19025     which can conflict with char $ac_func (); below.
19026     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19027     <limits.h> exists even on freestanding compilers.  */
19028
19029 #ifdef __STDC__
19030 # include <limits.h>
19031 #else
19032 # include <assert.h>
19033 #endif
19034
19035 #undef $ac_func
19036
19037 /* Override any gcc2 internal prototype to avoid an error.  */
19038 #ifdef __cplusplus
19039 extern "C"
19040 {
19041 #endif
19042 /* We use char because int might match the return type of a gcc2
19043    builtin and then its argument prototype would still apply.  */
19044 char $ac_func ();
19045 /* The GNU C library defines this for functions which it implements
19046     to always fail with ENOSYS.  Some functions are actually named
19047     something starting with __ and the normal name is an alias.  */
19048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19049 choke me
19050 #else
19051 char (*f) () = $ac_func;
19052 #endif
19053 #ifdef __cplusplus
19054 }
19055 #endif
19056
19057 int
19058 main ()
19059 {
19060 return f != $ac_func;
19061   ;
19062   return 0;
19063 }
19064 _ACEOF
19065 rm -f conftest.$ac_objext conftest$ac_exeext
19066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19067   (eval $ac_link) 2>conftest.er1
19068   ac_status=$?
19069   grep -v '^ *+' conftest.er1 >conftest.err
19070   rm -f conftest.er1
19071   cat conftest.err >&5
19072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073   (exit $ac_status); } &&
19074          { ac_try='test -z "$ac_c_werror_flag"
19075                          || test ! -s conftest.err'
19076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077   (eval $ac_try) 2>&5
19078   ac_status=$?
19079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080   (exit $ac_status); }; } &&
19081          { ac_try='test -s conftest$ac_exeext'
19082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083   (eval $ac_try) 2>&5
19084   ac_status=$?
19085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086   (exit $ac_status); }; }; then
19087   eval "$as_ac_var=yes"
19088 else
19089   echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19091
19092 eval "$as_ac_var=no"
19093 fi
19094 rm -f conftest.err conftest.$ac_objext \
19095       conftest$ac_exeext conftest.$ac_ext
19096 fi
19097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19099 if test `eval echo '${'$as_ac_var'}'` = yes; then
19100   cat >>confdefs.h <<_ACEOF
19101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19102 _ACEOF
19103
19104 echo "$as_me:$LINENO: checking for _doprnt" >&5
19105 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19106 if test "${ac_cv_func__doprnt+set}" = set; then
19107   echo $ECHO_N "(cached) $ECHO_C" >&6
19108 else
19109   cat >conftest.$ac_ext <<_ACEOF
19110 /* confdefs.h.  */
19111 _ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h.  */
19115 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19117 #define _doprnt innocuous__doprnt
19118
19119 /* System header to define __stub macros and hopefully few prototypes,
19120     which can conflict with char _doprnt (); below.
19121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19122     <limits.h> exists even on freestanding compilers.  */
19123
19124 #ifdef __STDC__
19125 # include <limits.h>
19126 #else
19127 # include <assert.h>
19128 #endif
19129
19130 #undef _doprnt
19131
19132 /* Override any gcc2 internal prototype to avoid an error.  */
19133 #ifdef __cplusplus
19134 extern "C"
19135 {
19136 #endif
19137 /* We use char because int might match the return type of a gcc2
19138    builtin and then its argument prototype would still apply.  */
19139 char _doprnt ();
19140 /* The GNU C library defines this for functions which it implements
19141     to always fail with ENOSYS.  Some functions are actually named
19142     something starting with __ and the normal name is an alias.  */
19143 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19144 choke me
19145 #else
19146 char (*f) () = _doprnt;
19147 #endif
19148 #ifdef __cplusplus
19149 }
19150 #endif
19151
19152 int
19153 main ()
19154 {
19155 return f != _doprnt;
19156   ;
19157   return 0;
19158 }
19159 _ACEOF
19160 rm -f conftest.$ac_objext conftest$ac_exeext
19161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19162   (eval $ac_link) 2>conftest.er1
19163   ac_status=$?
19164   grep -v '^ *+' conftest.er1 >conftest.err
19165   rm -f conftest.er1
19166   cat conftest.err >&5
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); } &&
19169          { ac_try='test -z "$ac_c_werror_flag"
19170                          || test ! -s conftest.err'
19171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172   (eval $ac_try) 2>&5
19173   ac_status=$?
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); }; } &&
19176          { ac_try='test -s conftest$ac_exeext'
19177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178   (eval $ac_try) 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); }; }; then
19182   ac_cv_func__doprnt=yes
19183 else
19184   echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19186
19187 ac_cv_func__doprnt=no
19188 fi
19189 rm -f conftest.err conftest.$ac_objext \
19190       conftest$ac_exeext conftest.$ac_ext
19191 fi
19192 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19193 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19194 if test $ac_cv_func__doprnt = yes; then
19195
19196 cat >>confdefs.h <<\_ACEOF
19197 #define HAVE_DOPRNT 1
19198 _ACEOF
19199
19200 fi
19201
19202 fi
19203 done
19204
19205
19206 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19207 # for constant arguments.  Useless!
19208 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19209 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19210 if test "${ac_cv_working_alloca_h+set}" = set; then
19211   echo $ECHO_N "(cached) $ECHO_C" >&6
19212 else
19213   cat >conftest.$ac_ext <<_ACEOF
19214 /* confdefs.h.  */
19215 _ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h.  */
19219 #include <alloca.h>
19220 int
19221 main ()
19222 {
19223 char *p = (char *) alloca (2 * sizeof (int));
19224   ;
19225   return 0;
19226 }
19227 _ACEOF
19228 rm -f conftest.$ac_objext conftest$ac_exeext
19229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19230   (eval $ac_link) 2>conftest.er1
19231   ac_status=$?
19232   grep -v '^ *+' conftest.er1 >conftest.err
19233   rm -f conftest.er1
19234   cat conftest.err >&5
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); } &&
19237          { ac_try='test -z "$ac_c_werror_flag"
19238                          || test ! -s conftest.err'
19239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240   (eval $ac_try) 2>&5
19241   ac_status=$?
19242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243   (exit $ac_status); }; } &&
19244          { ac_try='test -s conftest$ac_exeext'
19245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246   (eval $ac_try) 2>&5
19247   ac_status=$?
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); }; }; then
19250   ac_cv_working_alloca_h=yes
19251 else
19252   echo "$as_me: failed program was:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19254
19255 ac_cv_working_alloca_h=no
19256 fi
19257 rm -f conftest.err conftest.$ac_objext \
19258       conftest$ac_exeext conftest.$ac_ext
19259 fi
19260 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19261 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19262 if test $ac_cv_working_alloca_h = yes; then
19263
19264 cat >>confdefs.h <<\_ACEOF
19265 #define HAVE_ALLOCA_H 1
19266 _ACEOF
19267
19268 fi
19269
19270 echo "$as_me:$LINENO: checking for alloca" >&5
19271 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19272 if test "${ac_cv_func_alloca_works+set}" = set; then
19273   echo $ECHO_N "(cached) $ECHO_C" >&6
19274 else
19275   cat >conftest.$ac_ext <<_ACEOF
19276 /* confdefs.h.  */
19277 _ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h.  */
19281 #ifdef __GNUC__
19282 # define alloca __builtin_alloca
19283 #else
19284 # ifdef _MSC_VER
19285 #  include <malloc.h>
19286 #  define alloca _alloca
19287 # else
19288 #  if HAVE_ALLOCA_H
19289 #   include <alloca.h>
19290 #  else
19291 #   ifdef _AIX
19292  #pragma alloca
19293 #   else
19294 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19295 char *alloca ();
19296 #    endif
19297 #   endif
19298 #  endif
19299 # endif
19300 #endif
19301
19302 int
19303 main ()
19304 {
19305 char *p = (char *) alloca (1);
19306   ;
19307   return 0;
19308 }
19309 _ACEOF
19310 rm -f conftest.$ac_objext conftest$ac_exeext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19312   (eval $ac_link) 2>conftest.er1
19313   ac_status=$?
19314   grep -v '^ *+' conftest.er1 >conftest.err
19315   rm -f conftest.er1
19316   cat conftest.err >&5
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); } &&
19319          { ac_try='test -z "$ac_c_werror_flag"
19320                          || test ! -s conftest.err'
19321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322   (eval $ac_try) 2>&5
19323   ac_status=$?
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); }; } &&
19326          { ac_try='test -s conftest$ac_exeext'
19327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328   (eval $ac_try) 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; }; then
19332   ac_cv_func_alloca_works=yes
19333 else
19334   echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19336
19337 ac_cv_func_alloca_works=no
19338 fi
19339 rm -f conftest.err conftest.$ac_objext \
19340       conftest$ac_exeext conftest.$ac_ext
19341 fi
19342 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19343 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19344
19345 if test $ac_cv_func_alloca_works = yes; then
19346
19347 cat >>confdefs.h <<\_ACEOF
19348 #define HAVE_ALLOCA 1
19349 _ACEOF
19350
19351 else
19352   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19353 # that cause trouble.  Some versions do not even contain alloca or
19354 # contain a buggy version.  If you still want to use their alloca,
19355 # use ar to extract alloca.o from them instead of compiling alloca.c.
19356
19357 ALLOCA=alloca.$ac_objext
19358
19359 cat >>confdefs.h <<\_ACEOF
19360 #define C_ALLOCA 1
19361 _ACEOF
19362
19363
19364 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19365 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19366 if test "${ac_cv_os_cray+set}" = set; then
19367   echo $ECHO_N "(cached) $ECHO_C" >&6
19368 else
19369   cat >conftest.$ac_ext <<_ACEOF
19370 /* confdefs.h.  */
19371 _ACEOF
19372 cat confdefs.h >>conftest.$ac_ext
19373 cat >>conftest.$ac_ext <<_ACEOF
19374 /* end confdefs.h.  */
19375 #if defined(CRAY) && ! defined(CRAY2)
19376 webecray
19377 #else
19378 wenotbecray
19379 #endif
19380
19381 _ACEOF
19382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19383   $EGREP "webecray" >/dev/null 2>&1; then
19384   ac_cv_os_cray=yes
19385 else
19386   ac_cv_os_cray=no
19387 fi
19388 rm -f conftest*
19389
19390 fi
19391 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19392 echo "${ECHO_T}$ac_cv_os_cray" >&6
19393 if test $ac_cv_os_cray = yes; then
19394   for ac_func in _getb67 GETB67 getb67; do
19395     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19396 echo "$as_me:$LINENO: checking for $ac_func" >&5
19397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19398 if eval "test \"\${$as_ac_var+set}\" = set"; then
19399   echo $ECHO_N "(cached) $ECHO_C" >&6
19400 else
19401   cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h.  */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h.  */
19407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19409 #define $ac_func innocuous_$ac_func
19410
19411 /* System header to define __stub macros and hopefully few prototypes,
19412     which can conflict with char $ac_func (); below.
19413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19414     <limits.h> exists even on freestanding compilers.  */
19415
19416 #ifdef __STDC__
19417 # include <limits.h>
19418 #else
19419 # include <assert.h>
19420 #endif
19421
19422 #undef $ac_func
19423
19424 /* Override any gcc2 internal prototype to avoid an error.  */
19425 #ifdef __cplusplus
19426 extern "C"
19427 {
19428 #endif
19429 /* We use char because int might match the return type of a gcc2
19430    builtin and then its argument prototype would still apply.  */
19431 char $ac_func ();
19432 /* The GNU C library defines this for functions which it implements
19433     to always fail with ENOSYS.  Some functions are actually named
19434     something starting with __ and the normal name is an alias.  */
19435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19436 choke me
19437 #else
19438 char (*f) () = $ac_func;
19439 #endif
19440 #ifdef __cplusplus
19441 }
19442 #endif
19443
19444 int
19445 main ()
19446 {
19447 return f != $ac_func;
19448   ;
19449   return 0;
19450 }
19451 _ACEOF
19452 rm -f conftest.$ac_objext conftest$ac_exeext
19453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19454   (eval $ac_link) 2>conftest.er1
19455   ac_status=$?
19456   grep -v '^ *+' conftest.er1 >conftest.err
19457   rm -f conftest.er1
19458   cat conftest.err >&5
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); } &&
19461          { ac_try='test -z "$ac_c_werror_flag"
19462                          || test ! -s conftest.err'
19463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464   (eval $ac_try) 2>&5
19465   ac_status=$?
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); }; } &&
19468          { ac_try='test -s conftest$ac_exeext'
19469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470   (eval $ac_try) 2>&5
19471   ac_status=$?
19472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473   (exit $ac_status); }; }; then
19474   eval "$as_ac_var=yes"
19475 else
19476   echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19478
19479 eval "$as_ac_var=no"
19480 fi
19481 rm -f conftest.err conftest.$ac_objext \
19482       conftest$ac_exeext conftest.$ac_ext
19483 fi
19484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19486 if test `eval echo '${'$as_ac_var'}'` = yes; then
19487
19488 cat >>confdefs.h <<_ACEOF
19489 #define CRAY_STACKSEG_END $ac_func
19490 _ACEOF
19491
19492     break
19493 fi
19494
19495   done
19496 fi
19497
19498 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19499 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19500 if test "${ac_cv_c_stack_direction+set}" = set; then
19501   echo $ECHO_N "(cached) $ECHO_C" >&6
19502 else
19503   if test "$cross_compiling" = yes; then
19504   ac_cv_c_stack_direction=0
19505 else
19506   cat >conftest.$ac_ext <<_ACEOF
19507 /* confdefs.h.  */
19508 _ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h.  */
19512 int
19513 find_stack_direction ()
19514 {
19515   static char *addr = 0;
19516   auto char dummy;
19517   if (addr == 0)
19518     {
19519       addr = &dummy;
19520       return find_stack_direction ();
19521     }
19522   else
19523     return (&dummy > addr) ? 1 : -1;
19524 }
19525
19526 int
19527 main ()
19528 {
19529   exit (find_stack_direction () < 0);
19530 }
19531 _ACEOF
19532 rm -f conftest$ac_exeext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19534   (eval $ac_link) 2>&5
19535   ac_status=$?
19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539   (eval $ac_try) 2>&5
19540   ac_status=$?
19541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542   (exit $ac_status); }; }; then
19543   ac_cv_c_stack_direction=1
19544 else
19545   echo "$as_me: program exited with status $ac_status" >&5
19546 echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19548
19549 ( exit $ac_status )
19550 ac_cv_c_stack_direction=-1
19551 fi
19552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19553 fi
19554 fi
19555 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19556 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19557
19558 cat >>confdefs.h <<_ACEOF
19559 #define STACK_DIRECTION $ac_cv_c_stack_direction
19560 _ACEOF
19561
19562
19563 fi
19564
19565 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19566 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19567 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19568 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19569   echo $ECHO_N "(cached) $ECHO_C" >&6
19570 else
19571   ac_check_lib_save_LIBS=$LIBS
19572 LIBS="-lsun  $LIBS"
19573 cat >conftest.$ac_ext <<_ACEOF
19574 /* confdefs.h.  */
19575 _ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h.  */
19579
19580 /* Override any gcc2 internal prototype to avoid an error.  */
19581 #ifdef __cplusplus
19582 extern "C"
19583 #endif
19584 /* We use char because int might match the return type of a gcc2
19585    builtin and then its argument prototype would still apply.  */
19586 char getmntent ();
19587 int
19588 main ()
19589 {
19590 getmntent ();
19591   ;
19592   return 0;
19593 }
19594 _ACEOF
19595 rm -f conftest.$ac_objext conftest$ac_exeext
19596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19597   (eval $ac_link) 2>conftest.er1
19598   ac_status=$?
19599   grep -v '^ *+' conftest.er1 >conftest.err
19600   rm -f conftest.er1
19601   cat conftest.err >&5
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); } &&
19604          { ac_try='test -z "$ac_c_werror_flag"
19605                          || test ! -s conftest.err'
19606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607   (eval $ac_try) 2>&5
19608   ac_status=$?
19609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610   (exit $ac_status); }; } &&
19611          { ac_try='test -s conftest$ac_exeext'
19612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613   (eval $ac_try) 2>&5
19614   ac_status=$?
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); }; }; then
19617   ac_cv_lib_sun_getmntent=yes
19618 else
19619   echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19621
19622 ac_cv_lib_sun_getmntent=no
19623 fi
19624 rm -f conftest.err conftest.$ac_objext \
19625       conftest$ac_exeext conftest.$ac_ext
19626 LIBS=$ac_check_lib_save_LIBS
19627 fi
19628 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19629 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19630 if test $ac_cv_lib_sun_getmntent = yes; then
19631   LIBS="-lsun $LIBS"
19632 else
19633   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19634 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19635 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19636   echo $ECHO_N "(cached) $ECHO_C" >&6
19637 else
19638   ac_check_lib_save_LIBS=$LIBS
19639 LIBS="-lseq  $LIBS"
19640 cat >conftest.$ac_ext <<_ACEOF
19641 /* confdefs.h.  */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h.  */
19646
19647 /* Override any gcc2 internal prototype to avoid an error.  */
19648 #ifdef __cplusplus
19649 extern "C"
19650 #endif
19651 /* We use char because int might match the return type of a gcc2
19652    builtin and then its argument prototype would still apply.  */
19653 char getmntent ();
19654 int
19655 main ()
19656 {
19657 getmntent ();
19658   ;
19659   return 0;
19660 }
19661 _ACEOF
19662 rm -f conftest.$ac_objext conftest$ac_exeext
19663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19664   (eval $ac_link) 2>conftest.er1
19665   ac_status=$?
19666   grep -v '^ *+' conftest.er1 >conftest.err
19667   rm -f conftest.er1
19668   cat conftest.err >&5
19669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670   (exit $ac_status); } &&
19671          { ac_try='test -z "$ac_c_werror_flag"
19672                          || test ! -s conftest.err'
19673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674   (eval $ac_try) 2>&5
19675   ac_status=$?
19676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677   (exit $ac_status); }; } &&
19678          { ac_try='test -s conftest$ac_exeext'
19679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680   (eval $ac_try) 2>&5
19681   ac_status=$?
19682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683   (exit $ac_status); }; }; then
19684   ac_cv_lib_seq_getmntent=yes
19685 else
19686   echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19688
19689 ac_cv_lib_seq_getmntent=no
19690 fi
19691 rm -f conftest.err conftest.$ac_objext \
19692       conftest$ac_exeext conftest.$ac_ext
19693 LIBS=$ac_check_lib_save_LIBS
19694 fi
19695 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19696 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19697 if test $ac_cv_lib_seq_getmntent = yes; then
19698   LIBS="-lseq $LIBS"
19699 else
19700   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19701 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19702 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19703   echo $ECHO_N "(cached) $ECHO_C" >&6
19704 else
19705   ac_check_lib_save_LIBS=$LIBS
19706 LIBS="-lgen  $LIBS"
19707 cat >conftest.$ac_ext <<_ACEOF
19708 /* confdefs.h.  */
19709 _ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h.  */
19713
19714 /* Override any gcc2 internal prototype to avoid an error.  */
19715 #ifdef __cplusplus
19716 extern "C"
19717 #endif
19718 /* We use char because int might match the return type of a gcc2
19719    builtin and then its argument prototype would still apply.  */
19720 char getmntent ();
19721 int
19722 main ()
19723 {
19724 getmntent ();
19725   ;
19726   return 0;
19727 }
19728 _ACEOF
19729 rm -f conftest.$ac_objext conftest$ac_exeext
19730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19731   (eval $ac_link) 2>conftest.er1
19732   ac_status=$?
19733   grep -v '^ *+' conftest.er1 >conftest.err
19734   rm -f conftest.er1
19735   cat conftest.err >&5
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); } &&
19738          { ac_try='test -z "$ac_c_werror_flag"
19739                          || test ! -s conftest.err'
19740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741   (eval $ac_try) 2>&5
19742   ac_status=$?
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); }; } &&
19745          { ac_try='test -s conftest$ac_exeext'
19746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747   (eval $ac_try) 2>&5
19748   ac_status=$?
19749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750   (exit $ac_status); }; }; then
19751   ac_cv_lib_gen_getmntent=yes
19752 else
19753   echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19755
19756 ac_cv_lib_gen_getmntent=no
19757 fi
19758 rm -f conftest.err conftest.$ac_objext \
19759       conftest$ac_exeext conftest.$ac_ext
19760 LIBS=$ac_check_lib_save_LIBS
19761 fi
19762 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19763 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19764 if test $ac_cv_lib_gen_getmntent = yes; then
19765   LIBS="-lgen $LIBS"
19766 fi
19767
19768 fi
19769
19770 fi
19771
19772
19773 for ac_func in getmntent
19774 do
19775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19776 echo "$as_me:$LINENO: checking for $ac_func" >&5
19777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19778 if eval "test \"\${$as_ac_var+set}\" = set"; then
19779   echo $ECHO_N "(cached) $ECHO_C" >&6
19780 else
19781   cat >conftest.$ac_ext <<_ACEOF
19782 /* confdefs.h.  */
19783 _ACEOF
19784 cat confdefs.h >>conftest.$ac_ext
19785 cat >>conftest.$ac_ext <<_ACEOF
19786 /* end confdefs.h.  */
19787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19789 #define $ac_func innocuous_$ac_func
19790
19791 /* System header to define __stub macros and hopefully few prototypes,
19792     which can conflict with char $ac_func (); below.
19793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19794     <limits.h> exists even on freestanding compilers.  */
19795
19796 #ifdef __STDC__
19797 # include <limits.h>
19798 #else
19799 # include <assert.h>
19800 #endif
19801
19802 #undef $ac_func
19803
19804 /* Override any gcc2 internal prototype to avoid an error.  */
19805 #ifdef __cplusplus
19806 extern "C"
19807 {
19808 #endif
19809 /* We use char because int might match the return type of a gcc2
19810    builtin and then its argument prototype would still apply.  */
19811 char $ac_func ();
19812 /* The GNU C library defines this for functions which it implements
19813     to always fail with ENOSYS.  Some functions are actually named
19814     something starting with __ and the normal name is an alias.  */
19815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19816 choke me
19817 #else
19818 char (*f) () = $ac_func;
19819 #endif
19820 #ifdef __cplusplus
19821 }
19822 #endif
19823
19824 int
19825 main ()
19826 {
19827 return f != $ac_func;
19828   ;
19829   return 0;
19830 }
19831 _ACEOF
19832 rm -f conftest.$ac_objext conftest$ac_exeext
19833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19834   (eval $ac_link) 2>conftest.er1
19835   ac_status=$?
19836   grep -v '^ *+' conftest.er1 >conftest.err
19837   rm -f conftest.er1
19838   cat conftest.err >&5
19839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840   (exit $ac_status); } &&
19841          { ac_try='test -z "$ac_c_werror_flag"
19842                          || test ! -s conftest.err'
19843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844   (eval $ac_try) 2>&5
19845   ac_status=$?
19846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847   (exit $ac_status); }; } &&
19848          { ac_try='test -s conftest$ac_exeext'
19849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850   (eval $ac_try) 2>&5
19851   ac_status=$?
19852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853   (exit $ac_status); }; }; then
19854   eval "$as_ac_var=yes"
19855 else
19856   echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19858
19859 eval "$as_ac_var=no"
19860 fi
19861 rm -f conftest.err conftest.$ac_objext \
19862       conftest$ac_exeext conftest.$ac_ext
19863 fi
19864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19866 if test `eval echo '${'$as_ac_var'}'` = yes; then
19867   cat >>confdefs.h <<_ACEOF
19868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19869 _ACEOF
19870
19871 fi
19872 done
19873
19874
19875 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19876 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19877 if test "${ac_cv_func_closedir_void+set}" = set; then
19878   echo $ECHO_N "(cached) $ECHO_C" >&6
19879 else
19880   if test "$cross_compiling" = yes; then
19881   ac_cv_func_closedir_void=yes
19882 else
19883   cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h.  */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h.  */
19889 $ac_includes_default
19890 #include <$ac_header_dirent>
19891 #ifndef __cplusplus
19892 int closedir ();
19893 #endif
19894
19895 int
19896 main ()
19897 {
19898 exit (closedir (opendir (".")) != 0);
19899   ;
19900   return 0;
19901 }
19902 _ACEOF
19903 rm -f conftest$ac_exeext
19904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19905   (eval $ac_link) 2>&5
19906   ac_status=$?
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910   (eval $ac_try) 2>&5
19911   ac_status=$?
19912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913   (exit $ac_status); }; }; then
19914   ac_cv_func_closedir_void=no
19915 else
19916   echo "$as_me: program exited with status $ac_status" >&5
19917 echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19919
19920 ( exit $ac_status )
19921 ac_cv_func_closedir_void=yes
19922 fi
19923 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19924 fi
19925 fi
19926 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
19927 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
19928 if test $ac_cv_func_closedir_void = yes; then
19929
19930 cat >>confdefs.h <<\_ACEOF
19931 #define CLOSEDIR_VOID 1
19932 _ACEOF
19933
19934 fi
19935
19936 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19937 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19938 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19939   echo $ECHO_N "(cached) $ECHO_C" >&6
19940 else
19941   if test "$cross_compiling" = yes; then
19942   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19943 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19944    { (exit 1); exit 1; }; }
19945 else
19946   cat >conftest.$ac_ext <<_ACEOF
19947 /* confdefs.h.  */
19948 _ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h.  */
19952 #if HAVE_UNISTD_H
19953 # include <unistd.h>
19954 #endif
19955
19956 int
19957 main ()
19958 {
19959 /* If this system has a BSD-style setpgrp which takes arguments,
19960   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19961   exit successfully. */
19962   exit (setpgrp (1,1) == -1 ? 0 : 1);
19963   ;
19964   return 0;
19965 }
19966 _ACEOF
19967 rm -f conftest$ac_exeext
19968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19969   (eval $ac_link) 2>&5
19970   ac_status=$?
19971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974   (eval $ac_try) 2>&5
19975   ac_status=$?
19976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977   (exit $ac_status); }; }; then
19978   ac_cv_func_setpgrp_void=no
19979 else
19980   echo "$as_me: program exited with status $ac_status" >&5
19981 echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19983
19984 ( exit $ac_status )
19985 ac_cv_func_setpgrp_void=yes
19986 fi
19987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19988 fi
19989 fi
19990 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19991 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19992 if test $ac_cv_func_setpgrp_void = yes; then
19993
19994 cat >>confdefs.h <<\_ACEOF
19995 #define SETPGRP_VOID 1
19996 _ACEOF
19997
19998 fi
19999                       # AC_FUNC_FNMATCH    dnl use local version
20000
20001
20002 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20003 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20004 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20005   echo $ECHO_N "(cached) $ECHO_C" >&6
20006 else
20007   ac_check_lib_save_LIBS=$LIBS
20008 LIBS="-lxpg4  $LIBS"
20009 cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h.  */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h.  */
20015
20016 /* Override any gcc2 internal prototype to avoid an error.  */
20017 #ifdef __cplusplus
20018 extern "C"
20019 #endif
20020 /* We use char because int might match the return type of a gcc2
20021    builtin and then its argument prototype would still apply.  */
20022 char setlocale ();
20023 int
20024 main ()
20025 {
20026 setlocale ();
20027   ;
20028   return 0;
20029 }
20030 _ACEOF
20031 rm -f conftest.$ac_objext conftest$ac_exeext
20032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20033   (eval $ac_link) 2>conftest.er1
20034   ac_status=$?
20035   grep -v '^ *+' conftest.er1 >conftest.err
20036   rm -f conftest.er1
20037   cat conftest.err >&5
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); } &&
20040          { ac_try='test -z "$ac_c_werror_flag"
20041                          || test ! -s conftest.err'
20042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043   (eval $ac_try) 2>&5
20044   ac_status=$?
20045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046   (exit $ac_status); }; } &&
20047          { ac_try='test -s conftest$ac_exeext'
20048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049   (eval $ac_try) 2>&5
20050   ac_status=$?
20051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); }; }; then
20053   ac_cv_lib_xpg4_setlocale=yes
20054 else
20055   echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20057
20058 ac_cv_lib_xpg4_setlocale=no
20059 fi
20060 rm -f conftest.err conftest.$ac_objext \
20061       conftest$ac_exeext conftest.$ac_ext
20062 LIBS=$ac_check_lib_save_LIBS
20063 fi
20064 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20065 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20066 if test $ac_cv_lib_xpg4_setlocale = yes; then
20067   LIBS="$LIBS -lxpg4"
20068 fi
20069
20070
20071
20072
20073 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20074 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20075 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20076   echo $ECHO_N "(cached) $ECHO_C" >&6
20077 else
20078   ac_check_lib_save_LIBS=$LIBS
20079 LIBS="-lsun  $LIBS"
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h.  */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h.  */
20086
20087 /* Override any gcc2 internal prototype to avoid an error.  */
20088 #ifdef __cplusplus
20089 extern "C"
20090 #endif
20091 /* We use char because int might match the return type of a gcc2
20092    builtin and then its argument prototype would still apply.  */
20093 char getpwnam ();
20094 int
20095 main ()
20096 {
20097 getpwnam ();
20098   ;
20099   return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20104   (eval $ac_link) 2>conftest.er1
20105   ac_status=$?
20106   grep -v '^ *+' conftest.er1 >conftest.err
20107   rm -f conftest.er1
20108   cat conftest.err >&5
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); } &&
20111          { ac_try='test -z "$ac_c_werror_flag"
20112                          || test ! -s conftest.err'
20113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114   (eval $ac_try) 2>&5
20115   ac_status=$?
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); }; } &&
20118          { ac_try='test -s conftest$ac_exeext'
20119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120   (eval $ac_try) 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; }; then
20124   ac_cv_lib_sun_getpwnam=yes
20125 else
20126   echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20128
20129 ac_cv_lib_sun_getpwnam=no
20130 fi
20131 rm -f conftest.err conftest.$ac_objext \
20132       conftest$ac_exeext conftest.$ac_ext
20133 LIBS=$ac_check_lib_save_LIBS
20134 fi
20135 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20136 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20137 if test $ac_cv_lib_sun_getpwnam = yes; then
20138   cat >>confdefs.h <<_ACEOF
20139 #define HAVE_LIBSUN 1
20140 _ACEOF
20141
20142   LIBS="-lsun $LIBS"
20143
20144 fi
20145
20146
20147
20148 for ac_header in zlib.h
20149 do
20150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20152   echo "$as_me:$LINENO: checking for $ac_header" >&5
20153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20155   echo $ECHO_N "(cached) $ECHO_C" >&6
20156 fi
20157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20159 else
20160   # Is the header compilable?
20161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20163 cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h.  */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h.  */
20169 $ac_includes_default
20170 #include <$ac_header>
20171 _ACEOF
20172 rm -f conftest.$ac_objext
20173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20174   (eval $ac_compile) 2>conftest.er1
20175   ac_status=$?
20176   grep -v '^ *+' conftest.er1 >conftest.err
20177   rm -f conftest.er1
20178   cat conftest.err >&5
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); } &&
20181          { ac_try='test -z "$ac_c_werror_flag"
20182                          || test ! -s conftest.err'
20183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184   (eval $ac_try) 2>&5
20185   ac_status=$?
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); }; } &&
20188          { ac_try='test -s conftest.$ac_objext'
20189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190   (eval $ac_try) 2>&5
20191   ac_status=$?
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); }; }; then
20194   ac_header_compiler=yes
20195 else
20196   echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20198
20199 ac_header_compiler=no
20200 fi
20201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20203 echo "${ECHO_T}$ac_header_compiler" >&6
20204
20205 # Is the header present?
20206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20208 cat >conftest.$ac_ext <<_ACEOF
20209 /* confdefs.h.  */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h.  */
20214 #include <$ac_header>
20215 _ACEOF
20216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20218   ac_status=$?
20219   grep -v '^ *+' conftest.er1 >conftest.err
20220   rm -f conftest.er1
20221   cat conftest.err >&5
20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); } >/dev/null; then
20224   if test -s conftest.err; then
20225     ac_cpp_err=$ac_c_preproc_warn_flag
20226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20227   else
20228     ac_cpp_err=
20229   fi
20230 else
20231   ac_cpp_err=yes
20232 fi
20233 if test -z "$ac_cpp_err"; then
20234   ac_header_preproc=yes
20235 else
20236   echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20238
20239   ac_header_preproc=no
20240 fi
20241 rm -f conftest.err conftest.$ac_ext
20242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20243 echo "${ECHO_T}$ac_header_preproc" >&6
20244
20245 # So?  What about this header?
20246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20247   yes:no: )
20248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20252     ac_header_preproc=yes
20253     ;;
20254   no:yes:* )
20255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20267     (
20268       cat <<\_ASBOX
20269 ## ------------------------------------------ ##
20270 ## Report this to the AC_PACKAGE_NAME lists.  ##
20271 ## ------------------------------------------ ##
20272 _ASBOX
20273     ) |
20274       sed "s/^/$as_me: WARNING:     /" >&2
20275     ;;
20276 esac
20277 echo "$as_me:$LINENO: checking for $ac_header" >&5
20278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20280   echo $ECHO_N "(cached) $ECHO_C" >&6
20281 else
20282   eval "$as_ac_Header=\$ac_header_preproc"
20283 fi
20284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20286
20287 fi
20288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20289   cat >>confdefs.h <<_ACEOF
20290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20291 _ACEOF
20292
20293 fi
20294
20295 done
20296
20297 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20298 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20299 if test "${ac_cv_lib_z_deflate+set}" = set; then
20300   echo $ECHO_N "(cached) $ECHO_C" >&6
20301 else
20302   ac_check_lib_save_LIBS=$LIBS
20303 LIBS="-lz  $LIBS"
20304 cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h.  */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h.  */
20310
20311 /* Override any gcc2 internal prototype to avoid an error.  */
20312 #ifdef __cplusplus
20313 extern "C"
20314 #endif
20315 /* We use char because int might match the return type of a gcc2
20316    builtin and then its argument prototype would still apply.  */
20317 char deflate ();
20318 int
20319 main ()
20320 {
20321 deflate ();
20322   ;
20323   return 0;
20324 }
20325 _ACEOF
20326 rm -f conftest.$ac_objext conftest$ac_exeext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20328   (eval $ac_link) 2>conftest.er1
20329   ac_status=$?
20330   grep -v '^ *+' conftest.er1 >conftest.err
20331   rm -f conftest.er1
20332   cat conftest.err >&5
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); } &&
20335          { ac_try='test -z "$ac_c_werror_flag"
20336                          || test ! -s conftest.err'
20337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338   (eval $ac_try) 2>&5
20339   ac_status=$?
20340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341   (exit $ac_status); }; } &&
20342          { ac_try='test -s conftest$ac_exeext'
20343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344   (eval $ac_try) 2>&5
20345   ac_status=$?
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); }; }; then
20348   ac_cv_lib_z_deflate=yes
20349 else
20350   echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20352
20353 ac_cv_lib_z_deflate=no
20354 fi
20355 rm -f conftest.err conftest.$ac_objext \
20356       conftest$ac_exeext conftest.$ac_ext
20357 LIBS=$ac_check_lib_save_LIBS
20358 fi
20359 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20360 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20361 if test $ac_cv_lib_z_deflate = yes; then
20362   FDLIBS="-lz"
20363 fi
20364
20365 have_zlib=no
20366 if test x$FDLIBS = x-lz; then
20367   cat >>confdefs.h <<\_ACEOF
20368 #define HAVE_LIBZ 1
20369 _ACEOF
20370
20371   have_zlib=yes
20372 fi
20373
20374 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20375   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20376 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20377 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20378   echo $ECHO_N "(cached) $ECHO_C" >&6
20379 fi
20380 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20381 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20382 else
20383   # Is the header compilable?
20384 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20385 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20386 cat >conftest.$ac_ext <<_ACEOF
20387 /* confdefs.h.  */
20388 _ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h.  */
20392 $ac_includes_default
20393 #include <sys/acl.h>
20394 _ACEOF
20395 rm -f conftest.$ac_objext
20396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20397   (eval $ac_compile) 2>conftest.er1
20398   ac_status=$?
20399   grep -v '^ *+' conftest.er1 >conftest.err
20400   rm -f conftest.er1
20401   cat conftest.err >&5
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); } &&
20404          { ac_try='test -z "$ac_c_werror_flag"
20405                          || test ! -s conftest.err'
20406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407   (eval $ac_try) 2>&5
20408   ac_status=$?
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); }; } &&
20411          { ac_try='test -s conftest.$ac_objext'
20412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413   (eval $ac_try) 2>&5
20414   ac_status=$?
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); }; }; then
20417   ac_header_compiler=yes
20418 else
20419   echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20421
20422 ac_header_compiler=no
20423 fi
20424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20426 echo "${ECHO_T}$ac_header_compiler" >&6
20427
20428 # Is the header present?
20429 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20430 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20431 cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h.  */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h.  */
20437 #include <sys/acl.h>
20438 _ACEOF
20439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20440   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20441   ac_status=$?
20442   grep -v '^ *+' conftest.er1 >conftest.err
20443   rm -f conftest.er1
20444   cat conftest.err >&5
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); } >/dev/null; then
20447   if test -s conftest.err; then
20448     ac_cpp_err=$ac_c_preproc_warn_flag
20449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20450   else
20451     ac_cpp_err=
20452   fi
20453 else
20454   ac_cpp_err=yes
20455 fi
20456 if test -z "$ac_cpp_err"; then
20457   ac_header_preproc=yes
20458 else
20459   echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20461
20462   ac_header_preproc=no
20463 fi
20464 rm -f conftest.err conftest.$ac_ext
20465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20466 echo "${ECHO_T}$ac_header_preproc" >&6
20467
20468 # So?  What about this header?
20469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20470   yes:no: )
20471     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20472 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20473     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20474 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20475     ac_header_preproc=yes
20476     ;;
20477   no:yes:* )
20478     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20479 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20480     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20481 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20482     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20483 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20484     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20485 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20486     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20487 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20488     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20489 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20490     (
20491       cat <<\_ASBOX
20492 ## ------------------------------------------ ##
20493 ## Report this to the AC_PACKAGE_NAME lists.  ##
20494 ## ------------------------------------------ ##
20495 _ASBOX
20496     ) |
20497       sed "s/^/$as_me: WARNING:     /" >&2
20498     ;;
20499 esac
20500 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20501 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20502 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20503   echo $ECHO_N "(cached) $ECHO_C" >&6
20504 else
20505   ac_cv_header_sys_acl_h=$ac_header_preproc
20506 fi
20507 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20508 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20509
20510 fi
20511
20512
20513 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20514 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20515 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20516   echo $ECHO_N "(cached) $ECHO_C" >&6
20517 else
20518   ac_check_lib_save_LIBS=$LIBS
20519 LIBS="-lacl  $LIBS"
20520 cat >conftest.$ac_ext <<_ACEOF
20521 /* confdefs.h.  */
20522 _ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h.  */
20526
20527 /* Override any gcc2 internal prototype to avoid an error.  */
20528 #ifdef __cplusplus
20529 extern "C"
20530 #endif
20531 /* We use char because int might match the return type of a gcc2
20532    builtin and then its argument prototype would still apply.  */
20533 char acl_get_file ();
20534 int
20535 main ()
20536 {
20537 acl_get_file ();
20538   ;
20539   return 0;
20540 }
20541 _ACEOF
20542 rm -f conftest.$ac_objext conftest$ac_exeext
20543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20544   (eval $ac_link) 2>conftest.er1
20545   ac_status=$?
20546   grep -v '^ *+' conftest.er1 >conftest.err
20547   rm -f conftest.er1
20548   cat conftest.err >&5
20549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550   (exit $ac_status); } &&
20551          { ac_try='test -z "$ac_c_werror_flag"
20552                          || test ! -s conftest.err'
20553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554   (eval $ac_try) 2>&5
20555   ac_status=$?
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); }; } &&
20558          { ac_try='test -s conftest$ac_exeext'
20559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560   (eval $ac_try) 2>&5
20561   ac_status=$?
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); }; }; then
20564   ac_cv_lib_acl_acl_get_file=yes
20565 else
20566   echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20568
20569 ac_cv_lib_acl_acl_get_file=no
20570 fi
20571 rm -f conftest.err conftest.$ac_objext \
20572       conftest$ac_exeext conftest.$ac_ext
20573 LIBS=$ac_check_lib_save_LIBS
20574 fi
20575 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20576 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20577 if test $ac_cv_lib_acl_acl_get_file = yes; then
20578   FDLIBS="-lacl $FDLIBS"
20579 fi
20580
20581 have_acl=no
20582 if test $ac_cv_lib_acl_acl_get_file = yes; then
20583    cat >>confdefs.h <<\_ACEOF
20584 #define HAVE_ACL 1
20585 _ACEOF
20586
20587    have_acl=yes
20588 fi
20589
20590 PTHREAD_LIB=""
20591 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20592 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20593 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20594   echo $ECHO_N "(cached) $ECHO_C" >&6
20595 else
20596   ac_check_lib_save_LIBS=$LIBS
20597 LIBS="-lpthread  $LIBS"
20598 cat >conftest.$ac_ext <<_ACEOF
20599 /* confdefs.h.  */
20600 _ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h.  */
20604
20605 /* Override any gcc2 internal prototype to avoid an error.  */
20606 #ifdef __cplusplus
20607 extern "C"
20608 #endif
20609 /* We use char because int might match the return type of a gcc2
20610    builtin and then its argument prototype would still apply.  */
20611 char pthread_create ();
20612 int
20613 main ()
20614 {
20615 pthread_create ();
20616   ;
20617   return 0;
20618 }
20619 _ACEOF
20620 rm -f conftest.$ac_objext conftest$ac_exeext
20621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20622   (eval $ac_link) 2>conftest.er1
20623   ac_status=$?
20624   grep -v '^ *+' conftest.er1 >conftest.err
20625   rm -f conftest.er1
20626   cat conftest.err >&5
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); } &&
20629          { ac_try='test -z "$ac_c_werror_flag"
20630                          || test ! -s conftest.err'
20631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632   (eval $ac_try) 2>&5
20633   ac_status=$?
20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635   (exit $ac_status); }; } &&
20636          { ac_try='test -s conftest$ac_exeext'
20637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638   (eval $ac_try) 2>&5
20639   ac_status=$?
20640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641   (exit $ac_status); }; }; then
20642   ac_cv_lib_pthread_pthread_create=yes
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647 ac_cv_lib_pthread_pthread_create=no
20648 fi
20649 rm -f conftest.err conftest.$ac_objext \
20650       conftest$ac_exeext conftest.$ac_ext
20651 LIBS=$ac_check_lib_save_LIBS
20652 fi
20653 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20654 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20655 if test $ac_cv_lib_pthread_pthread_create = yes; then
20656   PTHREAD_LIB="-lpthread"
20657 else
20658   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20659 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20660 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20661   echo $ECHO_N "(cached) $ECHO_C" >&6
20662 else
20663   ac_check_lib_save_LIBS=$LIBS
20664 LIBS="-lpthreads  $LIBS"
20665 cat >conftest.$ac_ext <<_ACEOF
20666 /* confdefs.h.  */
20667 _ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h.  */
20671
20672 /* Override any gcc2 internal prototype to avoid an error.  */
20673 #ifdef __cplusplus
20674 extern "C"
20675 #endif
20676 /* We use char because int might match the return type of a gcc2
20677    builtin and then its argument prototype would still apply.  */
20678 char pthread_create ();
20679 int
20680 main ()
20681 {
20682 pthread_create ();
20683   ;
20684   return 0;
20685 }
20686 _ACEOF
20687 rm -f conftest.$ac_objext conftest$ac_exeext
20688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20689   (eval $ac_link) 2>conftest.er1
20690   ac_status=$?
20691   grep -v '^ *+' conftest.er1 >conftest.err
20692   rm -f conftest.er1
20693   cat conftest.err >&5
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); } &&
20696          { ac_try='test -z "$ac_c_werror_flag"
20697                          || test ! -s conftest.err'
20698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699   (eval $ac_try) 2>&5
20700   ac_status=$?
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); }; } &&
20703          { ac_try='test -s conftest$ac_exeext'
20704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705   (eval $ac_try) 2>&5
20706   ac_status=$?
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); }; }; then
20709   ac_cv_lib_pthreads_pthread_create=yes
20710 else
20711   echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20713
20714 ac_cv_lib_pthreads_pthread_create=no
20715 fi
20716 rm -f conftest.err conftest.$ac_objext \
20717       conftest$ac_exeext conftest.$ac_ext
20718 LIBS=$ac_check_lib_save_LIBS
20719 fi
20720 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20721 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20722 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20723   PTHREAD_LIB="-lpthreads"
20724 else
20725   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20726 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20727 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20728   echo $ECHO_N "(cached) $ECHO_C" >&6
20729 else
20730   ac_check_lib_save_LIBS=$LIBS
20731 LIBS="-lc_r  $LIBS"
20732 cat >conftest.$ac_ext <<_ACEOF
20733 /* confdefs.h.  */
20734 _ACEOF
20735 cat confdefs.h >>conftest.$ac_ext
20736 cat >>conftest.$ac_ext <<_ACEOF
20737 /* end confdefs.h.  */
20738
20739 /* Override any gcc2 internal prototype to avoid an error.  */
20740 #ifdef __cplusplus
20741 extern "C"
20742 #endif
20743 /* We use char because int might match the return type of a gcc2
20744    builtin and then its argument prototype would still apply.  */
20745 char pthread_create ();
20746 int
20747 main ()
20748 {
20749 pthread_create ();
20750   ;
20751   return 0;
20752 }
20753 _ACEOF
20754 rm -f conftest.$ac_objext conftest$ac_exeext
20755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20756   (eval $ac_link) 2>conftest.er1
20757   ac_status=$?
20758   grep -v '^ *+' conftest.er1 >conftest.err
20759   rm -f conftest.er1
20760   cat conftest.err >&5
20761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762   (exit $ac_status); } &&
20763          { ac_try='test -z "$ac_c_werror_flag"
20764                          || test ! -s conftest.err'
20765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766   (eval $ac_try) 2>&5
20767   ac_status=$?
20768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769   (exit $ac_status); }; } &&
20770          { ac_try='test -s conftest$ac_exeext'
20771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772   (eval $ac_try) 2>&5
20773   ac_status=$?
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); }; }; then
20776   ac_cv_lib_c_r_pthread_create=yes
20777 else
20778   echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20780
20781 ac_cv_lib_c_r_pthread_create=no
20782 fi
20783 rm -f conftest.err conftest.$ac_objext \
20784       conftest$ac_exeext conftest.$ac_ext
20785 LIBS=$ac_check_lib_save_LIBS
20786 fi
20787 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20788 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20789 if test $ac_cv_lib_c_r_pthread_create = yes; then
20790   PTHREAD_LIB="-lc_r"
20791 else
20792   echo "$as_me:$LINENO: checking for pthread_create" >&5
20793 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
20794 if test "${ac_cv_func_pthread_create+set}" = set; then
20795   echo $ECHO_N "(cached) $ECHO_C" >&6
20796 else
20797   cat >conftest.$ac_ext <<_ACEOF
20798 /* confdefs.h.  */
20799 _ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h.  */
20803 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
20804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20805 #define pthread_create innocuous_pthread_create
20806
20807 /* System header to define __stub macros and hopefully few prototypes,
20808     which can conflict with char pthread_create (); below.
20809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20810     <limits.h> exists even on freestanding compilers.  */
20811
20812 #ifdef __STDC__
20813 # include <limits.h>
20814 #else
20815 # include <assert.h>
20816 #endif
20817
20818 #undef pthread_create
20819
20820 /* Override any gcc2 internal prototype to avoid an error.  */
20821 #ifdef __cplusplus
20822 extern "C"
20823 {
20824 #endif
20825 /* We use char because int might match the return type of a gcc2
20826    builtin and then its argument prototype would still apply.  */
20827 char pthread_create ();
20828 /* The GNU C library defines this for functions which it implements
20829     to always fail with ENOSYS.  Some functions are actually named
20830     something starting with __ and the normal name is an alias.  */
20831 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
20832 choke me
20833 #else
20834 char (*f) () = pthread_create;
20835 #endif
20836 #ifdef __cplusplus
20837 }
20838 #endif
20839
20840 int
20841 main ()
20842 {
20843 return f != pthread_create;
20844   ;
20845   return 0;
20846 }
20847 _ACEOF
20848 rm -f conftest.$ac_objext conftest$ac_exeext
20849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20850   (eval $ac_link) 2>conftest.er1
20851   ac_status=$?
20852   grep -v '^ *+' conftest.er1 >conftest.err
20853   rm -f conftest.er1
20854   cat conftest.err >&5
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); } &&
20857          { ac_try='test -z "$ac_c_werror_flag"
20858                          || test ! -s conftest.err'
20859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860   (eval $ac_try) 2>&5
20861   ac_status=$?
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); }; } &&
20864          { ac_try='test -s conftest$ac_exeext'
20865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866   (eval $ac_try) 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); }; }; then
20870   ac_cv_func_pthread_create=yes
20871 else
20872   echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20874
20875 ac_cv_func_pthread_create=no
20876 fi
20877 rm -f conftest.err conftest.$ac_objext \
20878       conftest$ac_exeext conftest.$ac_ext
20879 fi
20880 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
20881 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
20882
20883
20884 fi
20885
20886
20887 fi
20888
20889
20890 fi
20891
20892
20893
20894 cat >>confdefs.h <<\_ACEOF
20895 #define FDLIBS 1
20896 _ACEOF
20897
20898
20899
20900 CFLAGS=${CFLAGS--O}
20901 LDFLAGS=${LDFLAGS--O}
20902 DB_LIBS="${SQL_LFLAGS}"
20903
20904 CPPFLAGS="$CPPFLAGS"
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919 OBJLIST=
20920
20921
20922 lld="lld"
20923 llu="llu"
20924
20925 WCFLAGS=
20926 WLDFLAGS=
20927
20928 #
20929 # Finally we set appropriate distribution specific
20930 #  variables and defaults
20931 #
20932 # PFILES are platform specific files
20933 PFILES="platforms/Makefile"
20934 PSCMD="ps -e"
20935 WIN32=
20936 MACOSX=
20937 hostname=`uname -n | cut -d '.' -f 1`
20938 case "$DISTNAME" in
20939 aix)
20940         DISTVER=`uname -r`
20941         PSCMD="ps -e -o pid,comm"
20942         PFILES="${PFILES} \
20943            platforms/aix/Makefile"
20944         TAPEDRIVE="/dev/rmt0.1"
20945   ;;
20946 alpha)
20947         DISTVER=`uname -r`
20948         PTHREAD_LIB="-lpthread -lexc"
20949         if test "${CC}" = "gcc" ; then
20950            lld="lld"
20951            llu="llu"
20952         else
20953            lld="ld"
20954            llu="lu"
20955         fi
20956         TAPEDRIVE="/dev/nrmt0"
20957   ;;
20958 bsdi)
20959         DISTVER=`uname -a |awk '{print $3}'`
20960         TAPEDRIVE="/dev/nrmt0"
20961         PTHREAD_LIB="-pthread"
20962         CFLAGS="${CFLAGS} -pthread"
20963         PSCMD="ps -ax -o pid,command"
20964         lld="qd"
20965         llu="qu"
20966         PFILES="${PFILES} \
20967             platforms/bsdi/Makefile \
20968             platforms/bsdi/bacula-fd \
20969             platforms/bsdi/bacula-sd \
20970             platforms/bsdi/bacula-dir"
20971         largefile_support="yes"
20972   ;;
20973 cygwin)
20974         DISTVER=`uname -a |awk '{print $3}'`
20975         TAPEDRIVE="/dev/nrst0"
20976         WIN32=win32
20977         WCFLAGS="-mwindows"
20978         WLDFLAGS="-mwindows"
20979   ;;
20980 darwin)
20981         DISTVER=`uname -r`
20982         TAPEDRIVE="/dev/nst0"
20983         PSCMD="ps -e -o pid,command"
20984         MACOSX=macosx
20985         PFILES="${PFILES} \
20986            platforms/darwin/Makefile"
20987   ;;
20988 debian)
20989         DISTVER=`cat /etc/debian_version`
20990         TAPEDRIVE="/dev/nrst0"
20991         PSCMD="ps -e -o pid,command"
20992   ;;
20993 freebsd)
20994         DISTVER=`uname -a |awk '{print $3}'`
20995         VER=`echo $DISTVER | cut -c 1`
20996         if test x$VER = x4 ; then
20997            PTHREAD_LIB="-pthread"
20998            CFLAGS="${CFLAGS} -pthread"
20999         fi
21000         lld="qd"
21001         llu="qu"
21002         TAPEDRIVE="/dev/nrsa0"
21003         PSCMD="ps -ax -o pid,command"
21004         PFILES="${PFILES} \
21005             platforms/freebsd/Makefile \
21006             platforms/freebsd/bacula-fd \
21007             platforms/freebsd/bacula-sd \
21008             platforms/freebsd/bacula-dir"
21009         largefile_support="yes"
21010   ;;
21011 hpux)
21012         PSCMD="UNIX95=1 ps -e -o pid,comm"
21013         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21014         DISTVER=`uname -r`
21015         TAPEDRIVE="/dev/rmt/0hnb"
21016         PTHREAD_LIB="-lpthread"
21017         cat >>confdefs.h <<\_ACEOF
21018 #define _INCLUDE_LONGLONG 1
21019 _ACEOF
21020
21021   ;;
21022 irix)
21023         DISTVER=`uname -r`
21024         TAPEDRIVE="/dev/rmt/0cbn"
21025         PSCMD="ps -e -o pid,comm"
21026         PFILES="${PFILES} \
21027             platforms/irix/Makefile \
21028             platforms/irix/bacula-fd \
21029             platforms/irix/bacula-sd \
21030             platforms/irix/bacula-dir"
21031   ;;
21032 netbsd)
21033         DISTVER=`uname -a |awk '{print $3}'`
21034         lld="qd"
21035         llu="qu"
21036         TAPEDRIVE="/dev/nrst0"
21037         PSCMD="ps -ax -o pid,command"
21038         PTHREAD_LIB="-pthread"
21039         CFLAGS="${CFLAGS} -pthread"
21040   ;;
21041 openbsd)
21042         DISTVER=`uname -a |awk '{print $3}'`
21043         lld="qd"
21044         llu="qu"
21045         TAPEDRIVE="/dev/nrst0"
21046         PSCMD="ps -ax -o pid,command"
21047         PTHREAD_LIB="-pthread"
21048         CFLAGS="${CFLAGS} -pthread"
21049         PFILES="${PFILES} \
21050             platforms/openbsd/Makefile \
21051             platforms/openbsd/bacula-fd \
21052             platforms/openbsd/bacula-sd \
21053             platforms/openbsd/bacula-dir"
21054   ;;
21055 redhat)
21056         if test -f /etc/whitebox-release ; then
21057            f=/etc/whitebox-release
21058         else
21059            f=/etc/redhat-release
21060         fi
21061         if test `cat $f | grep release |\
21062                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21063            DISTVER="Enterprise "`cat $f | grep release |\
21064                     cut -f 6 -d ' '`
21065         else
21066             DISTVER=`cat /etc/redhat-release | grep release |\
21067                      cut -f 5 -d ' '`
21068         fi
21069         TAPEDRIVE="/dev/nst0"
21070         PSCMD="ps -e -o pid,command"
21071         PFILES="${PFILES} \
21072             platforms/redhat/Makefile \
21073             platforms/redhat/bacula-fd \
21074             platforms/redhat/bacula-sd \
21075             platforms/redhat/bacula-dir \
21076             platforms/redhat/bacula.spec \
21077             "
21078         hostname=`hostname -s`
21079   ;;
21080 mandrake)
21081         DISTVER=`cat /etc/mandrake-release | grep release |\
21082            cut -f 5 -d ' '`
21083         TAPEDRIVE="/dev/nst0"
21084         PSCMD="ps -e -o pid,command"
21085         PFILES="${PFILES} \
21086             platforms/mandrake/Makefile \
21087             platforms/mandrake/bacula-fd \
21088             platforms/mandrake/bacula-sd \
21089             platforms/mandrake/bacula-dir \
21090             platforms/mandrake/bacula.spec \
21091             "
21092   ;;
21093 gentoo)
21094         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21095         TAPEDRIVE="/dev/nst0"
21096         PSCMD="ps -e -o pid,command"
21097         PFILES="${PFILES} \
21098             platforms/gentoo/Makefile \
21099          platforms/gentoo/bacula-init \
21100             platforms/gentoo/bacula-fd \
21101             platforms/gentoo/bacula-sd \
21102             platforms/gentoo/bacula-dir"
21103   ;;
21104 slackware)
21105         DISTVER=`cat /etc/slackware-version`
21106         TAPEDRIVE="/dev/nst0"
21107         PSCMD="ps -e -o pid,command"
21108         PFILES="${PFILES} \
21109             platforms/slackware/Makefile \
21110             platforms/slackware/rc.bacula-fd \
21111             platforms/slackware/rc.bacula-sd \
21112             platforms/slackware/rc.bacula-dir\
21113             platforms/slackware/functions.bacula"
21114   ;;
21115 solaris)
21116         DISTVER=`uname -r`
21117         TAPEDRIVE="/dev/rmt/0cbn"
21118         PSCMD="ps -e -o pid,comm"
21119         PFILES="${PFILES} \
21120             platforms/solaris/Makefile \
21121             platforms/solaris/bacula-fd \
21122             platforms/solaris/bacula-sd \
21123             platforms/solaris/bacula-dir"
21124         if test x$DISTVER = x5.6 ; then
21125             cat >>confdefs.h <<\_ACEOF
21126 #define HAVE_OLD_SOCKOPT 1
21127 _ACEOF
21128
21129         fi
21130         LIBS="$LIBS -lresolv"
21131   ;;
21132 suse)
21133         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21134             cut -f 3 -d ' '`
21135         TAPEDRIVE="/dev/nst0"
21136         PSCMD="ps -e -o pid,command"
21137         PFILES="${PFILES} \
21138             platforms/suse/Makefile \
21139             platforms/suse/bacula-fd \
21140             platforms/suse/bacula-sd \
21141             platforms/suse/bacula-dir \
21142             platforms/suse/bacula \
21143             platforms/suse/bacula.spec"
21144   ;;
21145 suse5)
21146         DISTNAME=suse
21147         DISTVER=5.x
21148         TAPEDRIVE="/dev/nst0"
21149         PSCMD="ps -e -o pid,command"
21150         PFILES="${PFILES} \
21151             platforms/suse/Makefile \
21152             platforms/suse/bacula-fd \
21153             platforms/suse/bacula-sd \
21154             platforms/suse/bacula-dir"
21155   ;;
21156 unknown)
21157         DISTVER=unknown
21158         TAPEDRIVE="/dev/nst0"
21159   ;;
21160 *)
21161   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21162   ;;
21163 esac
21164
21165
21166
21167 LIBS="$PTHREAD_LIB $LIBS"
21168
21169 cat >>confdefs.h <<_ACEOF
21170 #define lld "$lld"
21171 _ACEOF
21172
21173 cat >>confdefs.h <<_ACEOF
21174 #define llu "$llu"
21175 _ACEOF
21176
21177
21178
21179
21180
21181
21182
21183
21184 MCOMMON=./autoconf/Make.common
21185
21186
21187 if test "x${subsysdir}" = "x${sbindir}" ; then
21188    echo " "
21189    echo " "
21190    echo "You have set both --sbindir and --with-subsys-dir"
21191    echo "  equal to: ${subsysdir} "
21192    echo "This is not permitted. Please reconfigure."
21193    echo " "
21194    echo "Aborting configuration ..."
21195    echo " "
21196    echo " "
21197    exit 1
21198 fi
21199
21200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ac_config_files="$ac_config_files autoconf/Make.common 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 scripts/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf src/Makefile src/host.h src/console/Makefile src/console/bconsole.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/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_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 src/win32/pebuilder/Makefile $PFILES"
21201           ac_config_commands="$ac_config_commands default"
21202 cat >confcache <<\_ACEOF
21203 # This file is a shell script that caches the results of configure
21204 # tests run on this system so they can be shared between configure
21205 # scripts and configure runs, see configure's option --config-cache.
21206 # It is not useful on other systems.  If it contains results you don't
21207 # want to keep, you may remove or edit it.
21208 #
21209 # config.status only pays attention to the cache file if you give it
21210 # the --recheck option to rerun configure.
21211 #
21212 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21213 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21214 # following values.
21215
21216 _ACEOF
21217
21218 # The following way of writing the cache mishandles newlines in values,
21219 # but we know of no workaround that is simple, portable, and efficient.
21220 # So, don't put newlines in cache variables' values.
21221 # Ultrix sh set writes to stderr and can't be redirected directly,
21222 # and sets the high bit in the cache file unless we assign to the vars.
21223 {
21224   (set) 2>&1 |
21225     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21226     *ac_space=\ *)
21227       # `set' does not quote correctly, so add quotes (double-quote
21228       # substitution turns \\\\ into \\, and sed turns \\ into \).
21229       sed -n \
21230         "s/'/'\\\\''/g;
21231           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21232       ;;
21233     *)
21234       # `set' quotes correctly as required by POSIX, so do not add quotes.
21235       sed -n \
21236         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21237       ;;
21238     esac;
21239 } |
21240   sed '
21241      t clear
21242      : clear
21243      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21244      t end
21245      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21246      : end' >>confcache
21247 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21248   if test -w $cache_file; then
21249     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21250     cat confcache >$cache_file
21251   else
21252     echo "not updating unwritable cache $cache_file"
21253   fi
21254 fi
21255 rm -f confcache
21256
21257 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21258 # Let make expand exec_prefix.
21259 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21260
21261 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21262 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21263 # trailing colons and then remove the whole line if VPATH becomes empty
21264 # (actually we leave an empty line to preserve line numbers).
21265 if test "x$srcdir" = x.; then
21266   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21267 s/:*\$(srcdir):*/:/;
21268 s/:*\${srcdir}:*/:/;
21269 s/:*@srcdir@:*/:/;
21270 s/^\([^=]*=[     ]*\):*/\1/;
21271 s/:*$//;
21272 s/^[^=]*=[       ]*$//;
21273 }'
21274 fi
21275
21276 DEFS=-DHAVE_CONFIG_H
21277
21278 ac_libobjs=
21279 ac_ltlibobjs=
21280 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21281   # 1. Remove the extension, and $U if already installed.
21282   ac_i=`echo "$ac_i" |
21283          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21284   # 2. Add them.
21285   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21286   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21287 done
21288 LIBOBJS=$ac_libobjs
21289
21290 LTLIBOBJS=$ac_ltlibobjs
21291
21292
21293
21294 : ${CONFIG_STATUS=./config.status}
21295 ac_clean_files_save=$ac_clean_files
21296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21297 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21298 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21299 cat >$CONFIG_STATUS <<_ACEOF
21300 #! $SHELL
21301 # Generated by $as_me.
21302 # Run this file to recreate the current configuration.
21303 # Compiler output produced by configure, useful for debugging
21304 # configure, is in config.log if it exists.
21305
21306 debug=false
21307 ac_cs_recheck=false
21308 ac_cs_silent=false
21309 SHELL=\${CONFIG_SHELL-$SHELL}
21310 _ACEOF
21311
21312 cat >>$CONFIG_STATUS <<\_ACEOF
21313 ## --------------------- ##
21314 ## M4sh Initialization.  ##
21315 ## --------------------- ##
21316
21317 # Be Bourne compatible
21318 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21319   emulate sh
21320   NULLCMD=:
21321   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21322   # is contrary to our usage.  Disable this feature.
21323   alias -g '${1+"$@"}'='"$@"'
21324 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21325   set -o posix
21326 fi
21327 DUALCASE=1; export DUALCASE # for MKS sh
21328
21329 # Support unset when possible.
21330 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21331   as_unset=unset
21332 else
21333   as_unset=false
21334 fi
21335
21336
21337 # Work around bugs in pre-3.0 UWIN ksh.
21338 $as_unset ENV MAIL MAILPATH
21339 PS1='$ '
21340 PS2='> '
21341 PS4='+ '
21342
21343 # NLS nuisances.
21344 for as_var in \
21345   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21346   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21347   LC_TELEPHONE LC_TIME
21348 do
21349   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21350     eval $as_var=C; export $as_var
21351   else
21352     $as_unset $as_var
21353   fi
21354 done
21355
21356 # Required to use basename.
21357 if expr a : '\(a\)' >/dev/null 2>&1; then
21358   as_expr=expr
21359 else
21360   as_expr=false
21361 fi
21362
21363 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21364   as_basename=basename
21365 else
21366   as_basename=false
21367 fi
21368
21369
21370 # Name of the executable.
21371 as_me=`$as_basename "$0" ||
21372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21373          X"$0" : 'X\(//\)$' \| \
21374          X"$0" : 'X\(/\)$' \| \
21375          .     : '\(.\)' 2>/dev/null ||
21376 echo X/"$0" |
21377     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21378           /^X\/\(\/\/\)$/{ s//\1/; q; }
21379           /^X\/\(\/\).*/{ s//\1/; q; }
21380           s/.*/./; q'`
21381
21382
21383 # PATH needs CR, and LINENO needs CR and PATH.
21384 # Avoid depending upon Character Ranges.
21385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21388 as_cr_digits='0123456789'
21389 as_cr_alnum=$as_cr_Letters$as_cr_digits
21390
21391 # The user is always right.
21392 if test "${PATH_SEPARATOR+set}" != set; then
21393   echo "#! /bin/sh" >conf$$.sh
21394   echo  "exit 0"   >>conf$$.sh
21395   chmod +x conf$$.sh
21396   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21397     PATH_SEPARATOR=';'
21398   else
21399     PATH_SEPARATOR=:
21400   fi
21401   rm -f conf$$.sh
21402 fi
21403
21404
21405   as_lineno_1=$LINENO
21406   as_lineno_2=$LINENO
21407   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21408   test "x$as_lineno_1" != "x$as_lineno_2" &&
21409   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21410   # Find who we are.  Look in the path if we contain no path at all
21411   # relative or not.
21412   case $0 in
21413     *[\\/]* ) as_myself=$0 ;;
21414     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21415 for as_dir in $PATH
21416 do
21417   IFS=$as_save_IFS
21418   test -z "$as_dir" && as_dir=.
21419   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21420 done
21421
21422        ;;
21423   esac
21424   # We did not find ourselves, most probably we were run as `sh COMMAND'
21425   # in which case we are not to be found in the path.
21426   if test "x$as_myself" = x; then
21427     as_myself=$0
21428   fi
21429   if test ! -f "$as_myself"; then
21430     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21431 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21432    { (exit 1); exit 1; }; }
21433   fi
21434   case $CONFIG_SHELL in
21435   '')
21436     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21437 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21438 do
21439   IFS=$as_save_IFS
21440   test -z "$as_dir" && as_dir=.
21441   for as_base in sh bash ksh sh5; do
21442          case $as_dir in
21443          /*)
21444            if ("$as_dir/$as_base" -c '
21445   as_lineno_1=$LINENO
21446   as_lineno_2=$LINENO
21447   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21448   test "x$as_lineno_1" != "x$as_lineno_2" &&
21449   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21450              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21451              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21452              CONFIG_SHELL=$as_dir/$as_base
21453              export CONFIG_SHELL
21454              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21455            fi;;
21456          esac
21457        done
21458 done
21459 ;;
21460   esac
21461
21462   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21463   # uniformly replaced by the line number.  The first 'sed' inserts a
21464   # line-number line before each line; the second 'sed' does the real
21465   # work.  The second script uses 'N' to pair each line-number line
21466   # with the numbered line, and appends trailing '-' during
21467   # substitution so that $LINENO is not a special case at line end.
21468   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21469   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21470   sed '=' <$as_myself |
21471     sed '
21472       N
21473       s,$,-,
21474       : loop
21475       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21476       t loop
21477       s,-$,,
21478       s,^['$as_cr_digits']*\n,,
21479     ' >$as_me.lineno &&
21480   chmod +x $as_me.lineno ||
21481     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21482 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21483    { (exit 1); exit 1; }; }
21484
21485   # Don't try to exec as it changes $[0], causing all sort of problems
21486   # (the dirname of $[0] is not the place where we might find the
21487   # original and so on.  Autoconf is especially sensible to this).
21488   . ./$as_me.lineno
21489   # Exit status is that of the last command.
21490   exit
21491 }
21492
21493
21494 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21495   *c*,-n*) ECHO_N= ECHO_C='
21496 ' ECHO_T='      ' ;;
21497   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21498   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21499 esac
21500
21501 if expr a : '\(a\)' >/dev/null 2>&1; then
21502   as_expr=expr
21503 else
21504   as_expr=false
21505 fi
21506
21507 rm -f conf$$ conf$$.exe conf$$.file
21508 echo >conf$$.file
21509 if ln -s conf$$.file conf$$ 2>/dev/null; then
21510   # We could just check for DJGPP; but this test a) works b) is more generic
21511   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21512   if test -f conf$$.exe; then
21513     # Don't use ln at all; we don't have any links
21514     as_ln_s='cp -p'
21515   else
21516     as_ln_s='ln -s'
21517   fi
21518 elif ln conf$$.file conf$$ 2>/dev/null; then
21519   as_ln_s=ln
21520 else
21521   as_ln_s='cp -p'
21522 fi
21523 rm -f conf$$ conf$$.exe conf$$.file
21524
21525 if mkdir -p . 2>/dev/null; then
21526   as_mkdir_p=:
21527 else
21528   test -d ./-p && rmdir ./-p
21529   as_mkdir_p=false
21530 fi
21531
21532 as_executable_p="test -f"
21533
21534 # Sed expression to map a string onto a valid CPP name.
21535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21536
21537 # Sed expression to map a string onto a valid variable name.
21538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21539
21540
21541 # IFS
21542 # We need space, tab and new line, in precisely that order.
21543 as_nl='
21544 '
21545 IFS="   $as_nl"
21546
21547 # CDPATH.
21548 $as_unset CDPATH
21549
21550 exec 6>&1
21551
21552 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21553 # report actual input values of CONFIG_FILES etc. instead of their
21554 # values after options handling.  Logging --version etc. is OK.
21555 exec 5>>config.log
21556 {
21557   echo
21558   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21559 ## Running $as_me. ##
21560 _ASBOX
21561 } >&5
21562 cat >&5 <<_CSEOF
21563
21564 This file was extended by $as_me, which was
21565 generated by GNU Autoconf 2.59.  Invocation command line was
21566
21567   CONFIG_FILES    = $CONFIG_FILES
21568   CONFIG_HEADERS  = $CONFIG_HEADERS
21569   CONFIG_LINKS    = $CONFIG_LINKS
21570   CONFIG_COMMANDS = $CONFIG_COMMANDS
21571   $ $0 $@
21572
21573 _CSEOF
21574 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21575 echo >&5
21576 _ACEOF
21577
21578 # Files that config.status was made for.
21579 if test -n "$ac_config_files"; then
21580   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21581 fi
21582
21583 if test -n "$ac_config_headers"; then
21584   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21585 fi
21586
21587 if test -n "$ac_config_links"; then
21588   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21589 fi
21590
21591 if test -n "$ac_config_commands"; then
21592   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21593 fi
21594
21595 cat >>$CONFIG_STATUS <<\_ACEOF
21596
21597 ac_cs_usage="\
21598 \`$as_me' instantiates files from templates according to the
21599 current configuration.
21600
21601 Usage: $0 [OPTIONS] [FILE]...
21602
21603   -h, --help       print this help, then exit
21604   -V, --version    print version number, then exit
21605   -q, --quiet      do not print progress messages
21606   -d, --debug      don't remove temporary files
21607       --recheck    update $as_me by reconfiguring in the same conditions
21608   --file=FILE[:TEMPLATE]
21609                    instantiate the configuration file FILE
21610   --header=FILE[:TEMPLATE]
21611                    instantiate the configuration header FILE
21612
21613 Configuration files:
21614 $config_files
21615
21616 Configuration headers:
21617 $config_headers
21618
21619 Configuration commands:
21620 $config_commands
21621
21622 Report bugs to <bug-autoconf@gnu.org>."
21623 _ACEOF
21624
21625 cat >>$CONFIG_STATUS <<_ACEOF
21626 ac_cs_version="\\
21627 config.status
21628 configured by $0, generated by GNU Autoconf 2.59,
21629   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21630
21631 Copyright (C) 2003 Free Software Foundation, Inc.
21632 This config.status script is free software; the Free Software Foundation
21633 gives unlimited permission to copy, distribute and modify it."
21634 srcdir=$srcdir
21635 INSTALL="$INSTALL"
21636 _ACEOF
21637
21638 cat >>$CONFIG_STATUS <<\_ACEOF
21639 # If no file are specified by the user, then we need to provide default
21640 # value.  By we need to know if files were specified by the user.
21641 ac_need_defaults=:
21642 while test $# != 0
21643 do
21644   case $1 in
21645   --*=*)
21646     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21647     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21648     ac_shift=:
21649     ;;
21650   -*)
21651     ac_option=$1
21652     ac_optarg=$2
21653     ac_shift=shift
21654     ;;
21655   *) # This is not an option, so the user has probably given explicit
21656      # arguments.
21657      ac_option=$1
21658      ac_need_defaults=false;;
21659   esac
21660
21661   case $ac_option in
21662   # Handling of the options.
21663 _ACEOF
21664 cat >>$CONFIG_STATUS <<\_ACEOF
21665   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21666     ac_cs_recheck=: ;;
21667   --version | --vers* | -V )
21668     echo "$ac_cs_version"; exit 0 ;;
21669   --he | --h)
21670     # Conflict between --help and --header
21671     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21672 Try \`$0 --help' for more information." >&5
21673 echo "$as_me: error: ambiguous option: $1
21674 Try \`$0 --help' for more information." >&2;}
21675    { (exit 1); exit 1; }; };;
21676   --help | --hel | -h )
21677     echo "$ac_cs_usage"; exit 0 ;;
21678   --debug | --d* | -d )
21679     debug=: ;;
21680   --file | --fil | --fi | --f )
21681     $ac_shift
21682     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21683     ac_need_defaults=false;;
21684   --header | --heade | --head | --hea )
21685     $ac_shift
21686     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21687     ac_need_defaults=false;;
21688   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21689   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21690     ac_cs_silent=: ;;
21691
21692   # This is an error.
21693   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21694 Try \`$0 --help' for more information." >&5
21695 echo "$as_me: error: unrecognized option: $1
21696 Try \`$0 --help' for more information." >&2;}
21697    { (exit 1); exit 1; }; } ;;
21698
21699   *) ac_config_targets="$ac_config_targets $1" ;;
21700
21701   esac
21702   shift
21703 done
21704
21705 ac_configure_extra_args=
21706
21707 if $ac_cs_silent; then
21708   exec 6>/dev/null
21709   ac_configure_extra_args="$ac_configure_extra_args --silent"
21710 fi
21711
21712 _ACEOF
21713 cat >>$CONFIG_STATUS <<_ACEOF
21714 if \$ac_cs_recheck; then
21715   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21716   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21717 fi
21718
21719 _ACEOF
21720
21721
21722
21723
21724
21725 cat >>$CONFIG_STATUS <<\_ACEOF
21726 for ac_config_target in $ac_config_targets
21727 do
21728   case "$ac_config_target" in
21729   # Handling of arguments.
21730   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21731   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21732   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21733   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21734   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21735   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21736   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21737   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21738   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21739   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21740   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21741   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21742   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21743   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21744   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21745   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21746   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21747   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21748   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21749   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21750   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21751   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
21752   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
21753   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
21754   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
21755   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
21756   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21757   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21758   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21759   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21760   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21761   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21762   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21763   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21764   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
21765   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
21766   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21767   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21768   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21769   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21770   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21771   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21772   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21773   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21774   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21775   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
21776   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
21777   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
21778   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
21779   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
21780   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
21781   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
21782   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
21783   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
21784   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
21785   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
21786   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
21787   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
21788   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
21789   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
21790   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
21791   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
21792   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
21793   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
21794   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
21795   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
21796   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
21797   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
21798   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
21799   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
21800   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
21801   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
21802   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
21803   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
21804   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
21805   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
21806   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
21807   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
21808   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
21809   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
21810   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
21811   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
21812   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
21813   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
21814   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
21815   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
21816   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21817   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
21818   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
21819   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
21820   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
21821   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
21822   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
21823   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
21824   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21825   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
21826   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21827 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21828    { (exit 1); exit 1; }; };;
21829   esac
21830 done
21831
21832 # If the user did not use the arguments to specify the items to instantiate,
21833 # then the envvar interface is used.  Set only those that are not.
21834 # We use the long form for the default assignment because of an extremely
21835 # bizarre bug on SunOS 4.1.3.
21836 if $ac_need_defaults; then
21837   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21838   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21839   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21840 fi
21841
21842 # Have a temporary directory for convenience.  Make it in the build tree
21843 # simply because there is no reason to put it here, and in addition,
21844 # creating and moving files from /tmp can sometimes cause problems.
21845 # Create a temporary directory, and hook for its removal unless debugging.
21846 $debug ||
21847 {
21848   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21849   trap '{ (exit 1); exit 1; }' 1 2 13 15
21850 }
21851
21852 # Create a (secure) tmp directory for tmp files.
21853
21854 {
21855   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21856   test -n "$tmp" && test -d "$tmp"
21857 }  ||
21858 {
21859   tmp=./confstat$$-$RANDOM
21860   (umask 077 && mkdir $tmp)
21861 } ||
21862 {
21863    echo "$me: cannot create a temporary directory in ." >&2
21864    { (exit 1); exit 1; }
21865 }
21866
21867 _ACEOF
21868
21869 cat >>$CONFIG_STATUS <<_ACEOF
21870
21871 #
21872 # CONFIG_FILES section.
21873 #
21874
21875 # No need to generate the scripts if there are no CONFIG_FILES.
21876 # This happens for instance when ./config.status config.h
21877 if test -n "\$CONFIG_FILES"; then
21878   # Protect against being on the right side of a sed subst in config.status.
21879   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21880    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21881 s,@SHELL@,$SHELL,;t t
21882 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21883 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21884 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21885 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21886 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21887 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21888 s,@exec_prefix@,$exec_prefix,;t t
21889 s,@prefix@,$prefix,;t t
21890 s,@program_transform_name@,$program_transform_name,;t t
21891 s,@bindir@,$bindir,;t t
21892 s,@sbindir@,$sbindir,;t t
21893 s,@libexecdir@,$libexecdir,;t t
21894 s,@datadir@,$datadir,;t t
21895 s,@sysconfdir@,$sysconfdir,;t t
21896 s,@sharedstatedir@,$sharedstatedir,;t t
21897 s,@localstatedir@,$localstatedir,;t t
21898 s,@libdir@,$libdir,;t t
21899 s,@includedir@,$includedir,;t t
21900 s,@oldincludedir@,$oldincludedir,;t t
21901 s,@infodir@,$infodir,;t t
21902 s,@mandir@,$mandir,;t t
21903 s,@build_alias@,$build_alias,;t t
21904 s,@host_alias@,$host_alias,;t t
21905 s,@target_alias@,$target_alias,;t t
21906 s,@DEFS@,$DEFS,;t t
21907 s,@ECHO_C@,$ECHO_C,;t t
21908 s,@ECHO_N@,$ECHO_N,;t t
21909 s,@ECHO_T@,$ECHO_T,;t t
21910 s,@LIBS@,$LIBS,;t t
21911 s,@BUILD_DIR@,$BUILD_DIR,;t t
21912 s,@TRUEPRG@,$TRUEPRG,;t t
21913 s,@FALSEPRG@,$FALSEPRG,;t t
21914 s,@VERSION@,$VERSION,;t t
21915 s,@DATE@,$DATE,;t t
21916 s,@LSMDATE@,$LSMDATE,;t t
21917 s,@CC@,$CC,;t t
21918 s,@CFLAGS@,$CFLAGS,;t t
21919 s,@LDFLAGS@,$LDFLAGS,;t t
21920 s,@CPPFLAGS@,$CPPFLAGS,;t t
21921 s,@ac_ct_CC@,$ac_ct_CC,;t t
21922 s,@EXEEXT@,$EXEEXT,;t t
21923 s,@OBJEXT@,$OBJEXT,;t t
21924 s,@CXX@,$CXX,;t t
21925 s,@CXXFLAGS@,$CXXFLAGS,;t t
21926 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21927 s,@CPP@,$CPP,;t t
21928 s,@EGREP@,$EGREP,;t t
21929 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21930 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21931 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21932 s,@RANLIB@,$RANLIB,;t t
21933 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21934 s,@MV@,$MV,;t t
21935 s,@RM@,$RM,;t t
21936 s,@CP@,$CP,;t t
21937 s,@SED@,$SED,;t t
21938 s,@ECHO@,$ECHO,;t t
21939 s,@CMP@,$CMP,;t t
21940 s,@TBL@,$TBL,;t t
21941 s,@AR@,$AR,;t t
21942 s,@OPENSSL@,$OPENSSL,;t t
21943 s,@MTX@,$MTX,;t t
21944 s,@DF@,$DF,;t t
21945 s,@MKISOFS@,$MKISOFS,;t t
21946 s,@PYTHON@,$PYTHON,;t t
21947 s,@GROWISOFS@,$GROWISOFS,;t t
21948 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
21949 s,@PKGCONFIG@,$PKGCONFIG,;t t
21950 s,@WXCONFIG@,$WXCONFIG,;t t
21951 s,@WXFLAGS@,$WXFLAGS,;t t
21952 s,@CDRECORD@,$CDRECORD,;t t
21953 s,@PIDOF@,$PIDOF,;t t
21954 s,@AWK@,$AWK,;t t
21955 s,@ARFLAGS@,$ARFLAGS,;t t
21956 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
21957 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
21958 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
21959 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21960 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
21961 s,@build@,$build,;t t
21962 s,@build_cpu@,$build_cpu,;t t
21963 s,@build_vendor@,$build_vendor,;t t
21964 s,@build_os@,$build_os,;t t
21965 s,@host@,$host,;t t
21966 s,@host_cpu@,$host_cpu,;t t
21967 s,@host_vendor@,$host_vendor,;t t
21968 s,@host_os@,$host_os,;t t
21969 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
21970 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
21971 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
21972 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
21973 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
21974 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
21975 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
21976 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
21977 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
21978 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
21979 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
21980 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
21981 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
21982 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
21983 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
21984 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
21985 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
21986 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
21987 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
21988 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
21989 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
21990 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
21991 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
21992 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
21993 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
21994 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
21995 s,@MSGFMT@,$MSGFMT,;t t
21996 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
21997 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
21998 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
21999 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22000 s,@GNOME_DIR@,$GNOME_DIR,;t t
22001 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22002 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22003 s,@WX_DIR@,$WX_DIR,;t t
22004 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22005 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22006 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22007 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22008 s,@STATIC_FD@,$STATIC_FD,;t t
22009 s,@STATIC_SD@,$STATIC_SD,;t t
22010 s,@STATIC_DIR@,$STATIC_DIR,;t t
22011 s,@STATIC_CONS@,$STATIC_CONS,;t t
22012 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22013 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22014 s,@ALL_DIRS@,$ALL_DIRS,;t t
22015 s,@CONS_INC@,$CONS_INC,;t t
22016 s,@CONS_OBJ@,$CONS_OBJ,;t t
22017 s,@CONS_SRC@,$CONS_SRC,;t t
22018 s,@CONS_LIBS@,$CONS_LIBS,;t t
22019 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22020 s,@READLINE_SRC@,$READLINE_SRC,;t t
22021 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22022 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22023 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22024 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22025 s,@working_dir@,$working_dir,;t t
22026 s,@scriptdir@,$scriptdir,;t t
22027 s,@dump_email@,$dump_email,;t t
22028 s,@job_email@,$job_email,;t t
22029 s,@smtp_host@,$smtp_host,;t t
22030 s,@piddir@,$piddir,;t t
22031 s,@subsysdir@,$subsysdir,;t t
22032 s,@baseport@,$baseport,;t t
22033 s,@dir_port@,$dir_port,;t t
22034 s,@fd_port@,$fd_port,;t t
22035 s,@sd_port@,$sd_port,;t t
22036 s,@dir_password@,$dir_password,;t t
22037 s,@fd_password@,$fd_password,;t t
22038 s,@sd_password@,$sd_password,;t t
22039 s,@mon_dir_password@,$mon_dir_password,;t t
22040 s,@mon_fd_password@,$mon_fd_password,;t t
22041 s,@mon_sd_password@,$mon_sd_password,;t t
22042 s,@dir_user@,$dir_user,;t t
22043 s,@dir_group@,$dir_group,;t t
22044 s,@sd_user@,$sd_user,;t t
22045 s,@sd_group@,$sd_group,;t t
22046 s,@fd_user@,$fd_user,;t t
22047 s,@fd_group@,$fd_group,;t t
22048 s,@SBINPERM@,$SBINPERM,;t t
22049 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22050 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22051 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22052 s,@cats@,$cats,;t t
22053 s,@DB_NAME@,$DB_NAME,;t t
22054 s,@GETCONF@,$GETCONF,;t t
22055 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22056 s,@X_CFLAGS@,$X_CFLAGS,;t t
22057 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22058 s,@X_LIBS@,$X_LIBS,;t t
22059 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22060 s,@LIBOBJS@,$LIBOBJS,;t t
22061 s,@ALLOCA@,$ALLOCA,;t t
22062 s,@FDLIBS@,$FDLIBS,;t t
22063 s,@DEBUG@,$DEBUG,;t t
22064 s,@DINCLUDE@,$DINCLUDE,;t t
22065 s,@DLIB@,$DLIB,;t t
22066 s,@DB_LIBS@,$DB_LIBS,;t t
22067 s,@WCFLAGS@,$WCFLAGS,;t t
22068 s,@WLDFLAGS@,$WLDFLAGS,;t t
22069 s,@OBJLIST@,$OBJLIST,;t t
22070 s,@hostname@,$hostname,;t t
22071 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22072 s,@PSCMD@,$PSCMD,;t t
22073 s,@WIN32@,$WIN32,;t t
22074 s,@MACOSX@,$MACOSX,;t t
22075 s,@DISTNAME@,$DISTNAME,;t t
22076 s,@DISTVER@,$DISTVER,;t t
22077 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22078 /@MCOMMON@/r $MCOMMON
22079 s,@MCOMMON@,,;t t
22080 CEOF
22081
22082 _ACEOF
22083
22084   cat >>$CONFIG_STATUS <<\_ACEOF
22085   # Split the substitutions into bite-sized pieces for seds with
22086   # small command number limits, like on Digital OSF/1 and HP-UX.
22087   ac_max_sed_lines=48
22088   ac_sed_frag=1 # Number of current file.
22089   ac_beg=1 # First line for current file.
22090   ac_end=$ac_max_sed_lines # Line after last line for current file.
22091   ac_more_lines=:
22092   ac_sed_cmds=
22093   while $ac_more_lines; do
22094     if test $ac_beg -gt 1; then
22095       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22096     else
22097       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22098     fi
22099     if test ! -s $tmp/subs.frag; then
22100       ac_more_lines=false
22101     else
22102       # The purpose of the label and of the branching condition is to
22103       # speed up the sed processing (if there are no `@' at all, there
22104       # is no need to browse any of the substitutions).
22105       # These are the two extra sed commands mentioned above.
22106       (echo ':t
22107   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22108       if test -z "$ac_sed_cmds"; then
22109         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22110       else
22111         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22112       fi
22113       ac_sed_frag=`expr $ac_sed_frag + 1`
22114       ac_beg=$ac_end
22115       ac_end=`expr $ac_end + $ac_max_sed_lines`
22116     fi
22117   done
22118   if test -z "$ac_sed_cmds"; then
22119     ac_sed_cmds=cat
22120   fi
22121 fi # test -n "$CONFIG_FILES"
22122
22123 _ACEOF
22124 cat >>$CONFIG_STATUS <<\_ACEOF
22125 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22126   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22127   case $ac_file in
22128   - | *:- | *:-:* ) # input from stdin
22129         cat >$tmp/stdin
22130         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22131         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22132   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22133         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22134   * )   ac_file_in=$ac_file.in ;;
22135   esac
22136
22137   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22138   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22139 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22140          X"$ac_file" : 'X\(//\)[^/]' \| \
22141          X"$ac_file" : 'X\(//\)$' \| \
22142          X"$ac_file" : 'X\(/\)' \| \
22143          .     : '\(.\)' 2>/dev/null ||
22144 echo X"$ac_file" |
22145     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22146           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22147           /^X\(\/\/\)$/{ s//\1/; q; }
22148           /^X\(\/\).*/{ s//\1/; q; }
22149           s/.*/./; q'`
22150   { if $as_mkdir_p; then
22151     mkdir -p "$ac_dir"
22152   else
22153     as_dir="$ac_dir"
22154     as_dirs=
22155     while test ! -d "$as_dir"; do
22156       as_dirs="$as_dir $as_dirs"
22157       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22159          X"$as_dir" : 'X\(//\)[^/]' \| \
22160          X"$as_dir" : 'X\(//\)$' \| \
22161          X"$as_dir" : 'X\(/\)' \| \
22162          .     : '\(.\)' 2>/dev/null ||
22163 echo X"$as_dir" |
22164     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22165           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22166           /^X\(\/\/\)$/{ s//\1/; q; }
22167           /^X\(\/\).*/{ s//\1/; q; }
22168           s/.*/./; q'`
22169     done
22170     test ! -n "$as_dirs" || mkdir $as_dirs
22171   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22172 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22173    { (exit 1); exit 1; }; }; }
22174
22175   ac_builddir=.
22176
22177 if test "$ac_dir" != .; then
22178   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22179   # A "../" for each directory in $ac_dir_suffix.
22180   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22181 else
22182   ac_dir_suffix= ac_top_builddir=
22183 fi
22184
22185 case $srcdir in
22186   .)  # No --srcdir option.  We are building in place.
22187     ac_srcdir=.
22188     if test -z "$ac_top_builddir"; then
22189        ac_top_srcdir=.
22190     else
22191        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22192     fi ;;
22193   [\\/]* | ?:[\\/]* )  # Absolute path.
22194     ac_srcdir=$srcdir$ac_dir_suffix;
22195     ac_top_srcdir=$srcdir ;;
22196   *) # Relative path.
22197     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22198     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22199 esac
22200
22201 # Do not use `cd foo && pwd` to compute absolute paths, because
22202 # the directories may not exist.
22203 case `pwd` in
22204 .) ac_abs_builddir="$ac_dir";;
22205 *)
22206   case "$ac_dir" in
22207   .) ac_abs_builddir=`pwd`;;
22208   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22209   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22210   esac;;
22211 esac
22212 case $ac_abs_builddir in
22213 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22214 *)
22215   case ${ac_top_builddir}. in
22216   .) ac_abs_top_builddir=$ac_abs_builddir;;
22217   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22218   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22219   esac;;
22220 esac
22221 case $ac_abs_builddir in
22222 .) ac_abs_srcdir=$ac_srcdir;;
22223 *)
22224   case $ac_srcdir in
22225   .) ac_abs_srcdir=$ac_abs_builddir;;
22226   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22227   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22228   esac;;
22229 esac
22230 case $ac_abs_builddir in
22231 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22232 *)
22233   case $ac_top_srcdir in
22234   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22235   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22236   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22237   esac;;
22238 esac
22239
22240
22241   case $INSTALL in
22242   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22243   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22244   esac
22245
22246   if test x"$ac_file" != x-; then
22247     { echo "$as_me:$LINENO: creating $ac_file" >&5
22248 echo "$as_me: creating $ac_file" >&6;}
22249     rm -f "$ac_file"
22250   fi
22251   # Let's still pretend it is `configure' which instantiates (i.e., don't
22252   # use $as_me), people would be surprised to read:
22253   #    /* config.h.  Generated by config.status.  */
22254   if test x"$ac_file" = x-; then
22255     configure_input=
22256   else
22257     configure_input="$ac_file.  "
22258   fi
22259   configure_input=$configure_input"Generated from `echo $ac_file_in |
22260                                      sed 's,.*/,,'` by configure."
22261
22262   # First look for the input files in the build tree, otherwise in the
22263   # src tree.
22264   ac_file_inputs=`IFS=:
22265     for f in $ac_file_in; do
22266       case $f in
22267       -) echo $tmp/stdin ;;
22268       [\\/$]*)
22269          # Absolute (can't be DOS-style, as IFS=:)
22270          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22271 echo "$as_me: error: cannot find input file: $f" >&2;}
22272    { (exit 1); exit 1; }; }
22273          echo "$f";;
22274       *) # Relative
22275          if test -f "$f"; then
22276            # Build tree
22277            echo "$f"
22278          elif test -f "$srcdir/$f"; then
22279            # Source tree
22280            echo "$srcdir/$f"
22281          else
22282            # /dev/null tree
22283            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22284 echo "$as_me: error: cannot find input file: $f" >&2;}
22285    { (exit 1); exit 1; }; }
22286          fi;;
22287       esac
22288     done` || { (exit 1); exit 1; }
22289 _ACEOF
22290 cat >>$CONFIG_STATUS <<_ACEOF
22291   sed "$ac_vpsub
22292 $extrasub
22293 _ACEOF
22294 cat >>$CONFIG_STATUS <<\_ACEOF
22295 :t
22296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22297 s,@configure_input@,$configure_input,;t t
22298 s,@srcdir@,$ac_srcdir,;t t
22299 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22300 s,@top_srcdir@,$ac_top_srcdir,;t t
22301 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22302 s,@builddir@,$ac_builddir,;t t
22303 s,@abs_builddir@,$ac_abs_builddir,;t t
22304 s,@top_builddir@,$ac_top_builddir,;t t
22305 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22306 s,@INSTALL@,$ac_INSTALL,;t t
22307 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22308   rm -f $tmp/stdin
22309   if test x"$ac_file" != x-; then
22310     mv $tmp/out $ac_file
22311   else
22312     cat $tmp/out
22313     rm -f $tmp/out
22314   fi
22315
22316 done
22317 _ACEOF
22318 cat >>$CONFIG_STATUS <<\_ACEOF
22319
22320 #
22321 # CONFIG_HEADER section.
22322 #
22323
22324 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22325 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22326 #
22327 # ac_d sets the value in "#define NAME VALUE" lines.
22328 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22329 ac_dB='[         ].*$,\1#\2'
22330 ac_dC=' '
22331 ac_dD=',;t'
22332 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22333 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22334 ac_uB='$,\1#\2define\3'
22335 ac_uC=' '
22336 ac_uD=',;t'
22337
22338 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22339   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22340   case $ac_file in
22341   - | *:- | *:-:* ) # input from stdin
22342         cat >$tmp/stdin
22343         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22344         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22345   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22346         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22347   * )   ac_file_in=$ac_file.in ;;
22348   esac
22349
22350   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22351 echo "$as_me: creating $ac_file" >&6;}
22352
22353   # First look for the input files in the build tree, otherwise in the
22354   # src tree.
22355   ac_file_inputs=`IFS=:
22356     for f in $ac_file_in; do
22357       case $f in
22358       -) echo $tmp/stdin ;;
22359       [\\/$]*)
22360          # Absolute (can't be DOS-style, as IFS=:)
22361          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22362 echo "$as_me: error: cannot find input file: $f" >&2;}
22363    { (exit 1); exit 1; }; }
22364          # Do quote $f, to prevent DOS paths from being IFS'd.
22365          echo "$f";;
22366       *) # Relative
22367          if test -f "$f"; then
22368            # Build tree
22369            echo "$f"
22370          elif test -f "$srcdir/$f"; then
22371            # Source tree
22372            echo "$srcdir/$f"
22373          else
22374            # /dev/null tree
22375            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22376 echo "$as_me: error: cannot find input file: $f" >&2;}
22377    { (exit 1); exit 1; }; }
22378          fi;;
22379       esac
22380     done` || { (exit 1); exit 1; }
22381   # Remove the trailing spaces.
22382   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22383
22384 _ACEOF
22385
22386 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22387 # `conftest.undefs', that substitutes the proper values into
22388 # config.h.in to produce config.h.  The first handles `#define'
22389 # templates, and the second `#undef' templates.
22390 # And first: Protect against being on the right side of a sed subst in
22391 # config.status.  Protect against being in an unquoted here document
22392 # in config.status.
22393 rm -f conftest.defines conftest.undefs
22394 # Using a here document instead of a string reduces the quoting nightmare.
22395 # Putting comments in sed scripts is not portable.
22396 #
22397 # `end' is used to avoid that the second main sed command (meant for
22398 # 0-ary CPP macros) applies to n-ary macro definitions.
22399 # See the Autoconf documentation for `clear'.
22400 cat >confdef2sed.sed <<\_ACEOF
22401 s/[\\&,]/\\&/g
22402 s,[\\$`],\\&,g
22403 t clear
22404 : clear
22405 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22406 t end
22407 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22408 : end
22409 _ACEOF
22410 # If some macros were called several times there might be several times
22411 # the same #defines, which is useless.  Nevertheless, we may not want to
22412 # sort them, since we want the *last* AC-DEFINE to be honored.
22413 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22414 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22415 rm -f confdef2sed.sed
22416
22417 # This sed command replaces #undef with comments.  This is necessary, for
22418 # example, in the case of _POSIX_SOURCE, which is predefined and required
22419 # on some systems where configure will not decide to define it.
22420 cat >>conftest.undefs <<\_ACEOF
22421 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22422 _ACEOF
22423
22424 # Break up conftest.defines because some shells have a limit on the size
22425 # of here documents, and old seds have small limits too (100 cmds).
22426 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22427 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22428 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22429 echo '  :' >>$CONFIG_STATUS
22430 rm -f conftest.tail
22431 while grep . conftest.defines >/dev/null
22432 do
22433   # Write a limited-size here document to $tmp/defines.sed.
22434   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22435   # Speed up: don't consider the non `#define' lines.
22436   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22437   # Work around the forget-to-reset-the-flag bug.
22438   echo 't clr' >>$CONFIG_STATUS
22439   echo ': clr' >>$CONFIG_STATUS
22440   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22441   echo 'CEOF
22442   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22443   rm -f $tmp/in
22444   mv $tmp/out $tmp/in
22445 ' >>$CONFIG_STATUS
22446   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22447   rm -f conftest.defines
22448   mv conftest.tail conftest.defines
22449 done
22450 rm -f conftest.defines
22451 echo '  fi # grep' >>$CONFIG_STATUS
22452 echo >>$CONFIG_STATUS
22453
22454 # Break up conftest.undefs because some shells have a limit on the size
22455 # of here documents, and old seds have small limits too (100 cmds).
22456 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22457 rm -f conftest.tail
22458 while grep . conftest.undefs >/dev/null
22459 do
22460   # Write a limited-size here document to $tmp/undefs.sed.
22461   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22462   # Speed up: don't consider the non `#undef'
22463   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22464   # Work around the forget-to-reset-the-flag bug.
22465   echo 't clr' >>$CONFIG_STATUS
22466   echo ': clr' >>$CONFIG_STATUS
22467   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22468   echo 'CEOF
22469   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22470   rm -f $tmp/in
22471   mv $tmp/out $tmp/in
22472 ' >>$CONFIG_STATUS
22473   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22474   rm -f conftest.undefs
22475   mv conftest.tail conftest.undefs
22476 done
22477 rm -f conftest.undefs
22478
22479 cat >>$CONFIG_STATUS <<\_ACEOF
22480   # Let's still pretend it is `configure' which instantiates (i.e., don't
22481   # use $as_me), people would be surprised to read:
22482   #    /* config.h.  Generated by config.status.  */
22483   if test x"$ac_file" = x-; then
22484     echo "/* Generated by configure.  */" >$tmp/config.h
22485   else
22486     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22487   fi
22488   cat $tmp/in >>$tmp/config.h
22489   rm -f $tmp/in
22490   if test x"$ac_file" != x-; then
22491     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22492       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22493 echo "$as_me: $ac_file is unchanged" >&6;}
22494     else
22495       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22496 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22497          X"$ac_file" : 'X\(//\)[^/]' \| \
22498          X"$ac_file" : 'X\(//\)$' \| \
22499          X"$ac_file" : 'X\(/\)' \| \
22500          .     : '\(.\)' 2>/dev/null ||
22501 echo X"$ac_file" |
22502     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22503           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22504           /^X\(\/\/\)$/{ s//\1/; q; }
22505           /^X\(\/\).*/{ s//\1/; q; }
22506           s/.*/./; q'`
22507       { if $as_mkdir_p; then
22508     mkdir -p "$ac_dir"
22509   else
22510     as_dir="$ac_dir"
22511     as_dirs=
22512     while test ! -d "$as_dir"; do
22513       as_dirs="$as_dir $as_dirs"
22514       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22515 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22516          X"$as_dir" : 'X\(//\)[^/]' \| \
22517          X"$as_dir" : 'X\(//\)$' \| \
22518          X"$as_dir" : 'X\(/\)' \| \
22519          .     : '\(.\)' 2>/dev/null ||
22520 echo X"$as_dir" |
22521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22522           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22523           /^X\(\/\/\)$/{ s//\1/; q; }
22524           /^X\(\/\).*/{ s//\1/; q; }
22525           s/.*/./; q'`
22526     done
22527     test ! -n "$as_dirs" || mkdir $as_dirs
22528   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22529 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22530    { (exit 1); exit 1; }; }; }
22531
22532       rm -f $ac_file
22533       mv $tmp/config.h $ac_file
22534     fi
22535   else
22536     cat $tmp/config.h
22537     rm -f $tmp/config.h
22538   fi
22539 done
22540 _ACEOF
22541 cat >>$CONFIG_STATUS <<\_ACEOF
22542
22543 #
22544 # CONFIG_COMMANDS section.
22545 #
22546 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22547   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22548   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22549   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22550 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22551          X"$ac_dest" : 'X\(//\)[^/]' \| \
22552          X"$ac_dest" : 'X\(//\)$' \| \
22553          X"$ac_dest" : 'X\(/\)' \| \
22554          .     : '\(.\)' 2>/dev/null ||
22555 echo X"$ac_dest" |
22556     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22557           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22558           /^X\(\/\/\)$/{ s//\1/; q; }
22559           /^X\(\/\).*/{ s//\1/; q; }
22560           s/.*/./; q'`
22561   { if $as_mkdir_p; then
22562     mkdir -p "$ac_dir"
22563   else
22564     as_dir="$ac_dir"
22565     as_dirs=
22566     while test ! -d "$as_dir"; do
22567       as_dirs="$as_dir $as_dirs"
22568       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22570          X"$as_dir" : 'X\(//\)[^/]' \| \
22571          X"$as_dir" : 'X\(//\)$' \| \
22572          X"$as_dir" : 'X\(/\)' \| \
22573          .     : '\(.\)' 2>/dev/null ||
22574 echo X"$as_dir" |
22575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22576           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22577           /^X\(\/\/\)$/{ s//\1/; q; }
22578           /^X\(\/\).*/{ s//\1/; q; }
22579           s/.*/./; q'`
22580     done
22581     test ! -n "$as_dirs" || mkdir $as_dirs
22582   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22583 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22584    { (exit 1); exit 1; }; }; }
22585
22586   ac_builddir=.
22587
22588 if test "$ac_dir" != .; then
22589   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22590   # A "../" for each directory in $ac_dir_suffix.
22591   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22592 else
22593   ac_dir_suffix= ac_top_builddir=
22594 fi
22595
22596 case $srcdir in
22597   .)  # No --srcdir option.  We are building in place.
22598     ac_srcdir=.
22599     if test -z "$ac_top_builddir"; then
22600        ac_top_srcdir=.
22601     else
22602        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22603     fi ;;
22604   [\\/]* | ?:[\\/]* )  # Absolute path.
22605     ac_srcdir=$srcdir$ac_dir_suffix;
22606     ac_top_srcdir=$srcdir ;;
22607   *) # Relative path.
22608     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22609     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22610 esac
22611
22612 # Do not use `cd foo && pwd` to compute absolute paths, because
22613 # the directories may not exist.
22614 case `pwd` in
22615 .) ac_abs_builddir="$ac_dir";;
22616 *)
22617   case "$ac_dir" in
22618   .) ac_abs_builddir=`pwd`;;
22619   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22620   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22621   esac;;
22622 esac
22623 case $ac_abs_builddir in
22624 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22625 *)
22626   case ${ac_top_builddir}. in
22627   .) ac_abs_top_builddir=$ac_abs_builddir;;
22628   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22629   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22630   esac;;
22631 esac
22632 case $ac_abs_builddir in
22633 .) ac_abs_srcdir=$ac_srcdir;;
22634 *)
22635   case $ac_srcdir in
22636   .) ac_abs_srcdir=$ac_abs_builddir;;
22637   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22638   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22639   esac;;
22640 esac
22641 case $ac_abs_builddir in
22642 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22643 *)
22644   case $ac_top_srcdir in
22645   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22646   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22647   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22648   esac;;
22649 esac
22650
22651
22652   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22653 echo "$as_me: executing $ac_dest commands" >&6;}
22654   case $ac_dest in
22655     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22656  ;;
22657   esac
22658 done
22659 _ACEOF
22660
22661 cat >>$CONFIG_STATUS <<\_ACEOF
22662
22663 { (exit 0); exit 0; }
22664 _ACEOF
22665 chmod +x $CONFIG_STATUS
22666 ac_clean_files=$ac_clean_files_save
22667
22668
22669 # configure is writing to config.log, and then calls config.status.
22670 # config.status does its own redirection, appending to config.log.
22671 # Unfortunately, on DOS this fails, as config.log is still kept open
22672 # by configure, so config.status won't be able to write to it; its
22673 # output is simply discarded.  So we exec the FD to /dev/null,
22674 # effectively closing config.log, so it can be properly (re)opened and
22675 # appended to by config.status.  When coming back to configure, we
22676 # need to make the FD available again.
22677 if test "$no_create" != yes; then
22678   ac_cs_success=:
22679   ac_config_status_args=
22680   test "$silent" = yes &&
22681     ac_config_status_args="$ac_config_status_args --quiet"
22682   exec 5>/dev/null
22683   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22684   exec 5>>config.log
22685   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22686   # would make configure fail if this is the last instruction.
22687   $ac_cs_success || { (exit 1); exit 1; }
22688 fi
22689
22690
22691 cd scripts
22692 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22693 chmod 755 dvd-writepart dvd-freespace
22694 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22695 cd ..
22696
22697 c=src/cats
22698
22699 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
22700 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
22701
22702 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
22703 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
22704
22705 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
22706 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
22707
22708 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
22709 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
22710
22711 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
22712 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
22713
22714 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22715 chmod 755 $c/sqlite
22716 chmod 755 $c/mysql
22717
22718 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22719    largefile_support="yes"
22720 fi
22721
22722 #
22723 # A whole lot of hand springs to get the compiler version.
22724 #  This is because gcc changed the output in version 3.0
22725 #
22726 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22727 if test "x${CCVERSION}" = "x" ; then
22728   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22729 fi
22730 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22731 if test x"${CXXVERSION}" = x ; then
22732   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22733 fi
22734
22735 if test "x${subsysdir}" = "x${sbindir}" ; then
22736    echo " "
22737    echo " "
22738    echo "You have set --sbindir and --with-subsys-dir"
22739    echo "  both equal to: ${subsysdir} "
22740    echo "  This is not permitted. Please reconfigure."
22741    echo " "
22742    echo "Aborting configuration ..."
22743    echo " "
22744    echo " "
22745    exit 1
22746 fi
22747
22748 if test "x${db_name}" = "xInternal" ; then
22749    echo " "
22750    echo " "
22751    echo "You have not specified either --enable-client-only or one of the"
22752    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
22753    echo "  This is not permitted. Please reconfigure."
22754    echo " "
22755    echo "Aborting the configuration ..."
22756    echo " "
22757    echo " "
22758    exit 1
22759 fi
22760
22761 echo "
22762 Configuration on `date`:
22763
22764   Host:                       $host -- ${DISTNAME} ${DISTVER}
22765   Bacula version:             ${VERSION} (${DATE})
22766   Source code location:       ${srcdir}
22767   Install binaries:           ${sbindir}
22768   Install config files:       ${sysconfdir}
22769   Scripts directory:          ${scriptdir}
22770   Working directory:          ${working_dir}
22771   PID directory:              ${piddir}
22772   Subsys directory:           ${subsysdir}
22773   Man directory:              ${mandir}
22774   C Compiler:                 ${CC} ${CCVERSION}
22775   C++ Compiler:               ${CXX} ${CXXVERSION}
22776   Compiler flags:             ${WCFLAGS} ${CFLAGS}
22777   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
22778   Libraries:                  ${LIBS}
22779   Statically Linked Tools:    ${support_static_tools}
22780   Statically Linked FD:       ${support_static_fd}
22781   Statically Linked SD:       ${support_static_sd}
22782   Statically Linked DIR:      ${support_static_dir}
22783   Statically Linked CONS:     ${support_static_cons}
22784   Database type:              ${db_name}
22785   Database lib:               ${DB_LIBS}
22786
22787   Job Output Email:           ${job_email}
22788   Traceback Email:            ${dump_email}
22789   SMTP Host Address:          ${smtp_host}
22790
22791   Director Port:              ${dir_port}
22792   File daemon Port:           ${fd_port}
22793   Storage daemon Port:        ${sd_port}
22794
22795   Director User:              ${dir_user}
22796   Director Group:             ${dir_group}
22797   Storage Daemon User:        ${sd_user}
22798   Storage DaemonGroup:        ${sd_group}
22799   File Daemon User:           ${fd_user}
22800   File Daemon Group:          ${fd_group}
22801
22802   SQL binaries Directory      ${SQL_BINDIR}
22803
22804   Large file support:         $largefile_support
22805   Bacula conio support:       ${got_conio} ${CONS_LIBS}
22806   readline support:           ${got_readline} ${PRTREADLINE_SRC}
22807   TCP Wrappers support:       ${TCPW_MSG}
22808   TLS support:                ${support_tls}
22809   ZLIB support:               ${have_zlib}
22810   enable-smartalloc:          ${support_smartalloc}
22811   enable-gnome:               ${support_gnome} ${gnome_version}
22812   enable-wx-console:          ${support_wx_console} ${wx_version}
22813   enable-tray-monitor:        ${support_tray_monitor}
22814   client-only:                ${build_client_only}
22815   ACL support:                ${have_acl}
22816   Python support:             ${support_python} ${PYTHON_LIBS}
22817
22818   " > config.out
22819
22820 cat config.out