]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add techlogs to main dir
[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 MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG 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 GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC 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 bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 X features:
843   --x-includes=DIR    X include files are in DIR
844   --x-libraries=DIR   X library files are in DIR
845
846 System types:
847   --build=BUILD     configure for building on BUILD [guessed]
848   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853
854   cat <<\_ACEOF
855
856 Optional Features:
857   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
858   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
859   --enable-gnome          enable build of gnome-console GUI disabled
860   --enable-wx-console     enable build of wxWidgets console disabled
861   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
862   --enable-smartalloc     enable smartalloc debugging support disabled
863   --enable-static-tools   enable static tape tools disabled
864   --enable-static-fd      enable static File daemon disabled
865   --enable-static-sd      enable static Storage daemon disabled
866   --enable-static-dir     enable static Director disabled
867   --enable-static-cons    enable static Console disabled
868   --enable-client-only    build client (File daemon) only disabled
869   --disable-conio            disable conio support enabled
870
871   --disable-readline      disable readline support disable
872
873   --disable-largefile     omit support for large files
874
875 Optional Packages:
876   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878   --with-gnome-includes   Specify location of GNOME headers
879   --with-gnome-libs       Specify location of GNOME libs
880   --with-gnome            Specify prefix for GNOME files
881  --with-readline=DIR             specify readline library directory
882
883   --with-python=DIR       Include Python support.  DIR is the Python base
884                           install directory, default is to search through
885                           a number of common places for the Python files.
886   --with-tcp-wrappers=DIR        enable tcpwrappers support
887   --with-openssl[=DIR]
888                           Include OpenSSL support. DIR is the OpenSSL base
889   --with-working-dir=PATH        specify path of Bacula working directory
890   --with-scriptdir=PATH    specify path of Bacula scripts directory
891   --with-dump-email=EMAIL        dump email address
892   --with-job-email=EMAIL         job output email address
893   --with-smtp-host=HOST          SMTP mail host address
894   --with-pid-dir=PATH            specify location of Bacula pid files
895   --with-subsys-dir=PATH         specify location of Bacula subsys file
896   --with-baseport=PORT           specify base port address for daemons
897   --with-dir-password=PASSWORD   specify Director's password
898   --with-fd-password=PASSWORD    specify Client's password
899   --with-sd-password=PASSWORD    specify Storage daemon's password
900   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
901   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
902   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
903   --with-bimagemgr-cgidir=DIR   specify bimagemgr cgi-bin dir
904   --with-bimagemgr-docdir=DIR   specify bimagemgr doc root dir
905   --with-bimagemgr-binowner=USER   specify bimagemgr binary file owner
906   --with-bimagemgr-bingroup=USER   specify bimagemgr binary file group
907   --with-bimagemgr-dataowner=USER       specify bimagemgr data file owner
908   --with-bimagemgr-datagroup=USER       specify bimagemgr data file group
909   --with-dir-user=USER           specify user for Director daemon
910   --with-dir-group=GROUP                 specify group for Director daemon
911   --with-sd-user=USER            specify user for Storage daemon
912   --with-sd-group=GROUP          specify group for Storage daemon
913   --with-fd-user=USER            specify user for File daemon
914   --with-fd-group=GROUP          specify group for File daemon
915   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
916   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
917                           base install directory, defaults to /usr/local/pgsql
918
919   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
920                           install directory, default is to search through
921                           a number of common places for the MySQL files.
922
923   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
924                           install directory, default is to search through
925                           a number of common places for the MySQL files.
926
927   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
928                           install directory, default is to search through
929                           a number of common places for the SQLite3 files.
930
931   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
932                           install directory, default is to search through
933                           a number of common places for the SQLite files.
934   --with-x                use the X Window System
935
936 Some influential environment variables:
937   CC          C compiler command
938   CFLAGS      C compiler flags
939   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
940               nonstandard directory <lib dir>
941   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
942               headers in a nonstandard directory <include dir>
943   CXX         C++ compiler command
944   CXXFLAGS    C++ compiler flags
945   CPP         C preprocessor
946
947 Use these variables to override the choices made by `configure' or to help
948 it to find libraries and programs with nonstandard names/locations.
949
950 _ACEOF
951 fi
952
953 if test "$ac_init_help" = "recursive"; then
954   # If there are subdirs, report their specific --help.
955   ac_popdir=`pwd`
956   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
957     test -d $ac_dir || continue
958     ac_builddir=.
959
960 if test "$ac_dir" != .; then
961   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
962   # A "../" for each directory in $ac_dir_suffix.
963   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
964 else
965   ac_dir_suffix= ac_top_builddir=
966 fi
967
968 case $srcdir in
969   .)  # No --srcdir option.  We are building in place.
970     ac_srcdir=.
971     if test -z "$ac_top_builddir"; then
972        ac_top_srcdir=.
973     else
974        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
975     fi ;;
976   [\\/]* | ?:[\\/]* )  # Absolute path.
977     ac_srcdir=$srcdir$ac_dir_suffix;
978     ac_top_srcdir=$srcdir ;;
979   *) # Relative path.
980     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
981     ac_top_srcdir=$ac_top_builddir$srcdir ;;
982 esac
983
984 # Do not use `cd foo && pwd` to compute absolute paths, because
985 # the directories may not exist.
986 case `pwd` in
987 .) ac_abs_builddir="$ac_dir";;
988 *)
989   case "$ac_dir" in
990   .) ac_abs_builddir=`pwd`;;
991   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
992   *) ac_abs_builddir=`pwd`/"$ac_dir";;
993   esac;;
994 esac
995 case $ac_abs_builddir in
996 .) ac_abs_top_builddir=${ac_top_builddir}.;;
997 *)
998   case ${ac_top_builddir}. in
999   .) ac_abs_top_builddir=$ac_abs_builddir;;
1000   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1001   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1002   esac;;
1003 esac
1004 case $ac_abs_builddir in
1005 .) ac_abs_srcdir=$ac_srcdir;;
1006 *)
1007   case $ac_srcdir in
1008   .) ac_abs_srcdir=$ac_abs_builddir;;
1009   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1010   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1011   esac;;
1012 esac
1013 case $ac_abs_builddir in
1014 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1015 *)
1016   case $ac_top_srcdir in
1017   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1018   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1019   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1020   esac;;
1021 esac
1022
1023     cd $ac_dir
1024     # Check for guested configure; otherwise get Cygnus style configure.
1025     if test -f $ac_srcdir/configure.gnu; then
1026       echo
1027       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1028     elif test -f $ac_srcdir/configure; then
1029       echo
1030       $SHELL $ac_srcdir/configure  --help=recursive
1031     elif test -f $ac_srcdir/configure.ac ||
1032            test -f $ac_srcdir/configure.in; then
1033       echo
1034       $ac_configure --help
1035     else
1036       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1037     fi
1038     cd $ac_popdir
1039   done
1040 fi
1041
1042 test -n "$ac_init_help" && exit 0
1043 if $ac_init_version; then
1044   cat <<\_ACEOF
1045
1046 Copyright (C) 2003 Free Software Foundation, Inc.
1047 This configure script is free software; the Free Software Foundation
1048 gives unlimited permission to copy, distribute and modify it.
1049 _ACEOF
1050   exit 0
1051 fi
1052 exec 5>config.log
1053 cat >&5 <<_ACEOF
1054 This file contains any messages produced by compilers while
1055 running configure, to aid debugging if configure makes a mistake.
1056
1057 It was created by $as_me, which was
1058 generated by GNU Autoconf 2.59.  Invocation command line was
1059
1060   $ $0 $@
1061
1062 _ACEOF
1063 {
1064 cat <<_ASUNAME
1065 ## --------- ##
1066 ## Platform. ##
1067 ## --------- ##
1068
1069 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1070 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1071 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1072 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1073 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1074
1075 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1076 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1077
1078 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1079 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1080 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1081 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1082 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1083 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1084 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1085
1086 _ASUNAME
1087
1088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1089 for as_dir in $PATH
1090 do
1091   IFS=$as_save_IFS
1092   test -z "$as_dir" && as_dir=.
1093   echo "PATH: $as_dir"
1094 done
1095
1096 } >&5
1097
1098 cat >&5 <<_ACEOF
1099
1100
1101 ## ----------- ##
1102 ## Core tests. ##
1103 ## ----------- ##
1104
1105 _ACEOF
1106
1107
1108 # Keep a trace of the command line.
1109 # Strip out --no-create and --no-recursion so they do not pile up.
1110 # Strip out --silent because we don't want to record it for future runs.
1111 # Also quote any args containing shell meta-characters.
1112 # Make two passes to allow for proper duplicate-argument suppression.
1113 ac_configure_args=
1114 ac_configure_args0=
1115 ac_configure_args1=
1116 ac_sep=
1117 ac_must_keep_next=false
1118 for ac_pass in 1 2
1119 do
1120   for ac_arg
1121   do
1122     case $ac_arg in
1123     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1124     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125     | -silent | --silent | --silen | --sile | --sil)
1126       continue ;;
1127     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1128       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1129     esac
1130     case $ac_pass in
1131     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1132     2)
1133       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1134       if test $ac_must_keep_next = true; then
1135         ac_must_keep_next=false # Got value, back to normal.
1136       else
1137         case $ac_arg in
1138           *=* | --config-cache | -C | -disable-* | --disable-* \
1139           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1140           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1141           | -with-* | --with-* | -without-* | --without-* | --x)
1142             case "$ac_configure_args0 " in
1143               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1144             esac
1145             ;;
1146           -* ) ac_must_keep_next=true ;;
1147         esac
1148       fi
1149       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1150       # Get rid of the leading space.
1151       ac_sep=" "
1152       ;;
1153     esac
1154   done
1155 done
1156 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1157 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1158
1159 # When interrupted or exit'd, cleanup temporary files, and complete
1160 # config.log.  We remove comments because anyway the quotes in there
1161 # would cause problems or look ugly.
1162 # WARNING: Be sure not to use single quotes in there, as some shells,
1163 # such as our DU 5.0 friend, will then `close' the trap.
1164 trap 'exit_status=$?
1165   # Save into config.log some information that might help in debugging.
1166   {
1167     echo
1168
1169     cat <<\_ASBOX
1170 ## ---------------- ##
1171 ## Cache variables. ##
1172 ## ---------------- ##
1173 _ASBOX
1174     echo
1175     # The following way of writing the cache mishandles newlines in values,
1176 {
1177   (set) 2>&1 |
1178     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1179     *ac_space=\ *)
1180       sed -n \
1181         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1182           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1183       ;;
1184     *)
1185       sed -n \
1186         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1187       ;;
1188     esac;
1189 }
1190     echo
1191
1192     cat <<\_ASBOX
1193 ## ----------------- ##
1194 ## Output variables. ##
1195 ## ----------------- ##
1196 _ASBOX
1197     echo
1198     for ac_var in $ac_subst_vars
1199     do
1200       eval ac_val=$`echo $ac_var`
1201       echo "$ac_var='"'"'$ac_val'"'"'"
1202     done | sort
1203     echo
1204
1205     if test -n "$ac_subst_files"; then
1206       cat <<\_ASBOX
1207 ## ------------- ##
1208 ## Output files. ##
1209 ## ------------- ##
1210 _ASBOX
1211       echo
1212       for ac_var in $ac_subst_files
1213       do
1214         eval ac_val=$`echo $ac_var`
1215         echo "$ac_var='"'"'$ac_val'"'"'"
1216       done | sort
1217       echo
1218     fi
1219
1220     if test -s confdefs.h; then
1221       cat <<\_ASBOX
1222 ## ----------- ##
1223 ## confdefs.h. ##
1224 ## ----------- ##
1225 _ASBOX
1226       echo
1227       sed "/^$/d" confdefs.h | sort
1228       echo
1229     fi
1230     test "$ac_signal" != 0 &&
1231       echo "$as_me: caught signal $ac_signal"
1232     echo "$as_me: exit $exit_status"
1233   } >&5
1234   rm -f core *.core &&
1235   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1236     exit $exit_status
1237      ' 0
1238 for ac_signal in 1 2 13 15; do
1239   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1240 done
1241 ac_signal=0
1242
1243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1244 rm -rf conftest* confdefs.h
1245 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1246 echo >confdefs.h
1247
1248 # Predefined preprocessor variables.
1249
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_NAME "$PACKAGE_NAME"
1252 _ACEOF
1253
1254
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1257 _ACEOF
1258
1259
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1262 _ACEOF
1263
1264
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_STRING "$PACKAGE_STRING"
1267 _ACEOF
1268
1269
1270 cat >>confdefs.h <<_ACEOF
1271 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1272 _ACEOF
1273
1274
1275 # Let the site file select an alternate cache file if it wants to.
1276 # Prefer explicitly selected file to automatically selected ones.
1277 if test -z "$CONFIG_SITE"; then
1278   if test "x$prefix" != xNONE; then
1279     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1280   else
1281     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1282   fi
1283 fi
1284 for ac_site_file in $CONFIG_SITE; do
1285   if test -r "$ac_site_file"; then
1286     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1287 echo "$as_me: loading site script $ac_site_file" >&6;}
1288     sed 's/^/| /' "$ac_site_file" >&5
1289     . "$ac_site_file"
1290   fi
1291 done
1292
1293 if test -r "$cache_file"; then
1294   # Some versions of bash will fail to source /dev/null (special
1295   # files actually), so we avoid doing that.
1296   if test -f "$cache_file"; then
1297     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1298 echo "$as_me: loading cache $cache_file" >&6;}
1299     case $cache_file in
1300       [\\/]* | ?:[\\/]* ) . $cache_file;;
1301       *)                      . ./$cache_file;;
1302     esac
1303   fi
1304 else
1305   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1306 echo "$as_me: creating cache $cache_file" >&6;}
1307   >$cache_file
1308 fi
1309
1310 # Check that the precious variables saved in the cache have kept the same
1311 # value.
1312 ac_cache_corrupted=false
1313 for ac_var in `(set) 2>&1 |
1314                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1315   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1316   eval ac_new_set=\$ac_env_${ac_var}_set
1317   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1318   eval ac_new_val="\$ac_env_${ac_var}_value"
1319   case $ac_old_set,$ac_new_set in
1320     set,)
1321       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1322 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1323       ac_cache_corrupted=: ;;
1324     ,set)
1325       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1326 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1327       ac_cache_corrupted=: ;;
1328     ,);;
1329     *)
1330       if test "x$ac_old_val" != "x$ac_new_val"; then
1331         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1332 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1333         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1334 echo "$as_me:   former value:  $ac_old_val" >&2;}
1335         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1336 echo "$as_me:   current value: $ac_new_val" >&2;}
1337         ac_cache_corrupted=:
1338       fi;;
1339   esac
1340   # Pass precious variables to config.status.
1341   if test "$ac_new_set" = set; then
1342     case $ac_new_val in
1343     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1344       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1345     *) ac_arg=$ac_var=$ac_new_val ;;
1346     esac
1347     case " $ac_configure_args " in
1348       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1349       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1350     esac
1351   fi
1352 done
1353 if $ac_cache_corrupted; then
1354   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1355 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1356   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1357 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1358    { (exit 1); exit 1; }; }
1359 fi
1360
1361 ac_ext=c
1362 ac_cpp='$CPP $CPPFLAGS'
1363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385 BUILD_DIR=`pwd`
1386 cd ..
1387 TOP_DIR=`pwd`
1388 cd ${BUILD_DIR}
1389
1390 ac_aux_dir=
1391 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1392   if test -f $ac_dir/install-sh; then
1393     ac_aux_dir=$ac_dir
1394     ac_install_sh="$ac_aux_dir/install-sh -c"
1395     break
1396   elif test -f $ac_dir/install.sh; then
1397     ac_aux_dir=$ac_dir
1398     ac_install_sh="$ac_aux_dir/install.sh -c"
1399     break
1400   elif test -f $ac_dir/shtool; then
1401     ac_aux_dir=$ac_dir
1402     ac_install_sh="$ac_aux_dir/shtool install -c"
1403     break
1404   fi
1405 done
1406 if test -z "$ac_aux_dir"; then
1407   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1409    { (exit 1); exit 1; }; }
1410 fi
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1414
1415           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1416
1417
1418
1419
1420
1421 for ac_prog in true
1422 do
1423   # Extract the first word of "$ac_prog", so it can be a program name with args.
1424 set dummy $ac_prog; ac_word=$2
1425 echo "$as_me:$LINENO: checking for $ac_word" >&5
1426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1427 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1428   echo $ECHO_N "(cached) $ECHO_C" >&6
1429 else
1430   case $TRUEPRG in
1431   [\\/]* | ?:[\\/]*)
1432   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1433   ;;
1434   *)
1435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1436 for as_dir in $PATH
1437 do
1438   IFS=$as_save_IFS
1439   test -z "$as_dir" && as_dir=.
1440   for ac_exec_ext in '' $ac_executable_extensions; do
1441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1442     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1444     break 2
1445   fi
1446 done
1447 done
1448
1449   ;;
1450 esac
1451 fi
1452 TRUEPRG=$ac_cv_path_TRUEPRG
1453
1454 if test -n "$TRUEPRG"; then
1455   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1456 echo "${ECHO_T}$TRUEPRG" >&6
1457 else
1458   echo "$as_me:$LINENO: result: no" >&5
1459 echo "${ECHO_T}no" >&6
1460 fi
1461
1462   test -n "$TRUEPRG" && break
1463 done
1464 test -n "$TRUEPRG" || TRUEPRG=":"
1465
1466 for ac_prog in false
1467 do
1468   # Extract the first word of "$ac_prog", so it can be a program name with args.
1469 set dummy $ac_prog; ac_word=$2
1470 echo "$as_me:$LINENO: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1473   echo $ECHO_N "(cached) $ECHO_C" >&6
1474 else
1475   case $FALSEPRG in
1476   [\\/]* | ?:[\\/]*)
1477   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1478   ;;
1479   *)
1480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 for as_dir in $PATH
1482 do
1483   IFS=$as_save_IFS
1484   test -z "$as_dir" && as_dir=.
1485   for ac_exec_ext in '' $ac_executable_extensions; do
1486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489     break 2
1490   fi
1491 done
1492 done
1493
1494   ;;
1495 esac
1496 fi
1497 FALSEPRG=$ac_cv_path_FALSEPRG
1498
1499 if test -n "$FALSEPRG"; then
1500   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1501 echo "${ECHO_T}$FALSEPRG" >&6
1502 else
1503   echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1505 fi
1506
1507   test -n "$FALSEPRG" && break
1508 done
1509 test -n "$FALSEPRG" || FALSEPRG=":"
1510
1511
1512 #AC_CANONICAL_HOST
1513
1514 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1516 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 echo "configuring for bacula $VERSION ($DATE)"
1518
1519
1520
1521 ac_ext=c
1522 ac_cpp='$CPP $CPPFLAGS'
1523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526 if test -n "$ac_tool_prefix"; then
1527   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1528 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_CC+set}" = set; then
1532   echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534   if test -n "$CC"; then
1535   ac_cv_prog_CC="$CC" # Let the user override the test.
1536 else
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 for as_dir in $PATH
1539 do
1540   IFS=$as_save_IFS
1541   test -z "$as_dir" && as_dir=.
1542   for ac_exec_ext in '' $ac_executable_extensions; do
1543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546     break 2
1547   fi
1548 done
1549 done
1550
1551 fi
1552 fi
1553 CC=$ac_cv_prog_CC
1554 if test -n "$CC"; then
1555   echo "$as_me:$LINENO: result: $CC" >&5
1556 echo "${ECHO_T}$CC" >&6
1557 else
1558   echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1560 fi
1561
1562 fi
1563 if test -z "$ac_cv_prog_CC"; then
1564   ac_ct_CC=$CC
1565   # Extract the first word of "gcc", so it can be a program name with args.
1566 set dummy gcc; ac_word=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570   echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572   if test -n "$ac_ct_CC"; then
1573   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574 else
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1577 do
1578   IFS=$as_save_IFS
1579   test -z "$as_dir" && as_dir=.
1580   for ac_exec_ext in '' $ac_executable_extensions; do
1581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582     ac_cv_prog_ac_ct_CC="gcc"
1583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584     break 2
1585   fi
1586 done
1587 done
1588
1589 fi
1590 fi
1591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592 if test -n "$ac_ct_CC"; then
1593   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594 echo "${ECHO_T}$ac_ct_CC" >&6
1595 else
1596   echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1598 fi
1599
1600   CC=$ac_ct_CC
1601 else
1602   CC="$ac_cv_prog_CC"
1603 fi
1604
1605 if test -z "$CC"; then
1606   if test -n "$ac_tool_prefix"; then
1607   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1608 set dummy ${ac_tool_prefix}cc; ac_word=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612   echo $ECHO_N "(cached) $ECHO_C" >&6
1613 else
1614   if test -n "$CC"; then
1615   ac_cv_prog_CC="$CC" # Let the user override the test.
1616 else
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 for as_dir in $PATH
1619 do
1620   IFS=$as_save_IFS
1621   test -z "$as_dir" && as_dir=.
1622   for ac_exec_ext in '' $ac_executable_extensions; do
1623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624     ac_cv_prog_CC="${ac_tool_prefix}cc"
1625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626     break 2
1627   fi
1628 done
1629 done
1630
1631 fi
1632 fi
1633 CC=$ac_cv_prog_CC
1634 if test -n "$CC"; then
1635   echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1637 else
1638   echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1640 fi
1641
1642 fi
1643 if test -z "$ac_cv_prog_CC"; then
1644   ac_ct_CC=$CC
1645   # Extract the first word of "cc", so it can be a program name with args.
1646 set dummy cc; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650   echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652   if test -n "$ac_ct_CC"; then
1653   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 else
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658   IFS=$as_save_IFS
1659   test -z "$as_dir" && as_dir=.
1660   for ac_exec_ext in '' $ac_executable_extensions; do
1661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662     ac_cv_prog_ac_ct_CC="cc"
1663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664     break 2
1665   fi
1666 done
1667 done
1668
1669 fi
1670 fi
1671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672 if test -n "$ac_ct_CC"; then
1673   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674 echo "${ECHO_T}$ac_ct_CC" >&6
1675 else
1676   echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1678 fi
1679
1680   CC=$ac_ct_CC
1681 else
1682   CC="$ac_cv_prog_CC"
1683 fi
1684
1685 fi
1686 if test -z "$CC"; then
1687   # Extract the first word of "cc", so it can be a program name with args.
1688 set dummy cc; ac_word=$2
1689 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691 if test "${ac_cv_prog_CC+set}" = set; then
1692   echo $ECHO_N "(cached) $ECHO_C" >&6
1693 else
1694   if test -n "$CC"; then
1695   ac_cv_prog_CC="$CC" # Let the user override the test.
1696 else
1697   ac_prog_rejected=no
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701   IFS=$as_save_IFS
1702   test -z "$as_dir" && as_dir=.
1703   for ac_exec_ext in '' $ac_executable_extensions; do
1704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1706        ac_prog_rejected=yes
1707        continue
1708      fi
1709     ac_cv_prog_CC="cc"
1710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711     break 2
1712   fi
1713 done
1714 done
1715
1716 if test $ac_prog_rejected = yes; then
1717   # We found a bogon in the path, so make sure we never use it.
1718   set dummy $ac_cv_prog_CC
1719   shift
1720   if test $# != 0; then
1721     # We chose a different compiler from the bogus one.
1722     # However, it has the same basename, so the bogon will be chosen
1723     # first if we set CC to just the basename; use the full file name.
1724     shift
1725     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1726   fi
1727 fi
1728 fi
1729 fi
1730 CC=$ac_cv_prog_CC
1731 if test -n "$CC"; then
1732   echo "$as_me:$LINENO: result: $CC" >&5
1733 echo "${ECHO_T}$CC" >&6
1734 else
1735   echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1737 fi
1738
1739 fi
1740 if test -z "$CC"; then
1741   if test -n "$ac_tool_prefix"; then
1742   for ac_prog in cl
1743   do
1744     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_CC+set}" = set; then
1749   echo $ECHO_N "(cached) $ECHO_C" >&6
1750 else
1751   if test -n "$CC"; then
1752   ac_cv_prog_CC="$CC" # Let the user override the test.
1753 else
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 for as_dir in $PATH
1756 do
1757   IFS=$as_save_IFS
1758   test -z "$as_dir" && as_dir=.
1759   for ac_exec_ext in '' $ac_executable_extensions; do
1760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763     break 2
1764   fi
1765 done
1766 done
1767
1768 fi
1769 fi
1770 CC=$ac_cv_prog_CC
1771 if test -n "$CC"; then
1772   echo "$as_me:$LINENO: result: $CC" >&5
1773 echo "${ECHO_T}$CC" >&6
1774 else
1775   echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1777 fi
1778
1779     test -n "$CC" && break
1780   done
1781 fi
1782 if test -z "$CC"; then
1783   ac_ct_CC=$CC
1784   for ac_prog in cl
1785 do
1786   # Extract the first word of "$ac_prog", so it can be a program name with args.
1787 set dummy $ac_prog; ac_word=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791   echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793   if test -n "$ac_ct_CC"; then
1794   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1795 else
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 for as_dir in $PATH
1798 do
1799   IFS=$as_save_IFS
1800   test -z "$as_dir" && as_dir=.
1801   for ac_exec_ext in '' $ac_executable_extensions; do
1802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803     ac_cv_prog_ac_ct_CC="$ac_prog"
1804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805     break 2
1806   fi
1807 done
1808 done
1809
1810 fi
1811 fi
1812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1813 if test -n "$ac_ct_CC"; then
1814   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815 echo "${ECHO_T}$ac_ct_CC" >&6
1816 else
1817   echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1819 fi
1820
1821   test -n "$ac_ct_CC" && break
1822 done
1823
1824   CC=$ac_ct_CC
1825 fi
1826
1827 fi
1828
1829
1830 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&2;}
1834    { (exit 1); exit 1; }; }
1835
1836 # Provide some information about the compiler.
1837 echo "$as_me:$LINENO:" \
1838      "checking for C compiler version" >&5
1839 ac_compiler=`set X $ac_compile; echo $2`
1840 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1841   (eval $ac_compiler --version </dev/null >&5) 2>&5
1842   ac_status=$?
1843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844   (exit $ac_status); }
1845 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1846   (eval $ac_compiler -v </dev/null >&5) 2>&5
1847   ac_status=$?
1848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849   (exit $ac_status); }
1850 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1851   (eval $ac_compiler -V </dev/null >&5) 2>&5
1852   ac_status=$?
1853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854   (exit $ac_status); }
1855
1856 cat >conftest.$ac_ext <<_ACEOF
1857 /* confdefs.h.  */
1858 _ACEOF
1859 cat confdefs.h >>conftest.$ac_ext
1860 cat >>conftest.$ac_ext <<_ACEOF
1861 /* end confdefs.h.  */
1862
1863 int
1864 main ()
1865 {
1866
1867   ;
1868   return 0;
1869 }
1870 _ACEOF
1871 ac_clean_files_save=$ac_clean_files
1872 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1873 # Try to create an executable without -o first, disregard a.out.
1874 # It will help us diagnose broken compilers, and finding out an intuition
1875 # of exeext.
1876 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1877 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1878 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1879 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1880   (eval $ac_link_default) 2>&5
1881   ac_status=$?
1882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883   (exit $ac_status); }; then
1884   # Find the output, starting from the most likely.  This scheme is
1885 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1886 # resort.
1887
1888 # Be careful to initialize this variable, since it used to be cached.
1889 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1890 ac_cv_exeext=
1891 # b.out is created by i960 compilers.
1892 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1893 do
1894   test -f "$ac_file" || continue
1895   case $ac_file in
1896     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1897         ;;
1898     conftest.$ac_ext )
1899         # This is the source file.
1900         ;;
1901     [ab].out )
1902         # We found the default executable, but exeext='' is most
1903         # certainly right.
1904         break;;
1905     *.* )
1906         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907         # FIXME: I believe we export ac_cv_exeext for Libtool,
1908         # but it would be cool to find out if it's true.  Does anybody
1909         # maintain Libtool? --akim.
1910         export ac_cv_exeext
1911         break;;
1912     * )
1913         break;;
1914   esac
1915 done
1916 else
1917   echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&2;}
1924    { (exit 77); exit 77; }; }
1925 fi
1926
1927 ac_exeext=$ac_cv_exeext
1928 echo "$as_me:$LINENO: result: $ac_file" >&5
1929 echo "${ECHO_T}$ac_file" >&6
1930
1931 # Check the compiler produces executables we can run.  If not, either
1932 # the compiler is broken, or we cross compile.
1933 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1934 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1935 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1936 # If not cross compiling, check that we can run a simple program.
1937 if test "$cross_compiling" != yes; then
1938   if { ac_try='./$ac_file'
1939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940   (eval $ac_try) 2>&5
1941   ac_status=$?
1942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943   (exit $ac_status); }; }; then
1944     cross_compiling=no
1945   else
1946     if test "$cross_compiling" = maybe; then
1947         cross_compiling=yes
1948     else
1949         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot run C compiled programs.
1953 If you meant to cross compile, use \`--host'.
1954 See \`config.log' for more details." >&2;}
1955    { (exit 1); exit 1; }; }
1956     fi
1957   fi
1958 fi
1959 echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1961
1962 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1963 ac_clean_files=$ac_clean_files_save
1964 # Check the compiler produces executables we can run.  If not, either
1965 # the compiler is broken, or we cross compile.
1966 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1967 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1968 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1969 echo "${ECHO_T}$cross_compiling" >&6
1970
1971 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1972 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1974   (eval $ac_link) 2>&5
1975   ac_status=$?
1976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977   (exit $ac_status); }; then
1978   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1979 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1980 # work properly (i.e., refer to `conftest.exe'), while it won't with
1981 # `rm'.
1982 for ac_file in conftest.exe conftest conftest.*; do
1983   test -f "$ac_file" || continue
1984   case $ac_file in
1985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1986     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1987           export ac_cv_exeext
1988           break;;
1989     * ) break;;
1990   esac
1991 done
1992 else
1993   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000 rm -f conftest$ac_cv_exeext
2001 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2002 echo "${ECHO_T}$ac_cv_exeext" >&6
2003
2004 rm -f conftest.$ac_ext
2005 EXEEXT=$ac_cv_exeext
2006 ac_exeext=$EXEEXT
2007 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2008 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2009 if test "${ac_cv_objext+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   cat >conftest.$ac_ext <<_ACEOF
2013 /* confdefs.h.  */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h.  */
2018
2019 int
2020 main ()
2021 {
2022
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 rm -f conftest.o conftest.obj
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029   (eval $ac_compile) 2>&5
2030   ac_status=$?
2031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032   (exit $ac_status); }; then
2033   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2034   case $ac_file in
2035     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2036     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2037        break;;
2038   esac
2039 done
2040 else
2041   echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&2;}
2048    { (exit 1); exit 1; }; }
2049 fi
2050
2051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2054 echo "${ECHO_T}$ac_cv_objext" >&6
2055 OBJEXT=$ac_cv_objext
2056 ac_objext=$OBJEXT
2057 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   cat >conftest.$ac_ext <<_ACEOF
2063 /* confdefs.h.  */
2064 _ACEOF
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h.  */
2068
2069 int
2070 main ()
2071 {
2072 #ifndef __GNUC__
2073        choke me
2074 #endif
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082   (eval $ac_compile) 2>conftest.er1
2083   ac_status=$?
2084   grep -v '^ *+' conftest.er1 >conftest.err
2085   rm -f conftest.er1
2086   cat conftest.err >&5
2087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088   (exit $ac_status); } &&
2089          { ac_try='test -z "$ac_c_werror_flag"
2090                          || test ! -s conftest.err'
2091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092   (eval $ac_try) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; } &&
2096          { ac_try='test -s conftest.$ac_objext'
2097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098   (eval $ac_try) 2>&5
2099   ac_status=$?
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); }; }; then
2102   ac_compiler_gnu=yes
2103 else
2104   echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2106
2107 ac_compiler_gnu=no
2108 fi
2109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2110 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2111
2112 fi
2113 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2114 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2115 GCC=`test $ac_compiler_gnu = yes && echo yes`
2116 ac_test_CFLAGS=${CFLAGS+set}
2117 ac_save_CFLAGS=$CFLAGS
2118 CFLAGS="-g"
2119 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2120 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2121 if test "${ac_cv_prog_cc_g+set}" = set; then
2122   echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124   cat >conftest.$ac_ext <<_ACEOF
2125 /* confdefs.h.  */
2126 _ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h.  */
2130
2131 int
2132 main ()
2133 {
2134
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 rm -f conftest.$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141   (eval $ac_compile) 2>conftest.er1
2142   ac_status=$?
2143   grep -v '^ *+' conftest.er1 >conftest.err
2144   rm -f conftest.er1
2145   cat conftest.err >&5
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); } &&
2148          { ac_try='test -z "$ac_c_werror_flag"
2149                          || test ! -s conftest.err'
2150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151   (eval $ac_try) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; } &&
2155          { ac_try='test -s conftest.$ac_objext'
2156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157   (eval $ac_try) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; }; then
2161   ac_cv_prog_cc_g=yes
2162 else
2163   echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2165
2166 ac_cv_prog_cc_g=no
2167 fi
2168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2169 fi
2170 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2171 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2172 if test "$ac_test_CFLAGS" = set; then
2173   CFLAGS=$ac_save_CFLAGS
2174 elif test $ac_cv_prog_cc_g = yes; then
2175   if test "$GCC" = yes; then
2176     CFLAGS="-g -O2"
2177   else
2178     CFLAGS="-g"
2179   fi
2180 else
2181   if test "$GCC" = yes; then
2182     CFLAGS="-O2"
2183   else
2184     CFLAGS=
2185   fi
2186 fi
2187 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2188 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2189 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2190   echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192   ac_cv_prog_cc_stdc=no
2193 ac_save_CC=$CC
2194 cat >conftest.$ac_ext <<_ACEOF
2195 /* confdefs.h.  */
2196 _ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h.  */
2200 #include <stdarg.h>
2201 #include <stdio.h>
2202 #include <sys/types.h>
2203 #include <sys/stat.h>
2204 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2205 struct buf { int x; };
2206 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2207 static char *e (p, i)
2208      char **p;
2209      int i;
2210 {
2211   return p[i];
2212 }
2213 static char *f (char * (*g) (char **, int), char **p, ...)
2214 {
2215   char *s;
2216   va_list v;
2217   va_start (v,p);
2218   s = g (p, va_arg (v,int));
2219   va_end (v);
2220   return s;
2221 }
2222
2223 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2224    function prototypes and stuff, but not '\xHH' hex character constants.
2225    These don't provoke an error unfortunately, instead are silently treated
2226    as 'x'.  The following induces an error, until -std1 is added to get
2227    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2228    array size at least.  It's necessary to write '\x00'==0 to get something
2229    that's true only with -std1.  */
2230 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2231
2232 int test (int i, double x);
2233 struct s1 {int (*f) (int a);};
2234 struct s2 {int (*f) (double a);};
2235 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2236 int argc;
2237 char **argv;
2238 int
2239 main ()
2240 {
2241 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 # Don't try gcc -ansi; that turns off useful extensions and
2247 # breaks some systems' header files.
2248 # AIX                   -qlanglvl=ansi
2249 # Ultrix and OSF/1      -std1
2250 # HP-UX 10.20 and later -Ae
2251 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2252 # SVR4                  -Xc -D__EXTENSIONS__
2253 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2254 do
2255   CC="$ac_save_CC $ac_arg"
2256   rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258   (eval $ac_compile) 2>conftest.er1
2259   ac_status=$?
2260   grep -v '^ *+' conftest.er1 >conftest.err
2261   rm -f conftest.er1
2262   cat conftest.err >&5
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); } &&
2265          { ac_try='test -z "$ac_c_werror_flag"
2266                          || test ! -s conftest.err'
2267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268   (eval $ac_try) 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; } &&
2272          { ac_try='test -s conftest.$ac_objext'
2273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274   (eval $ac_try) 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); }; }; then
2278   ac_cv_prog_cc_stdc=$ac_arg
2279 break
2280 else
2281   echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2283
2284 fi
2285 rm -f conftest.err conftest.$ac_objext
2286 done
2287 rm -f conftest.$ac_ext conftest.$ac_objext
2288 CC=$ac_save_CC
2289
2290 fi
2291
2292 case "x$ac_cv_prog_cc_stdc" in
2293   x|xno)
2294     echo "$as_me:$LINENO: result: none needed" >&5
2295 echo "${ECHO_T}none needed" >&6 ;;
2296   *)
2297     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2298 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2299     CC="$CC $ac_cv_prog_cc_stdc" ;;
2300 esac
2301
2302 # Some people use a C++ compiler to compile C.  Since we use `exit',
2303 # in C++ we need to declare it.  In case someone uses the same compiler
2304 # for both compiling C and C++ we need to have the C++ compiler decide
2305 # the declaration of exit, since it's the most demanding environment.
2306 cat >conftest.$ac_ext <<_ACEOF
2307 #ifndef __cplusplus
2308   choke me
2309 #endif
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313   (eval $ac_compile) 2>conftest.er1
2314   ac_status=$?
2315   grep -v '^ *+' conftest.er1 >conftest.err
2316   rm -f conftest.er1
2317   cat conftest.err >&5
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); } &&
2320          { ac_try='test -z "$ac_c_werror_flag"
2321                          || test ! -s conftest.err'
2322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323   (eval $ac_try) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }; } &&
2327          { ac_try='test -s conftest.$ac_objext'
2328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329   (eval $ac_try) 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }; }; then
2333   for ac_declaration in \
2334    '' \
2335    'extern "C" void std::exit (int) throw (); using std::exit;' \
2336    'extern "C" void std::exit (int); using std::exit;' \
2337    'extern "C" void exit (int) throw ();' \
2338    'extern "C" void exit (int);' \
2339    'void exit (int);'
2340 do
2341   cat >conftest.$ac_ext <<_ACEOF
2342 /* confdefs.h.  */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h.  */
2347 $ac_declaration
2348 #include <stdlib.h>
2349 int
2350 main ()
2351 {
2352 exit (42);
2353   ;
2354   return 0;
2355 }
2356 _ACEOF
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359   (eval $ac_compile) 2>conftest.er1
2360   ac_status=$?
2361   grep -v '^ *+' conftest.er1 >conftest.err
2362   rm -f conftest.er1
2363   cat conftest.err >&5
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); } &&
2366          { ac_try='test -z "$ac_c_werror_flag"
2367                          || test ! -s conftest.err'
2368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369   (eval $ac_try) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; } &&
2373          { ac_try='test -s conftest.$ac_objext'
2374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375   (eval $ac_try) 2>&5
2376   ac_status=$?
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); }; }; then
2379   :
2380 else
2381   echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2383
2384 continue
2385 fi
2386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387   cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393 $ac_declaration
2394 int
2395 main ()
2396 {
2397 exit (42);
2398   ;
2399   return 0;
2400 }
2401 _ACEOF
2402 rm -f conftest.$ac_objext
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404   (eval $ac_compile) 2>conftest.er1
2405   ac_status=$?
2406   grep -v '^ *+' conftest.er1 >conftest.err
2407   rm -f conftest.er1
2408   cat conftest.err >&5
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); } &&
2411          { ac_try='test -z "$ac_c_werror_flag"
2412                          || test ! -s conftest.err'
2413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414   (eval $ac_try) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; } &&
2418          { ac_try='test -s conftest.$ac_objext'
2419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420   (eval $ac_try) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; }; then
2424   break
2425 else
2426   echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2428
2429 fi
2430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431 done
2432 rm -f conftest*
2433 if test -n "$ac_declaration"; then
2434   echo '#ifdef __cplusplus' >>confdefs.h
2435   echo $ac_declaration      >>confdefs.h
2436   echo '#endif'             >>confdefs.h
2437 fi
2438
2439 else
2440   echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 fi
2444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 ac_ext=c
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450
2451 ac_ext=cc
2452 ac_cpp='$CXXCPP $CPPFLAGS'
2453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2456 if test -n "$ac_tool_prefix"; then
2457   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2458   do
2459     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2461 echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2463 if test "${ac_cv_prog_CXX+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   if test -n "$CXX"; then
2467   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474   for ac_exec_ext in '' $ac_executable_extensions; do
2475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478     break 2
2479   fi
2480 done
2481 done
2482
2483 fi
2484 fi
2485 CXX=$ac_cv_prog_CXX
2486 if test -n "$CXX"; then
2487   echo "$as_me:$LINENO: result: $CXX" >&5
2488 echo "${ECHO_T}$CXX" >&6
2489 else
2490   echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6
2492 fi
2493
2494     test -n "$CXX" && break
2495   done
2496 fi
2497 if test -z "$CXX"; then
2498   ac_ct_CXX=$CXX
2499   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2500 do
2501   # Extract the first word of "$ac_prog", so it can be a program name with args.
2502 set dummy $ac_prog; ac_word=$2
2503 echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2505 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   if test -n "$ac_ct_CXX"; then
2509   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514   IFS=$as_save_IFS
2515   test -z "$as_dir" && as_dir=.
2516   for ac_exec_ext in '' $ac_executable_extensions; do
2517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2518     ac_cv_prog_ac_ct_CXX="$ac_prog"
2519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520     break 2
2521   fi
2522 done
2523 done
2524
2525 fi
2526 fi
2527 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2528 if test -n "$ac_ct_CXX"; then
2529   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2530 echo "${ECHO_T}$ac_ct_CXX" >&6
2531 else
2532   echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6
2534 fi
2535
2536   test -n "$ac_ct_CXX" && break
2537 done
2538 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2539
2540   CXX=$ac_ct_CXX
2541 fi
2542
2543
2544 # Provide some information about the compiler.
2545 echo "$as_me:$LINENO:" \
2546      "checking for C++ compiler version" >&5
2547 ac_compiler=`set X $ac_compile; echo $2`
2548 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2549   (eval $ac_compiler --version </dev/null >&5) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }
2553 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2554   (eval $ac_compiler -v </dev/null >&5) 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); }
2558 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2559   (eval $ac_compiler -V </dev/null >&5) 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }
2563
2564 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2565 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2566 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2567   echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569   cat >conftest.$ac_ext <<_ACEOF
2570 /* confdefs.h.  */
2571 _ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h.  */
2575
2576 int
2577 main ()
2578 {
2579 #ifndef __GNUC__
2580        choke me
2581 #endif
2582
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589   (eval $ac_compile) 2>conftest.er1
2590   ac_status=$?
2591   grep -v '^ *+' conftest.er1 >conftest.err
2592   rm -f conftest.er1
2593   cat conftest.err >&5
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); } &&
2596          { ac_try='test -z "$ac_cxx_werror_flag"
2597                          || test ! -s conftest.err'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; } &&
2603          { ac_try='test -s conftest.$ac_objext'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; }; then
2609   ac_compiler_gnu=yes
2610 else
2611   echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 ac_compiler_gnu=no
2615 fi
2616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2618
2619 fi
2620 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2621 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2622 GXX=`test $ac_compiler_gnu = yes && echo yes`
2623 ac_test_CXXFLAGS=${CXXFLAGS+set}
2624 ac_save_CXXFLAGS=$CXXFLAGS
2625 CXXFLAGS="-g"
2626 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2627 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2628 if test "${ac_cv_prog_cxx_g+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   cat >conftest.$ac_ext <<_ACEOF
2632 /* confdefs.h.  */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h.  */
2637
2638 int
2639 main ()
2640 {
2641
2642   ;
2643   return 0;
2644 }
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648   (eval $ac_compile) 2>conftest.er1
2649   ac_status=$?
2650   grep -v '^ *+' conftest.er1 >conftest.err
2651   rm -f conftest.er1
2652   cat conftest.err >&5
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); } &&
2655          { ac_try='test -z "$ac_cxx_werror_flag"
2656                          || test ! -s conftest.err'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; } &&
2662          { ac_try='test -s conftest.$ac_objext'
2663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664   (eval $ac_try) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; }; then
2668   ac_cv_prog_cxx_g=yes
2669 else
2670   echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673 ac_cv_prog_cxx_g=no
2674 fi
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676 fi
2677 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2678 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2679 if test "$ac_test_CXXFLAGS" = set; then
2680   CXXFLAGS=$ac_save_CXXFLAGS
2681 elif test $ac_cv_prog_cxx_g = yes; then
2682   if test "$GXX" = yes; then
2683     CXXFLAGS="-g -O2"
2684   else
2685     CXXFLAGS="-g"
2686   fi
2687 else
2688   if test "$GXX" = yes; then
2689     CXXFLAGS="-O2"
2690   else
2691     CXXFLAGS=
2692   fi
2693 fi
2694 for ac_declaration in \
2695    '' \
2696    'extern "C" void std::exit (int) throw (); using std::exit;' \
2697    'extern "C" void std::exit (int); using std::exit;' \
2698    'extern "C" void exit (int) throw ();' \
2699    'extern "C" void exit (int);' \
2700    'void exit (int);'
2701 do
2702   cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h.  */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h.  */
2708 $ac_declaration
2709 #include <stdlib.h>
2710 int
2711 main ()
2712 {
2713 exit (42);
2714   ;
2715   return 0;
2716 }
2717 _ACEOF
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720   (eval $ac_compile) 2>conftest.er1
2721   ac_status=$?
2722   grep -v '^ *+' conftest.er1 >conftest.err
2723   rm -f conftest.er1
2724   cat conftest.err >&5
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); } &&
2727          { ac_try='test -z "$ac_cxx_werror_flag"
2728                          || test ! -s conftest.err'
2729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; } &&
2734          { ac_try='test -s conftest.$ac_objext'
2735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736   (eval $ac_try) 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }; }; then
2740   :
2741 else
2742   echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2744
2745 continue
2746 fi
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748   cat >conftest.$ac_ext <<_ACEOF
2749 /* confdefs.h.  */
2750 _ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h.  */
2754 $ac_declaration
2755 int
2756 main ()
2757 {
2758 exit (42);
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765   (eval $ac_compile) 2>conftest.er1
2766   ac_status=$?
2767   grep -v '^ *+' conftest.er1 >conftest.err
2768   rm -f conftest.er1
2769   cat conftest.err >&5
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); } &&
2772          { ac_try='test -z "$ac_cxx_werror_flag"
2773                          || test ! -s conftest.err'
2774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; } &&
2779          { ac_try='test -s conftest.$ac_objext'
2780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781   (eval $ac_try) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; }; then
2785   break
2786 else
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 fi
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792 done
2793 rm -f conftest*
2794 if test -n "$ac_declaration"; then
2795   echo '#ifdef __cplusplus' >>confdefs.h
2796   echo $ac_declaration      >>confdefs.h
2797   echo '#endif'             >>confdefs.h
2798 fi
2799
2800 ac_ext=c
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805
2806 if test "x$CC" != xcc; then
2807   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2808 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2809 else
2810   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2811 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2812 fi
2813 set dummy $CC; ac_cc=`echo $2 |
2814                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2815 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824
2825 int
2826 main ()
2827 {
2828
2829   ;
2830   return 0;
2831 }
2832 _ACEOF
2833 # Make sure it works both with $CC and with simple cc.
2834 # We do the test twice because some compilers refuse to overwrite an
2835 # existing .o file with -o, though they will create one.
2836 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2837 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838   (eval $ac_try) 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); } &&
2842    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843   (eval $ac_try) 2>&5
2844   ac_status=$?
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); };
2847 then
2848   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2849   if test "x$CC" != xcc; then
2850     # Test first that cc exists at all.
2851     if { ac_try='cc -c conftest.$ac_ext >&5'
2852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; }; then
2857       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2858       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859   (eval $ac_try) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); } &&
2863          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864   (eval $ac_try) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); };
2868       then
2869         # cc works too.
2870         :
2871       else
2872         # cc exists but doesn't like -o.
2873         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2874       fi
2875     fi
2876   fi
2877 else
2878   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2879 fi
2880 rm -f conftest*
2881
2882 fi
2883 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2884   echo "$as_me:$LINENO: result: yes" >&5
2885 echo "${ECHO_T}yes" >&6
2886 else
2887   echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6
2889
2890 cat >>confdefs.h <<\_ACEOF
2891 #define NO_MINUS_C_MINUS_O 1
2892 _ACEOF
2893
2894 fi
2895
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2905   CPP=
2906 fi
2907 if test -z "$CPP"; then
2908   if test "${ac_cv_prog_CPP+set}" = set; then
2909   echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911       # Double quotes because CPP needs to be expanded
2912     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2913     do
2914       ac_preproc_ok=false
2915 for ac_c_preproc_warn_flag in '' yes
2916 do
2917   # Use a header file that comes with gcc, so configuring glibc
2918   # with a fresh cross-compiler works.
2919   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920   # <limits.h> exists even on freestanding compilers.
2921   # On the NeXT, cc -E runs the code through the compiler's parser,
2922   # not just through cpp. "Syntax error" is here to catch this case.
2923   cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h.  */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h.  */
2929 #ifdef __STDC__
2930 # include <limits.h>
2931 #else
2932 # include <assert.h>
2933 #endif
2934                      Syntax error
2935 _ACEOF
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938   ac_status=$?
2939   grep -v '^ *+' conftest.er1 >conftest.err
2940   rm -f conftest.er1
2941   cat conftest.err >&5
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); } >/dev/null; then
2944   if test -s conftest.err; then
2945     ac_cpp_err=$ac_c_preproc_warn_flag
2946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2947   else
2948     ac_cpp_err=
2949   fi
2950 else
2951   ac_cpp_err=yes
2952 fi
2953 if test -z "$ac_cpp_err"; then
2954   :
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959   # Broken: fails on valid input.
2960 continue
2961 fi
2962 rm -f conftest.err conftest.$ac_ext
2963
2964   # OK, works on sane cases.  Now check whether non-existent headers
2965   # can be detected and how.
2966   cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h.  */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h.  */
2972 #include <ac_nonexistent.h>
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } >/dev/null; then
2982   if test -s conftest.err; then
2983     ac_cpp_err=$ac_c_preproc_warn_flag
2984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985   else
2986     ac_cpp_err=
2987   fi
2988 else
2989   ac_cpp_err=yes
2990 fi
2991 if test -z "$ac_cpp_err"; then
2992   # Broken: success on invalid input.
2993 continue
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998   # Passes both tests.
2999 ac_preproc_ok=:
3000 break
3001 fi
3002 rm -f conftest.err conftest.$ac_ext
3003
3004 done
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.$ac_ext
3007 if $ac_preproc_ok; then
3008   break
3009 fi
3010
3011     done
3012     ac_cv_prog_CPP=$CPP
3013
3014 fi
3015   CPP=$ac_cv_prog_CPP
3016 else
3017   ac_cv_prog_CPP=$CPP
3018 fi
3019 echo "$as_me:$LINENO: result: $CPP" >&5
3020 echo "${ECHO_T}$CPP" >&6
3021 ac_preproc_ok=false
3022 for ac_c_preproc_warn_flag in '' yes
3023 do
3024   # Use a header file that comes with gcc, so configuring glibc
3025   # with a fresh cross-compiler works.
3026   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027   # <limits.h> exists even on freestanding compilers.
3028   # On the NeXT, cc -E runs the code through the compiler's parser,
3029   # not just through cpp. "Syntax error" is here to catch this case.
3030   cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h.  */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h.  */
3036 #ifdef __STDC__
3037 # include <limits.h>
3038 #else
3039 # include <assert.h>
3040 #endif
3041                      Syntax error
3042 _ACEOF
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3045   ac_status=$?
3046   grep -v '^ *+' conftest.er1 >conftest.err
3047   rm -f conftest.er1
3048   cat conftest.err >&5
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } >/dev/null; then
3051   if test -s conftest.err; then
3052     ac_cpp_err=$ac_c_preproc_warn_flag
3053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3054   else
3055     ac_cpp_err=
3056   fi
3057 else
3058   ac_cpp_err=yes
3059 fi
3060 if test -z "$ac_cpp_err"; then
3061   :
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066   # Broken: fails on valid input.
3067 continue
3068 fi
3069 rm -f conftest.err conftest.$ac_ext
3070
3071   # OK, works on sane cases.  Now check whether non-existent headers
3072   # can be detected and how.
3073   cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h.  */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h.  */
3079 #include <ac_nonexistent.h>
3080 _ACEOF
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } >/dev/null; then
3089   if test -s conftest.err; then
3090     ac_cpp_err=$ac_c_preproc_warn_flag
3091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3092   else
3093     ac_cpp_err=
3094   fi
3095 else
3096   ac_cpp_err=yes
3097 fi
3098 if test -z "$ac_cpp_err"; then
3099   # Broken: success on invalid input.
3100 continue
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105   # Passes both tests.
3106 ac_preproc_ok=:
3107 break
3108 fi
3109 rm -f conftest.err conftest.$ac_ext
3110
3111 done
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3115   :
3116 else
3117   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121    { (exit 1); exit 1; }; }
3122 fi
3123
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129
3130
3131 echo "$as_me:$LINENO: checking for egrep" >&5
3132 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3133 if test "${ac_cv_prog_egrep+set}" = set; then
3134   echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3137     then ac_cv_prog_egrep='grep -E'
3138     else ac_cv_prog_egrep='egrep'
3139     fi
3140 fi
3141 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3142 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3143  EGREP=$ac_cv_prog_egrep
3144
3145
3146 if test $ac_cv_c_compiler_gnu = yes; then
3147     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3148 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3149 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152     ac_pattern="Autoconf.*'x'"
3153   cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h.  */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h.  */
3159 #include <sgtty.h>
3160 Autoconf TIOCGETP
3161 _ACEOF
3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3163   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3164   ac_cv_prog_gcc_traditional=yes
3165 else
3166   ac_cv_prog_gcc_traditional=no
3167 fi
3168 rm -f conftest*
3169
3170
3171   if test $ac_cv_prog_gcc_traditional = no; then
3172     cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178 #include <termio.h>
3179 Autoconf TCGETA
3180 _ACEOF
3181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3182   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3183   ac_cv_prog_gcc_traditional=yes
3184 fi
3185 rm -f conftest*
3186
3187   fi
3188 fi
3189 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3190 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3191   if test $ac_cv_prog_gcc_traditional = yes; then
3192     CC="$CC -traditional"
3193   fi
3194 fi
3195
3196 if test "x$CC" = xgcc
3197 then
3198    cat >>confdefs.h <<\_ACEOF
3199 #define HAVE_GCC 1
3200 _ACEOF
3201
3202 fi
3203
3204 # Find a good install program.  We prefer a C program (faster),
3205 # so one script is as good as another.  But avoid the broken or
3206 # incompatible versions:
3207 # SysV /etc/install, /usr/sbin/install
3208 # SunOS /usr/etc/install
3209 # IRIX /sbin/install
3210 # AIX /bin/install
3211 # AmigaOS /C/install, which installs bootblocks on floppy discs
3212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3215 # OS/2's system install, which has a completely different semantic
3216 # ./install, which can be erroneously created by make from ./install.sh.
3217 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3218 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3219 if test -z "$INSTALL"; then
3220 if test "${ac_cv_path_install+set}" = set; then
3221   echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228   # Account for people who put trailing slashes in PATH elements.
3229 case $as_dir/ in
3230   ./ | .// | /cC/* | \
3231   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3232   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3233   /usr/ucb/* ) ;;
3234   *)
3235     # OSF1 and SCO ODT 3.0 have their own names for install.
3236     # Don't use installbsd from OSF since it installs stuff as root
3237     # by default.
3238     for ac_prog in ginstall scoinst install; do
3239       for ac_exec_ext in '' $ac_executable_extensions; do
3240         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3241           if test $ac_prog = install &&
3242             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3243             # AIX install.  It has an incompatible calling convention.
3244             :
3245           elif test $ac_prog = install &&
3246             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3247             # program-specific install script used by HP pwplus--don't use.
3248             :
3249           else
3250             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3251             break 3
3252           fi
3253         fi
3254       done
3255     done
3256     ;;
3257 esac
3258 done
3259
3260
3261 fi
3262   if test "${ac_cv_path_install+set}" = set; then
3263     INSTALL=$ac_cv_path_install
3264   else
3265     # As a last resort, use the slow shell script.  We don't cache a
3266     # path for INSTALL within a source directory, because that will
3267     # break other packages using the cache if that directory is
3268     # removed, or if the path is relative.
3269     INSTALL=$ac_install_sh
3270   fi
3271 fi
3272 echo "$as_me:$LINENO: result: $INSTALL" >&5
3273 echo "${ECHO_T}$INSTALL" >&6
3274
3275 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3276 # It thinks the first close brace ends the variable substitution.
3277 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3278
3279 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3280
3281 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3282
3283 if test -n "$ac_tool_prefix"; then
3284   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3285 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3286 echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288 if test "${ac_cv_prog_RANLIB+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   if test -n "$RANLIB"; then
3292   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299   for ac_exec_ext in '' $ac_executable_extensions; do
3300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303     break 2
3304   fi
3305 done
3306 done
3307
3308 fi
3309 fi
3310 RANLIB=$ac_cv_prog_RANLIB
3311 if test -n "$RANLIB"; then
3312   echo "$as_me:$LINENO: result: $RANLIB" >&5
3313 echo "${ECHO_T}$RANLIB" >&6
3314 else
3315   echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3317 fi
3318
3319 fi
3320 if test -z "$ac_cv_prog_RANLIB"; then
3321   ac_ct_RANLIB=$RANLIB
3322   # Extract the first word of "ranlib", so it can be a program name with args.
3323 set dummy ranlib; ac_word=$2
3324 echo "$as_me:$LINENO: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3326 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329   if test -n "$ac_ct_RANLIB"; then
3330   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3334 do
3335   IFS=$as_save_IFS
3336   test -z "$as_dir" && as_dir=.
3337   for ac_exec_ext in '' $ac_executable_extensions; do
3338   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339     ac_cv_prog_ac_ct_RANLIB="ranlib"
3340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341     break 2
3342   fi
3343 done
3344 done
3345
3346   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3347 fi
3348 fi
3349 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3350 if test -n "$ac_ct_RANLIB"; then
3351   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3352 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3353 else
3354   echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3356 fi
3357
3358   RANLIB=$ac_ct_RANLIB
3359 else
3360   RANLIB="$ac_cv_prog_RANLIB"
3361 fi
3362
3363 # Extract the first word of "mv", so it can be a program name with args.
3364 set dummy mv; ac_word=$2
3365 echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367 if test "${ac_cv_path_MV+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370   case $MV in
3371   [\\/]* | ?:[\\/]*)
3372   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3373   ;;
3374   *)
3375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3377 do
3378   IFS=$as_save_IFS
3379   test -z "$as_dir" && as_dir=.
3380   for ac_exec_ext in '' $ac_executable_extensions; do
3381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384     break 2
3385   fi
3386 done
3387 done
3388
3389   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3390   ;;
3391 esac
3392 fi
3393 MV=$ac_cv_path_MV
3394
3395 if test -n "$MV"; then
3396   echo "$as_me:$LINENO: result: $MV" >&5
3397 echo "${ECHO_T}$MV" >&6
3398 else
3399   echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6
3401 fi
3402
3403 # Extract the first word of "rm", so it can be a program name with args.
3404 set dummy rm; ac_word=$2
3405 echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_path_RM+set}" = set; then
3408   echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410   case $RM in
3411   [\\/]* | ?:[\\/]*)
3412   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3413   ;;
3414   *)
3415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3417 do
3418   IFS=$as_save_IFS
3419   test -z "$as_dir" && as_dir=.
3420   for ac_exec_ext in '' $ac_executable_extensions; do
3421   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3424     break 2
3425   fi
3426 done
3427 done
3428
3429   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3430   ;;
3431 esac
3432 fi
3433 RM=$ac_cv_path_RM
3434
3435 if test -n "$RM"; then
3436   echo "$as_me:$LINENO: result: $RM" >&5
3437 echo "${ECHO_T}$RM" >&6
3438 else
3439   echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6
3441 fi
3442
3443 # Extract the first word of "cp", so it can be a program name with args.
3444 set dummy cp; ac_word=$2
3445 echo "$as_me:$LINENO: checking for $ac_word" >&5
3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3447 if test "${ac_cv_path_CP+set}" = set; then
3448   echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450   case $CP in
3451   [\\/]* | ?:[\\/]*)
3452   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3453   ;;
3454   *)
3455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460   for ac_exec_ext in '' $ac_executable_extensions; do
3461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464     break 2
3465   fi
3466 done
3467 done
3468
3469   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3470   ;;
3471 esac
3472 fi
3473 CP=$ac_cv_path_CP
3474
3475 if test -n "$CP"; then
3476   echo "$as_me:$LINENO: result: $CP" >&5
3477 echo "${ECHO_T}$CP" >&6
3478 else
3479   echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3481 fi
3482
3483 # Extract the first word of "sed", so it can be a program name with args.
3484 set dummy sed; ac_word=$2
3485 echo "$as_me:$LINENO: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3487 if test "${ac_cv_path_SED+set}" = set; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490   case $SED in
3491   [\\/]* | ?:[\\/]*)
3492   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3493   ;;
3494   *)
3495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 for as_dir in $PATH
3497 do
3498   IFS=$as_save_IFS
3499   test -z "$as_dir" && as_dir=.
3500   for ac_exec_ext in '' $ac_executable_extensions; do
3501   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3504     break 2
3505   fi
3506 done
3507 done
3508
3509   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3510   ;;
3511 esac
3512 fi
3513 SED=$ac_cv_path_SED
3514
3515 if test -n "$SED"; then
3516   echo "$as_me:$LINENO: result: $SED" >&5
3517 echo "${ECHO_T}$SED" >&6
3518 else
3519   echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3521 fi
3522
3523 # Extract the first word of "echo", so it can be a program name with args.
3524 set dummy echo; ac_word=$2
3525 echo "$as_me:$LINENO: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3527 if test "${ac_cv_path_ECHO+set}" = set; then
3528   echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530   case $ECHO in
3531   [\\/]* | ?:[\\/]*)
3532   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3533   ;;
3534   *)
3535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538   IFS=$as_save_IFS
3539   test -z "$as_dir" && as_dir=.
3540   for ac_exec_ext in '' $ac_executable_extensions; do
3541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3544     break 2
3545   fi
3546 done
3547 done
3548
3549   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3550   ;;
3551 esac
3552 fi
3553 ECHO=$ac_cv_path_ECHO
3554
3555 if test -n "$ECHO"; then
3556   echo "$as_me:$LINENO: result: $ECHO" >&5
3557 echo "${ECHO_T}$ECHO" >&6
3558 else
3559   echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6
3561 fi
3562
3563 # Extract the first word of "cmp", so it can be a program name with args.
3564 set dummy cmp; ac_word=$2
3565 echo "$as_me:$LINENO: checking for $ac_word" >&5
3566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3567 if test "${ac_cv_path_CMP+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   case $CMP in
3571   [\\/]* | ?:[\\/]*)
3572   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3573   ;;
3574   *)
3575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578   IFS=$as_save_IFS
3579   test -z "$as_dir" && as_dir=.
3580   for ac_exec_ext in '' $ac_executable_extensions; do
3581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3584     break 2
3585   fi
3586 done
3587 done
3588
3589   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3590   ;;
3591 esac
3592 fi
3593 CMP=$ac_cv_path_CMP
3594
3595 if test -n "$CMP"; then
3596   echo "$as_me:$LINENO: result: $CMP" >&5
3597 echo "${ECHO_T}$CMP" >&6
3598 else
3599   echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3601 fi
3602
3603 # Extract the first word of "tbl", so it can be a program name with args.
3604 set dummy tbl; ac_word=$2
3605 echo "$as_me:$LINENO: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_path_TBL+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   case $TBL in
3611   [\\/]* | ?:[\\/]*)
3612   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3613   ;;
3614   *)
3615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3617 do
3618   IFS=$as_save_IFS
3619   test -z "$as_dir" && as_dir=.
3620   for ac_exec_ext in '' $ac_executable_extensions; do
3621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3622     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3624     break 2
3625   fi
3626 done
3627 done
3628
3629   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3630   ;;
3631 esac
3632 fi
3633 TBL=$ac_cv_path_TBL
3634
3635 if test -n "$TBL"; then
3636   echo "$as_me:$LINENO: result: $TBL" >&5
3637 echo "${ECHO_T}$TBL" >&6
3638 else
3639   echo "$as_me:$LINENO: result: no" >&5
3640 echo "${ECHO_T}no" >&6
3641 fi
3642
3643 # Extract the first word of "ar", so it can be a program name with args.
3644 set dummy ar; ac_word=$2
3645 echo "$as_me:$LINENO: checking for $ac_word" >&5
3646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3647 if test "${ac_cv_path_AR+set}" = set; then
3648   echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650   case $AR in
3651   [\\/]* | ?:[\\/]*)
3652   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3653   ;;
3654   *)
3655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3657 do
3658   IFS=$as_save_IFS
3659   test -z "$as_dir" && as_dir=.
3660   for ac_exec_ext in '' $ac_executable_extensions; do
3661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3662     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3664     break 2
3665   fi
3666 done
3667 done
3668
3669   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3670   ;;
3671 esac
3672 fi
3673 AR=$ac_cv_path_AR
3674
3675 if test -n "$AR"; then
3676   echo "$as_me:$LINENO: result: $AR" >&5
3677 echo "${ECHO_T}$AR" >&6
3678 else
3679   echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3681 fi
3682
3683 # Extract the first word of "openssl", so it can be a program name with args.
3684 set dummy openssl; ac_word=$2
3685 echo "$as_me:$LINENO: checking for $ac_word" >&5
3686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3687 if test "${ac_cv_path_OPENSSL+set}" = set; then
3688   echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690   case $OPENSSL in
3691   [\\/]* | ?:[\\/]*)
3692   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3693   ;;
3694   *)
3695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3697 do
3698   IFS=$as_save_IFS
3699   test -z "$as_dir" && as_dir=.
3700   for ac_exec_ext in '' $ac_executable_extensions; do
3701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704     break 2
3705   fi
3706 done
3707 done
3708
3709   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3710   ;;
3711 esac
3712 fi
3713 OPENSSL=$ac_cv_path_OPENSSL
3714
3715 if test -n "$OPENSSL"; then
3716   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3717 echo "${ECHO_T}$OPENSSL" >&6
3718 else
3719   echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6
3721 fi
3722
3723 # Extract the first word of "mtx", so it can be a program name with args.
3724 set dummy mtx; ac_word=$2
3725 echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3727 if test "${ac_cv_path_MTX+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   case $MTX in
3731   [\\/]* | ?:[\\/]*)
3732   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3733   ;;
3734   *)
3735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3737 do
3738   IFS=$as_save_IFS
3739   test -z "$as_dir" && as_dir=.
3740   for ac_exec_ext in '' $ac_executable_extensions; do
3741   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3742     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744     break 2
3745   fi
3746 done
3747 done
3748
3749   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3750   ;;
3751 esac
3752 fi
3753 MTX=$ac_cv_path_MTX
3754
3755 if test -n "$MTX"; then
3756   echo "$as_me:$LINENO: result: $MTX" >&5
3757 echo "${ECHO_T}$MTX" >&6
3758 else
3759   echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3761 fi
3762
3763 # Extract the first word of "mkisofs", so it can be a program name with args.
3764 set dummy mkisofs; ac_word=$2
3765 echo "$as_me:$LINENO: checking for $ac_word" >&5
3766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767 if test "${ac_cv_path_MKISOFS+set}" = set; then
3768   echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770   case $MKISOFS in
3771   [\\/]* | ?:[\\/]*)
3772   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3773   ;;
3774   *)
3775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH
3777 do
3778   IFS=$as_save_IFS
3779   test -z "$as_dir" && as_dir=.
3780   for ac_exec_ext in '' $ac_executable_extensions; do
3781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3784     break 2
3785   fi
3786 done
3787 done
3788
3789   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3790   ;;
3791 esac
3792 fi
3793 MKISOFS=$ac_cv_path_MKISOFS
3794
3795 if test -n "$MKISOFS"; then
3796   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3797 echo "${ECHO_T}$MKISOFS" >&6
3798 else
3799   echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3801 fi
3802
3803 # Extract the first word of "python", so it can be a program name with args.
3804 set dummy python; ac_word=$2
3805 echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_path_PYTHON+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   case $PYTHON in
3811   [\\/]* | ?:[\\/]*)
3812   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3813   ;;
3814   *)
3815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3817 do
3818   IFS=$as_save_IFS
3819   test -z "$as_dir" && as_dir=.
3820   for ac_exec_ext in '' $ac_executable_extensions; do
3821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3824     break 2
3825   fi
3826 done
3827 done
3828
3829   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3830   ;;
3831 esac
3832 fi
3833 PYTHON=$ac_cv_path_PYTHON
3834
3835 if test -n "$PYTHON"; then
3836   echo "$as_me:$LINENO: result: $PYTHON" >&5
3837 echo "${ECHO_T}$PYTHON" >&6
3838 else
3839   echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3841 fi
3842
3843 # Extract the first word of "growisofs", so it can be a program name with args.
3844 set dummy growisofs; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   case $GROWISOFS in
3851   [\\/]* | ?:[\\/]*)
3852   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3853   ;;
3854   *)
3855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858   IFS=$as_save_IFS
3859   test -z "$as_dir" && as_dir=.
3860   for ac_exec_ext in '' $ac_executable_extensions; do
3861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864     break 2
3865   fi
3866 done
3867 done
3868
3869   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3870   ;;
3871 esac
3872 fi
3873 GROWISOFS=$ac_cv_path_GROWISOFS
3874
3875 if test -n "$GROWISOFS"; then
3876   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3877 echo "${ECHO_T}$GROWISOFS" >&6
3878 else
3879   echo "$as_me:$LINENO: result: no" >&5
3880 echo "${ECHO_T}no" >&6
3881 fi
3882
3883 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3884 set dummy dvd+rw-mediainfo; ac_word=$2
3885 echo "$as_me:$LINENO: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890   case $DVDRWMEDIAINFO in
3891   [\\/]* | ?:[\\/]*)
3892   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3893   ;;
3894   *)
3895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898   IFS=$as_save_IFS
3899   test -z "$as_dir" && as_dir=.
3900   for ac_exec_ext in '' $ac_executable_extensions; do
3901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904     break 2
3905   fi
3906 done
3907 done
3908
3909   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3910   ;;
3911 esac
3912 fi
3913 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3914
3915 if test -n "$DVDRWMEDIAINFO"; then
3916   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3917 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3918 else
3919   echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3921 fi
3922
3923 # Extract the first word of "pkg-config", so it can be a program name with args.
3924 set dummy pkg-config; ac_word=$2
3925 echo "$as_me:$LINENO: checking for $ac_word" >&5
3926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3927 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3928   echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930   case $PKGCONFIG in
3931   [\\/]* | ?:[\\/]*)
3932   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3933   ;;
3934   *)
3935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938   IFS=$as_save_IFS
3939   test -z "$as_dir" && as_dir=.
3940   for ac_exec_ext in '' $ac_executable_extensions; do
3941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944     break 2
3945   fi
3946 done
3947 done
3948
3949   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3950   ;;
3951 esac
3952 fi
3953 PKGCONFIG=$ac_cv_path_PKGCONFIG
3954
3955 if test -n "$PKGCONFIG"; then
3956   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3957 echo "${ECHO_T}$PKGCONFIG" >&6
3958 else
3959   echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3961 fi
3962
3963 # Extract the first word of "wx-config", so it can be a program name with args.
3964 set dummy wx-config; ac_word=$2
3965 echo "$as_me:$LINENO: checking for $ac_word" >&5
3966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3967 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3968   echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970   case $WXCONFIG in
3971   [\\/]* | ?:[\\/]*)
3972   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3973   ;;
3974   *)
3975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3977 do
3978   IFS=$as_save_IFS
3979   test -z "$as_dir" && as_dir=.
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3982     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984     break 2
3985   fi
3986 done
3987 done
3988
3989   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3990   ;;
3991 esac
3992 fi
3993 WXCONFIG=$ac_cv_path_WXCONFIG
3994
3995 if test -n "$WXCONFIG"; then
3996   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3997 echo "${ECHO_T}$WXCONFIG" >&6
3998 else
3999   echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4001 fi
4002
4003 # Extract the first word of "cdrecord", so it can be a program name with args.
4004 set dummy cdrecord; ac_word=$2
4005 echo "$as_me:$LINENO: checking for $ac_word" >&5
4006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4007 if test "${ac_cv_path_CDRECORD+set}" = set; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   case $CDRECORD in
4011   [\\/]* | ?:[\\/]*)
4012   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4013   ;;
4014   *)
4015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018   IFS=$as_save_IFS
4019   test -z "$as_dir" && as_dir=.
4020   for ac_exec_ext in '' $ac_executable_extensions; do
4021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4024     break 2
4025   fi
4026 done
4027 done
4028
4029   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4030   ;;
4031 esac
4032 fi
4033 CDRECORD=$ac_cv_path_CDRECORD
4034
4035 if test -n "$CDRECORD"; then
4036   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4037 echo "${ECHO_T}$CDRECORD" >&6
4038 else
4039   echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4041 fi
4042
4043 # Extract the first word of "pidof", so it can be a program name with args.
4044 set dummy pidof; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_path_PIDOF+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   case $PIDOF in
4051   [\\/]* | ?:[\\/]*)
4052   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4053   ;;
4054   *)
4055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058   IFS=$as_save_IFS
4059   test -z "$as_dir" && as_dir=.
4060   for ac_exec_ext in '' $ac_executable_extensions; do
4061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4064     break 2
4065   fi
4066 done
4067 done
4068
4069   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4070   ;;
4071 esac
4072 fi
4073 PIDOF=$ac_cv_path_PIDOF
4074
4075 if test -n "$PIDOF"; then
4076   echo "$as_me:$LINENO: result: $PIDOF" >&5
4077 echo "${ECHO_T}$PIDOF" >&6
4078 else
4079   echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4081 fi
4082
4083 for ac_prog in gawk mawk nawk awk
4084 do
4085   # Extract the first word of "$ac_prog", so it can be a program name with args.
4086 set dummy $ac_prog; ac_word=$2
4087 echo "$as_me:$LINENO: checking for $ac_word" >&5
4088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089 if test "${ac_cv_prog_AWK+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   if test -n "$AWK"; then
4093   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4097 do
4098   IFS=$as_save_IFS
4099   test -z "$as_dir" && as_dir=.
4100   for ac_exec_ext in '' $ac_executable_extensions; do
4101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102     ac_cv_prog_AWK="$ac_prog"
4103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104     break 2
4105   fi
4106 done
4107 done
4108
4109 fi
4110 fi
4111 AWK=$ac_cv_prog_AWK
4112 if test -n "$AWK"; then
4113   echo "$as_me:$LINENO: result: $AWK" >&5
4114 echo "${ECHO_T}$AWK" >&6
4115 else
4116   echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6
4118 fi
4119
4120   test -n "$AWK" && break
4121 done
4122
4123 # Some AWK programs fail, so test it and warn the user
4124 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4125       { if ((prog == $2) || (("(" prog ")") == $2) ||
4126            (("" prog "") == $2) ||
4127            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4128 else
4129   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4130    The regex engine of $AWK is too broken to be used you
4131    might want to install GNU AWK.
4132    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4133 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4134    The regex engine of $AWK is too broken to be used you
4135    might want to install GNU AWK.
4136    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4137    { (exit 1); exit 1; }; }
4138 fi
4139 THE_AWK=$AWK
4140 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4141 set dummy $THE_AWK; ac_word=$2
4142 echo "$as_me:$LINENO: checking for $ac_word" >&5
4143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4144 if test "${ac_cv_path_AWK+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   case $AWK in
4148   [\\/]* | ?:[\\/]*)
4149   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4150   ;;
4151   *)
4152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155   IFS=$as_save_IFS
4156   test -z "$as_dir" && as_dir=.
4157   for ac_exec_ext in '' $ac_executable_extensions; do
4158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4161     break 2
4162   fi
4163 done
4164 done
4165
4166   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4167   ;;
4168 esac
4169 fi
4170 AWK=$ac_cv_path_AWK
4171
4172 if test -n "$AWK"; then
4173   echo "$as_me:$LINENO: result: $AWK" >&5
4174 echo "${ECHO_T}$AWK" >&6
4175 else
4176   echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6
4178 fi
4179
4180
4181 test -n "$ARFLAG" || ARFLAGS="cr"
4182
4183
4184 MAKE_SHELL=/bin/sh
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194 # Make sure we can run config.sub.
4195 $ac_config_sub sun4 >/dev/null 2>&1 ||
4196   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4197 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4198    { (exit 1); exit 1; }; }
4199
4200 echo "$as_me:$LINENO: checking build system type" >&5
4201 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4202 if test "${ac_cv_build+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   ac_cv_build_alias=$build_alias
4206 test -z "$ac_cv_build_alias" &&
4207   ac_cv_build_alias=`$ac_config_guess`
4208 test -z "$ac_cv_build_alias" &&
4209   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4210 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4211    { (exit 1); exit 1; }; }
4212 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4213   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4214 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4215    { (exit 1); exit 1; }; }
4216
4217 fi
4218 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4219 echo "${ECHO_T}$ac_cv_build" >&6
4220 build=$ac_cv_build
4221 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4222 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4223 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4224
4225
4226
4227 echo "$as_me:$LINENO: checking host system type" >&5
4228 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4229 if test "${ac_cv_host+set}" = set; then
4230   echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232   ac_cv_host_alias=$host_alias
4233 test -z "$ac_cv_host_alias" &&
4234   ac_cv_host_alias=$ac_cv_build_alias
4235 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4236   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4237 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4238    { (exit 1); exit 1; }; }
4239
4240 fi
4241 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4242 echo "${ECHO_T}$ac_cv_host" >&6
4243 host=$ac_cv_host
4244 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4245 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4246 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4247
4248
4249 case $host_os in
4250   *cygwin* ) CYGWIN=yes;;
4251          * ) CYGWIN=no;;
4252 esac
4253
4254 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4255 then
4256
4257
4258 if $TRUEPRG; then
4259   HAVE_SUN_OS_TRUE=
4260   HAVE_SUN_OS_FALSE='#'
4261 else
4262   HAVE_SUN_OS_TRUE='#'
4263   HAVE_SUN_OS_FALSE=
4264 fi
4265         cat >>confdefs.h <<\_ACEOF
4266 #define HAVE_SUN_OS 1
4267 _ACEOF
4268
4269 else
4270
4271
4272 if $FALSEPRG; then
4273   HAVE_SUN_OS_TRUE=
4274   HAVE_SUN_OS_FALSE='#'
4275 else
4276   HAVE_SUN_OS_TRUE='#'
4277   HAVE_SUN_OS_FALSE=
4278 fi
4279 fi
4280
4281 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4282 then
4283
4284
4285 if $TRUEPRG; then
4286   HAVE_OSF1_OS_TRUE=
4287   HAVE_OSF1_OS_FALSE='#'
4288 else
4289   HAVE_OSF1_OS_TRUE='#'
4290   HAVE_OSF1_OS_FALSE=
4291 fi
4292         cat >>confdefs.h <<\_ACEOF
4293 #define HAVE_OSF1_OS 1
4294 _ACEOF
4295
4296 else
4297
4298
4299 if $FALSEPRG; then
4300   HAVE_OSF1_OS_TRUE=
4301   HAVE_OSF1_OS_FALSE='#'
4302 else
4303   HAVE_OSF1_OS_TRUE='#'
4304   HAVE_OSF1_OS_FALSE=
4305 fi
4306 fi
4307
4308 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4309 then
4310
4311
4312 if $TRUEPRG; then
4313   HAVE_AIX_OS_TRUE=
4314   HAVE_AIX_OS_FALSE='#'
4315 else
4316   HAVE_AIX_OS_TRUE='#'
4317   HAVE_AIX_OS_FALSE=
4318 fi
4319         cat >>confdefs.h <<\_ACEOF
4320 #define HAVE_AIX_OS 1
4321 _ACEOF
4322
4323 else
4324
4325
4326 if $FALSEPRG; then
4327   HAVE_AIX_OS_TRUE=
4328   HAVE_AIX_OS_FALSE='#'
4329 else
4330   HAVE_AIX_OS_TRUE='#'
4331   HAVE_AIX_OS_FALSE=
4332 fi
4333 fi
4334
4335 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4336 then
4337
4338
4339 if $TRUEPRG; then
4340   HAVE_HPUX_OS_TRUE=
4341   HAVE_HPUX_OS_FALSE='#'
4342 else
4343   HAVE_HPUX_OS_TRUE='#'
4344   HAVE_HPUX_OS_FALSE=
4345 fi
4346         cat >>confdefs.h <<\_ACEOF
4347 #define HAVE_HPUX_OS 1
4348 _ACEOF
4349
4350 else
4351
4352
4353 if $FALSEPRG; then
4354   HAVE_HPUX_OS_TRUE=
4355   HAVE_HPUX_OS_FALSE='#'
4356 else
4357   HAVE_HPUX_OS_TRUE='#'
4358   HAVE_HPUX_OS_FALSE=
4359 fi
4360 fi
4361
4362 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4363 then
4364
4365
4366 if $TRUEPRG; then
4367   HAVE_LINUX_OS_TRUE=
4368   HAVE_LINUX_OS_FALSE='#'
4369 else
4370   HAVE_LINUX_OS_TRUE='#'
4371   HAVE_LINUX_OS_FALSE=
4372 fi
4373         cat >>confdefs.h <<\_ACEOF
4374 #define HAVE_LINUX_OS 1
4375 _ACEOF
4376
4377 else
4378
4379
4380 if $FALSEPRG; then
4381   HAVE_LINUX_OS_TRUE=
4382   HAVE_LINUX_OS_FALSE='#'
4383 else
4384   HAVE_LINUX_OS_TRUE='#'
4385   HAVE_LINUX_OS_FALSE=
4386 fi
4387 fi
4388
4389 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4390 then
4391
4392
4393 if $TRUEPRG; then
4394   HAVE_FREEBSD_OS_TRUE=
4395   HAVE_FREEBSD_OS_FALSE='#'
4396 else
4397   HAVE_FREEBSD_OS_TRUE='#'
4398   HAVE_FREEBSD_OS_FALSE=
4399 fi
4400         cat >>confdefs.h <<\_ACEOF
4401 #define HAVE_FREEBSD_OS 1
4402 _ACEOF
4403
4404 else
4405
4406
4407 if $FALSEPRG; then
4408   HAVE_FREEBSD_OS_TRUE=
4409   HAVE_FREEBSD_OS_FALSE='#'
4410 else
4411   HAVE_FREEBSD_OS_TRUE='#'
4412   HAVE_FREEBSD_OS_FALSE=
4413 fi
4414 fi
4415
4416 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4417 then
4418
4419
4420 if $TRUEPRG; then
4421   HAVE_NETBSD_OS_TRUE=
4422   HAVE_NETBSD_OS_FALSE='#'
4423 else
4424   HAVE_NETBSD_OS_TRUE='#'
4425   HAVE_NETBSD_OS_FALSE=
4426 fi
4427         cat >>confdefs.h <<\_ACEOF
4428 #define HAVE_NETBSD_OS 1
4429 _ACEOF
4430
4431 else
4432
4433
4434 if $FALSEPRG; then
4435   HAVE_NETBSD_OS_TRUE=
4436   HAVE_NETBSD_OS_FALSE='#'
4437 else
4438   HAVE_NETBSD_OS_TRUE='#'
4439   HAVE_NETBSD_OS_FALSE=
4440 fi
4441 fi
4442
4443 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4444 then
4445
4446
4447 if $TRUEPRG; then
4448   HAVE_OPENBSD_OS_TRUE=
4449   HAVE_OPENBSD_OS_FALSE='#'
4450 else
4451   HAVE_OPENBSD_OS_TRUE='#'
4452   HAVE_OPENBSD_OS_FALSE=
4453 fi
4454         cat >>confdefs.h <<\_ACEOF
4455 #define HAVE_OPENBSD_OS 1
4456 _ACEOF
4457
4458 else
4459
4460
4461 if $FALSEPRG; then
4462   HAVE_OPENBSD_OS_TRUE=
4463   HAVE_OPENBSD_OS_FALSE='#'
4464 else
4465   HAVE_OPENBSD_OS_TRUE='#'
4466   HAVE_OPENBSD_OS_FALSE=
4467 fi
4468 fi
4469
4470 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4471 then
4472
4473
4474 if $TRUEPRG; then
4475   HAVE_BSDI_OS_TRUE=
4476   HAVE_BSDI_OS_FALSE='#'
4477 else
4478   HAVE_BSDI_OS_TRUE='#'
4479   HAVE_BSDI_OS_FALSE=
4480 fi
4481         cat >>confdefs.h <<\_ACEOF
4482 #define HAVE_BSDI_OS 1
4483 _ACEOF
4484
4485 else
4486
4487
4488 if $FALSEPRG; then
4489   HAVE_BSDI_OS_TRUE=
4490   HAVE_BSDI_OS_FALSE='#'
4491 else
4492   HAVE_BSDI_OS_TRUE='#'
4493   HAVE_BSDI_OS_FALSE=
4494 fi
4495 fi
4496
4497 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4498 then
4499
4500
4501 if $TRUEPRG; then
4502   HAVE_SGI_OS_TRUE=
4503   HAVE_SGI_OS_FALSE='#'
4504 else
4505   HAVE_SGI_OS_TRUE='#'
4506   HAVE_SGI_OS_FALSE=
4507 fi
4508         cat >>confdefs.h <<\_ACEOF
4509 #define HAVE_SGI_OS 1
4510 _ACEOF
4511
4512 else
4513
4514
4515 if $FALSEPRG; then
4516   HAVE_SGI_OS_TRUE=
4517   HAVE_SGI_OS_FALSE='#'
4518 else
4519   HAVE_SGI_OS_TRUE='#'
4520   HAVE_SGI_OS_FALSE=
4521 fi
4522 fi
4523
4524 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4525 then
4526
4527
4528 if $TRUEPRG; then
4529   HAVE_IRIX_OS_TRUE=
4530   HAVE_IRIX_OS_FALSE='#'
4531 else
4532   HAVE_IRIX_OS_TRUE='#'
4533   HAVE_IRIX_OS_FALSE=
4534 fi
4535         cat >>confdefs.h <<\_ACEOF
4536 #define HAVE_IRIX_OS 1
4537 _ACEOF
4538
4539 else
4540
4541
4542 if $FALSEPRG; then
4543   HAVE_IRIX_OS_TRUE=
4544   HAVE_IRIX_OS_FALSE='#'
4545 else
4546   HAVE_IRIX_OS_TRUE='#'
4547   HAVE_IRIX_OS_FALSE=
4548 fi
4549 fi
4550
4551 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4552 then
4553
4554
4555 if $TRUEPRG; then
4556   HAVE_DARWIN_OS_TRUE=
4557   HAVE_DARWIN_OS_FALSE='#'
4558 else
4559   HAVE_DARWIN_OS_TRUE='#'
4560   HAVE_DARWIN_OS_FALSE=
4561 fi
4562     cat >>confdefs.h <<\_ACEOF
4563 #define HAVE_DARWIN_OS 1
4564 _ACEOF
4565
4566 else
4567
4568
4569 if $FALSEPRG; then
4570   HAVE_DARWIN_OS_TRUE=
4571   HAVE_DARWIN_OS_FALSE='#'
4572 else
4573   HAVE_DARWIN_OS_TRUE='#'
4574   HAVE_DARWIN_OS_FALSE=
4575 fi
4576 fi
4577
4578
4579 # -----------------------------------------------------------
4580 # ----------------------------------------------------------
4581 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4582 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4583 if test "x$DISTNAME" != "x"
4584 then
4585         echo "distname set to $DISTNAME"
4586 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4587 then
4588         DISTNAME=alpha
4589 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4590 then
4591         DISTNAME=aix
4592 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4593 then
4594         DISTNAME=hpux
4595 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4596 then
4597         DISTNAME=solaris
4598 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4599 then
4600         DISTNAME=freebsd
4601 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4602 then
4603         DISTNAME=netbsd
4604 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4605 then
4606         DISTNAME=openbsd
4607 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4608 then
4609         DISTNAME=irix
4610 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4611 then
4612         DISTNAME=bsdi
4613 elif test -f /etc/SuSE-release
4614 then
4615         DISTNAME=suse
4616 elif test -d /etc/SuSEconfig
4617 then
4618         DISTNAME=suse5
4619 elif test -f /etc/mandrake-release
4620 then
4621         DISTNAME=mandrake
4622 elif test -f /etc/whitebox-release
4623 then
4624        DISTNAME=redhat
4625 elif test -f /etc/redhat-release
4626 then
4627         DISTNAME=redhat
4628 elif test -f /etc/gentoo-release
4629 then
4630         DISTNAME=gentoo
4631 elif test -f /etc/debian_version
4632 then
4633         DISTNAME=debian
4634 elif test -f /etc/slackware-version
4635 then
4636         DISTNAME=slackware
4637 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4638 then
4639     DISTNAME=darwin
4640 elif test -f /etc/engarde-version
4641 then
4642         DISTNAME=engarde
4643 elif test "$CYGWIN" = yes
4644 then
4645         DISTNAME=cygwin
4646         cat >>confdefs.h <<\_ACEOF
4647 #define HAVE_CYGWIN 1
4648 _ACEOF
4649
4650 else
4651         DISTNAME=unknown
4652 fi
4653 echo "$as_me:$LINENO: result: done" >&5
4654 echo "${ECHO_T}done" >&6
4655
4656
4657 # -----------------------------------------------------------
4658 # ----------------------------------------------------------
4659
4660
4661
4662 if false; then
4663   INSIDE_GNOME_COMMON_TRUE=
4664   INSIDE_GNOME_COMMON_FALSE='#'
4665 else
4666   INSIDE_GNOME_COMMON_TRUE='#'
4667   INSIDE_GNOME_COMMON_FALSE=
4668 fi
4669
4670         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4671
4672         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4673
4674
4675 # ------------------------------------------------------------------
4676 #  If the user has not set --prefix, we set our default to nothing.
4677 #  In this case, if the user has not set --sysconfdir, we set it
4678 #  to the package default of /etc/bacula.  If either --prefix or
4679 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4680 # ------------------------------------------------------------------
4681 if test x${prefix} = xNONE ; then
4682     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4683         sysconfdir=/etc/bacula
4684     fi
4685     prefix=
4686 fi
4687 sysconfdir=`eval echo ${sysconfdir}`
4688
4689 # -------------------------------------------------------------------------
4690 #  If the user has not set --exec-prefix, we default to ${prefix}
4691 # -------------------------------------------------------------------------
4692 if test x${exec_prefix} = xNONE ; then
4693     exec_prefix=${prefix}
4694 fi
4695
4696 # ------------------------------------------------------------------
4697 # If the user has not set --sbindir, we set our default as /sbin
4698 # ------------------------------------------------------------------
4699 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4700     sbindir=${exec_prefix}/sbin
4701 fi
4702 sbindir=`eval echo ${sbindir}`
4703
4704 # ------------------------------------------------------------------
4705 # All list of languages for which a translation exist. Each
4706 #  language is separated by a space.
4707 # ------------------------------------------------------------------
4708 ALL_LINGUAS=""
4709
4710 for ac_prog in msgfmt
4711 do
4712   # Extract the first word of "$ac_prog", so it can be a program name with args.
4713 set dummy $ac_prog; ac_word=$2
4714 echo "$as_me:$LINENO: checking for $ac_word" >&5
4715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4716 if test "${ac_cv_path_MSGFMT+set}" = set; then
4717   echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719   case $MSGFMT in
4720   [\\/]* | ?:[\\/]*)
4721   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4722   ;;
4723   *)
4724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4726 do
4727   IFS=$as_save_IFS
4728   test -z "$as_dir" && as_dir=.
4729   for ac_exec_ext in '' $ac_executable_extensions; do
4730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4731     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733     break 2
4734   fi
4735 done
4736 done
4737
4738   ;;
4739 esac
4740 fi
4741 MSGFMT=$ac_cv_path_MSGFMT
4742
4743 if test -n "$MSGFMT"; then
4744   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4745 echo "${ECHO_T}$MSGFMT" >&6
4746 else
4747   echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4749 fi
4750
4751   test -n "$MSGFMT" && break
4752 done
4753 test -n "$MSGFMT" || MSGFMT="no"
4754
4755 if test "$MSGFMT" = "no"
4756 then
4757    echo 'msgfmt program not found, disabling NLS !'
4758    USE_NLS=no
4759    USE_INCLUDED_LIBINTL=no
4760 #else
4761 #   AM_GNU_GETTEXT
4762 fi
4763
4764
4765 support_mysql=no
4766 support_sqlite=no
4767 support_sqlite3=no
4768 support_postgresql=no
4769 support_smartalloc=yes
4770 support_readline=yes
4771 support_conio=yes
4772 support_gnome=no
4773 support_wx_console=no
4774 support_tls=no
4775 gnome_version=
4776 support_static_tools=no
4777 support_static_fd=no
4778 support_static_sd=no
4779 support_static_dir=no
4780 support_static_cons=no
4781 support_python=no
4782 build_client_only=no
4783 cats=
4784 db_name=Internal
4785 DB_NAME=bdb
4786
4787
4788 # -------------------------------------------
4789 # gnome (default off)
4790 # -------------------------------------------
4791 # Check whether --enable-gnome or --disable-gnome was given.
4792 if test "${enable_gnome+set}" = set; then
4793   enableval="$enable_gnome"
4794   if test x$enableval = xyes; then
4795     support_gnome=yes
4796   fi
4797 fi;
4798
4799 GNOME_DIR=
4800 if test x$support_gnome = xyes; then
4801   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4802   pkg=$?
4803   if test $pkg = 0; then
4804      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4805      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4806      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4807      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4808
4809
4810
4811
4812      GNOME_DIR=src/gnome2-console
4813      gnome_version="Version 2.x"
4814   else
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4827 if test "${with_gnome_includes+set}" = set; then
4828   withval="$with_gnome_includes"
4829
4830         CFLAGS="$CFLAGS -I$withval"
4831
4832 fi;
4833
4834
4835 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4836 if test "${with_gnome_libs+set}" = set; then
4837   withval="$with_gnome_libs"
4838
4839         LDFLAGS="$LDFLAGS -L$withval"
4840         gnome_prefix=$withval
4841
4842 fi;
4843
4844
4845 # Check whether --with-gnome or --without-gnome was given.
4846 if test "${with_gnome+set}" = set; then
4847   withval="$with_gnome"
4848   if test x$withval = xyes; then
4849                         want_gnome=yes
4850                                                                         :
4851                 else
4852                         if test "x$withval" = xno; then
4853                                 want_gnome=no
4854                         else
4855                                 want_gnome=yes
4856                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4857                                 CFLAGS="$CFLAGS -I$withval/include"
4858                                 gnome_prefix=$withval/lib
4859                         fi
4860                 fi
4861 else
4862   want_gnome=yes
4863 fi;
4864
4865         if test "x$want_gnome" = xyes; then
4866
4867             # Extract the first word of "gnome-config", so it can be a program name with args.
4868 set dummy gnome-config; ac_word=$2
4869 echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4871 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874   case $GNOME_CONFIG in
4875   [\\/]* | ?:[\\/]*)
4876   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4877   ;;
4878   *)
4879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4881 do
4882   IFS=$as_save_IFS
4883   test -z "$as_dir" && as_dir=.
4884   for ac_exec_ext in '' $ac_executable_extensions; do
4885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4886     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888     break 2
4889   fi
4890 done
4891 done
4892
4893   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4894   ;;
4895 esac
4896 fi
4897 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4898
4899 if test -n "$GNOME_CONFIG"; then
4900   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4901 echo "${ECHO_T}$GNOME_CONFIG" >&6
4902 else
4903   echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6
4905 fi
4906
4907             if test "$GNOME_CONFIG" = "no"; then
4908               no_gnome_config="yes"
4909             else
4910               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4911 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4912               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4913                 echo "$as_me:$LINENO: result: yes" >&5
4914 echo "${ECHO_T}yes" >&6
4915
4916
4917         # Extract the first word of "orbit-config", so it can be a program name with args.
4918 set dummy orbit-config; ac_word=$2
4919 echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4921 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924   case $ORBIT_CONFIG in
4925   [\\/]* | ?:[\\/]*)
4926   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4927   ;;
4928   *)
4929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934   for ac_exec_ext in '' $ac_executable_extensions; do
4935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941 done
4942
4943   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4944   ;;
4945 esac
4946 fi
4947 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4948
4949 if test -n "$ORBIT_CONFIG"; then
4950   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4951 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4952 else
4953   echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4955 fi
4956
4957         # Extract the first word of "orbit-idl", so it can be a program name with args.
4958 set dummy orbit-idl; ac_word=$2
4959 echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4961 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964   case $ORBIT_IDL in
4965   [\\/]* | ?:[\\/]*)
4966   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4967   ;;
4968   *)
4969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4971 do
4972   IFS=$as_save_IFS
4973   test -z "$as_dir" && as_dir=.
4974   for ac_exec_ext in '' $ac_executable_extensions; do
4975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978     break 2
4979   fi
4980 done
4981 done
4982
4983   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4984   ;;
4985 esac
4986 fi
4987 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4988
4989 if test -n "$ORBIT_IDL"; then
4990   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4991 echo "${ECHO_T}$ORBIT_IDL" >&6
4992 else
4993   echo "$as_me:$LINENO: result: no" >&5
4994 echo "${ECHO_T}no" >&6
4995 fi
4996
4997         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4998 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4999 if test "${gnome_cv_orbit_found+set}" = set; then
5000   echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002
5003                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
5004                         gnome_cv_orbit_found=no
5005                 else
5006                         gnome_cv_orbit_found=yes
5007                 fi
5008
5009 fi
5010 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
5011 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
5012
5013
5014 if test x$gnome_cv_orbit_found = xyes; then
5015   HAVE_ORBIT_TRUE=
5016   HAVE_ORBIT_FALSE='#'
5017 else
5018   HAVE_ORBIT_TRUE='#'
5019   HAVE_ORBIT_FALSE=
5020 fi
5021         if test x$gnome_cv_orbit_found = xyes; then
5022
5023                 ORBIT_CFLAGS=`orbit-config --cflags client server`
5024                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
5025
5026
5027         else
5028                 if test xfail = xfailure; then
5029                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
5030 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
5031    { (exit 1); exit 1; }; }
5032                 fi
5033         fi
5034
5035         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
5036 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
5037 if test "${gnome_cv_gnorba_found+set}" = set; then
5038   echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040
5041                 gnome_cv_gnorba_found=no
5042                 if test x$gnome_cv_orbit_found = xyes; then
5043                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5044                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5045                         if test -n "$GNORBA_LIBS"; then
5046                                 gnome_cv_gnorba_found=yes
5047                         fi
5048                 fi
5049
5050 fi
5051 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
5052 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
5053
5054
5055 if test x$gnome_cv_gnorba_found = xyes; then
5056   HAVE_GNORBA_TRUE=
5057   HAVE_GNORBA_FALSE='#'
5058 else
5059   HAVE_GNORBA_TRUE='#'
5060   HAVE_GNORBA_FALSE=
5061 fi
5062         if test x$gnome_cv_orbit_found = xyes; then
5063
5064                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5065                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5066
5067
5068         else
5069                 if test xfail = xfailure; then
5070                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5071 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5072    { (exit 1); exit 1; }; }
5073                 fi
5074         fi
5075
5076                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5077                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5078                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5079                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5080                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5081                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5082                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5083
5084               else
5085                 echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5087                 no_gnome_config="yes"
5088               fi
5089             fi
5090
5091             if test x$exec_prefix = xNONE; then
5092                 if test x$prefix = xNONE; then
5093                     gnome_prefix=$ac_default_prefix/lib
5094                 else
5095                     gnome_prefix=$prefix/lib
5096                 fi
5097             else
5098                 gnome_prefix=`eval echo \`echo $libdir\``
5099             fi
5100
5101             if test "$no_gnome_config" = "yes"; then
5102               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5103 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5104               if test -f $gnome_prefix/gnomeConf.sh; then
5105                 echo "$as_me:$LINENO: result: found" >&5
5106 echo "${ECHO_T}found" >&6
5107                 echo "loading gnome configuration from" \
5108                      "$gnome_prefix/gnomeConf.sh"
5109                 . $gnome_prefix/gnomeConf.sh
5110
5111               else
5112                 echo "$as_me:$LINENO: result: not found" >&5
5113 echo "${ECHO_T}not found" >&6
5114                 if test xfail = xfail; then
5115                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5116 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5117    { (exit 1); exit 1; }; }
5118                 fi
5119               fi
5120             fi
5121         fi
5122
5123         if test -n ""; then
5124           n=""
5125           for i in $n; do
5126             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5127 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5128             case $i in
5129               applets)
5130
5131                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5132                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5133 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5134               docklets)
5135
5136                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5137                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5138 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5139               capplet)
5140
5141                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5142                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5143 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5144               *)
5145                 echo "$as_me:$LINENO: result: unknown library" >&5
5146 echo "${ECHO_T}unknown library" >&6
5147             esac
5148             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5149             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5150           done
5151         fi
5152
5153
5154      GNOME_DIR=src/gnome-console
5155      gnome_version="Version 1.4"
5156   fi
5157 fi
5158
5159
5160
5161 # -------------------------------------------
5162 # wx-console (default off)
5163 # -------------------------------------------
5164 # Check whether --enable-wx-console or --disable-wx-console was given.
5165 if test "${enable_wx_console+set}" = set; then
5166   enableval="$enable_wx_console"
5167   if test x$enableval = xyes; then
5168     support_wx_console=yes
5169   fi
5170 fi;
5171
5172 WX_DIR=
5173 if test x$support_wx_console = xyes; then
5174   abc=`$WXCONFIG --cppflags`
5175   pkg=$?
5176   if test $pkg = 0; then
5177      WXRELEASE=`$WXCONFIG --release`
5178      if test $WXRELEASE = 2.6; then
5179         WXCONS_CPPFLAGS=`$WXCONFIG --cppflags --unicode=no`
5180         WXCONS_LDFLAGS=`$WXCONFIG --libs --unicode=no`
5181      else
5182         WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
5183         WXCONS_LDFLAGS=`$WXCONFIG --libs`
5184      fi
5185
5186
5187
5188      WX_DIR=src/wx-console
5189   else
5190      echo " "
5191      echo "wx-config program not found. wx-console disabled."
5192      echo " "
5193      support_wx_console=no
5194   fi
5195 fi
5196
5197
5198
5199 # -------------------------------------------
5200 # tray-monitor (default off)
5201 # -------------------------------------------
5202 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5203 if test "${enable_tray_monitor+set}" = set; then
5204   enableval="$enable_tray_monitor"
5205   if test x$enableval = xyes; then
5206     support_tray_monitor=yes
5207   fi
5208 fi;
5209
5210 TRAY_MONITOR_DIR=
5211 if test x$support_tray_monitor = xyes; then
5212   abc=`$PKGCONFIG --exists gtk+-2.0`
5213   pkg=$?
5214   if test $pkg = 0; then
5215      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5216      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5217
5218
5219      TRAY_MONITOR_DIR=src/tray-monitor
5220      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5221      pkg=$?
5222      if test $pkg = 0; then
5223         cat >>confdefs.h <<\_ACEOF
5224 #define HAVE_GTK_2_4 1
5225 _ACEOF
5226
5227      fi
5228   fi
5229 fi
5230
5231
5232 # -------------------------------------------
5233 # smartalloc (default off)
5234 # -------------------------------------------
5235 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5236 if test "${enable_smartalloc+set}" = set; then
5237   enableval="$enable_smartalloc"
5238   if test x$enableval = xno; then
5239     support_smartalloc=no
5240   fi
5241 fi;
5242
5243 if test x$support_smartalloc = xyes; then
5244    cat >>confdefs.h <<\_ACEOF
5245 #define SMARTALLOC 1
5246 _ACEOF
5247
5248 fi
5249
5250 # -------------------------------------------
5251 # static-tools (default off)
5252 # -------------------------------------------
5253 # Check whether --enable-static-tools or --disable-static-tools was given.
5254 if test "${enable_static_tools+set}" = set; then
5255   enableval="$enable_static_tools"
5256   if test x$enableval = xyes; then
5257      support_static_tools=yes
5258    fi
5259 fi;
5260
5261 TTOOL_LDFLAGS=
5262 if test x$support_static_tools = xyes; then
5263    TTOOL_LDFLAGS="-static"
5264 fi
5265
5266
5267 # -------------------------------------------
5268 # static-fd    (default off)
5269 # -------------------------------------------
5270 # Check whether --enable-static-fd or --disable-static-fd was given.
5271 if test "${enable_static_fd+set}" = set; then
5272   enableval="$enable_static_fd"
5273   if test x$enableval = xyes; then
5274      support_static_fd=yes
5275    fi
5276 fi;
5277
5278 STATIC_FD=
5279 if test x$support_static_fd = xyes; then
5280    STATIC_FD="static-bacula-fd"
5281 fi
5282
5283
5284 # -------------------------------------------
5285 # static-sd    (default off)
5286 # -------------------------------------------
5287 # Check whether --enable-static-sd or --disable-static-sd was given.
5288 if test "${enable_static_sd+set}" = set; then
5289   enableval="$enable_static_sd"
5290   if test x$enableval = xyes; then
5291      support_static_sd=yes
5292    fi
5293 fi;
5294
5295 STATIC_SD=
5296 if test x$support_static_sd = xyes; then
5297    STATIC_SD="static-bacula-sd"
5298 fi
5299
5300
5301 # -------------------------------------------
5302 # static-dir   (default off)
5303 # -------------------------------------------
5304 # Check whether --enable-static-dir or --disable-static-dir was given.
5305 if test "${enable_static_dir+set}" = set; then
5306   enableval="$enable_static_dir"
5307   if test x$enableval = xyes; then
5308      support_static_dir=yes
5309    fi
5310 fi;
5311
5312 STATIC_DIR=
5313 if test x$support_static_dir = xyes; then
5314    STATIC_DIR="static-bacula-dir"
5315 fi
5316
5317
5318 # -------------------------------------------
5319 # static-cons  (default off)
5320 # -------------------------------------------
5321 # Check whether --enable-static-cons or --disable-static-cons was given.
5322 if test "${enable_static_cons+set}" = set; then
5323   enableval="$enable_static_cons"
5324   if test x$enableval = xyes; then
5325      support_static_cons=yes
5326    fi
5327 fi;
5328
5329 STATIC_CONS=
5330 STATIC_GNOME_CONS=
5331 STATIC_WX_CONS=
5332 if test x$support_static_cons = xyes; then
5333    STATIC_CONS="static-bconsole"
5334    STATIC_GNOME_CONS="static-gnome-console"
5335    STATIC_WX_CONS="static-wx-console"
5336 fi
5337
5338
5339
5340
5341 # -------------------------------------------
5342 # client_only  (default off)
5343 # -------------------------------------------
5344 # Check whether --enable-client-only or --disable-client-only was given.
5345 if test "${enable_client_only+set}" = set; then
5346   enableval="$enable_client_only"
5347   if test x$enableval = xyes; then
5348      build_client_only=yes
5349     db_name=None
5350     DB_NAME=none
5351    fi
5352 fi;
5353 if test x$build_client_only = xno; then
5354    ALL_DIRS="subdirs"
5355 else
5356    ALL_DIRS=""
5357 fi
5358
5359
5360 # ---------------------------------------------------
5361 # Check for conio (Bacula readline substitute)(
5362 # ---------------------------------------------------
5363 # this allows you to turn it completely off
5364 # Check whether --enable-conio or --disable-conio was given.
5365 if test "${enable_conio+set}" = set; then
5366   enableval="$enable_conio"
5367   if test x$enableval = xno; then
5368     support_conio=no
5369   fi
5370 fi;
5371
5372 got_conio="no"
5373 if test x$support_conio = xyes; then
5374    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5375 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5376 if test "${ac_cv_header_stdc+set}" = set; then
5377   echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379   cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h.  */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h.  */
5385 #include <stdlib.h>
5386 #include <stdarg.h>
5387 #include <string.h>
5388 #include <float.h>
5389
5390 int
5391 main ()
5392 {
5393
5394   ;
5395   return 0;
5396 }
5397 _ACEOF
5398 rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400   (eval $ac_compile) 2>conftest.er1
5401   ac_status=$?
5402   grep -v '^ *+' conftest.er1 >conftest.err
5403   rm -f conftest.er1
5404   cat conftest.err >&5
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } &&
5407          { ac_try='test -z "$ac_c_werror_flag"
5408                          || test ! -s conftest.err'
5409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410   (eval $ac_try) 2>&5
5411   ac_status=$?
5412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413   (exit $ac_status); }; } &&
5414          { ac_try='test -s conftest.$ac_objext'
5415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416   (eval $ac_try) 2>&5
5417   ac_status=$?
5418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419   (exit $ac_status); }; }; then
5420   ac_cv_header_stdc=yes
5421 else
5422   echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 ac_cv_header_stdc=no
5426 fi
5427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5428
5429 if test $ac_cv_header_stdc = yes; then
5430   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5431   cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h.  */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h.  */
5437 #include <string.h>
5438
5439 _ACEOF
5440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5441   $EGREP "memchr" >/dev/null 2>&1; then
5442   :
5443 else
5444   ac_cv_header_stdc=no
5445 fi
5446 rm -f conftest*
5447
5448 fi
5449
5450 if test $ac_cv_header_stdc = yes; then
5451   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5452   cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h.  */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h.  */
5458 #include <stdlib.h>
5459
5460 _ACEOF
5461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5462   $EGREP "free" >/dev/null 2>&1; then
5463   :
5464 else
5465   ac_cv_header_stdc=no
5466 fi
5467 rm -f conftest*
5468
5469 fi
5470
5471 if test $ac_cv_header_stdc = yes; then
5472   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5473   if test "$cross_compiling" = yes; then
5474   :
5475 else
5476   cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h.  */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h.  */
5482 #include <ctype.h>
5483 #if ((' ' & 0x0FF) == 0x020)
5484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5486 #else
5487 # define ISLOWER(c) \
5488                    (('a' <= (c) && (c) <= 'i') \
5489                      || ('j' <= (c) && (c) <= 'r') \
5490                      || ('s' <= (c) && (c) <= 'z'))
5491 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5492 #endif
5493
5494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5495 int
5496 main ()
5497 {
5498   int i;
5499   for (i = 0; i < 256; i++)
5500     if (XOR (islower (i), ISLOWER (i))
5501         || toupper (i) != TOUPPER (i))
5502       exit(2);
5503   exit (0);
5504 }
5505 _ACEOF
5506 rm -f conftest$ac_exeext
5507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5508   (eval $ac_link) 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513   (eval $ac_try) 2>&5
5514   ac_status=$?
5515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516   (exit $ac_status); }; }; then
5517   :
5518 else
5519   echo "$as_me: program exited with status $ac_status" >&5
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5522
5523 ( exit $ac_status )
5524 ac_cv_header_stdc=no
5525 fi
5526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5527 fi
5528 fi
5529 fi
5530 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5531 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5532 if test $ac_cv_header_stdc = yes; then
5533
5534 cat >>confdefs.h <<\_ACEOF
5535 #define STDC_HEADERS 1
5536 _ACEOF
5537
5538 fi
5539
5540 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5551                   inttypes.h stdint.h unistd.h
5552 do
5553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5554 echo "$as_me:$LINENO: checking for $ac_header" >&5
5555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5557   echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559   cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h.  */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h.  */
5565 $ac_includes_default
5566
5567 #include <$ac_header>
5568 _ACEOF
5569 rm -f conftest.$ac_objext
5570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571   (eval $ac_compile) 2>conftest.er1
5572   ac_status=$?
5573   grep -v '^ *+' conftest.er1 >conftest.err
5574   rm -f conftest.er1
5575   cat conftest.err >&5
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); } &&
5578          { ac_try='test -z "$ac_c_werror_flag"
5579                          || test ! -s conftest.err'
5580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581   (eval $ac_try) 2>&5
5582   ac_status=$?
5583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584   (exit $ac_status); }; } &&
5585          { ac_try='test -s conftest.$ac_objext'
5586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587   (eval $ac_try) 2>&5
5588   ac_status=$?
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); }; }; then
5591   eval "$as_ac_Header=yes"
5592 else
5593   echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5595
5596 eval "$as_ac_Header=no"
5597 fi
5598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5599 fi
5600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5603   cat >>confdefs.h <<_ACEOF
5604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5605 _ACEOF
5606
5607 fi
5608
5609 done
5610
5611
5612 if test "${ac_cv_header_termcap_h+set}" = set; then
5613   echo "$as_me:$LINENO: checking for termcap.h" >&5
5614 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5615 if test "${ac_cv_header_termcap_h+set}" = set; then
5616   echo $ECHO_N "(cached) $ECHO_C" >&6
5617 fi
5618 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5619 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5620 else
5621   # Is the header compilable?
5622 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5623 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h.  */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h.  */
5630 $ac_includes_default
5631 #include <termcap.h>
5632 _ACEOF
5633 rm -f conftest.$ac_objext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635   (eval $ac_compile) 2>conftest.er1
5636   ac_status=$?
5637   grep -v '^ *+' conftest.er1 >conftest.err
5638   rm -f conftest.er1
5639   cat conftest.err >&5
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); } &&
5642          { ac_try='test -z "$ac_c_werror_flag"
5643                          || test ! -s conftest.err'
5644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645   (eval $ac_try) 2>&5
5646   ac_status=$?
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); }; } &&
5649          { ac_try='test -s conftest.$ac_objext'
5650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651   (eval $ac_try) 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); }; }; then
5655   ac_header_compiler=yes
5656 else
5657   echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 ac_header_compiler=no
5661 fi
5662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5664 echo "${ECHO_T}$ac_header_compiler" >&6
5665
5666 # Is the header present?
5667 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5668 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5669 cat >conftest.$ac_ext <<_ACEOF
5670 /* confdefs.h.  */
5671 _ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h.  */
5675 #include <termcap.h>
5676 _ACEOF
5677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5678   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5679   ac_status=$?
5680   grep -v '^ *+' conftest.er1 >conftest.err
5681   rm -f conftest.er1
5682   cat conftest.err >&5
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); } >/dev/null; then
5685   if test -s conftest.err; then
5686     ac_cpp_err=$ac_c_preproc_warn_flag
5687     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5688   else
5689     ac_cpp_err=
5690   fi
5691 else
5692   ac_cpp_err=yes
5693 fi
5694 if test -z "$ac_cpp_err"; then
5695   ac_header_preproc=yes
5696 else
5697   echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5699
5700   ac_header_preproc=no
5701 fi
5702 rm -f conftest.err conftest.$ac_ext
5703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5704 echo "${ECHO_T}$ac_header_preproc" >&6
5705
5706 # So?  What about this header?
5707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5708   yes:no: )
5709     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5710 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5711     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5712 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5713     ac_header_preproc=yes
5714     ;;
5715   no:yes:* )
5716     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5717 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5718     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5719 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5720     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5721 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5722     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5723 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5724     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5725 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5726     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5727 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5728     (
5729       cat <<\_ASBOX
5730 ## ------------------------------------------ ##
5731 ## Report this to the AC_PACKAGE_NAME lists.  ##
5732 ## ------------------------------------------ ##
5733 _ASBOX
5734     ) |
5735       sed "s/^/$as_me: WARNING:     /" >&2
5736     ;;
5737 esac
5738 echo "$as_me:$LINENO: checking for termcap.h" >&5
5739 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5740 if test "${ac_cv_header_termcap_h+set}" = set; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743   ac_cv_header_termcap_h=$ac_header_preproc
5744 fi
5745 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5746 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5747
5748 fi
5749 if test $ac_cv_header_termcap_h = yes; then
5750    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5751 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5752 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   ac_check_lib_save_LIBS=$LIBS
5756 LIBS="-ltermcap  $LIBS"
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h.  */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h.  */
5763
5764 /* Override any gcc2 internal prototype to avoid an error.  */
5765 #ifdef __cplusplus
5766 extern "C"
5767 #endif
5768 /* We use char because int might match the return type of a gcc2
5769    builtin and then its argument prototype would still apply.  */
5770 char tgetent ();
5771 int
5772 main ()
5773 {
5774 tgetent ();
5775   ;
5776   return 0;
5777 }
5778 _ACEOF
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781   (eval $ac_link) 2>conftest.er1
5782   ac_status=$?
5783   grep -v '^ *+' conftest.er1 >conftest.err
5784   rm -f conftest.er1
5785   cat conftest.err >&5
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); } &&
5788          { ac_try='test -z "$ac_c_werror_flag"
5789                          || test ! -s conftest.err'
5790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791   (eval $ac_try) 2>&5
5792   ac_status=$?
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); }; } &&
5795          { ac_try='test -s conftest$ac_exeext'
5796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797   (eval $ac_try) 2>&5
5798   ac_status=$?
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); }; }; then
5801   ac_cv_lib_termcap_tgetent=yes
5802 else
5803   echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 ac_cv_lib_termcap_tgetent=no
5807 fi
5808 rm -f conftest.err conftest.$ac_objext \
5809       conftest$ac_exeext conftest.$ac_ext
5810 LIBS=$ac_check_lib_save_LIBS
5811 fi
5812 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5813 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5814 if test $ac_cv_lib_termcap_tgetent = yes; then
5815    CONS_LIBS="-ltermcap"
5816          CONS_OBJ="conio.o"
5817          CONS_SRC="conio.c"
5818          got_conio="yes"
5819          support_readline=no
5820
5821 cat >>confdefs.h <<\_ACEOF
5822 #define HAVE_CONIO 1
5823 _ACEOF
5824
5825
5826 else
5827    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5828 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5829 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5830   echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832   ac_check_lib_save_LIBS=$LIBS
5833 LIBS="-lncurses  $LIBS"
5834 cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h.  */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h.  */
5840
5841 /* Override any gcc2 internal prototype to avoid an error.  */
5842 #ifdef __cplusplus
5843 extern "C"
5844 #endif
5845 /* We use char because int might match the return type of a gcc2
5846    builtin and then its argument prototype would still apply.  */
5847 char tgetent ();
5848 int
5849 main ()
5850 {
5851 tgetent ();
5852   ;
5853   return 0;
5854 }
5855 _ACEOF
5856 rm -f conftest.$ac_objext conftest$ac_exeext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5858   (eval $ac_link) 2>conftest.er1
5859   ac_status=$?
5860   grep -v '^ *+' conftest.er1 >conftest.err
5861   rm -f conftest.er1
5862   cat conftest.err >&5
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); } &&
5865          { ac_try='test -z "$ac_c_werror_flag"
5866                          || test ! -s conftest.err'
5867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868   (eval $ac_try) 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); }; } &&
5872          { ac_try='test -s conftest$ac_exeext'
5873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874   (eval $ac_try) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }; }; then
5878   ac_cv_lib_ncurses_tgetent=yes
5879 else
5880   echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5882
5883 ac_cv_lib_ncurses_tgetent=no
5884 fi
5885 rm -f conftest.err conftest.$ac_objext \
5886       conftest$ac_exeext conftest.$ac_ext
5887 LIBS=$ac_check_lib_save_LIBS
5888 fi
5889 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5890 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5891 if test $ac_cv_lib_ncurses_tgetent = yes; then
5892    CONS_LIBS="-lncurses"
5893            CONS_OBJ="conio.o"
5894            CONS_SRC="conio.c"
5895            got_conio="yes"
5896            support_readline=no
5897
5898 cat >>confdefs.h <<\_ACEOF
5899 #define HAVE_CONIO 1
5900 _ACEOF
5901
5902
5903 fi
5904
5905
5906 fi
5907
5908
5909 else
5910
5911
5912 for ac_header in curses.h
5913 do
5914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5916   echo "$as_me:$LINENO: checking for $ac_header" >&5
5917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 fi
5921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5923 else
5924   # Is the header compilable?
5925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5927 cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h.  */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h.  */
5933 $ac_includes_default
5934 #include <$ac_header>
5935 _ACEOF
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938   (eval $ac_compile) 2>conftest.er1
5939   ac_status=$?
5940   grep -v '^ *+' conftest.er1 >conftest.err
5941   rm -f conftest.er1
5942   cat conftest.err >&5
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); } &&
5945          { ac_try='test -z "$ac_c_werror_flag"
5946                          || test ! -s conftest.err'
5947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948   (eval $ac_try) 2>&5
5949   ac_status=$?
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); }; } &&
5952          { ac_try='test -s conftest.$ac_objext'
5953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954   (eval $ac_try) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); }; }; then
5958   ac_header_compiler=yes
5959 else
5960   echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 ac_header_compiler=no
5964 fi
5965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5967 echo "${ECHO_T}$ac_header_compiler" >&6
5968
5969 # Is the header present?
5970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h.  */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h.  */
5978 #include <$ac_header>
5979 _ACEOF
5980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5982   ac_status=$?
5983   grep -v '^ *+' conftest.er1 >conftest.err
5984   rm -f conftest.er1
5985   cat conftest.err >&5
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); } >/dev/null; then
5988   if test -s conftest.err; then
5989     ac_cpp_err=$ac_c_preproc_warn_flag
5990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5991   else
5992     ac_cpp_err=
5993   fi
5994 else
5995   ac_cpp_err=yes
5996 fi
5997 if test -z "$ac_cpp_err"; then
5998   ac_header_preproc=yes
5999 else
6000   echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6002
6003   ac_header_preproc=no
6004 fi
6005 rm -f conftest.err conftest.$ac_ext
6006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6007 echo "${ECHO_T}$ac_header_preproc" >&6
6008
6009 # So?  What about this header?
6010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6011   yes:no: )
6012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6016     ac_header_preproc=yes
6017     ;;
6018   no:yes:* )
6019     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6021     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6022 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6023     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6025     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6026 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6029     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6031     (
6032       cat <<\_ASBOX
6033 ## ------------------------------------------ ##
6034 ## Report this to the AC_PACKAGE_NAME lists.  ##
6035 ## ------------------------------------------ ##
6036 _ASBOX
6037     ) |
6038       sed "s/^/$as_me: WARNING:     /" >&2
6039     ;;
6040 esac
6041 echo "$as_me:$LINENO: checking for $ac_header" >&5
6042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   eval "$as_ac_Header=\$ac_header_preproc"
6047 fi
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050
6051 fi
6052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6053   cat >>confdefs.h <<_ACEOF
6054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6055 _ACEOF
6056
6057 fi
6058
6059 done
6060
6061          echo "$as_me:$LINENO: checking for term.h" >&5
6062 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
6063 if test "${ac_cv_header_term_h+set}" = set; then
6064   echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066   cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h.  */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h.  */
6072 #if HAVE_CURSES_H
6073 #include <curses.h>
6074 #endif
6075
6076
6077 #include <term.h>
6078 _ACEOF
6079 rm -f conftest.$ac_objext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6081   (eval $ac_compile) 2>conftest.er1
6082   ac_status=$?
6083   grep -v '^ *+' conftest.er1 >conftest.err
6084   rm -f conftest.er1
6085   cat conftest.err >&5
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); } &&
6088          { ac_try='test -z "$ac_c_werror_flag"
6089                          || test ! -s conftest.err'
6090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091   (eval $ac_try) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; } &&
6095          { ac_try='test -s conftest.$ac_objext'
6096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097   (eval $ac_try) 2>&5
6098   ac_status=$?
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); }; }; then
6101   ac_cv_header_term_h=yes
6102 else
6103   echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6105
6106 ac_cv_header_term_h=no
6107 fi
6108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6109 fi
6110 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6111 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6112 if test $ac_cv_header_term_h = yes; then
6113    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6114 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6115 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6116   echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118   ac_check_lib_save_LIBS=$LIBS
6119 LIBS="-lcurses  $LIBS"
6120 cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h.  */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h.  */
6126
6127 /* Override any gcc2 internal prototype to avoid an error.  */
6128 #ifdef __cplusplus
6129 extern "C"
6130 #endif
6131 /* We use char because int might match the return type of a gcc2
6132    builtin and then its argument prototype would still apply.  */
6133 char tgetent ();
6134 int
6135 main ()
6136 {
6137 tgetent ();
6138   ;
6139   return 0;
6140 }
6141 _ACEOF
6142 rm -f conftest.$ac_objext conftest$ac_exeext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6144   (eval $ac_link) 2>conftest.er1
6145   ac_status=$?
6146   grep -v '^ *+' conftest.er1 >conftest.err
6147   rm -f conftest.er1
6148   cat conftest.err >&5
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); } &&
6151          { ac_try='test -z "$ac_c_werror_flag"
6152                          || test ! -s conftest.err'
6153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154   (eval $ac_try) 2>&5
6155   ac_status=$?
6156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157   (exit $ac_status); }; } &&
6158          { ac_try='test -s conftest$ac_exeext'
6159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160   (eval $ac_try) 2>&5
6161   ac_status=$?
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); }; }; then
6164   ac_cv_lib_curses_tgetent=yes
6165 else
6166   echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169 ac_cv_lib_curses_tgetent=no
6170 fi
6171 rm -f conftest.err conftest.$ac_objext \
6172       conftest$ac_exeext conftest.$ac_ext
6173 LIBS=$ac_check_lib_save_LIBS
6174 fi
6175 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6176 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6177 if test $ac_cv_lib_curses_tgetent = yes; then
6178    CONS_LIBS="-lcurses"
6179                    CONS_OBJ="conio.o"
6180                    CONS_SRC="conio.c"
6181                    got_conio="yes"
6182                    support_readline=no
6183
6184 cat >>confdefs.h <<\_ACEOF
6185 #define HAVE_CONIO 1
6186 _ACEOF
6187
6188
6189 fi
6190
6191
6192 else
6193    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6194 fi
6195
6196
6197
6198 fi
6199
6200
6201 fi
6202
6203
6204 # ---------------------------------------------------
6205 # Check for readline support/directory (default off)
6206 # ---------------------------------------------------
6207 # this allows you to turn it completely off
6208 # Check whether --enable-readline or --disable-readline was given.
6209 if test "${enable_readline+set}" = set; then
6210   enableval="$enable_readline"
6211   if test x$enableval = xno; then
6212     support_readline=no
6213   fi
6214 fi;
6215
6216 got_readline="no"
6217 READLINE_SRC=
6218 if test x$support_readline = xyes; then
6219
6220 # Check whether --with-readline or --without-readline was given.
6221 if test "${with_readline+set}" = set; then
6222   withval="$with_readline"
6223
6224         case "$with_readline" in
6225         no) : ;;
6226         yes|*)
6227           if test "$with_readline" != "yes"; then
6228             CONS_INC="-I${with_readline}"
6229             CONS_LDFLAGS="-L$with_readline"
6230           else
6231              with_readline="/usr/include/readline"
6232           fi
6233           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6235   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6236 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6238   echo $ECHO_N "(cached) $ECHO_C" >&6
6239 fi
6240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6242 else
6243   # Is the header compilable?
6244 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6245 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6246 cat >conftest.$ac_ext <<_ACEOF
6247 /* confdefs.h.  */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h.  */
6252 $ac_includes_default
6253 #include <${with_readline}/readline.h>
6254 _ACEOF
6255 rm -f conftest.$ac_objext
6256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6257   (eval $ac_compile) 2>conftest.er1
6258   ac_status=$?
6259   grep -v '^ *+' conftest.er1 >conftest.err
6260   rm -f conftest.er1
6261   cat conftest.err >&5
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); } &&
6264          { ac_try='test -z "$ac_c_werror_flag"
6265                          || test ! -s conftest.err'
6266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267   (eval $ac_try) 2>&5
6268   ac_status=$?
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); }; } &&
6271          { ac_try='test -s conftest.$ac_objext'
6272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273   (eval $ac_try) 2>&5
6274   ac_status=$?
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); }; }; then
6277   ac_header_compiler=yes
6278 else
6279   echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6281
6282 ac_header_compiler=no
6283 fi
6284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6286 echo "${ECHO_T}$ac_header_compiler" >&6
6287
6288 # Is the header present?
6289 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6290 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6291 cat >conftest.$ac_ext <<_ACEOF
6292 /* confdefs.h.  */
6293 _ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h.  */
6297 #include <${with_readline}/readline.h>
6298 _ACEOF
6299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6301   ac_status=$?
6302   grep -v '^ *+' conftest.er1 >conftest.err
6303   rm -f conftest.er1
6304   cat conftest.err >&5
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); } >/dev/null; then
6307   if test -s conftest.err; then
6308     ac_cpp_err=$ac_c_preproc_warn_flag
6309     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6310   else
6311     ac_cpp_err=
6312   fi
6313 else
6314   ac_cpp_err=yes
6315 fi
6316 if test -z "$ac_cpp_err"; then
6317   ac_header_preproc=yes
6318 else
6319   echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6321
6322   ac_header_preproc=no
6323 fi
6324 rm -f conftest.err conftest.$ac_ext
6325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6326 echo "${ECHO_T}$ac_header_preproc" >&6
6327
6328 # So?  What about this header?
6329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6330   yes:no: )
6331     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6332 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6333     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6334 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6335     ac_header_preproc=yes
6336     ;;
6337   no:yes:* )
6338     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6339 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6340     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6341 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6342     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6343 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6344     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6345 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6346     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6347 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6348     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6349 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6350     (
6351       cat <<\_ASBOX
6352 ## ------------------------------------------ ##
6353 ## Report this to the AC_PACKAGE_NAME lists.  ##
6354 ## ------------------------------------------ ##
6355 _ASBOX
6356     ) |
6357       sed "s/^/$as_me: WARNING:     /" >&2
6358     ;;
6359 esac
6360 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6361 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6363   echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365   eval "$as_ac_Header=\$ac_header_preproc"
6366 fi
6367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6369
6370 fi
6371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6372    cat >>confdefs.h <<\_ACEOF
6373 #define HAVE_READLINE 1
6374 _ACEOF
6375
6376                CONS_LIBS="-lreadline -ltermcap"
6377                got_readline="yes"
6378
6379 else
6380    echo " "
6381                echo "readline.h not found. readline turned off ..."
6382                echo " "
6383
6384
6385 fi
6386
6387
6388           ;;
6389         esac
6390
6391 else
6392
6393        # check for standard readline library
6394        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6395   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6396 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6397 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6398   echo $ECHO_N "(cached) $ECHO_C" >&6
6399 fi
6400 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6401 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6402 else
6403   # Is the header compilable?
6404 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6405 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6406 cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h.  */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h.  */
6412 $ac_includes_default
6413 #include </usr/include/readline/readline.h>
6414 _ACEOF
6415 rm -f conftest.$ac_objext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417   (eval $ac_compile) 2>conftest.er1
6418   ac_status=$?
6419   grep -v '^ *+' conftest.er1 >conftest.err
6420   rm -f conftest.er1
6421   cat conftest.err >&5
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); } &&
6424          { ac_try='test -z "$ac_c_werror_flag"
6425                          || test ! -s conftest.err'
6426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427   (eval $ac_try) 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); }; } &&
6431          { ac_try='test -s conftest.$ac_objext'
6432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433   (eval $ac_try) 2>&5
6434   ac_status=$?
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); }; }; then
6437   ac_header_compiler=yes
6438 else
6439   echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ac_header_compiler=no
6443 fi
6444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6446 echo "${ECHO_T}$ac_header_compiler" >&6
6447
6448 # Is the header present?
6449 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6450 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6452 /* confdefs.h.  */
6453 _ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h.  */
6457 #include </usr/include/readline/readline.h>
6458 _ACEOF
6459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6460   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6461   ac_status=$?
6462   grep -v '^ *+' conftest.er1 >conftest.err
6463   rm -f conftest.er1
6464   cat conftest.err >&5
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } >/dev/null; then
6467   if test -s conftest.err; then
6468     ac_cpp_err=$ac_c_preproc_warn_flag
6469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6470   else
6471     ac_cpp_err=
6472   fi
6473 else
6474   ac_cpp_err=yes
6475 fi
6476 if test -z "$ac_cpp_err"; then
6477   ac_header_preproc=yes
6478 else
6479   echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482   ac_header_preproc=no
6483 fi
6484 rm -f conftest.err conftest.$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6486 echo "${ECHO_T}$ac_header_preproc" >&6
6487
6488 # So?  What about this header?
6489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6490   yes:no: )
6491     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6492 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6493     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6494 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6495     ac_header_preproc=yes
6496     ;;
6497   no:yes:* )
6498     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6499 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6500     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6501 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6502     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6503 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6504     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6505 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6506     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6507 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6508     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6509 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6510     (
6511       cat <<\_ASBOX
6512 ## ------------------------------------------ ##
6513 ## Report this to the AC_PACKAGE_NAME lists.  ##
6514 ## ------------------------------------------ ##
6515 _ASBOX
6516     ) |
6517       sed "s/^/$as_me: WARNING:     /" >&2
6518     ;;
6519 esac
6520 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6521 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6522 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6523   echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6526 fi
6527 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6528 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6529
6530 fi
6531 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6532    cat >>confdefs.h <<\_ACEOF
6533 #define HAVE_READLINE 1
6534 _ACEOF
6535
6536            got_readline="yes"
6537            CONS_INC="-I/usr/include/readline"
6538            CONS_LIBS="-lreadline -ltermcap"
6539
6540 else
6541
6542            # Did not find standard library, so try Bacula's default
6543             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6545   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6546 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 fi
6550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6552 else
6553   # Is the header compilable?
6554 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6555 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6556 cat >conftest.$ac_ext <<_ACEOF
6557 /* confdefs.h.  */
6558 _ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h.  */
6562 $ac_includes_default
6563 #include <${TOP_DIR}/depkgs/readline/readline.h>
6564 _ACEOF
6565 rm -f conftest.$ac_objext
6566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6567   (eval $ac_compile) 2>conftest.er1
6568   ac_status=$?
6569   grep -v '^ *+' conftest.er1 >conftest.err
6570   rm -f conftest.er1
6571   cat conftest.err >&5
6572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573   (exit $ac_status); } &&
6574          { ac_try='test -z "$ac_c_werror_flag"
6575                          || test ! -s conftest.err'
6576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577   (eval $ac_try) 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); }; } &&
6581          { ac_try='test -s conftest.$ac_objext'
6582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583   (eval $ac_try) 2>&5
6584   ac_status=$?
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); }; }; then
6587   ac_header_compiler=yes
6588 else
6589   echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6591
6592 ac_header_compiler=no
6593 fi
6594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6596 echo "${ECHO_T}$ac_header_compiler" >&6
6597
6598 # Is the header present?
6599 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6600 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6601 cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h.  */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h.  */
6607 #include <${TOP_DIR}/depkgs/readline/readline.h>
6608 _ACEOF
6609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6610   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6611   ac_status=$?
6612   grep -v '^ *+' conftest.er1 >conftest.err
6613   rm -f conftest.er1
6614   cat conftest.err >&5
6615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); } >/dev/null; then
6617   if test -s conftest.err; then
6618     ac_cpp_err=$ac_c_preproc_warn_flag
6619     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6620   else
6621     ac_cpp_err=
6622   fi
6623 else
6624   ac_cpp_err=yes
6625 fi
6626 if test -z "$ac_cpp_err"; then
6627   ac_header_preproc=yes
6628 else
6629   echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6631
6632   ac_header_preproc=no
6633 fi
6634 rm -f conftest.err conftest.$ac_ext
6635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6636 echo "${ECHO_T}$ac_header_preproc" >&6
6637
6638 # So?  What about this header?
6639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6640   yes:no: )
6641     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6642 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6643     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6644 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6645     ac_header_preproc=yes
6646     ;;
6647   no:yes:* )
6648     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6649 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6650     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6651 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6652     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6653 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6654     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6655 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6656     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6657 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6658     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6659 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6660     (
6661       cat <<\_ASBOX
6662 ## ------------------------------------------ ##
6663 ## Report this to the AC_PACKAGE_NAME lists.  ##
6664 ## ------------------------------------------ ##
6665 _ASBOX
6666     ) |
6667       sed "s/^/$as_me: WARNING:     /" >&2
6668     ;;
6669 esac
6670 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6671 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675   eval "$as_ac_Header=\$ac_header_preproc"
6676 fi
6677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6679
6680 fi
6681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6682    cat >>confdefs.h <<\_ACEOF
6683 #define HAVE_READLINE 1
6684 _ACEOF
6685
6686                  got_readline="yes"
6687                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6688                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6689                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6690                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6691
6692 else
6693    echo " "
6694                 echo "readline.h not found. readline turned off ..."
6695                 echo " "
6696
6697
6698 fi
6699
6700
6701
6702
6703 fi
6704
6705
6706
6707
6708 fi;
6709 fi
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720 # Minimal stuff for readline Makefile configuration
6721 MAKE_SHELL=/bin/sh
6722
6723 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6724 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6725 if test "${ac_cv_header_stat_broken+set}" = set; then
6726   echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728   cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h.  */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h.  */
6734 #include <sys/types.h>
6735 #include <sys/stat.h>
6736
6737 #if defined(S_ISBLK) && defined(S_IFDIR)
6738 # if S_ISBLK (S_IFDIR)
6739 You lose.
6740 # endif
6741 #endif
6742
6743 #if defined(S_ISBLK) && defined(S_IFCHR)
6744 # if S_ISBLK (S_IFCHR)
6745 You lose.
6746 # endif
6747 #endif
6748
6749 #if defined(S_ISLNK) && defined(S_IFREG)
6750 # if S_ISLNK (S_IFREG)
6751 You lose.
6752 # endif
6753 #endif
6754
6755 #if defined(S_ISSOCK) && defined(S_IFREG)
6756 # if S_ISSOCK (S_IFREG)
6757 You lose.
6758 # endif
6759 #endif
6760
6761 _ACEOF
6762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6763   $EGREP "You lose" >/dev/null 2>&1; then
6764   ac_cv_header_stat_broken=yes
6765 else
6766   ac_cv_header_stat_broken=no
6767 fi
6768 rm -f conftest*
6769
6770 fi
6771 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6772 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6773 if test $ac_cv_header_stat_broken = yes; then
6774
6775 cat >>confdefs.h <<\_ACEOF
6776 #define STAT_MACROS_BROKEN 1
6777 _ACEOF
6778
6779 fi
6780
6781
6782
6783
6784
6785
6786 ac_header_dirent=no
6787 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6788   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6789 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6790 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794   cat >conftest.$ac_ext <<_ACEOF
6795 /* confdefs.h.  */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h.  */
6800 #include <sys/types.h>
6801 #include <$ac_hdr>
6802
6803 int
6804 main ()
6805 {
6806 if ((DIR *) 0)
6807 return 0;
6808   ;
6809   return 0;
6810 }
6811 _ACEOF
6812 rm -f conftest.$ac_objext
6813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6814   (eval $ac_compile) 2>conftest.er1
6815   ac_status=$?
6816   grep -v '^ *+' conftest.er1 >conftest.err
6817   rm -f conftest.er1
6818   cat conftest.err >&5
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); } &&
6821          { ac_try='test -z "$ac_c_werror_flag"
6822                          || test ! -s conftest.err'
6823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824   (eval $ac_try) 2>&5
6825   ac_status=$?
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); }; } &&
6828          { ac_try='test -s conftest.$ac_objext'
6829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830   (eval $ac_try) 2>&5
6831   ac_status=$?
6832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833   (exit $ac_status); }; }; then
6834   eval "$as_ac_Header=yes"
6835 else
6836   echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6838
6839 eval "$as_ac_Header=no"
6840 fi
6841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6842 fi
6843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6846   cat >>confdefs.h <<_ACEOF
6847 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6848 _ACEOF
6849
6850 ac_header_dirent=$ac_hdr; break
6851 fi
6852
6853 done
6854 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6855 if test $ac_header_dirent = dirent.h; then
6856   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6857 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6858 if test "${ac_cv_search_opendir+set}" = set; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861   ac_func_search_save_LIBS=$LIBS
6862 ac_cv_search_opendir=no
6863 cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h.  */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h.  */
6869
6870 /* Override any gcc2 internal prototype to avoid an error.  */
6871 #ifdef __cplusplus
6872 extern "C"
6873 #endif
6874 /* We use char because int might match the return type of a gcc2
6875    builtin and then its argument prototype would still apply.  */
6876 char opendir ();
6877 int
6878 main ()
6879 {
6880 opendir ();
6881   ;
6882   return 0;
6883 }
6884 _ACEOF
6885 rm -f conftest.$ac_objext conftest$ac_exeext
6886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6887   (eval $ac_link) 2>conftest.er1
6888   ac_status=$?
6889   grep -v '^ *+' conftest.er1 >conftest.err
6890   rm -f conftest.er1
6891   cat conftest.err >&5
6892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893   (exit $ac_status); } &&
6894          { ac_try='test -z "$ac_c_werror_flag"
6895                          || test ! -s conftest.err'
6896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897   (eval $ac_try) 2>&5
6898   ac_status=$?
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); }; } &&
6901          { ac_try='test -s conftest$ac_exeext'
6902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903   (eval $ac_try) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); }; }; then
6907   ac_cv_search_opendir="none required"
6908 else
6909   echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6911
6912 fi
6913 rm -f conftest.err conftest.$ac_objext \
6914       conftest$ac_exeext conftest.$ac_ext
6915 if test "$ac_cv_search_opendir" = no; then
6916   for ac_lib in dir; do
6917     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6918     cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h.  */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h.  */
6924
6925 /* Override any gcc2 internal prototype to avoid an error.  */
6926 #ifdef __cplusplus
6927 extern "C"
6928 #endif
6929 /* We use char because int might match the return type of a gcc2
6930    builtin and then its argument prototype would still apply.  */
6931 char opendir ();
6932 int
6933 main ()
6934 {
6935 opendir ();
6936   ;
6937   return 0;
6938 }
6939 _ACEOF
6940 rm -f conftest.$ac_objext conftest$ac_exeext
6941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6942   (eval $ac_link) 2>conftest.er1
6943   ac_status=$?
6944   grep -v '^ *+' conftest.er1 >conftest.err
6945   rm -f conftest.er1
6946   cat conftest.err >&5
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); } &&
6949          { ac_try='test -z "$ac_c_werror_flag"
6950                          || test ! -s conftest.err'
6951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952   (eval $ac_try) 2>&5
6953   ac_status=$?
6954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955   (exit $ac_status); }; } &&
6956          { ac_try='test -s conftest$ac_exeext'
6957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958   (eval $ac_try) 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); }; }; then
6962   ac_cv_search_opendir="-l$ac_lib"
6963 break
6964 else
6965   echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6967
6968 fi
6969 rm -f conftest.err conftest.$ac_objext \
6970       conftest$ac_exeext conftest.$ac_ext
6971   done
6972 fi
6973 LIBS=$ac_func_search_save_LIBS
6974 fi
6975 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6976 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6977 if test "$ac_cv_search_opendir" != no; then
6978   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6979
6980 fi
6981
6982 else
6983   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6984 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6985 if test "${ac_cv_search_opendir+set}" = set; then
6986   echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988   ac_func_search_save_LIBS=$LIBS
6989 ac_cv_search_opendir=no
6990 cat >conftest.$ac_ext <<_ACEOF
6991 /* confdefs.h.  */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h.  */
6996
6997 /* Override any gcc2 internal prototype to avoid an error.  */
6998 #ifdef __cplusplus
6999 extern "C"
7000 #endif
7001 /* We use char because int might match the return type of a gcc2
7002    builtin and then its argument prototype would still apply.  */
7003 char opendir ();
7004 int
7005 main ()
7006 {
7007 opendir ();
7008   ;
7009   return 0;
7010 }
7011 _ACEOF
7012 rm -f conftest.$ac_objext conftest$ac_exeext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7014   (eval $ac_link) 2>conftest.er1
7015   ac_status=$?
7016   grep -v '^ *+' conftest.er1 >conftest.err
7017   rm -f conftest.er1
7018   cat conftest.err >&5
7019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020   (exit $ac_status); } &&
7021          { ac_try='test -z "$ac_c_werror_flag"
7022                          || test ! -s conftest.err'
7023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024   (eval $ac_try) 2>&5
7025   ac_status=$?
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); }; } &&
7028          { ac_try='test -s conftest$ac_exeext'
7029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030   (eval $ac_try) 2>&5
7031   ac_status=$?
7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033   (exit $ac_status); }; }; then
7034   ac_cv_search_opendir="none required"
7035 else
7036   echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7038
7039 fi
7040 rm -f conftest.err conftest.$ac_objext \
7041       conftest$ac_exeext conftest.$ac_ext
7042 if test "$ac_cv_search_opendir" = no; then
7043   for ac_lib in x; do
7044     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7045     cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h.  */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h.  */
7051
7052 /* Override any gcc2 internal prototype to avoid an error.  */
7053 #ifdef __cplusplus
7054 extern "C"
7055 #endif
7056 /* We use char because int might match the return type of a gcc2
7057    builtin and then its argument prototype would still apply.  */
7058 char opendir ();
7059 int
7060 main ()
7061 {
7062 opendir ();
7063   ;
7064   return 0;
7065 }
7066 _ACEOF
7067 rm -f conftest.$ac_objext conftest$ac_exeext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7069   (eval $ac_link) 2>conftest.er1
7070   ac_status=$?
7071   grep -v '^ *+' conftest.er1 >conftest.err
7072   rm -f conftest.er1
7073   cat conftest.err >&5
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); } &&
7076          { ac_try='test -z "$ac_c_werror_flag"
7077                          || test ! -s conftest.err'
7078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079   (eval $ac_try) 2>&5
7080   ac_status=$?
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); }; } &&
7083          { ac_try='test -s conftest$ac_exeext'
7084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085   (eval $ac_try) 2>&5
7086   ac_status=$?
7087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088   (exit $ac_status); }; }; then
7089   ac_cv_search_opendir="-l$ac_lib"
7090 break
7091 else
7092   echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7094
7095 fi
7096 rm -f conftest.err conftest.$ac_objext \
7097       conftest$ac_exeext conftest.$ac_ext
7098   done
7099 fi
7100 LIBS=$ac_func_search_save_LIBS
7101 fi
7102 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7103 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7104 if test "$ac_cv_search_opendir" != no; then
7105   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7106
7107 fi
7108
7109 fi
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7120 do
7121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7122 echo "$as_me:$LINENO: checking for $ac_func" >&5
7123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7124 if eval "test \"\${$as_ac_var+set}\" = set"; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127   cat >conftest.$ac_ext <<_ACEOF
7128 /* confdefs.h.  */
7129 _ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h.  */
7133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7135 #define $ac_func innocuous_$ac_func
7136
7137 /* System header to define __stub macros and hopefully few prototypes,
7138     which can conflict with char $ac_func (); below.
7139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7140     <limits.h> exists even on freestanding compilers.  */
7141
7142 #ifdef __STDC__
7143 # include <limits.h>
7144 #else
7145 # include <assert.h>
7146 #endif
7147
7148 #undef $ac_func
7149
7150 /* Override any gcc2 internal prototype to avoid an error.  */
7151 #ifdef __cplusplus
7152 extern "C"
7153 {
7154 #endif
7155 /* We use char because int might match the return type of a gcc2
7156    builtin and then its argument prototype would still apply.  */
7157 char $ac_func ();
7158 /* The GNU C library defines this for functions which it implements
7159     to always fail with ENOSYS.  Some functions are actually named
7160     something starting with __ and the normal name is an alias.  */
7161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7162 choke me
7163 #else
7164 char (*f) () = $ac_func;
7165 #endif
7166 #ifdef __cplusplus
7167 }
7168 #endif
7169
7170 int
7171 main ()
7172 {
7173 return f != $ac_func;
7174   ;
7175   return 0;
7176 }
7177 _ACEOF
7178 rm -f conftest.$ac_objext conftest$ac_exeext
7179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7180   (eval $ac_link) 2>conftest.er1
7181   ac_status=$?
7182   grep -v '^ *+' conftest.er1 >conftest.err
7183   rm -f conftest.er1
7184   cat conftest.err >&5
7185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186   (exit $ac_status); } &&
7187          { ac_try='test -z "$ac_c_werror_flag"
7188                          || test ! -s conftest.err'
7189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190   (eval $ac_try) 2>&5
7191   ac_status=$?
7192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193   (exit $ac_status); }; } &&
7194          { ac_try='test -s conftest$ac_exeext'
7195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196   (eval $ac_try) 2>&5
7197   ac_status=$?
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); }; }; then
7200   eval "$as_ac_var=yes"
7201 else
7202   echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7204
7205 eval "$as_ac_var=no"
7206 fi
7207 rm -f conftest.err conftest.$ac_objext \
7208       conftest$ac_exeext conftest.$ac_ext
7209 fi
7210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7212 if test `eval echo '${'$as_ac_var'}'` = yes; then
7213   cat >>confdefs.h <<_ACEOF
7214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7215 _ACEOF
7216
7217 fi
7218 done
7219
7220
7221
7222 for ac_func in nanosleep nl_langinfo
7223 do
7224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7225 echo "$as_me:$LINENO: checking for $ac_func" >&5
7226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7227 if eval "test \"\${$as_ac_var+set}\" = set"; then
7228   echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230   cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h.  */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h.  */
7236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7238 #define $ac_func innocuous_$ac_func
7239
7240 /* System header to define __stub macros and hopefully few prototypes,
7241     which can conflict with char $ac_func (); below.
7242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7243     <limits.h> exists even on freestanding compilers.  */
7244
7245 #ifdef __STDC__
7246 # include <limits.h>
7247 #else
7248 # include <assert.h>
7249 #endif
7250
7251 #undef $ac_func
7252
7253 /* Override any gcc2 internal prototype to avoid an error.  */
7254 #ifdef __cplusplus
7255 extern "C"
7256 {
7257 #endif
7258 /* We use char because int might match the return type of a gcc2
7259    builtin and then its argument prototype would still apply.  */
7260 char $ac_func ();
7261 /* The GNU C library defines this for functions which it implements
7262     to always fail with ENOSYS.  Some functions are actually named
7263     something starting with __ and the normal name is an alias.  */
7264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7265 choke me
7266 #else
7267 char (*f) () = $ac_func;
7268 #endif
7269 #ifdef __cplusplus
7270 }
7271 #endif
7272
7273 int
7274 main ()
7275 {
7276 return f != $ac_func;
7277   ;
7278   return 0;
7279 }
7280 _ACEOF
7281 rm -f conftest.$ac_objext conftest$ac_exeext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7283   (eval $ac_link) 2>conftest.er1
7284   ac_status=$?
7285   grep -v '^ *+' conftest.er1 >conftest.err
7286   rm -f conftest.er1
7287   cat conftest.err >&5
7288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289   (exit $ac_status); } &&
7290          { ac_try='test -z "$ac_c_werror_flag"
7291                          || test ! -s conftest.err'
7292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293   (eval $ac_try) 2>&5
7294   ac_status=$?
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); }; } &&
7297          { ac_try='test -s conftest$ac_exeext'
7298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299   (eval $ac_try) 2>&5
7300   ac_status=$?
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); }; }; then
7303   eval "$as_ac_var=yes"
7304 else
7305   echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308 eval "$as_ac_var=no"
7309 fi
7310 rm -f conftest.err conftest.$ac_objext \
7311       conftest$ac_exeext conftest.$ac_ext
7312 fi
7313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7315 if test `eval echo '${'$as_ac_var'}'` = yes; then
7316   cat >>confdefs.h <<_ACEOF
7317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7318 _ACEOF
7319
7320 fi
7321 done
7322
7323
7324 for ac_header in varargs.h
7325 do
7326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7328   echo "$as_me:$LINENO: checking for $ac_header" >&5
7329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7331   echo $ECHO_N "(cached) $ECHO_C" >&6
7332 fi
7333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7335 else
7336   # Is the header compilable?
7337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7339 cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h.  */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h.  */
7345 $ac_includes_default
7346 #include <$ac_header>
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7350   (eval $ac_compile) 2>conftest.er1
7351   ac_status=$?
7352   grep -v '^ *+' conftest.er1 >conftest.err
7353   rm -f conftest.er1
7354   cat conftest.err >&5
7355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356   (exit $ac_status); } &&
7357          { ac_try='test -z "$ac_c_werror_flag"
7358                          || test ! -s conftest.err'
7359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360   (eval $ac_try) 2>&5
7361   ac_status=$?
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); }; } &&
7364          { ac_try='test -s conftest.$ac_objext'
7365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366   (eval $ac_try) 2>&5
7367   ac_status=$?
7368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369   (exit $ac_status); }; }; then
7370   ac_header_compiler=yes
7371 else
7372   echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7374
7375 ac_header_compiler=no
7376 fi
7377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7379 echo "${ECHO_T}$ac_header_compiler" >&6
7380
7381 # Is the header present?
7382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7384 cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h.  */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h.  */
7390 #include <$ac_header>
7391 _ACEOF
7392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7394   ac_status=$?
7395   grep -v '^ *+' conftest.er1 >conftest.err
7396   rm -f conftest.er1
7397   cat conftest.err >&5
7398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399   (exit $ac_status); } >/dev/null; then
7400   if test -s conftest.err; then
7401     ac_cpp_err=$ac_c_preproc_warn_flag
7402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7403   else
7404     ac_cpp_err=
7405   fi
7406 else
7407   ac_cpp_err=yes
7408 fi
7409 if test -z "$ac_cpp_err"; then
7410   ac_header_preproc=yes
7411 else
7412   echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7414
7415   ac_header_preproc=no
7416 fi
7417 rm -f conftest.err conftest.$ac_ext
7418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7419 echo "${ECHO_T}$ac_header_preproc" >&6
7420
7421 # So?  What about this header?
7422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7423   yes:no: )
7424     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7428     ac_header_preproc=yes
7429     ;;
7430   no:yes:* )
7431     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7433     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7434 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7435     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7437     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7438 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7441     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7443     (
7444       cat <<\_ASBOX
7445 ## ------------------------------------------ ##
7446 ## Report this to the AC_PACKAGE_NAME lists.  ##
7447 ## ------------------------------------------ ##
7448 _ASBOX
7449     ) |
7450       sed "s/^/$as_me: WARNING:     /" >&2
7451     ;;
7452 esac
7453 echo "$as_me:$LINENO: checking for $ac_header" >&5
7454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7456   echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458   eval "$as_ac_Header=\$ac_header_preproc"
7459 fi
7460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7462
7463 fi
7464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7465   cat >>confdefs.h <<_ACEOF
7466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7467 _ACEOF
7468
7469 fi
7470
7471 done
7472
7473
7474 # End of readline/conio stuff
7475 # -----------------------------------------------------------------------
7476
7477 # -----------------------------------------------------------------------
7478 #  Check for Python support
7479 #
7480 echo "$as_me:$LINENO: checking for Python support" >&5
7481 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7482
7483 # Check whether --with-python or --without-python was given.
7484 if test "${with_python+set}" = set; then
7485   withval="$with_python"
7486
7487   PYTHON_INCDIR=
7488   PYTHON_LIBS=
7489   if test "$withval" != "no"; then
7490      if test "$withval" = "yes"; then
7491         if test -f /usr/include/python2.2/Python.h; then
7492            PYTHON_INCDIR=-I/usr/include/python2.2
7493            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7494         elif test -f /usr/include/python2.3/Python.h; then
7495            PYTHON_INCDIR=-I/usr/include/python2.3
7496            PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7497         elif test -f /usr/include/python2.4/Python.h; then
7498            PYTHON_INCDIR=-I/usr/include/python2.4
7499            PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7500         elif test -f $prefix/include/Python.h; then
7501            PYTHON_INCDIR=-I$prefix/include
7502            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7503         else
7504            echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6
7506            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7507 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7508    { (exit 1); exit 1; }; }
7509         fi
7510      else
7511         if test -f $withval/Python.h; then
7512            PYTHON_INCDIR=-I$withval
7513            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7514         elif test -f $withval/include/Python.h; then
7515            PYTHON_INCDIR=-I$withval/include
7516            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7517         else
7518            echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6
7520            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7521 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7522    { (exit 1); exit 1; }; }
7523         fi
7524      fi
7525      cat >>confdefs.h <<\_ACEOF
7526 #define HAVE_PYTHON 1
7527 _ACEOF
7528
7529      echo "$as_me:$LINENO: result: yes" >&5
7530 echo "${ECHO_T}yes" >&6
7531      support_python=yes
7532
7533   else
7534      echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6
7536   fi
7537
7538 else
7539
7540   echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6
7542
7543 fi;
7544
7545
7546
7547
7548 #
7549 # Find where sockets are (especially for Solaris)
7550 # Do this before the TCP Wrappers test since tcp wrappers
7551 # uses the socket library and some linkers are stupid.
7552 #
7553 echo "$as_me:$LINENO: checking for socket" >&5
7554 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7555 if test "${ac_cv_func_socket+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h.  */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h.  */
7564 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7566 #define socket innocuous_socket
7567
7568 /* System header to define __stub macros and hopefully few prototypes,
7569     which can conflict with char socket (); below.
7570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7571     <limits.h> exists even on freestanding compilers.  */
7572
7573 #ifdef __STDC__
7574 # include <limits.h>
7575 #else
7576 # include <assert.h>
7577 #endif
7578
7579 #undef socket
7580
7581 /* Override any gcc2 internal prototype to avoid an error.  */
7582 #ifdef __cplusplus
7583 extern "C"
7584 {
7585 #endif
7586 /* We use char because int might match the return type of a gcc2
7587    builtin and then its argument prototype would still apply.  */
7588 char socket ();
7589 /* The GNU C library defines this for functions which it implements
7590     to always fail with ENOSYS.  Some functions are actually named
7591     something starting with __ and the normal name is an alias.  */
7592 #if defined (__stub_socket) || defined (__stub___socket)
7593 choke me
7594 #else
7595 char (*f) () = socket;
7596 #endif
7597 #ifdef __cplusplus
7598 }
7599 #endif
7600
7601 int
7602 main ()
7603 {
7604 return f != socket;
7605   ;
7606   return 0;
7607 }
7608 _ACEOF
7609 rm -f conftest.$ac_objext conftest$ac_exeext
7610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7611   (eval $ac_link) 2>conftest.er1
7612   ac_status=$?
7613   grep -v '^ *+' conftest.er1 >conftest.err
7614   rm -f conftest.er1
7615   cat conftest.err >&5
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); } &&
7618          { ac_try='test -z "$ac_c_werror_flag"
7619                          || test ! -s conftest.err'
7620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621   (eval $ac_try) 2>&5
7622   ac_status=$?
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); }; } &&
7625          { ac_try='test -s conftest$ac_exeext'
7626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627   (eval $ac_try) 2>&5
7628   ac_status=$?
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); }; }; then
7631   ac_cv_func_socket=yes
7632 else
7633   echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7635
7636 ac_cv_func_socket=no
7637 fi
7638 rm -f conftest.err conftest.$ac_objext \
7639       conftest$ac_exeext conftest.$ac_ext
7640 fi
7641 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7642 echo "${ECHO_T}$ac_cv_func_socket" >&6
7643 if test $ac_cv_func_socket = yes; then
7644   echo "$as_me:$LINENO: result: using libc's socket" >&5
7645 echo "${ECHO_T}using libc's socket" >&6
7646 else
7647
7648 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7649 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7650 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7651   echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653   ac_check_lib_save_LIBS=$LIBS
7654 LIBS="-lxnet  $LIBS"
7655 cat >conftest.$ac_ext <<_ACEOF
7656 /* confdefs.h.  */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h.  */
7661
7662 /* Override any gcc2 internal prototype to avoid an error.  */
7663 #ifdef __cplusplus
7664 extern "C"
7665 #endif
7666 /* We use char because int might match the return type of a gcc2
7667    builtin and then its argument prototype would still apply.  */
7668 char socket ();
7669 int
7670 main ()
7671 {
7672 socket ();
7673   ;
7674   return 0;
7675 }
7676 _ACEOF
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679   (eval $ac_link) 2>conftest.er1
7680   ac_status=$?
7681   grep -v '^ *+' conftest.er1 >conftest.err
7682   rm -f conftest.er1
7683   cat conftest.err >&5
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); } &&
7686          { ac_try='test -z "$ac_c_werror_flag"
7687                          || test ! -s conftest.err'
7688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689   (eval $ac_try) 2>&5
7690   ac_status=$?
7691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   (exit $ac_status); }; } &&
7693          { ac_try='test -s conftest$ac_exeext'
7694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695   (eval $ac_try) 2>&5
7696   ac_status=$?
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); }; }; then
7699   ac_cv_lib_xnet_socket=yes
7700 else
7701   echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7703
7704 ac_cv_lib_xnet_socket=no
7705 fi
7706 rm -f conftest.err conftest.$ac_objext \
7707       conftest$ac_exeext conftest.$ac_ext
7708 LIBS=$ac_check_lib_save_LIBS
7709 fi
7710 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7711 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7712 if test $ac_cv_lib_xnet_socket = yes; then
7713   cat >>confdefs.h <<_ACEOF
7714 #define HAVE_LIBXNET 1
7715 _ACEOF
7716
7717   LIBS="-lxnet $LIBS"
7718
7719 fi
7720
7721
7722 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7723 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7724 if test "${ac_cv_lib_socket_socket+set}" = set; then
7725   echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727   ac_check_lib_save_LIBS=$LIBS
7728 LIBS="-lsocket  $LIBS"
7729 cat >conftest.$ac_ext <<_ACEOF
7730 /* confdefs.h.  */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h.  */
7735
7736 /* Override any gcc2 internal prototype to avoid an error.  */
7737 #ifdef __cplusplus
7738 extern "C"
7739 #endif
7740 /* We use char because int might match the return type of a gcc2
7741    builtin and then its argument prototype would still apply.  */
7742 char socket ();
7743 int
7744 main ()
7745 {
7746 socket ();
7747   ;
7748   return 0;
7749 }
7750 _ACEOF
7751 rm -f conftest.$ac_objext conftest$ac_exeext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7753   (eval $ac_link) 2>conftest.er1
7754   ac_status=$?
7755   grep -v '^ *+' conftest.er1 >conftest.err
7756   rm -f conftest.er1
7757   cat conftest.err >&5
7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); } &&
7760          { ac_try='test -z "$ac_c_werror_flag"
7761                          || test ! -s conftest.err'
7762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763   (eval $ac_try) 2>&5
7764   ac_status=$?
7765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766   (exit $ac_status); }; } &&
7767          { ac_try='test -s conftest$ac_exeext'
7768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769   (eval $ac_try) 2>&5
7770   ac_status=$?
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); }; }; then
7773   ac_cv_lib_socket_socket=yes
7774 else
7775   echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7777
7778 ac_cv_lib_socket_socket=no
7779 fi
7780 rm -f conftest.err conftest.$ac_objext \
7781       conftest$ac_exeext conftest.$ac_ext
7782 LIBS=$ac_check_lib_save_LIBS
7783 fi
7784 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7785 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7786 if test $ac_cv_lib_socket_socket = yes; then
7787   cat >>confdefs.h <<_ACEOF
7788 #define HAVE_LIBSOCKET 1
7789 _ACEOF
7790
7791   LIBS="-lsocket $LIBS"
7792
7793 fi
7794
7795
7796 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7797 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7798 if test "${ac_cv_lib_inet_socket+set}" = set; then
7799   echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801   ac_check_lib_save_LIBS=$LIBS
7802 LIBS="-linet  $LIBS"
7803 cat >conftest.$ac_ext <<_ACEOF
7804 /* confdefs.h.  */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h.  */
7809
7810 /* Override any gcc2 internal prototype to avoid an error.  */
7811 #ifdef __cplusplus
7812 extern "C"
7813 #endif
7814 /* We use char because int might match the return type of a gcc2
7815    builtin and then its argument prototype would still apply.  */
7816 char socket ();
7817 int
7818 main ()
7819 {
7820 socket ();
7821   ;
7822   return 0;
7823 }
7824 _ACEOF
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827   (eval $ac_link) 2>conftest.er1
7828   ac_status=$?
7829   grep -v '^ *+' conftest.er1 >conftest.err
7830   rm -f conftest.er1
7831   cat conftest.err >&5
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); } &&
7834          { ac_try='test -z "$ac_c_werror_flag"
7835                          || test ! -s conftest.err'
7836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837   (eval $ac_try) 2>&5
7838   ac_status=$?
7839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840   (exit $ac_status); }; } &&
7841          { ac_try='test -s conftest$ac_exeext'
7842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843   (eval $ac_try) 2>&5
7844   ac_status=$?
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); }; }; then
7847   ac_cv_lib_inet_socket=yes
7848 else
7849   echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7851
7852 ac_cv_lib_inet_socket=no
7853 fi
7854 rm -f conftest.err conftest.$ac_objext \
7855       conftest$ac_exeext conftest.$ac_ext
7856 LIBS=$ac_check_lib_save_LIBS
7857 fi
7858 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7859 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7860 if test $ac_cv_lib_inet_socket = yes; then
7861   cat >>confdefs.h <<_ACEOF
7862 #define HAVE_LIBINET 1
7863 _ACEOF
7864
7865   LIBS="-linet $LIBS"
7866
7867 fi
7868
7869 fi
7870
7871
7872
7873 # -----------------------------------------------------------
7874 # Check whether user wants TCP wrappers support (default off)
7875 # -----------------------------------------------------------
7876 TCPW_MSG="no"
7877
7878 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7879 if test "${with_tcp_wrappers+set}" = set; then
7880   withval="$with_tcp_wrappers"
7881
7882     if test "x$withval" != "xno" ; then
7883        saved_LIBS="$LIBS"
7884        LIBS="$saved_LIBS -lwrap"
7885        echo "$as_me:$LINENO: checking for libwrap" >&5
7886 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7887        cat >conftest.$ac_ext <<_ACEOF
7888 /* confdefs.h.  */
7889 _ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h.  */
7893  #include <tcpd.h>
7894              int deny_severity = 0;
7895              int allow_severity = 0;
7896              struct request_info *req;
7897 int
7898 main ()
7899 {
7900  hosts_access(req);
7901   ;
7902   return 0;
7903 }
7904 _ACEOF
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907   (eval $ac_link) 2>conftest.er1
7908   ac_status=$?
7909   grep -v '^ *+' conftest.er1 >conftest.err
7910   rm -f conftest.er1
7911   cat conftest.err >&5
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); } &&
7914          { ac_try='test -z "$ac_c_werror_flag"
7915                          || test ! -s conftest.err'
7916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917   (eval $ac_try) 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }; } &&
7921          { ac_try='test -s conftest$ac_exeext'
7922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923   (eval $ac_try) 2>&5
7924   ac_status=$?
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); }; }; then
7927
7928             echo "$as_me:$LINENO: result: yes" >&5
7929 echo "${ECHO_T}yes" >&6
7930             cat >>confdefs.h <<\_ACEOF
7931 #define HAVE_LIBWRAP 1
7932 _ACEOF
7933
7934             TCPW_MSG="yes"
7935
7936 else
7937   echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7939
7940
7941             LIBS="$saved_LIBS -lwrap -lnsl"
7942             cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h.  */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h.  */
7948  #include <tcpd.h>
7949                  int deny_severity = 0;
7950                  int allow_severity = 0;
7951                  struct request_info *req;
7952 int
7953 main ()
7954 {
7955  hosts_access(req);
7956   ;
7957   return 0;
7958 }
7959 _ACEOF
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962   (eval $ac_link) 2>conftest.er1
7963   ac_status=$?
7964   grep -v '^ *+' conftest.er1 >conftest.err
7965   rm -f conftest.er1
7966   cat conftest.err >&5
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); } &&
7969          { ac_try='test -z "$ac_c_werror_flag"
7970                          || test ! -s conftest.err'
7971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972   (eval $ac_try) 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); }; } &&
7976          { ac_try='test -s conftest$ac_exeext'
7977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978   (eval $ac_try) 2>&5
7979   ac_status=$?
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); }; }; then
7982
7983                  echo "$as_me:$LINENO: result: yes" >&5
7984 echo "${ECHO_T}yes" >&6
7985                  cat >>confdefs.h <<\_ACEOF
7986 #define HAVE_LIBWRAP 1
7987 _ACEOF
7988
7989                  TCPW_MSG="yes"
7990
7991 else
7992   echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7994
7995 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7996 echo "$as_me: error: *** libwrap missing" >&2;}
7997    { (exit 1); exit 1; }; }
7998
7999 fi
8000 rm -f conftest.err conftest.$ac_objext \
8001       conftest$ac_exeext conftest.$ac_ext
8002
8003 fi
8004 rm -f conftest.err conftest.$ac_objext \
8005       conftest$ac_exeext conftest.$ac_ext
8006     fi
8007
8008
8009 fi;
8010
8011 # -----------------------------------------------------------
8012 # Check whether OpenSSL is available
8013 # -----------------------------------------------------------
8014 echo "$as_me:$LINENO: checking for OpenSSL" >&5
8015 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
8016
8017 # Check whether --with-openssl or --without-openssl was given.
8018 if test "${with_openssl+set}" = set; then
8019   withval="$with_openssl"
8020   with_openssl_directory=${withval}
8021 fi;
8022
8023 if test "x$with_openssl_directory" != "x"; then
8024         OPENSSL_LIBS="-lssl -lcrypto"
8025         OPENSSL_INC=""
8026
8027         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
8028                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
8029                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
8030         fi
8031
8032         saved_LIBS="$LIBS"
8033         saved_CFLAGS="$CFLAGS"
8034         LIBS="$saved_LIBS $OPENSSL_LIBS"
8035         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
8036
8037         cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h.  */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h.  */
8043  #include <openssl/ssl.h>
8044 int
8045 main ()
8046 {
8047  CRYPTO_set_id_callback(NULL);
8048   ;
8049   return 0;
8050 }
8051 _ACEOF
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8054   (eval $ac_link) 2>conftest.er1
8055   ac_status=$?
8056   grep -v '^ *+' conftest.er1 >conftest.err
8057   rm -f conftest.er1
8058   cat conftest.err >&5
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); } &&
8061          { ac_try='test -z "$ac_c_werror_flag"
8062                          || test ! -s conftest.err'
8063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064   (eval $ac_try) 2>&5
8065   ac_status=$?
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); }; } &&
8068          { ac_try='test -s conftest$ac_exeext'
8069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070   (eval $ac_try) 2>&5
8071   ac_status=$?
8072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073   (exit $ac_status); }; }; then
8074    support_tls="yes"
8075 else
8076   echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8078
8079  support_tls="no"
8080
8081 fi
8082 rm -f conftest.err conftest.$ac_objext \
8083       conftest$ac_exeext conftest.$ac_ext
8084
8085         LIBS="$saved_LIBS"
8086         CFLAGS="$saved_CFLAGS"
8087
8088         if test "$support_tls" = "yes"; then
8089
8090 cat >>confdefs.h <<\_ACEOF
8091 #define HAVE_OPENSSL 1
8092 _ACEOF
8093
8094
8095 cat >>confdefs.h <<\_ACEOF
8096 #define HAVE_TLS 1
8097 _ACEOF
8098
8099         fi
8100 else
8101         support_tls="no"
8102         OPENSSL_LIBS=""
8103         OPENSSL_INC=""
8104 fi
8105
8106 echo "$as_me:$LINENO: result: $support_tls" >&5
8107 echo "${ECHO_T}$support_tls" >&6
8108
8109
8110
8111
8112
8113 # ------------------------------------------
8114 # Where to place working dir
8115 # ------------------------------------------
8116 working_dir=`eval echo ${prefix}/var/bacula/working`
8117
8118 # Check whether --with-working-dir or --without-working-dir was given.
8119 if test "${with_working_dir+set}" = set; then
8120   withval="$with_working_dir"
8121
8122        if test "x$withval" != "xno" ; then
8123               working_dir=$withval
8124        fi
8125
8126
8127 fi;
8128
8129
8130
8131
8132 # ------------------------------------------
8133 # Where to place scriptdir (script files)
8134 # ------------------------------------------
8135 scriptdir=`eval echo ${sysconfdir}`
8136
8137 # Check whether --with-scriptdir or --without-scriptdir was given.
8138 if test "${with_scriptdir+set}" = set; then
8139   withval="$with_scriptdir"
8140
8141        if test "x$withval" != "xno" ; then
8142               scriptdir=$withval
8143        fi
8144
8145
8146 fi;
8147
8148
8149
8150
8151 # ------------------------------------------
8152 # Where to send dump email
8153 # ------------------------------------------
8154 dump_email=root@localhost
8155
8156 # Check whether --with-dump-email or --without-dump-email was given.
8157 if test "${with_dump_email+set}" = set; then
8158   withval="$with_dump_email"
8159
8160        if test "x$withval" != "xno" ; then
8161               dump_email=$withval
8162        fi
8163
8164
8165 fi;
8166
8167
8168
8169 # ------------------------------------------
8170 # Where to send job email
8171 # ------------------------------------------
8172 job_email=root@localhost
8173
8174 # Check whether --with-job-email or --without-job-email was given.
8175 if test "${with_job_email+set}" = set; then
8176   withval="$with_job_email"
8177
8178        if test "x$withval" != "xno" ; then
8179               job_email=$withval
8180        fi
8181
8182
8183 fi;
8184
8185
8186
8187 # ------------------------------------------
8188 # Where to find smtp host
8189 # ------------------------------------------
8190 smtp_host=localhost
8191
8192 # Check whether --with-smtp_host or --without-smtp_host was given.
8193 if test "${with_smtp_host+set}" = set; then
8194   withval="$with_smtp_host"
8195
8196        if test "x$withval" != "xno" ; then
8197               smtp_host=$withval
8198        fi
8199
8200
8201 fi;
8202
8203
8204
8205
8206 # ------------------------------------
8207 # Where to place pid files
8208 # ------------------------------------
8209 piddir=/var/run
8210
8211 # Check whether --with-pid-dir or --without-pid-dir was given.
8212 if test "${with_pid_dir+set}" = set; then
8213   withval="$with_pid_dir"
8214
8215         if test "x$withval" != "xno" ; then
8216             piddir=$withval
8217         fi
8218
8219
8220 fi;
8221
8222 cat >>confdefs.h <<_ACEOF
8223 #define _PATH_BACULA_PIDDIR "$piddir"
8224 _ACEOF
8225
8226
8227
8228
8229 # ------------------------------------
8230 # Where to place subsys "lock file"
8231 # ------------------------------------
8232 subsysdir=/var/run/subsys
8233
8234 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8235 if test "${with_subsys_dir+set}" = set; then
8236   withval="$with_subsys_dir"
8237
8238         if test "x$withval" != "xno" ; then
8239             subsysdir=$withval
8240         fi
8241
8242
8243 fi;
8244
8245
8246
8247
8248
8249 # ------------------------------------
8250 # Where to start assigning ports
8251 # ------------------------------------
8252 baseport=9101
8253
8254 # Check whether --with-baseport or --without-baseport was given.
8255 if test "${with_baseport+set}" = set; then
8256   withval="$with_baseport"
8257
8258         if test "x$withval" != "xno" ; then
8259              baseport=$withval
8260         fi
8261
8262
8263 fi;
8264
8265
8266 dir_port=`expr $baseport`
8267 fd_port=`expr $baseport + 1`
8268 sd_port=`expr $fd_port + 1`
8269
8270
8271
8272
8273
8274
8275 # ------------------------------------------
8276 # Generate passwords
8277 # ------------------------------------------
8278 dir_password=
8279
8280 # Check whether --with-dir-password or --without-dir-password was given.
8281 if test "${with_dir_password+set}" = set; then
8282   withval="$with_dir_password"
8283
8284        if test "x$withval" != "xno" ; then
8285            dir_password=$withval
8286        fi
8287
8288
8289 fi;
8290
8291 if test "x$dir_password" = "x" ; then
8292    if test "x$OPENSSL" = "xnone" ; then
8293 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8294       key=`autoconf/randpass 33`
8295    else
8296       key=`openssl rand -base64 33`
8297    fi
8298    dir_password=$key
8299 fi
8300
8301 fd_password=
8302
8303 # Check whether --with-fd-password or --without-fd-password was given.
8304 if test "${with_fd_password+set}" = set; then
8305   withval="$with_fd_password"
8306
8307        if test "x$withval" != "xno" ; then
8308            fd_password=$withval
8309        fi
8310
8311
8312 fi;
8313
8314 if test "x$fd_password" = "x" ; then
8315    if test "x$OPENSSL" = "xnone" ; then
8316 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8317       key=`autoconf/randpass 37`
8318    else
8319       key=`openssl rand -base64 33`
8320    fi
8321    fd_password=$key
8322 fi
8323
8324 sd_password=
8325
8326 # Check whether --with-sd-password or --without-sd-password was given.
8327 if test "${with_sd_password+set}" = set; then
8328   withval="$with_sd_password"
8329
8330        if test "x$withval" != "xno" ; then
8331            sd_password=$withval
8332        fi
8333
8334
8335 fi;
8336
8337 if test "x$sd_password" = "x" ; then
8338    if test "x$OPENSSL" = "xnone" ; then
8339 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8340       key=`autoconf/randpass 41`
8341    else
8342       key=`openssl rand -base64 33`
8343    fi
8344    sd_password=$key
8345 fi
8346
8347 mon_dir_password=
8348
8349 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8350 if test "${with_mon_dir_password+set}" = set; then
8351   withval="$with_mon_dir_password"
8352
8353        if test "x$withval" != "xno" ; then
8354            mon_dir_password=$withval
8355        fi
8356
8357
8358 fi;
8359
8360 if test "x$mon_dir_password" = "x" ; then
8361    if test "x$OPENSSL" = "xnone" ; then
8362 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8363       key=`autoconf/randpass 33`
8364    else
8365       key=`openssl rand -base64 33`
8366    fi
8367    mon_dir_password=$key
8368 fi
8369
8370 mon_fd_password=
8371
8372 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8373 if test "${with_mon_fd_password+set}" = set; then
8374   withval="$with_mon_fd_password"
8375
8376        if test "x$withval" != "xno" ; then
8377            mon_fd_password=$withval
8378        fi
8379
8380
8381 fi;
8382
8383 if test "x$mon_fd_password" = "x" ; then
8384    if test "x$OPENSSL" = "xnone" ; then
8385 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8386       key=`autoconf/randpass 37`
8387    else
8388       key=`openssl rand -base64 33`
8389    fi
8390    mon_fd_password=$key
8391 fi
8392
8393 mon_sd_password=
8394
8395 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8396 if test "${with_mon_sd_password+set}" = set; then
8397   withval="$with_mon_sd_password"
8398
8399        if test "x$withval" != "xno" ; then
8400            mon_sd_password=$withval
8401        fi
8402
8403
8404 fi;
8405
8406 if test "x$mon_sd_password" = "x" ; then
8407    if test "x$OPENSSL" = "xnone" ; then
8408 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8409       key=`autoconf/randpass 41`
8410    else
8411       key=`openssl rand -base64 33`
8412    fi
8413    mon_sd_password=$key
8414 fi
8415
8416
8417
8418
8419
8420
8421
8422
8423 # -------------------------------------------------------------------------
8424 #  Set variables for bimagemgr installation
8425 # -------------------------------------------------------------------------
8426 bimagemgr_cgidir=/var/www/cgi-bin
8427
8428 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8429 if test "${with_bimagemgr_cgidir+set}" = set; then
8430   withval="$with_bimagemgr_cgidir"
8431
8432        if test "x$withval" != "xno" ; then
8433            bimagemgr_cgidir=$withval
8434        fi
8435
8436
8437 fi;
8438
8439 bimagemgr_docdir=/var/www/html
8440
8441 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8442 if test "${with_bimagemgr_docdir+set}" = set; then
8443   withval="$with_bimagemgr_docdir"
8444
8445        if test "x$withval" != "xno" ; then
8446            bimagemgr_docdir=$withval
8447        fi
8448
8449
8450 fi;
8451
8452 bimagemgr_binowner=root
8453
8454 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8455 if test "${with_bimagemgr_binowner+set}" = set; then
8456   withval="$with_bimagemgr_binowner"
8457
8458        if test "x$withval" != "xno" ; then
8459            bimagemgr_binowner=$withval
8460        fi
8461
8462
8463 fi;
8464
8465 bimagemgr_bingroup=root
8466
8467 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8468 if test "${with_bimagemgr_bingroup+set}" = set; then
8469   withval="$with_bimagemgr_bingroup"
8470
8471        if test "x$withval" != "xno" ; then
8472            bimagemgr_bingroup=$withval
8473        fi
8474
8475
8476 fi;
8477
8478 bimagemgr_dataowner=apache
8479
8480 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8481 if test "${with_bimagemgr_dataowner+set}" = set; then
8482   withval="$with_bimagemgr_dataowner"
8483
8484        if test "x$withval" != "xno" ; then
8485            bimagemgr_dataowner=$withval
8486        fi
8487
8488
8489 fi;
8490
8491 bimagemgr_datagroup=apache
8492
8493 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8494 if test "${with_bimagemgr_datagroup+set}" = set; then
8495   withval="$with_bimagemgr_datagroup"
8496
8497        if test "x$withval" != "xno" ; then
8498            bimagemgr_datagroup=$withval
8499        fi
8500
8501
8502 fi;
8503
8504
8505
8506
8507
8508
8509
8510
8511 #
8512 # Handle users and groups for each daemon
8513 #
8514 dir_user=
8515
8516 # Check whether --with-dir_user or --without-dir_user was given.
8517 if test "${with_dir_user+set}" = set; then
8518   withval="$with_dir_user"
8519
8520         if test "x$withval" != "x" ; then
8521              dir_user=$withval
8522         fi
8523
8524
8525 fi;
8526
8527 dir_group=
8528
8529 # Check whether --with-dir_group or --without-dir_group was given.
8530 if test "${with_dir_group+set}" = set; then
8531   withval="$with_dir_group"
8532
8533         if test "x$withval" != "x" ; then
8534              dir_group=$withval
8535         fi
8536
8537
8538 fi;
8539
8540 sd_user=
8541
8542 # Check whether --with-sd_user or --without-sd_user was given.
8543 if test "${with_sd_user+set}" = set; then
8544   withval="$with_sd_user"
8545
8546         if test "x$withval" != "x" ; then
8547              sd_user=$withval
8548         fi
8549
8550
8551 fi;
8552
8553 sd_group=
8554
8555 # Check whether --with-sd_group or --without-sd_group was given.
8556 if test "${with_sd_group+set}" = set; then
8557   withval="$with_sd_group"
8558
8559         if test "x$withval" != "x" ; then
8560              sd_group=$withval
8561         fi
8562
8563
8564 fi;
8565
8566 fd_user=
8567
8568 # Check whether --with-fd_user or --without-fd_user was given.
8569 if test "${with_fd_user+set}" = set; then
8570   withval="$with_fd_user"
8571
8572         if test "x$withval" != "x" ; then
8573              fd_user=$withval
8574         fi
8575
8576
8577 fi;
8578
8579 fd_group=
8580
8581 # Check whether --with-fd_group or --without-fd_group was given.
8582 if test "${with_fd_group+set}" = set; then
8583   withval="$with_fd_group"
8584
8585         if test "x$withval" != "x" ; then
8586              fd_group=$withval
8587         fi
8588
8589
8590 fi;
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602 #
8603 # allow setting default executable permissions
8604 #
8605 SBINPERM=0754
8606
8607 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8608 if test "${with_sbin_perm+set}" = set; then
8609   withval="$with_sbin_perm"
8610
8611         if test "x$withval" != "x" ; then
8612             SBINPERM=$withval
8613         fi
8614
8615
8616 fi;
8617
8618
8619
8620 # ------------------------------------------------
8621 # Bacula check for various SQL database engines
8622 # ------------------------------------------------
8623
8624 db_found=no
8625 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8626 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8627
8628 # Check whether --with-postgresql or --without-postgresql was given.
8629 if test "${with_postgresql+set}" = set; then
8630   withval="$with_postgresql"
8631
8632   if test "$withval" != "no"; then
8633       if test "$db_found" = "yes"; then
8634           echo "$as_me:$LINENO: result: error" >&5
8635 echo "${ECHO_T}error" >&6
8636           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8637 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8638    { (exit 1); exit 1; }; };
8639       fi
8640       if test "$withval" = "yes"; then
8641           if test -f /usr/local/include/libpq-fe.h; then
8642               POSTGRESQL_INCDIR=/usr/local/include
8643               POSTGRESQL_LIBDIR=/usr/local/lib
8644               POSTGRESQL_BINDIR=/usr/local/bin
8645           elif test -f /usr/include/libpq-fe.h; then
8646               POSTGRESQL_INCDIR=/usr/include
8647               POSTGRESQL_LIBDIR=/usr/lib
8648               POSTGRESQL_BINDIR=/usr/bin
8649           elif test -f /usr/include/pgsql/libpq-fe.h; then
8650               POSTGRESQL_INCDIR=/usr/include/pgsql
8651               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8652               POSTGRESQL_BINDIR=/usr/bin
8653           elif test -f /usr/include/postgresql/libpq-fe.h; then
8654               POSTGRESQL_INCDIR=/usr/include/postgresql
8655               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8656               POSTGRESQL_BINDIR=/usr/bin
8657           else
8658               echo "$as_me:$LINENO: result: no" >&5
8659 echo "${ECHO_T}no" >&6
8660               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8661 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8662    { (exit 1); exit 1; }; }
8663           fi
8664       elif test -f $withval/include/libpq-fe.h; then
8665           POSTGRESQL_INCDIR=$withval/include
8666           POSTGRESQL_LIBDIR=$withval/lib
8667           POSTGRESQL_BINDIR=$withval/bin
8668       elif test -f $withval/include/postgresql/libpq-fe.h; then
8669           POSTGRESQL_INCDIR=$withval/include/postgresql
8670           POSTGRESQL_LIBDIR=$withval/lib
8671           POSTGRESQL_BINDIR=$withval/bin
8672       else
8673           echo "$as_me:$LINENO: result: no" >&5
8674 echo "${ECHO_T}no" >&6
8675           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8676 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8677    { (exit 1); exit 1; }; }
8678       fi
8679       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8680       echo "$as_me:$LINENO: checking for crypt" >&5
8681 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8682 if test "${ac_cv_func_crypt+set}" = set; then
8683   echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685   cat >conftest.$ac_ext <<_ACEOF
8686 /* confdefs.h.  */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h.  */
8691 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8693 #define crypt innocuous_crypt
8694
8695 /* System header to define __stub macros and hopefully few prototypes,
8696     which can conflict with char crypt (); below.
8697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8698     <limits.h> exists even on freestanding compilers.  */
8699
8700 #ifdef __STDC__
8701 # include <limits.h>
8702 #else
8703 # include <assert.h>
8704 #endif
8705
8706 #undef crypt
8707
8708 /* Override any gcc2 internal prototype to avoid an error.  */
8709 #ifdef __cplusplus
8710 extern "C"
8711 {
8712 #endif
8713 /* We use char because int might match the return type of a gcc2
8714    builtin and then its argument prototype would still apply.  */
8715 char crypt ();
8716 /* The GNU C library defines this for functions which it implements
8717     to always fail with ENOSYS.  Some functions are actually named
8718     something starting with __ and the normal name is an alias.  */
8719 #if defined (__stub_crypt) || defined (__stub___crypt)
8720 choke me
8721 #else
8722 char (*f) () = crypt;
8723 #endif
8724 #ifdef __cplusplus
8725 }
8726 #endif
8727
8728 int
8729 main ()
8730 {
8731 return f != crypt;
8732   ;
8733   return 0;
8734 }
8735 _ACEOF
8736 rm -f conftest.$ac_objext conftest$ac_exeext
8737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8738   (eval $ac_link) 2>conftest.er1
8739   ac_status=$?
8740   grep -v '^ *+' conftest.er1 >conftest.err
8741   rm -f conftest.er1
8742   cat conftest.err >&5
8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); } &&
8745          { ac_try='test -z "$ac_c_werror_flag"
8746                          || test ! -s conftest.err'
8747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748   (eval $ac_try) 2>&5
8749   ac_status=$?
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); }; } &&
8752          { ac_try='test -s conftest$ac_exeext'
8753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754   (eval $ac_try) 2>&5
8755   ac_status=$?
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); }; }; then
8758   ac_cv_func_crypt=yes
8759 else
8760   echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8762
8763 ac_cv_func_crypt=no
8764 fi
8765 rm -f conftest.err conftest.$ac_objext \
8766       conftest$ac_exeext conftest.$ac_ext
8767 fi
8768 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8769 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8770 if test $ac_cv_func_crypt = yes; then
8771   :
8772 else
8773   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8774 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8775 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8776   echo $ECHO_N "(cached) $ECHO_C" >&6
8777 else
8778   ac_check_lib_save_LIBS=$LIBS
8779 LIBS="-lcrypt  $LIBS"
8780 cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786
8787 /* Override any gcc2 internal prototype to avoid an error.  */
8788 #ifdef __cplusplus
8789 extern "C"
8790 #endif
8791 /* We use char because int might match the return type of a gcc2
8792    builtin and then its argument prototype would still apply.  */
8793 char crypt ();
8794 int
8795 main ()
8796 {
8797 crypt ();
8798   ;
8799   return 0;
8800 }
8801 _ACEOF
8802 rm -f conftest.$ac_objext conftest$ac_exeext
8803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8804   (eval $ac_link) 2>conftest.er1
8805   ac_status=$?
8806   grep -v '^ *+' conftest.er1 >conftest.err
8807   rm -f conftest.er1
8808   cat conftest.err >&5
8809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810   (exit $ac_status); } &&
8811          { ac_try='test -z "$ac_c_werror_flag"
8812                          || test ! -s conftest.err'
8813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814   (eval $ac_try) 2>&5
8815   ac_status=$?
8816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817   (exit $ac_status); }; } &&
8818          { ac_try='test -s conftest$ac_exeext'
8819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820   (eval $ac_try) 2>&5
8821   ac_status=$?
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); }; }; then
8824   ac_cv_lib_crypt_crypt=yes
8825 else
8826   echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8828
8829 ac_cv_lib_crypt_crypt=no
8830 fi
8831 rm -f conftest.err conftest.$ac_objext \
8832       conftest$ac_exeext conftest.$ac_ext
8833 LIBS=$ac_check_lib_save_LIBS
8834 fi
8835 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8836 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8837 if test $ac_cv_lib_crypt_crypt = yes; then
8838   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8839 fi
8840
8841 fi
8842
8843       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8844       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8845       SQL_BINDIR=$POSTGRESQL_BINDIR
8846       cat >>confdefs.h <<\_ACEOF
8847 #define HAVE_POSTGRESQL 1
8848 _ACEOF
8849
8850       echo "$as_me:$LINENO: result: yes" >&5
8851 echo "${ECHO_T}yes" >&6
8852       db_found=yes
8853       support_postgresql=yes
8854       db_name=PostgreSQL
8855       DB_NAME=postgresql
8856   else
8857       echo "$as_me:$LINENO: result: no" >&5
8858 echo "${ECHO_T}no" >&6
8859   fi
8860
8861 else
8862
8863   echo "$as_me:$LINENO: result: no" >&5
8864 echo "${ECHO_T}no" >&6
8865
8866 fi;
8867
8868
8869
8870
8871
8872
8873
8874 db_found=no
8875 echo "$as_me:$LINENO: checking for MySQL support" >&5
8876 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8877
8878 # Check whether --with-mysql or --without-mysql was given.
8879 if test "${with_mysql+set}" = set; then
8880   withval="$with_mysql"
8881
8882   if test "$withval" != "no"; then
8883         if test "$withval" = "yes"; then
8884                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8885                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8886                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8887                         MYSQL_BINDIR=/usr/local/mysql/bin
8888                 elif test -f /usr/include/mysql/mysql.h; then
8889                         MYSQL_INCDIR=/usr/include/mysql
8890                         MYSQL_LIBDIR=/usr/lib/mysql
8891                         MYSQL_BINDIR=/usr/bin
8892                 elif test -f /usr/include/mysql.h; then
8893                         MYSQL_INCDIR=/usr/include
8894                         MYSQL_LIBDIR=/usr/lib
8895                         MYSQL_BINDIR=/usr/bin
8896                 elif test -f /usr/local/include/mysql/mysql.h; then
8897                         MYSQL_INCDIR=/usr/local/include/mysql
8898                         MYSQL_LIBDIR=/usr/local/lib/mysql
8899                         MYSQL_BINDIR=/usr/local/bin
8900                 elif test -f /usr/local/include/mysql.h; then
8901                         MYSQL_INCDIR=/usr/local/include
8902                         MYSQL_LIBDIR=/usr/local/lib
8903                         MYSQL_BINDIR=/usr/local/bin
8904                 else
8905                    echo "$as_me:$LINENO: result: no" >&5
8906 echo "${ECHO_T}no" >&6
8907                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8908 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8909    { (exit 1); exit 1; }; }
8910                 fi
8911         else
8912                 if test -f $withval/include/mysql/mysql.h; then
8913                         MYSQL_INCDIR=$withval/include/mysql
8914                         MYSQL_LIBDIR=$withval/lib/mysql
8915                         MYSQL_BINDIR=$withval/bin
8916                 elif test -f $withval/include/mysql.h; then
8917                         MYSQL_INCDIR=$withval/include
8918                         MYSQL_LIBDIR=$withval/lib
8919                         MYSQL_BINDIR=$withval/bin
8920                 else
8921                    echo "$as_me:$LINENO: result: no" >&5
8922 echo "${ECHO_T}no" >&6
8923                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8924 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8925    { (exit 1); exit 1; }; }
8926                 fi
8927         fi
8928     SQL_INCLUDE=-I$MYSQL_INCDIR
8929     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8930        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8931        cat >>confdefs.h <<\_ACEOF
8932 #define HAVE_THREAD_SAFE_MYSQL 1
8933 _ACEOF
8934
8935     else
8936        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8937     fi
8938     SQL_BINDIR=$MYSQL_BINDIR
8939
8940     cat >>confdefs.h <<\_ACEOF
8941 #define HAVE_MYSQL 1
8942 _ACEOF
8943
8944     echo "$as_me:$LINENO: result: yes" >&5
8945 echo "${ECHO_T}yes" >&6
8946     db_found=yes
8947     support_mysql=yes
8948     db_name=MySQL
8949     DB_NAME=mysql
8950
8951   else
8952         echo "$as_me:$LINENO: result: no" >&5
8953 echo "${ECHO_T}no" >&6
8954   fi
8955
8956
8957 fi;
8958
8959
8960 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8961 if test "${with_embedded_mysql+set}" = set; then
8962   withval="$with_embedded_mysql"
8963
8964   if test "$withval" != "no"; then
8965         if test "$withval" = "yes"; then
8966                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8967                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8968                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8969                         MYSQL_BINDIR=/usr/local/mysql/bin
8970                 elif test -f /usr/include/mysql/mysql.h; then
8971                         MYSQL_INCDIR=/usr/include/mysql
8972                         MYSQL_LIBDIR=/usr/lib/mysql
8973                         MYSQL_BINDIR=/usr/bin
8974                 elif test -f /usr/include/mysql.h; then
8975                         MYSQL_INCDIR=/usr/include
8976                         MYSQL_LIBDIR=/usr/lib
8977                         MYSQL_BINDIR=/usr/bin
8978                 elif test -f /usr/local/include/mysql/mysql.h; then
8979                         MYSQL_INCDIR=/usr/local/include/mysql
8980                         MYSQL_LIBDIR=/usr/local/lib/mysql
8981                         MYSQL_BINDIR=/usr/local/bin
8982                 elif test -f /usr/local/include/mysql.h; then
8983                         MYSQL_INCDIR=/usr/local/include
8984                         MYSQL_LIBDIR=/usr/local/lib
8985                         MYSQL_BINDIR=/usr/local/bin
8986                 else
8987                    echo "$as_me:$LINENO: result: no" >&5
8988 echo "${ECHO_T}no" >&6
8989                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8990 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8991    { (exit 1); exit 1; }; }
8992                 fi
8993         else
8994                 if test -f $withval/include/mysql/mysql.h; then
8995                         MYSQL_INCDIR=$withval/include/mysql
8996                         MYSQL_LIBDIR=$withval/lib/mysql
8997                         MYSQL_BINDIR=$withval/bin
8998                 elif test -f $withval/include/mysql.h; then
8999                         MYSQL_INCDIR=$withval/include
9000                         MYSQL_LIBDIR=$withval/lib
9001                         MYSQL_BINDIR=$withval/bin
9002                 else
9003                    echo "$as_me:$LINENO: result: no" >&5
9004 echo "${ECHO_T}no" >&6
9005                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
9006 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
9007    { (exit 1); exit 1; }; }
9008                 fi
9009         fi
9010     SQL_INCLUDE=-I$MYSQL_INCDIR
9011     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
9012     SQL_BINDIR=$MYSQL_BINDIR
9013
9014     cat >>confdefs.h <<\_ACEOF
9015 #define HAVE_MYSQL 1
9016 _ACEOF
9017
9018     cat >>confdefs.h <<\_ACEOF
9019 #define HAVE_EMBEDDED_MYSQL 1
9020 _ACEOF
9021
9022     echo "$as_me:$LINENO: result: yes" >&5
9023 echo "${ECHO_T}yes" >&6
9024     db_found=yes
9025     support_mysql=yes
9026     db_name=MySQL
9027     DB_NAME=mysql
9028
9029   else
9030         echo "$as_me:$LINENO: result: no" >&5
9031 echo "${ECHO_T}no" >&6
9032   fi
9033
9034
9035 fi;
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045 db_found=no
9046 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9047 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9048
9049 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9050 if test "${with_sqlite3+set}" = set; then
9051   withval="$with_sqlite3"
9052
9053   if test "$withval" != "no"; then
9054      if test "$withval" = "yes"; then
9055         if test -f /usr/local/include/sqlite3.h; then
9056            SQLITE_INCDIR=/usr/local/include
9057            SQLITE_LIBDIR=/usr/local/lib
9058            SQLITE_BINDIR=/usr/local/bin
9059         elif test -f /usr/include/sqlite3.h; then
9060            SQLITE_INCDIR=/usr/include
9061            SQLITE_LIBDIR=/usr/lib
9062            SQLITE_BINDIR=/usr/bin
9063         elif test -f $prefix/include/sqlite3.h; then
9064            SQLITE_INCDIR=$prefix/include
9065            SQLITE_LIBDIR=$prefix/lib
9066            SQLITE_BINDIR=$prefix/bin
9067         else
9068            echo "$as_me:$LINENO: result: no" >&5
9069 echo "${ECHO_T}no" >&6
9070            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9071 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9072    { (exit 1); exit 1; }; }
9073         fi
9074      else
9075         if test -f $withval/sqlite3.h; then
9076            SQLITE_INCDIR=$withval
9077            SQLITE_LIBDIR=$withval
9078            SQLITE_BINDIR=$withval
9079         elif test -f $withval/include/sqlite3.h; then
9080            SQLITE_INCDIR=$withval/include
9081            SQLITE_LIBDIR=$withval/lib
9082            SQLITE_BINDIR=$withval/bin
9083         else
9084            echo "$as_me:$LINENO: result: no" >&5
9085 echo "${ECHO_T}no" >&6
9086            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9087 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9088    { (exit 1); exit 1; }; }
9089         fi
9090      fi
9091      SQL_INCLUDE=-I$SQLITE_INCDIR
9092      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9093      SQL_BINDIR=$SQLITE_BINDIR
9094
9095      cat >>confdefs.h <<\_ACEOF
9096 #define HAVE_SQLITE3 1
9097 _ACEOF
9098
9099      echo "$as_me:$LINENO: result: yes" >&5
9100 echo "${ECHO_T}yes" >&6
9101      db_found=yes
9102      support_sqlite3=yes
9103      db_name=SQLite3
9104      DB_NAME=sqlite3
9105
9106   else
9107      echo "$as_me:$LINENO: result: no" >&5
9108 echo "${ECHO_T}no" >&6
9109   fi
9110
9111 else
9112
9113   echo "$as_me:$LINENO: result: no" >&5
9114 echo "${ECHO_T}no" >&6
9115
9116 fi;
9117
9118
9119
9120
9121
9122
9123
9124 db_found=no
9125 echo "$as_me:$LINENO: checking for SQLite support" >&5
9126 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9127
9128 # Check whether --with-sqlite or --without-sqlite was given.
9129 if test "${with_sqlite+set}" = set; then
9130   withval="$with_sqlite"
9131
9132   if test "$withval" != "no"; then
9133      if test "$withval" = "yes"; then
9134         if test -f /usr/local/include/sqlite.h; then
9135            SQLITE_INCDIR=/usr/local/include
9136            SQLITE_LIBDIR=/usr/local/lib
9137            SQLITE_BINDIR=/usr/local/bin
9138         elif test -f /usr/include/sqlite.h; then
9139            SQLITE_INCDIR=/usr/include
9140            SQLITE_LIBDIR=/usr/lib
9141            SQLITE_BINDIR=/usr/bin
9142         elif test -f $prefix/include/sqlite.h; then
9143            SQLITE_INCDIR=$prefix/include
9144            SQLITE_LIBDIR=$prefix/lib
9145            SQLITE_BINDIR=$prefix/bin
9146         else
9147            echo "$as_me:$LINENO: result: no" >&5
9148 echo "${ECHO_T}no" >&6
9149            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9150 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9151    { (exit 1); exit 1; }; }
9152         fi
9153      else
9154         if test -f $withval/sqlite.h; then
9155            SQLITE_INCDIR=$withval
9156            SQLITE_LIBDIR=$withval
9157            SQLITE_BINDIR=$withval
9158         elif test -f $withval/include/sqlite.h; then
9159            SQLITE_INCDIR=$withval/include
9160            SQLITE_LIBDIR=$withval/lib
9161            SQLITE_BINDIR=$withval/bin
9162         else
9163            echo "$as_me:$LINENO: result: no" >&5
9164 echo "${ECHO_T}no" >&6
9165            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9166 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9167    { (exit 1); exit 1; }; }
9168         fi
9169      fi
9170      SQL_INCLUDE=-I$SQLITE_INCDIR
9171      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9172      SQL_BINDIR=$SQLITE_BINDIR
9173
9174      cat >>confdefs.h <<\_ACEOF
9175 #define HAVE_SQLITE 1
9176 _ACEOF
9177
9178      echo "$as_me:$LINENO: result: yes" >&5
9179 echo "${ECHO_T}yes" >&6
9180      db_found=yes
9181      support_sqlite=yes
9182      db_name=SQLite
9183      DB_NAME=sqlite
9184
9185   else
9186      echo "$as_me:$LINENO: result: no" >&5
9187 echo "${ECHO_T}no" >&6
9188   fi
9189
9190 else
9191
9192   echo "$as_me:$LINENO: result: no" >&5
9193 echo "${ECHO_T}no" >&6
9194
9195 fi;
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205 cat >>confdefs.h <<\_ACEOF
9206 #define PROTOTYPES 1
9207 _ACEOF
9208
9209
9210 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9211     if test -z "$CCOPTS"; then
9212         CCOPTS='-g -O2 -Wall'
9213     fi
9214     CFLAGS="$CCOPTS"
9215 fi
9216
9217
9218
9219
9220 largefile_support="no"
9221
9222    # Check whether --enable-largefile or --disable-largefile was given.
9223 if test "${enable_largefile+set}" = set; then
9224   enableval="$enable_largefile"
9225
9226 fi;
9227    if test "$enable_largefile" != no; then
9228      if test -n "$ac_tool_prefix"; then
9229   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9230 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9231 echo "$as_me:$LINENO: checking for $ac_word" >&5
9232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9233 if test "${ac_cv_prog_GETCONF+set}" = set; then
9234   echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236   if test -n "$GETCONF"; then
9237   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9238 else
9239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 for as_dir in $PATH
9241 do
9242   IFS=$as_save_IFS
9243   test -z "$as_dir" && as_dir=.
9244   for ac_exec_ext in '' $ac_executable_extensions; do
9245   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9246     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9248     break 2
9249   fi
9250 done
9251 done
9252
9253 fi
9254 fi
9255 GETCONF=$ac_cv_prog_GETCONF
9256 if test -n "$GETCONF"; then
9257   echo "$as_me:$LINENO: result: $GETCONF" >&5
9258 echo "${ECHO_T}$GETCONF" >&6
9259 else
9260   echo "$as_me:$LINENO: result: no" >&5
9261 echo "${ECHO_T}no" >&6
9262 fi
9263
9264 fi
9265 if test -z "$ac_cv_prog_GETCONF"; then
9266   ac_ct_GETCONF=$GETCONF
9267   # Extract the first word of "getconf", so it can be a program name with args.
9268 set dummy getconf; ac_word=$2
9269 echo "$as_me:$LINENO: checking for $ac_word" >&5
9270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9271 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9272   echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274   if test -n "$ac_ct_GETCONF"; then
9275   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9276 else
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 for as_dir in $PATH
9279 do
9280   IFS=$as_save_IFS
9281   test -z "$as_dir" && as_dir=.
9282   for ac_exec_ext in '' $ac_executable_extensions; do
9283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9284     ac_cv_prog_ac_ct_GETCONF="getconf"
9285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9286     break 2
9287   fi
9288 done
9289 done
9290
9291 fi
9292 fi
9293 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9294 if test -n "$ac_ct_GETCONF"; then
9295   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9296 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9297 else
9298   echo "$as_me:$LINENO: result: no" >&5
9299 echo "${ECHO_T}no" >&6
9300 fi
9301
9302   GETCONF=$ac_ct_GETCONF
9303 else
9304   GETCONF="$ac_cv_prog_GETCONF"
9305 fi
9306
9307      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9308 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9309 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9310   echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9313         ac_cv_sys_largefile_CFLAGS=no
9314         case "$host_os" in
9315            # IRIX 6.2 and later require cc -n32.
9316            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9317              if test "$GCC" != yes; then
9318                ac_cv_sys_largefile_CFLAGS=-n32
9319              fi
9320              ac_save_CC="$CC"
9321              CC="$CC $ac_cv_sys_largefile_CFLAGS"
9322              cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h.  */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h.  */
9328
9329 int
9330 main ()
9331 {
9332
9333   ;
9334   return 0;
9335 }
9336 _ACEOF
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9339   (eval $ac_link) 2>conftest.er1
9340   ac_status=$?
9341   grep -v '^ *+' conftest.er1 >conftest.err
9342   rm -f conftest.er1
9343   cat conftest.err >&5
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); } &&
9346          { ac_try='test -z "$ac_c_werror_flag"
9347                          || test ! -s conftest.err'
9348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349   (eval $ac_try) 2>&5
9350   ac_status=$?
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); }; } &&
9353          { ac_try='test -s conftest$ac_exeext'
9354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355   (eval $ac_try) 2>&5
9356   ac_status=$?
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); }; }; then
9359   :
9360 else
9361   echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364 ac_cv_sys_largefile_CFLAGS=no
9365 fi
9366 rm -f conftest.err conftest.$ac_objext \
9367       conftest$ac_exeext conftest.$ac_ext
9368              CC="$ac_save_CC"
9369            esac
9370       }
9371 fi
9372 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9373 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9374      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9375 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9376 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9377   echo $ECHO_N "(cached) $ECHO_C" >&6
9378 else
9379   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9380         ac_cv_sys_largefile_LDFLAGS=no
9381
9382       }
9383 fi
9384 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9385 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9386      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9387 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9388 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9389   echo $ECHO_N "(cached) $ECHO_C" >&6
9390 else
9391   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9392         ac_cv_sys_largefile_LIBS=no
9393
9394       }
9395 fi
9396 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9397 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9398
9399      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9400        case "$ac_flag" in
9401        no) ;;
9402        -D_FILE_OFFSET_BITS=*) ;;
9403        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9404        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9405        -D?* | -I?*)
9406          case "$ac_flag" in
9407    no) ;;
9408    ?*)
9409      case "$CPPFLAGS" in
9410      '') CPPFLAGS="$ac_flag" ;;
9411      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9412      esac ;;
9413    esac ;;
9414        *)
9415          case "$ac_flag" in
9416    no) ;;
9417    ?*)
9418      case "$CFLAGS" in
9419      '') CFLAGS="$ac_flag" ;;
9420      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9421      esac ;;
9422    esac ;;
9423        esac
9424      done
9425      case "$ac_cv_sys_largefile_LDFLAGS" in
9426    no) ;;
9427    ?*)
9428      case "$LDFLAGS" in
9429      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9430      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9431      esac ;;
9432    esac
9433      case "$ac_cv_sys_largefile_LIBS" in
9434    no) ;;
9435    ?*)
9436      case "$LIBS" in
9437      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9438      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9439      esac ;;
9440    esac
9441      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9442 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9443 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9444   echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446   ac_cv_sys_file_offset_bits=no
9447       ac_cv_sys_file_offset_bits=64
9448       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9449         case "$ac_flag" in
9450         -D_FILE_OFFSET_BITS)
9451           ac_cv_sys_file_offset_bits=1 ;;
9452         -D_FILE_OFFSET_BITS=*)
9453           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9454         esac
9455       done
9456
9457 fi
9458 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9459 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9460    if test "$ac_cv_sys_file_offset_bits" != no; then
9461
9462 cat >>confdefs.h <<_ACEOF
9463 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9464 _ACEOF
9465
9466    fi
9467      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9468 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9469 if test "${ac_cv_sys_largefile_source+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472   ac_cv_sys_largefile_source=no
9473       ac_cv_sys_largefile_source=1
9474       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9475         case "$ac_flag" in
9476         -D_LARGEFILE_SOURCE)
9477           ac_cv_sys_largefile_source=1 ;;
9478         -D_LARGEFILE_SOURCE=*)
9479           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9480         esac
9481       done
9482
9483 fi
9484 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9485 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9486    if test "$ac_cv_sys_largefile_source" != no; then
9487
9488 cat >>confdefs.h <<_ACEOF
9489 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9490 _ACEOF
9491
9492    fi
9493      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9494 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9495 if test "${ac_cv_sys_large_files+set}" = set; then
9496   echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498   ac_cv_sys_large_files=no
9499       ac_cv_sys_large_files=1
9500       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9501         case "$ac_flag" in
9502         -D_LARGE_FILES)
9503           ac_cv_sys_large_files=1 ;;
9504         -D_LARGE_FILES=*)
9505           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9506         esac
9507       done
9508
9509 fi
9510 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9511 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9512    if test "$ac_cv_sys_large_files" != no; then
9513
9514 cat >>confdefs.h <<_ACEOF
9515 #define _LARGE_FILES $ac_cv_sys_large_files
9516 _ACEOF
9517
9518    fi
9519    fi
9520
9521
9522
9523 echo "$as_me:$LINENO: checking for X" >&5
9524 echo $ECHO_N "checking for X... $ECHO_C" >&6
9525
9526
9527 # Check whether --with-x or --without-x was given.
9528 if test "${with_x+set}" = set; then
9529   withval="$with_x"
9530
9531 fi;
9532 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9533 if test "x$with_x" = xno; then
9534   # The user explicitly disabled X.
9535   have_x=disabled
9536 else
9537   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9538     # Both variables are already set.
9539     have_x=yes
9540   else
9541     if test "${ac_cv_have_x+set}" = set; then
9542   echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544   # One or both of the vars are not set, and there is no cached value.
9545 ac_x_includes=no ac_x_libraries=no
9546 rm -fr conftest.dir
9547 if mkdir conftest.dir; then
9548   cd conftest.dir
9549   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9550   cat >Imakefile <<'_ACEOF'
9551 acfindx:
9552         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9553 _ACEOF
9554   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9555     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9556     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9557     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9558     for ac_extension in a so sl; do
9559       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9560          test -f $ac_im_libdir/libX11.$ac_extension; then
9561         ac_im_usrlibdir=$ac_im_libdir; break
9562       fi
9563     done
9564     # Screen out bogus values from the imake configuration.  They are
9565     # bogus both because they are the default anyway, and because
9566     # using them would break gcc on systems where it needs fixed includes.
9567     case $ac_im_incroot in
9568         /usr/include) ;;
9569         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9570     esac
9571     case $ac_im_usrlibdir in
9572         /usr/lib | /lib) ;;
9573         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9574     esac
9575   fi
9576   cd ..
9577   rm -fr conftest.dir
9578 fi
9579
9580 # Standard set of common directories for X headers.
9581 # Check X11 before X11Rn because it is often a symlink to the current release.
9582 ac_x_header_dirs='
9583 /usr/X11/include
9584 /usr/X11R6/include
9585 /usr/X11R5/include
9586 /usr/X11R4/include
9587
9588 /usr/include/X11
9589 /usr/include/X11R6
9590 /usr/include/X11R5
9591 /usr/include/X11R4
9592
9593 /usr/local/X11/include
9594 /usr/local/X11R6/include
9595 /usr/local/X11R5/include
9596 /usr/local/X11R4/include
9597
9598 /usr/local/include/X11
9599 /usr/local/include/X11R6
9600 /usr/local/include/X11R5
9601 /usr/local/include/X11R4
9602
9603 /usr/X386/include
9604 /usr/x386/include
9605 /usr/XFree86/include/X11
9606
9607 /usr/include
9608 /usr/local/include
9609 /usr/unsupported/include
9610 /usr/athena/include
9611 /usr/local/x11r5/include
9612 /usr/lpp/Xamples/include
9613
9614 /usr/openwin/include
9615 /usr/openwin/share/include'
9616
9617 if test "$ac_x_includes" = no; then
9618   # Guess where to find include files, by looking for Intrinsic.h.
9619   # First, try using that file with no special directory specified.
9620   cat >conftest.$ac_ext <<_ACEOF
9621 /* confdefs.h.  */
9622 _ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h.  */
9626 #include <X11/Intrinsic.h>
9627 _ACEOF
9628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9629   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9630   ac_status=$?
9631   grep -v '^ *+' conftest.er1 >conftest.err
9632   rm -f conftest.er1
9633   cat conftest.err >&5
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } >/dev/null; then
9636   if test -s conftest.err; then
9637     ac_cpp_err=$ac_c_preproc_warn_flag
9638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9639   else
9640     ac_cpp_err=
9641   fi
9642 else
9643   ac_cpp_err=yes
9644 fi
9645 if test -z "$ac_cpp_err"; then
9646   # We can compile using X headers with no special include directory.
9647 ac_x_includes=
9648 else
9649   echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9651
9652   for ac_dir in $ac_x_header_dirs; do
9653   if test -r "$ac_dir/X11/Intrinsic.h"; then
9654     ac_x_includes=$ac_dir
9655     break
9656   fi
9657 done
9658 fi
9659 rm -f conftest.err conftest.$ac_ext
9660 fi # $ac_x_includes = no
9661
9662 if test "$ac_x_libraries" = no; then
9663   # Check for the libraries.
9664   # See if we find them without any special options.
9665   # Don't add to $LIBS permanently.
9666   ac_save_LIBS=$LIBS
9667   LIBS="-lXt $LIBS"
9668   cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h.  */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h.  */
9674 #include <X11/Intrinsic.h>
9675 int
9676 main ()
9677 {
9678 XtMalloc (0)
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685   (eval $ac_link) 2>conftest.er1
9686   ac_status=$?
9687   grep -v '^ *+' conftest.er1 >conftest.err
9688   rm -f conftest.er1
9689   cat conftest.err >&5
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); } &&
9692          { ac_try='test -z "$ac_c_werror_flag"
9693                          || test ! -s conftest.err'
9694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695   (eval $ac_try) 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; } &&
9699          { ac_try='test -s conftest$ac_exeext'
9700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701   (eval $ac_try) 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); }; }; then
9705   LIBS=$ac_save_LIBS
9706 # We can link X programs with no special library path.
9707 ac_x_libraries=
9708 else
9709   echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9711
9712 LIBS=$ac_save_LIBS
9713 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9714 do
9715   # Don't even attempt the hair of trying to link an X program!
9716   for ac_extension in a so sl; do
9717     if test -r $ac_dir/libXt.$ac_extension; then
9718       ac_x_libraries=$ac_dir
9719       break 2
9720     fi
9721   done
9722 done
9723 fi
9724 rm -f conftest.err conftest.$ac_objext \
9725       conftest$ac_exeext conftest.$ac_ext
9726 fi # $ac_x_libraries = no
9727
9728 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9729   # Didn't find X anywhere.  Cache the known absence of X.
9730   ac_cv_have_x="have_x=no"
9731 else
9732   # Record where we found X for the cache.
9733   ac_cv_have_x="have_x=yes \
9734                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9735 fi
9736 fi
9737
9738   fi
9739   eval "$ac_cv_have_x"
9740 fi # $with_x != no
9741
9742 if test "$have_x" != yes; then
9743   echo "$as_me:$LINENO: result: $have_x" >&5
9744 echo "${ECHO_T}$have_x" >&6
9745   no_x=yes
9746 else
9747   # If each of the values was on the command line, it overrides each guess.
9748   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9749   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9750   # Update the cache value to reflect the command line values.
9751   ac_cv_have_x="have_x=yes \
9752                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9753   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9754 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9755 fi
9756
9757 if test "$no_x" = yes; then
9758   # Not all programs may use this symbol, but it does not hurt to define it.
9759
9760 cat >>confdefs.h <<\_ACEOF
9761 #define X_DISPLAY_MISSING 1
9762 _ACEOF
9763
9764   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9765 else
9766   if test -n "$x_includes"; then
9767     X_CFLAGS="$X_CFLAGS -I$x_includes"
9768   fi
9769
9770   # It would also be nice to do this for all -L options, not just this one.
9771   if test -n "$x_libraries"; then
9772     X_LIBS="$X_LIBS -L$x_libraries"
9773     # For Solaris; some versions of Sun CC require a space after -R and
9774     # others require no space.  Words are not sufficient . . . .
9775     case `(uname -sr) 2>/dev/null` in
9776     "SunOS 5"*)
9777       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9778 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9779       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9780       cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h.  */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h.  */
9786
9787 int
9788 main ()
9789 {
9790
9791   ;
9792   return 0;
9793 }
9794 _ACEOF
9795 rm -f conftest.$ac_objext conftest$ac_exeext
9796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9797   (eval $ac_link) 2>conftest.er1
9798   ac_status=$?
9799   grep -v '^ *+' conftest.er1 >conftest.err
9800   rm -f conftest.er1
9801   cat conftest.err >&5
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); } &&
9804          { ac_try='test -z "$ac_c_werror_flag"
9805                          || test ! -s conftest.err'
9806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807   (eval $ac_try) 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); }; } &&
9811          { ac_try='test -s conftest$ac_exeext'
9812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813   (eval $ac_try) 2>&5
9814   ac_status=$?
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); }; }; then
9817   ac_R_nospace=yes
9818 else
9819   echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9821
9822 ac_R_nospace=no
9823 fi
9824 rm -f conftest.err conftest.$ac_objext \
9825       conftest$ac_exeext conftest.$ac_ext
9826       if test $ac_R_nospace = yes; then
9827         echo "$as_me:$LINENO: result: no" >&5
9828 echo "${ECHO_T}no" >&6
9829         X_LIBS="$X_LIBS -R$x_libraries"
9830       else
9831         LIBS="$ac_xsave_LIBS -R $x_libraries"
9832         cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h.  */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h.  */
9838
9839 int
9840 main ()
9841 {
9842
9843   ;
9844   return 0;
9845 }
9846 _ACEOF
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9849   (eval $ac_link) 2>conftest.er1
9850   ac_status=$?
9851   grep -v '^ *+' conftest.er1 >conftest.err
9852   rm -f conftest.er1
9853   cat conftest.err >&5
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); } &&
9856          { ac_try='test -z "$ac_c_werror_flag"
9857                          || test ! -s conftest.err'
9858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859   (eval $ac_try) 2>&5
9860   ac_status=$?
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); }; } &&
9863          { ac_try='test -s conftest$ac_exeext'
9864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865   (eval $ac_try) 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; }; then
9869   ac_R_space=yes
9870 else
9871   echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9873
9874 ac_R_space=no
9875 fi
9876 rm -f conftest.err conftest.$ac_objext \
9877       conftest$ac_exeext conftest.$ac_ext
9878         if test $ac_R_space = yes; then
9879           echo "$as_me:$LINENO: result: yes" >&5
9880 echo "${ECHO_T}yes" >&6
9881           X_LIBS="$X_LIBS -R $x_libraries"
9882         else
9883           echo "$as_me:$LINENO: result: neither works" >&5
9884 echo "${ECHO_T}neither works" >&6
9885         fi
9886       fi
9887       LIBS=$ac_xsave_LIBS
9888     esac
9889   fi
9890
9891   # Check for system-dependent libraries X programs must link with.
9892   # Do this before checking for the system-independent R6 libraries
9893   # (-lICE), since we may need -lsocket or whatever for X linking.
9894
9895   if test "$ISC" = yes; then
9896     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9897   else
9898     # Martyn Johnson says this is needed for Ultrix, if the X
9899     # libraries were built with DECnet support.  And Karl Berry says
9900     # the Alpha needs dnet_stub (dnet does not exist).
9901     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9902     cat >conftest.$ac_ext <<_ACEOF
9903 /* confdefs.h.  */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h.  */
9908
9909 /* Override any gcc2 internal prototype to avoid an error.  */
9910 #ifdef __cplusplus
9911 extern "C"
9912 #endif
9913 /* We use char because int might match the return type of a gcc2
9914    builtin and then its argument prototype would still apply.  */
9915 char XOpenDisplay ();
9916 int
9917 main ()
9918 {
9919 XOpenDisplay ();
9920   ;
9921   return 0;
9922 }
9923 _ACEOF
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9926   (eval $ac_link) 2>conftest.er1
9927   ac_status=$?
9928   grep -v '^ *+' conftest.er1 >conftest.err
9929   rm -f conftest.er1
9930   cat conftest.err >&5
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); } &&
9933          { ac_try='test -z "$ac_c_werror_flag"
9934                          || test ! -s conftest.err'
9935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936   (eval $ac_try) 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); }; } &&
9940          { ac_try='test -s conftest$ac_exeext'
9941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942   (eval $ac_try) 2>&5
9943   ac_status=$?
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); }; }; then
9946   :
9947 else
9948   echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9952 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9953 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9954   echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956   ac_check_lib_save_LIBS=$LIBS
9957 LIBS="-ldnet  $LIBS"
9958 cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h.  */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h.  */
9964
9965 /* Override any gcc2 internal prototype to avoid an error.  */
9966 #ifdef __cplusplus
9967 extern "C"
9968 #endif
9969 /* We use char because int might match the return type of a gcc2
9970    builtin and then its argument prototype would still apply.  */
9971 char dnet_ntoa ();
9972 int
9973 main ()
9974 {
9975 dnet_ntoa ();
9976   ;
9977   return 0;
9978 }
9979 _ACEOF
9980 rm -f conftest.$ac_objext conftest$ac_exeext
9981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9982   (eval $ac_link) 2>conftest.er1
9983   ac_status=$?
9984   grep -v '^ *+' conftest.er1 >conftest.err
9985   rm -f conftest.er1
9986   cat conftest.err >&5
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); } &&
9989          { ac_try='test -z "$ac_c_werror_flag"
9990                          || test ! -s conftest.err'
9991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992   (eval $ac_try) 2>&5
9993   ac_status=$?
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); }; } &&
9996          { ac_try='test -s conftest$ac_exeext'
9997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998   (eval $ac_try) 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); }; }; then
10002   ac_cv_lib_dnet_dnet_ntoa=yes
10003 else
10004   echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10006
10007 ac_cv_lib_dnet_dnet_ntoa=no
10008 fi
10009 rm -f conftest.err conftest.$ac_objext \
10010       conftest$ac_exeext conftest.$ac_ext
10011 LIBS=$ac_check_lib_save_LIBS
10012 fi
10013 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10014 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10015 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10016   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10017 fi
10018
10019     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10020       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10021 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10022 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10023   echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025   ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-ldnet_stub  $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h.  */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h.  */
10033
10034 /* Override any gcc2 internal prototype to avoid an error.  */
10035 #ifdef __cplusplus
10036 extern "C"
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 dnet_ntoa ();
10041 int
10042 main ()
10043 {
10044 dnet_ntoa ();
10045   ;
10046   return 0;
10047 }
10048 _ACEOF
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051   (eval $ac_link) 2>conftest.er1
10052   ac_status=$?
10053   grep -v '^ *+' conftest.er1 >conftest.err
10054   rm -f conftest.er1
10055   cat conftest.err >&5
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } &&
10058          { ac_try='test -z "$ac_c_werror_flag"
10059                          || test ! -s conftest.err'
10060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061   (eval $ac_try) 2>&5
10062   ac_status=$?
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); }; } &&
10065          { ac_try='test -s conftest$ac_exeext'
10066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067   (eval $ac_try) 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; }; then
10071   ac_cv_lib_dnet_stub_dnet_ntoa=yes
10072 else
10073   echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10075
10076 ac_cv_lib_dnet_stub_dnet_ntoa=no
10077 fi
10078 rm -f conftest.err conftest.$ac_objext \
10079       conftest$ac_exeext conftest.$ac_ext
10080 LIBS=$ac_check_lib_save_LIBS
10081 fi
10082 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10083 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10084 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10085   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10086 fi
10087
10088     fi
10089 fi
10090 rm -f conftest.err conftest.$ac_objext \
10091       conftest$ac_exeext conftest.$ac_ext
10092     LIBS="$ac_xsave_LIBS"
10093
10094     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10095     # to get the SysV transport functions.
10096     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10097     # needs -lnsl.
10098     # The nsl library prevents programs from opening the X display
10099     # on Irix 5.2, according to T.E. Dickey.
10100     # The functions gethostbyname, getservbyname, and inet_addr are
10101     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10102     echo "$as_me:$LINENO: checking for gethostbyname" >&5
10103 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10104 if test "${ac_cv_func_gethostbyname+set}" = set; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107   cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h.  */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h.  */
10113 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10115 #define gethostbyname innocuous_gethostbyname
10116
10117 /* System header to define __stub macros and hopefully few prototypes,
10118     which can conflict with char gethostbyname (); below.
10119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10120     <limits.h> exists even on freestanding compilers.  */
10121
10122 #ifdef __STDC__
10123 # include <limits.h>
10124 #else
10125 # include <assert.h>
10126 #endif
10127
10128 #undef gethostbyname
10129
10130 /* Override any gcc2 internal prototype to avoid an error.  */
10131 #ifdef __cplusplus
10132 extern "C"
10133 {
10134 #endif
10135 /* We use char because int might match the return type of a gcc2
10136    builtin and then its argument prototype would still apply.  */
10137 char gethostbyname ();
10138 /* The GNU C library defines this for functions which it implements
10139     to always fail with ENOSYS.  Some functions are actually named
10140     something starting with __ and the normal name is an alias.  */
10141 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10142 choke me
10143 #else
10144 char (*f) () = gethostbyname;
10145 #endif
10146 #ifdef __cplusplus
10147 }
10148 #endif
10149
10150 int
10151 main ()
10152 {
10153 return f != gethostbyname;
10154   ;
10155   return 0;
10156 }
10157 _ACEOF
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160   (eval $ac_link) 2>conftest.er1
10161   ac_status=$?
10162   grep -v '^ *+' conftest.er1 >conftest.err
10163   rm -f conftest.er1
10164   cat conftest.err >&5
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); } &&
10167          { ac_try='test -z "$ac_c_werror_flag"
10168                          || test ! -s conftest.err'
10169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170   (eval $ac_try) 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); }; } &&
10174          { ac_try='test -s conftest$ac_exeext'
10175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176   (eval $ac_try) 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180   ac_cv_func_gethostbyname=yes
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10184
10185 ac_cv_func_gethostbyname=no
10186 fi
10187 rm -f conftest.err conftest.$ac_objext \
10188       conftest$ac_exeext conftest.$ac_ext
10189 fi
10190 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10191 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10192
10193     if test $ac_cv_func_gethostbyname = no; then
10194       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10195 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10196 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10197   echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199   ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-lnsl  $LIBS"
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h.  */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h.  */
10207
10208 /* Override any gcc2 internal prototype to avoid an error.  */
10209 #ifdef __cplusplus
10210 extern "C"
10211 #endif
10212 /* We use char because int might match the return type of a gcc2
10213    builtin and then its argument prototype would still apply.  */
10214 char gethostbyname ();
10215 int
10216 main ()
10217 {
10218 gethostbyname ();
10219   ;
10220   return 0;
10221 }
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10225   (eval $ac_link) 2>conftest.er1
10226   ac_status=$?
10227   grep -v '^ *+' conftest.er1 >conftest.err
10228   rm -f conftest.er1
10229   cat conftest.err >&5
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); } &&
10232          { ac_try='test -z "$ac_c_werror_flag"
10233                          || test ! -s conftest.err'
10234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235   (eval $ac_try) 2>&5
10236   ac_status=$?
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); }; } &&
10239          { ac_try='test -s conftest$ac_exeext'
10240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241   (eval $ac_try) 2>&5
10242   ac_status=$?
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); }; }; then
10245   ac_cv_lib_nsl_gethostbyname=yes
10246 else
10247   echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 ac_cv_lib_nsl_gethostbyname=no
10251 fi
10252 rm -f conftest.err conftest.$ac_objext \
10253       conftest$ac_exeext conftest.$ac_ext
10254 LIBS=$ac_check_lib_save_LIBS
10255 fi
10256 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10257 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10258 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10259   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10260 fi
10261
10262       if test $ac_cv_lib_nsl_gethostbyname = no; then
10263         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10264 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10265 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10266   echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268   ac_check_lib_save_LIBS=$LIBS
10269 LIBS="-lbsd  $LIBS"
10270 cat >conftest.$ac_ext <<_ACEOF
10271 /* confdefs.h.  */
10272 _ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h.  */
10276
10277 /* Override any gcc2 internal prototype to avoid an error.  */
10278 #ifdef __cplusplus
10279 extern "C"
10280 #endif
10281 /* We use char because int might match the return type of a gcc2
10282    builtin and then its argument prototype would still apply.  */
10283 char gethostbyname ();
10284 int
10285 main ()
10286 {
10287 gethostbyname ();
10288   ;
10289   return 0;
10290 }
10291 _ACEOF
10292 rm -f conftest.$ac_objext conftest$ac_exeext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294   (eval $ac_link) 2>conftest.er1
10295   ac_status=$?
10296   grep -v '^ *+' conftest.er1 >conftest.err
10297   rm -f conftest.er1
10298   cat conftest.err >&5
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } &&
10301          { ac_try='test -z "$ac_c_werror_flag"
10302                          || test ! -s conftest.err'
10303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304   (eval $ac_try) 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); }; } &&
10308          { ac_try='test -s conftest$ac_exeext'
10309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310   (eval $ac_try) 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); }; }; then
10314   ac_cv_lib_bsd_gethostbyname=yes
10315 else
10316   echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319 ac_cv_lib_bsd_gethostbyname=no
10320 fi
10321 rm -f conftest.err conftest.$ac_objext \
10322       conftest$ac_exeext conftest.$ac_ext
10323 LIBS=$ac_check_lib_save_LIBS
10324 fi
10325 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10326 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10327 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10328   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10329 fi
10330
10331       fi
10332     fi
10333
10334     # lieder@skyler.mavd.honeywell.com says without -lsocket,
10335     # socket/setsockopt and other routines are undefined under SCO ODT
10336     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10337     # on later versions), says Simon Leinen: it contains gethostby*
10338     # variants that don't use the name server (or something).  -lsocket
10339     # must be given before -lnsl if both are needed.  We assume that
10340     # if connect needs -lnsl, so does gethostbyname.
10341     echo "$as_me:$LINENO: checking for connect" >&5
10342 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10343 if test "${ac_cv_func_connect+set}" = set; then
10344   echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346   cat >conftest.$ac_ext <<_ACEOF
10347 /* confdefs.h.  */
10348 _ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h.  */
10352 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10354 #define connect innocuous_connect
10355
10356 /* System header to define __stub macros and hopefully few prototypes,
10357     which can conflict with char connect (); below.
10358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10359     <limits.h> exists even on freestanding compilers.  */
10360
10361 #ifdef __STDC__
10362 # include <limits.h>
10363 #else
10364 # include <assert.h>
10365 #endif
10366
10367 #undef connect
10368
10369 /* Override any gcc2 internal prototype to avoid an error.  */
10370 #ifdef __cplusplus
10371 extern "C"
10372 {
10373 #endif
10374 /* We use char because int might match the return type of a gcc2
10375    builtin and then its argument prototype would still apply.  */
10376 char connect ();
10377 /* The GNU C library defines this for functions which it implements
10378     to always fail with ENOSYS.  Some functions are actually named
10379     something starting with __ and the normal name is an alias.  */
10380 #if defined (__stub_connect) || defined (__stub___connect)
10381 choke me
10382 #else
10383 char (*f) () = connect;
10384 #endif
10385 #ifdef __cplusplus
10386 }
10387 #endif
10388
10389 int
10390 main ()
10391 {
10392 return f != connect;
10393   ;
10394   return 0;
10395 }
10396 _ACEOF
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399   (eval $ac_link) 2>conftest.er1
10400   ac_status=$?
10401   grep -v '^ *+' conftest.er1 >conftest.err
10402   rm -f conftest.er1
10403   cat conftest.err >&5
10404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405   (exit $ac_status); } &&
10406          { ac_try='test -z "$ac_c_werror_flag"
10407                          || test ! -s conftest.err'
10408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409   (eval $ac_try) 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; } &&
10413          { ac_try='test -s conftest$ac_exeext'
10414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415   (eval $ac_try) 2>&5
10416   ac_status=$?
10417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418   (exit $ac_status); }; }; then
10419   ac_cv_func_connect=yes
10420 else
10421   echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10423
10424 ac_cv_func_connect=no
10425 fi
10426 rm -f conftest.err conftest.$ac_objext \
10427       conftest$ac_exeext conftest.$ac_ext
10428 fi
10429 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10430 echo "${ECHO_T}$ac_cv_func_connect" >&6
10431
10432     if test $ac_cv_func_connect = no; then
10433       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10434 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10435 if test "${ac_cv_lib_socket_connect+set}" = set; then
10436   echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438   ac_check_lib_save_LIBS=$LIBS
10439 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10440 cat >conftest.$ac_ext <<_ACEOF
10441 /* confdefs.h.  */
10442 _ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h.  */
10446
10447 /* Override any gcc2 internal prototype to avoid an error.  */
10448 #ifdef __cplusplus
10449 extern "C"
10450 #endif
10451 /* We use char because int might match the return type of a gcc2
10452    builtin and then its argument prototype would still apply.  */
10453 char connect ();
10454 int
10455 main ()
10456 {
10457 connect ();
10458   ;
10459   return 0;
10460 }
10461 _ACEOF
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10464   (eval $ac_link) 2>conftest.er1
10465   ac_status=$?
10466   grep -v '^ *+' conftest.er1 >conftest.err
10467   rm -f conftest.er1
10468   cat conftest.err >&5
10469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); } &&
10471          { ac_try='test -z "$ac_c_werror_flag"
10472                          || test ! -s conftest.err'
10473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474   (eval $ac_try) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); }; } &&
10478          { ac_try='test -s conftest$ac_exeext'
10479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480   (eval $ac_try) 2>&5
10481   ac_status=$?
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); }; }; then
10484   ac_cv_lib_socket_connect=yes
10485 else
10486   echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489 ac_cv_lib_socket_connect=no
10490 fi
10491 rm -f conftest.err conftest.$ac_objext \
10492       conftest$ac_exeext conftest.$ac_ext
10493 LIBS=$ac_check_lib_save_LIBS
10494 fi
10495 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10496 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10497 if test $ac_cv_lib_socket_connect = yes; then
10498   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10499 fi
10500
10501     fi
10502
10503     # Guillermo Gomez says -lposix is necessary on A/UX.
10504     echo "$as_me:$LINENO: checking for remove" >&5
10505 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10506 if test "${ac_cv_func_remove+set}" = set; then
10507   echo $ECHO_N "(cached) $ECHO_C" >&6
10508 else
10509   cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10517 #define remove innocuous_remove
10518
10519 /* System header to define __stub macros and hopefully few prototypes,
10520     which can conflict with char remove (); below.
10521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10522     <limits.h> exists even on freestanding compilers.  */
10523
10524 #ifdef __STDC__
10525 # include <limits.h>
10526 #else
10527 # include <assert.h>
10528 #endif
10529
10530 #undef remove
10531
10532 /* Override any gcc2 internal prototype to avoid an error.  */
10533 #ifdef __cplusplus
10534 extern "C"
10535 {
10536 #endif
10537 /* We use char because int might match the return type of a gcc2
10538    builtin and then its argument prototype would still apply.  */
10539 char remove ();
10540 /* The GNU C library defines this for functions which it implements
10541     to always fail with ENOSYS.  Some functions are actually named
10542     something starting with __ and the normal name is an alias.  */
10543 #if defined (__stub_remove) || defined (__stub___remove)
10544 choke me
10545 #else
10546 char (*f) () = remove;
10547 #endif
10548 #ifdef __cplusplus
10549 }
10550 #endif
10551
10552 int
10553 main ()
10554 {
10555 return f != remove;
10556   ;
10557   return 0;
10558 }
10559 _ACEOF
10560 rm -f conftest.$ac_objext conftest$ac_exeext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562   (eval $ac_link) 2>conftest.er1
10563   ac_status=$?
10564   grep -v '^ *+' conftest.er1 >conftest.err
10565   rm -f conftest.er1
10566   cat conftest.err >&5
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } &&
10569          { ac_try='test -z "$ac_c_werror_flag"
10570                          || test ! -s conftest.err'
10571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572   (eval $ac_try) 2>&5
10573   ac_status=$?
10574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575   (exit $ac_status); }; } &&
10576          { ac_try='test -s conftest$ac_exeext'
10577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578   (eval $ac_try) 2>&5
10579   ac_status=$?
10580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); }; }; then
10582   ac_cv_func_remove=yes
10583 else
10584   echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10586
10587 ac_cv_func_remove=no
10588 fi
10589 rm -f conftest.err conftest.$ac_objext \
10590       conftest$ac_exeext conftest.$ac_ext
10591 fi
10592 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10593 echo "${ECHO_T}$ac_cv_func_remove" >&6
10594
10595     if test $ac_cv_func_remove = no; then
10596       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10597 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10598 if test "${ac_cv_lib_posix_remove+set}" = set; then
10599   echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601   ac_check_lib_save_LIBS=$LIBS
10602 LIBS="-lposix  $LIBS"
10603 cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h.  */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h.  */
10609
10610 /* Override any gcc2 internal prototype to avoid an error.  */
10611 #ifdef __cplusplus
10612 extern "C"
10613 #endif
10614 /* We use char because int might match the return type of a gcc2
10615    builtin and then its argument prototype would still apply.  */
10616 char remove ();
10617 int
10618 main ()
10619 {
10620 remove ();
10621   ;
10622   return 0;
10623 }
10624 _ACEOF
10625 rm -f conftest.$ac_objext conftest$ac_exeext
10626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627   (eval $ac_link) 2>conftest.er1
10628   ac_status=$?
10629   grep -v '^ *+' conftest.er1 >conftest.err
10630   rm -f conftest.er1
10631   cat conftest.err >&5
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); } &&
10634          { ac_try='test -z "$ac_c_werror_flag"
10635                          || test ! -s conftest.err'
10636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637   (eval $ac_try) 2>&5
10638   ac_status=$?
10639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640   (exit $ac_status); }; } &&
10641          { ac_try='test -s conftest$ac_exeext'
10642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643   (eval $ac_try) 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); }; }; then
10647   ac_cv_lib_posix_remove=yes
10648 else
10649   echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10651
10652 ac_cv_lib_posix_remove=no
10653 fi
10654 rm -f conftest.err conftest.$ac_objext \
10655       conftest$ac_exeext conftest.$ac_ext
10656 LIBS=$ac_check_lib_save_LIBS
10657 fi
10658 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10659 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10660 if test $ac_cv_lib_posix_remove = yes; then
10661   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10662 fi
10663
10664     fi
10665
10666     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10667     echo "$as_me:$LINENO: checking for shmat" >&5
10668 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10669 if test "${ac_cv_func_shmat+set}" = set; then
10670   echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672   cat >conftest.$ac_ext <<_ACEOF
10673 /* confdefs.h.  */
10674 _ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h.  */
10678 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10680 #define shmat innocuous_shmat
10681
10682 /* System header to define __stub macros and hopefully few prototypes,
10683     which can conflict with char shmat (); below.
10684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10685     <limits.h> exists even on freestanding compilers.  */
10686
10687 #ifdef __STDC__
10688 # include <limits.h>
10689 #else
10690 # include <assert.h>
10691 #endif
10692
10693 #undef shmat
10694
10695 /* Override any gcc2 internal prototype to avoid an error.  */
10696 #ifdef __cplusplus
10697 extern "C"
10698 {
10699 #endif
10700 /* We use char because int might match the return type of a gcc2
10701    builtin and then its argument prototype would still apply.  */
10702 char shmat ();
10703 /* The GNU C library defines this for functions which it implements
10704     to always fail with ENOSYS.  Some functions are actually named
10705     something starting with __ and the normal name is an alias.  */
10706 #if defined (__stub_shmat) || defined (__stub___shmat)
10707 choke me
10708 #else
10709 char (*f) () = shmat;
10710 #endif
10711 #ifdef __cplusplus
10712 }
10713 #endif
10714
10715 int
10716 main ()
10717 {
10718 return f != shmat;
10719   ;
10720   return 0;
10721 }
10722 _ACEOF
10723 rm -f conftest.$ac_objext conftest$ac_exeext
10724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10725   (eval $ac_link) 2>conftest.er1
10726   ac_status=$?
10727   grep -v '^ *+' conftest.er1 >conftest.err
10728   rm -f conftest.er1
10729   cat conftest.err >&5
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); } &&
10732          { ac_try='test -z "$ac_c_werror_flag"
10733                          || test ! -s conftest.err'
10734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735   (eval $ac_try) 2>&5
10736   ac_status=$?
10737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738   (exit $ac_status); }; } &&
10739          { ac_try='test -s conftest$ac_exeext'
10740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741   (eval $ac_try) 2>&5
10742   ac_status=$?
10743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744   (exit $ac_status); }; }; then
10745   ac_cv_func_shmat=yes
10746 else
10747   echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10749
10750 ac_cv_func_shmat=no
10751 fi
10752 rm -f conftest.err conftest.$ac_objext \
10753       conftest$ac_exeext conftest.$ac_ext
10754 fi
10755 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10756 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10757
10758     if test $ac_cv_func_shmat = no; then
10759       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10760 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10761 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10762   echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764   ac_check_lib_save_LIBS=$LIBS
10765 LIBS="-lipc  $LIBS"
10766 cat >conftest.$ac_ext <<_ACEOF
10767 /* confdefs.h.  */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h.  */
10772
10773 /* Override any gcc2 internal prototype to avoid an error.  */
10774 #ifdef __cplusplus
10775 extern "C"
10776 #endif
10777 /* We use char because int might match the return type of a gcc2
10778    builtin and then its argument prototype would still apply.  */
10779 char shmat ();
10780 int
10781 main ()
10782 {
10783 shmat ();
10784   ;
10785   return 0;
10786 }
10787 _ACEOF
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10790   (eval $ac_link) 2>conftest.er1
10791   ac_status=$?
10792   grep -v '^ *+' conftest.er1 >conftest.err
10793   rm -f conftest.er1
10794   cat conftest.err >&5
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); } &&
10797          { ac_try='test -z "$ac_c_werror_flag"
10798                          || test ! -s conftest.err'
10799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800   (eval $ac_try) 2>&5
10801   ac_status=$?
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); }; } &&
10804          { ac_try='test -s conftest$ac_exeext'
10805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806   (eval $ac_try) 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); }; }; then
10810   ac_cv_lib_ipc_shmat=yes
10811 else
10812   echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815 ac_cv_lib_ipc_shmat=no
10816 fi
10817 rm -f conftest.err conftest.$ac_objext \
10818       conftest$ac_exeext conftest.$ac_ext
10819 LIBS=$ac_check_lib_save_LIBS
10820 fi
10821 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10822 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10823 if test $ac_cv_lib_ipc_shmat = yes; then
10824   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10825 fi
10826
10827     fi
10828   fi
10829
10830   # Check for libraries that X11R6 Xt/Xaw programs need.
10831   ac_save_LDFLAGS=$LDFLAGS
10832   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10833   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10834   # check for ICE first), but we must link in the order -lSM -lICE or
10835   # we get undefined symbols.  So assume we have SM if we have ICE.
10836   # These have to be linked with before -lX11, unlike the other
10837   # libraries we check for below, so use a different variable.
10838   # John Interrante, Karl Berry
10839   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10840 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10841 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10842   echo $ECHO_N "(cached) $ECHO_C" >&6
10843 else
10844   ac_check_lib_save_LIBS=$LIBS
10845 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10846 cat >conftest.$ac_ext <<_ACEOF
10847 /* confdefs.h.  */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h.  */
10852
10853 /* Override any gcc2 internal prototype to avoid an error.  */
10854 #ifdef __cplusplus
10855 extern "C"
10856 #endif
10857 /* We use char because int might match the return type of a gcc2
10858    builtin and then its argument prototype would still apply.  */
10859 char IceConnectionNumber ();
10860 int
10861 main ()
10862 {
10863 IceConnectionNumber ();
10864   ;
10865   return 0;
10866 }
10867 _ACEOF
10868 rm -f conftest.$ac_objext conftest$ac_exeext
10869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10870   (eval $ac_link) 2>conftest.er1
10871   ac_status=$?
10872   grep -v '^ *+' conftest.er1 >conftest.err
10873   rm -f conftest.er1
10874   cat conftest.err >&5
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); } &&
10877          { ac_try='test -z "$ac_c_werror_flag"
10878                          || test ! -s conftest.err'
10879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880   (eval $ac_try) 2>&5
10881   ac_status=$?
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); }; } &&
10884          { ac_try='test -s conftest$ac_exeext'
10885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886   (eval $ac_try) 2>&5
10887   ac_status=$?
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); }; }; then
10890   ac_cv_lib_ICE_IceConnectionNumber=yes
10891 else
10892   echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10894
10895 ac_cv_lib_ICE_IceConnectionNumber=no
10896 fi
10897 rm -f conftest.err conftest.$ac_objext \
10898       conftest$ac_exeext conftest.$ac_ext
10899 LIBS=$ac_check_lib_save_LIBS
10900 fi
10901 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10902 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10903 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10904   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10905 fi
10906
10907   LDFLAGS=$ac_save_LDFLAGS
10908
10909 fi
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939 for ac_header in \
10940         assert.h \
10941         fcntl.h \
10942         grp.h \
10943         pwd.h \
10944         libc.h \
10945         limits.h \
10946         stdarg.h \
10947         stdlib.h \
10948         stdint.h \
10949         string.h \
10950         termios.h \
10951         termcap.h \
10952         term.h \
10953         unistd.h \
10954         sys/bitypes.h \
10955         sys/byteorder.h \
10956         sys/ioctl.h \
10957         sys/select.h \
10958         sys/sockio.h \
10959         sys/time.h \
10960         sys/socket.h \
10961         arpa/nameser.h \
10962         resolv.h \
10963         mtio.h \
10964         sys/mtio.h \
10965         sys/tape.h \
10966         regex.h \
10967
10968 do
10969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10971   echo "$as_me:$LINENO: checking for $ac_header" >&5
10972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10974   echo $ECHO_N "(cached) $ECHO_C" >&6
10975 fi
10976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10978 else
10979   # Is the header compilable?
10980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10982 cat >conftest.$ac_ext <<_ACEOF
10983 /* confdefs.h.  */
10984 _ACEOF
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h.  */
10988 $ac_includes_default
10989 #include <$ac_header>
10990 _ACEOF
10991 rm -f conftest.$ac_objext
10992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10993   (eval $ac_compile) 2>conftest.er1
10994   ac_status=$?
10995   grep -v '^ *+' conftest.er1 >conftest.err
10996   rm -f conftest.er1
10997   cat conftest.err >&5
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); } &&
11000          { ac_try='test -z "$ac_c_werror_flag"
11001                          || test ! -s conftest.err'
11002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003   (eval $ac_try) 2>&5
11004   ac_status=$?
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); }; } &&
11007          { ac_try='test -s conftest.$ac_objext'
11008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009   (eval $ac_try) 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); }; }; then
11013   ac_header_compiler=yes
11014 else
11015   echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11017
11018 ac_header_compiler=no
11019 fi
11020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11022 echo "${ECHO_T}$ac_header_compiler" >&6
11023
11024 # Is the header present?
11025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11027 cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h.  */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h.  */
11033 #include <$ac_header>
11034 _ACEOF
11035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11036   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11037   ac_status=$?
11038   grep -v '^ *+' conftest.er1 >conftest.err
11039   rm -f conftest.er1
11040   cat conftest.err >&5
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); } >/dev/null; then
11043   if test -s conftest.err; then
11044     ac_cpp_err=$ac_c_preproc_warn_flag
11045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11046   else
11047     ac_cpp_err=
11048   fi
11049 else
11050   ac_cpp_err=yes
11051 fi
11052 if test -z "$ac_cpp_err"; then
11053   ac_header_preproc=yes
11054 else
11055   echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11057
11058   ac_header_preproc=no
11059 fi
11060 rm -f conftest.err conftest.$ac_ext
11061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11062 echo "${ECHO_T}$ac_header_preproc" >&6
11063
11064 # So?  What about this header?
11065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11066   yes:no: )
11067     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11071     ac_header_preproc=yes
11072     ;;
11073   no:yes:* )
11074     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11076     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11077 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11078     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11080     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11081 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11084     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11086     (
11087       cat <<\_ASBOX
11088 ## ------------------------------------------ ##
11089 ## Report this to the AC_PACKAGE_NAME lists.  ##
11090 ## ------------------------------------------ ##
11091 _ASBOX
11092     ) |
11093       sed "s/^/$as_me: WARNING:     /" >&2
11094     ;;
11095 esac
11096 echo "$as_me:$LINENO: checking for $ac_header" >&5
11097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11099   echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101   eval "$as_ac_Header=\$ac_header_preproc"
11102 fi
11103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11105
11106 fi
11107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11108   cat >>confdefs.h <<_ACEOF
11109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11110 _ACEOF
11111
11112 fi
11113
11114 done
11115
11116 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11117 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11118 if test "${ac_cv_header_stdc+set}" = set; then
11119   echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121   cat >conftest.$ac_ext <<_ACEOF
11122 /* confdefs.h.  */
11123 _ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h.  */
11127 #include <stdlib.h>
11128 #include <stdarg.h>
11129 #include <string.h>
11130 #include <float.h>
11131
11132 int
11133 main ()
11134 {
11135
11136   ;
11137   return 0;
11138 }
11139 _ACEOF
11140 rm -f conftest.$ac_objext
11141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11142   (eval $ac_compile) 2>conftest.er1
11143   ac_status=$?
11144   grep -v '^ *+' conftest.er1 >conftest.err
11145   rm -f conftest.er1
11146   cat conftest.err >&5
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); } &&
11149          { ac_try='test -z "$ac_c_werror_flag"
11150                          || test ! -s conftest.err'
11151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152   (eval $ac_try) 2>&5
11153   ac_status=$?
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); }; } &&
11156          { ac_try='test -s conftest.$ac_objext'
11157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158   (eval $ac_try) 2>&5
11159   ac_status=$?
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); }; }; then
11162   ac_cv_header_stdc=yes
11163 else
11164   echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11166
11167 ac_cv_header_stdc=no
11168 fi
11169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11170
11171 if test $ac_cv_header_stdc = yes; then
11172   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11173   cat >conftest.$ac_ext <<_ACEOF
11174 /* confdefs.h.  */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h.  */
11179 #include <string.h>
11180
11181 _ACEOF
11182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11183   $EGREP "memchr" >/dev/null 2>&1; then
11184   :
11185 else
11186   ac_cv_header_stdc=no
11187 fi
11188 rm -f conftest*
11189
11190 fi
11191
11192 if test $ac_cv_header_stdc = yes; then
11193   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11194   cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h.  */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h.  */
11200 #include <stdlib.h>
11201
11202 _ACEOF
11203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11204   $EGREP "free" >/dev/null 2>&1; then
11205   :
11206 else
11207   ac_cv_header_stdc=no
11208 fi
11209 rm -f conftest*
11210
11211 fi
11212
11213 if test $ac_cv_header_stdc = yes; then
11214   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11215   if test "$cross_compiling" = yes; then
11216   :
11217 else
11218   cat >conftest.$ac_ext <<_ACEOF
11219 /* confdefs.h.  */
11220 _ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h.  */
11224 #include <ctype.h>
11225 #if ((' ' & 0x0FF) == 0x020)
11226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11228 #else
11229 # define ISLOWER(c) \
11230                    (('a' <= (c) && (c) <= 'i') \
11231                      || ('j' <= (c) && (c) <= 'r') \
11232                      || ('s' <= (c) && (c) <= 'z'))
11233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11234 #endif
11235
11236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11237 int
11238 main ()
11239 {
11240   int i;
11241   for (i = 0; i < 256; i++)
11242     if (XOR (islower (i), ISLOWER (i))
11243         || toupper (i) != TOUPPER (i))
11244       exit(2);
11245   exit (0);
11246 }
11247 _ACEOF
11248 rm -f conftest$ac_exeext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11250   (eval $ac_link) 2>&5
11251   ac_status=$?
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255   (eval $ac_try) 2>&5
11256   ac_status=$?
11257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258   (exit $ac_status); }; }; then
11259   :
11260 else
11261   echo "$as_me: program exited with status $ac_status" >&5
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11264
11265 ( exit $ac_status )
11266 ac_cv_header_stdc=no
11267 fi
11268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11269 fi
11270 fi
11271 fi
11272 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11273 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11274 if test $ac_cv_header_stdc = yes; then
11275
11276 cat >>confdefs.h <<\_ACEOF
11277 #define STDC_HEADERS 1
11278 _ACEOF
11279
11280 fi
11281
11282 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11283 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11284 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11285   echo $ECHO_N "(cached) $ECHO_C" >&6
11286 else
11287   cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h.  */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h.  */
11293 #include <sys/types.h>
11294 int
11295 main ()
11296 {
11297 return makedev(0, 0);
11298   ;
11299   return 0;
11300 }
11301 _ACEOF
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11304   (eval $ac_link) 2>conftest.er1
11305   ac_status=$?
11306   grep -v '^ *+' conftest.er1 >conftest.err
11307   rm -f conftest.er1
11308   cat conftest.err >&5
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); } &&
11311          { ac_try='test -z "$ac_c_werror_flag"
11312                          || test ! -s conftest.err'
11313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314   (eval $ac_try) 2>&5
11315   ac_status=$?
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); }; } &&
11318          { ac_try='test -s conftest$ac_exeext'
11319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320   (eval $ac_try) 2>&5
11321   ac_status=$?
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); }; }; then
11324   ac_cv_header_sys_types_h_makedev=yes
11325 else
11326   echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11328
11329 ac_cv_header_sys_types_h_makedev=no
11330 fi
11331 rm -f conftest.err conftest.$ac_objext \
11332       conftest$ac_exeext conftest.$ac_ext
11333
11334 fi
11335 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11336 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11337
11338 if test $ac_cv_header_sys_types_h_makedev = no; then
11339 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11340   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11341 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11342 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11343   echo $ECHO_N "(cached) $ECHO_C" >&6
11344 fi
11345 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11346 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11347 else
11348   # Is the header compilable?
11349 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11350 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11351 cat >conftest.$ac_ext <<_ACEOF
11352 /* confdefs.h.  */
11353 _ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h.  */
11357 $ac_includes_default
11358 #include <sys/mkdev.h>
11359 _ACEOF
11360 rm -f conftest.$ac_objext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11362   (eval $ac_compile) 2>conftest.er1
11363   ac_status=$?
11364   grep -v '^ *+' conftest.er1 >conftest.err
11365   rm -f conftest.er1
11366   cat conftest.err >&5
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); } &&
11369          { ac_try='test -z "$ac_c_werror_flag"
11370                          || test ! -s conftest.err'
11371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372   (eval $ac_try) 2>&5
11373   ac_status=$?
11374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); }; } &&
11376          { ac_try='test -s conftest.$ac_objext'
11377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378   (eval $ac_try) 2>&5
11379   ac_status=$?
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); }; }; then
11382   ac_header_compiler=yes
11383 else
11384   echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11386
11387 ac_header_compiler=no
11388 fi
11389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11391 echo "${ECHO_T}$ac_header_compiler" >&6
11392
11393 # Is the header present?
11394 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11395 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h.  */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h.  */
11402 #include <sys/mkdev.h>
11403 _ACEOF
11404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11406   ac_status=$?
11407   grep -v '^ *+' conftest.er1 >conftest.err
11408   rm -f conftest.er1
11409   cat conftest.err >&5
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); } >/dev/null; then
11412   if test -s conftest.err; then
11413     ac_cpp_err=$ac_c_preproc_warn_flag
11414     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11415   else
11416     ac_cpp_err=
11417   fi
11418 else
11419   ac_cpp_err=yes
11420 fi
11421 if test -z "$ac_cpp_err"; then
11422   ac_header_preproc=yes
11423 else
11424   echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11426
11427   ac_header_preproc=no
11428 fi
11429 rm -f conftest.err conftest.$ac_ext
11430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11431 echo "${ECHO_T}$ac_header_preproc" >&6
11432
11433 # So?  What about this header?
11434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11435   yes:no: )
11436     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11437 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11438     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11439 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11440     ac_header_preproc=yes
11441     ;;
11442   no:yes:* )
11443     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11444 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11445     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11446 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11447     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11448 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11449     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11450 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11451     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11452 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11453     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11454 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11455     (
11456       cat <<\_ASBOX
11457 ## ------------------------------------------ ##
11458 ## Report this to the AC_PACKAGE_NAME lists.  ##
11459 ## ------------------------------------------ ##
11460 _ASBOX
11461     ) |
11462       sed "s/^/$as_me: WARNING:     /" >&2
11463     ;;
11464 esac
11465 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11466 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11467 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11468   echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11471 fi
11472 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11473 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11474
11475 fi
11476 if test $ac_cv_header_sys_mkdev_h = yes; then
11477
11478 cat >>confdefs.h <<\_ACEOF
11479 #define MAJOR_IN_MKDEV 1
11480 _ACEOF
11481
11482 fi
11483
11484
11485
11486   if test $ac_cv_header_sys_mkdev_h = no; then
11487     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11488   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11489 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11490 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11491   echo $ECHO_N "(cached) $ECHO_C" >&6
11492 fi
11493 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11494 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11495 else
11496   # Is the header compilable?
11497 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11498 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11499 cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h.  */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h.  */
11505 $ac_includes_default
11506 #include <sys/sysmacros.h>
11507 _ACEOF
11508 rm -f conftest.$ac_objext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11510   (eval $ac_compile) 2>conftest.er1
11511   ac_status=$?
11512   grep -v '^ *+' conftest.er1 >conftest.err
11513   rm -f conftest.er1
11514   cat conftest.err >&5
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); } &&
11517          { ac_try='test -z "$ac_c_werror_flag"
11518                          || test ! -s conftest.err'
11519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520   (eval $ac_try) 2>&5
11521   ac_status=$?
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); }; } &&
11524          { ac_try='test -s conftest.$ac_objext'
11525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526   (eval $ac_try) 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); }; }; then
11530   ac_header_compiler=yes
11531 else
11532   echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535 ac_header_compiler=no
11536 fi
11537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11539 echo "${ECHO_T}$ac_header_compiler" >&6
11540
11541 # Is the header present?
11542 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11543 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11544 cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h.  */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h.  */
11550 #include <sys/sysmacros.h>
11551 _ACEOF
11552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11554   ac_status=$?
11555   grep -v '^ *+' conftest.er1 >conftest.err
11556   rm -f conftest.er1
11557   cat conftest.err >&5
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); } >/dev/null; then
11560   if test -s conftest.err; then
11561     ac_cpp_err=$ac_c_preproc_warn_flag
11562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11563   else
11564     ac_cpp_err=
11565   fi
11566 else
11567   ac_cpp_err=yes
11568 fi
11569 if test -z "$ac_cpp_err"; then
11570   ac_header_preproc=yes
11571 else
11572   echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11574
11575   ac_header_preproc=no
11576 fi
11577 rm -f conftest.err conftest.$ac_ext
11578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11579 echo "${ECHO_T}$ac_header_preproc" >&6
11580
11581 # So?  What about this header?
11582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11583   yes:no: )
11584     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11585 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11586     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11587 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11588     ac_header_preproc=yes
11589     ;;
11590   no:yes:* )
11591     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11592 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11593     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11594 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11595     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11596 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11597     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11598 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11599     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11600 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11601     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11602 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11603     (
11604       cat <<\_ASBOX
11605 ## ------------------------------------------ ##
11606 ## Report this to the AC_PACKAGE_NAME lists.  ##
11607 ## ------------------------------------------ ##
11608 _ASBOX
11609     ) |
11610       sed "s/^/$as_me: WARNING:     /" >&2
11611     ;;
11612 esac
11613 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11614 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11615 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11616   echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11619 fi
11620 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11621 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11622
11623 fi
11624 if test $ac_cv_header_sys_sysmacros_h = yes; then
11625
11626 cat >>confdefs.h <<\_ACEOF
11627 #define MAJOR_IN_SYSMACROS 1
11628 _ACEOF
11629
11630 fi
11631
11632
11633   fi
11634 fi
11635
11636
11637
11638
11639
11640
11641 ac_header_dirent=no
11642 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11643   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11644 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11645 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11647   echo $ECHO_N "(cached) $ECHO_C" >&6
11648 else
11649   cat >conftest.$ac_ext <<_ACEOF
11650 /* confdefs.h.  */
11651 _ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h.  */
11655 #include <sys/types.h>
11656 #include <$ac_hdr>
11657
11658 int
11659 main ()
11660 {
11661 if ((DIR *) 0)
11662 return 0;
11663   ;
11664   return 0;
11665 }
11666 _ACEOF
11667 rm -f conftest.$ac_objext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669   (eval $ac_compile) 2>conftest.er1
11670   ac_status=$?
11671   grep -v '^ *+' conftest.er1 >conftest.err
11672   rm -f conftest.er1
11673   cat conftest.err >&5
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); } &&
11676          { ac_try='test -z "$ac_c_werror_flag"
11677                          || test ! -s conftest.err'
11678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679   (eval $ac_try) 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; } &&
11683          { ac_try='test -s conftest.$ac_objext'
11684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685   (eval $ac_try) 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); }; }; then
11689   eval "$as_ac_Header=yes"
11690 else
11691   echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11693
11694 eval "$as_ac_Header=no"
11695 fi
11696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11697 fi
11698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11701   cat >>confdefs.h <<_ACEOF
11702 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11703 _ACEOF
11704
11705 ac_header_dirent=$ac_hdr; break
11706 fi
11707
11708 done
11709 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11710 if test $ac_header_dirent = dirent.h; then
11711   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11712 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11713 if test "${ac_cv_search_opendir+set}" = set; then
11714   echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716   ac_func_search_save_LIBS=$LIBS
11717 ac_cv_search_opendir=no
11718 cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h.  */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h.  */
11724
11725 /* Override any gcc2 internal prototype to avoid an error.  */
11726 #ifdef __cplusplus
11727 extern "C"
11728 #endif
11729 /* We use char because int might match the return type of a gcc2
11730    builtin and then its argument prototype would still apply.  */
11731 char opendir ();
11732 int
11733 main ()
11734 {
11735 opendir ();
11736   ;
11737   return 0;
11738 }
11739 _ACEOF
11740 rm -f conftest.$ac_objext conftest$ac_exeext
11741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11742   (eval $ac_link) 2>conftest.er1
11743   ac_status=$?
11744   grep -v '^ *+' conftest.er1 >conftest.err
11745   rm -f conftest.er1
11746   cat conftest.err >&5
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); } &&
11749          { ac_try='test -z "$ac_c_werror_flag"
11750                          || test ! -s conftest.err'
11751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752   (eval $ac_try) 2>&5
11753   ac_status=$?
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); }; } &&
11756          { ac_try='test -s conftest$ac_exeext'
11757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758   (eval $ac_try) 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); }; }; then
11762   ac_cv_search_opendir="none required"
11763 else
11764   echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11766
11767 fi
11768 rm -f conftest.err conftest.$ac_objext \
11769       conftest$ac_exeext conftest.$ac_ext
11770 if test "$ac_cv_search_opendir" = no; then
11771   for ac_lib in dir; do
11772     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11773     cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h.  */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h.  */
11779
11780 /* Override any gcc2 internal prototype to avoid an error.  */
11781 #ifdef __cplusplus
11782 extern "C"
11783 #endif
11784 /* We use char because int might match the return type of a gcc2
11785    builtin and then its argument prototype would still apply.  */
11786 char opendir ();
11787 int
11788 main ()
11789 {
11790 opendir ();
11791   ;
11792   return 0;
11793 }
11794 _ACEOF
11795 rm -f conftest.$ac_objext conftest$ac_exeext
11796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11797   (eval $ac_link) 2>conftest.er1
11798   ac_status=$?
11799   grep -v '^ *+' conftest.er1 >conftest.err
11800   rm -f conftest.er1
11801   cat conftest.err >&5
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); } &&
11804          { ac_try='test -z "$ac_c_werror_flag"
11805                          || test ! -s conftest.err'
11806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807   (eval $ac_try) 2>&5
11808   ac_status=$?
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); }; } &&
11811          { ac_try='test -s conftest$ac_exeext'
11812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813   (eval $ac_try) 2>&5
11814   ac_status=$?
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); }; }; then
11817   ac_cv_search_opendir="-l$ac_lib"
11818 break
11819 else
11820   echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11822
11823 fi
11824 rm -f conftest.err conftest.$ac_objext \
11825       conftest$ac_exeext conftest.$ac_ext
11826   done
11827 fi
11828 LIBS=$ac_func_search_save_LIBS
11829 fi
11830 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11831 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11832 if test "$ac_cv_search_opendir" != no; then
11833   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11834
11835 fi
11836
11837 else
11838   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11839 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11840 if test "${ac_cv_search_opendir+set}" = set; then
11841   echo $ECHO_N "(cached) $ECHO_C" >&6
11842 else
11843   ac_func_search_save_LIBS=$LIBS
11844 ac_cv_search_opendir=no
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h.  */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h.  */
11851
11852 /* Override any gcc2 internal prototype to avoid an error.  */
11853 #ifdef __cplusplus
11854 extern "C"
11855 #endif
11856 /* We use char because int might match the return type of a gcc2
11857    builtin and then its argument prototype would still apply.  */
11858 char opendir ();
11859 int
11860 main ()
11861 {
11862 opendir ();
11863   ;
11864   return 0;
11865 }
11866 _ACEOF
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11869   (eval $ac_link) 2>conftest.er1
11870   ac_status=$?
11871   grep -v '^ *+' conftest.er1 >conftest.err
11872   rm -f conftest.er1
11873   cat conftest.err >&5
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); } &&
11876          { ac_try='test -z "$ac_c_werror_flag"
11877                          || test ! -s conftest.err'
11878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879   (eval $ac_try) 2>&5
11880   ac_status=$?
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); }; } &&
11883          { ac_try='test -s conftest$ac_exeext'
11884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885   (eval $ac_try) 2>&5
11886   ac_status=$?
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); }; }; then
11889   ac_cv_search_opendir="none required"
11890 else
11891   echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11893
11894 fi
11895 rm -f conftest.err conftest.$ac_objext \
11896       conftest$ac_exeext conftest.$ac_ext
11897 if test "$ac_cv_search_opendir" = no; then
11898   for ac_lib in x; do
11899     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11900     cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h.  */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h.  */
11906
11907 /* Override any gcc2 internal prototype to avoid an error.  */
11908 #ifdef __cplusplus
11909 extern "C"
11910 #endif
11911 /* We use char because int might match the return type of a gcc2
11912    builtin and then its argument prototype would still apply.  */
11913 char opendir ();
11914 int
11915 main ()
11916 {
11917 opendir ();
11918   ;
11919   return 0;
11920 }
11921 _ACEOF
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924   (eval $ac_link) 2>conftest.er1
11925   ac_status=$?
11926   grep -v '^ *+' conftest.er1 >conftest.err
11927   rm -f conftest.er1
11928   cat conftest.err >&5
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); } &&
11931          { ac_try='test -z "$ac_c_werror_flag"
11932                          || test ! -s conftest.err'
11933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934   (eval $ac_try) 2>&5
11935   ac_status=$?
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); }; } &&
11938          { ac_try='test -s conftest$ac_exeext'
11939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940   (eval $ac_try) 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); }; }; then
11944   ac_cv_search_opendir="-l$ac_lib"
11945 break
11946 else
11947   echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11949
11950 fi
11951 rm -f conftest.err conftest.$ac_objext \
11952       conftest$ac_exeext conftest.$ac_ext
11953   done
11954 fi
11955 LIBS=$ac_func_search_save_LIBS
11956 fi
11957 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11958 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11959 if test "$ac_cv_search_opendir" != no; then
11960   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11961
11962 fi
11963
11964 fi
11965
11966 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11967 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11968 if test "${ac_cv_header_stat_broken+set}" = set; then
11969   echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971   cat >conftest.$ac_ext <<_ACEOF
11972 /* confdefs.h.  */
11973 _ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h.  */
11977 #include <sys/types.h>
11978 #include <sys/stat.h>
11979
11980 #if defined(S_ISBLK) && defined(S_IFDIR)
11981 # if S_ISBLK (S_IFDIR)
11982 You lose.
11983 # endif
11984 #endif
11985
11986 #if defined(S_ISBLK) && defined(S_IFCHR)
11987 # if S_ISBLK (S_IFCHR)
11988 You lose.
11989 # endif
11990 #endif
11991
11992 #if defined(S_ISLNK) && defined(S_IFREG)
11993 # if S_ISLNK (S_IFREG)
11994 You lose.
11995 # endif
11996 #endif
11997
11998 #if defined(S_ISSOCK) && defined(S_IFREG)
11999 # if S_ISSOCK (S_IFREG)
12000 You lose.
12001 # endif
12002 #endif
12003
12004 _ACEOF
12005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12006   $EGREP "You lose" >/dev/null 2>&1; then
12007   ac_cv_header_stat_broken=yes
12008 else
12009   ac_cv_header_stat_broken=no
12010 fi
12011 rm -f conftest*
12012
12013 fi
12014 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12015 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12016 if test $ac_cv_header_stat_broken = yes; then
12017
12018 cat >>confdefs.h <<\_ACEOF
12019 #define STAT_MACROS_BROKEN 1
12020 _ACEOF
12021
12022 fi
12023
12024 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12025 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12026 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12027   echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029   cat >conftest.$ac_ext <<_ACEOF
12030 /* confdefs.h.  */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h.  */
12035 #include <sys/types.h>
12036 #include <sys/wait.h>
12037 #ifndef WEXITSTATUS
12038 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12039 #endif
12040 #ifndef WIFEXITED
12041 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12042 #endif
12043
12044 int
12045 main ()
12046 {
12047   int s;
12048   wait (&s);
12049   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12050   ;
12051   return 0;
12052 }
12053 _ACEOF
12054 rm -f conftest.$ac_objext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12056   (eval $ac_compile) 2>conftest.er1
12057   ac_status=$?
12058   grep -v '^ *+' conftest.er1 >conftest.err
12059   rm -f conftest.er1
12060   cat conftest.err >&5
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); } &&
12063          { ac_try='test -z "$ac_c_werror_flag"
12064                          || test ! -s conftest.err'
12065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066   (eval $ac_try) 2>&5
12067   ac_status=$?
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); }; } &&
12070          { ac_try='test -s conftest.$ac_objext'
12071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072   (eval $ac_try) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; }; then
12076   ac_cv_header_sys_wait_h=yes
12077 else
12078   echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 ac_cv_header_sys_wait_h=no
12082 fi
12083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12084 fi
12085 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12086 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12087 if test $ac_cv_header_sys_wait_h = yes; then
12088
12089 cat >>confdefs.h <<\_ACEOF
12090 #define HAVE_SYS_WAIT_H 1
12091 _ACEOF
12092
12093 fi
12094
12095 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12096 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12097 if test "${ac_cv_header_time+set}" = set; then
12098   echo $ECHO_N "(cached) $ECHO_C" >&6
12099 else
12100   cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h.  */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h.  */
12106 #include <sys/types.h>
12107 #include <sys/time.h>
12108 #include <time.h>
12109
12110 int
12111 main ()
12112 {
12113 if ((struct tm *) 0)
12114 return 0;
12115   ;
12116   return 0;
12117 }
12118 _ACEOF
12119 rm -f conftest.$ac_objext
12120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12121   (eval $ac_compile) 2>conftest.er1
12122   ac_status=$?
12123   grep -v '^ *+' conftest.er1 >conftest.err
12124   rm -f conftest.er1
12125   cat conftest.err >&5
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); } &&
12128          { ac_try='test -z "$ac_c_werror_flag"
12129                          || test ! -s conftest.err'
12130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131   (eval $ac_try) 2>&5
12132   ac_status=$?
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); }; } &&
12135          { ac_try='test -s conftest.$ac_objext'
12136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137   (eval $ac_try) 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); }; }; then
12141   ac_cv_header_time=yes
12142 else
12143   echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12145
12146 ac_cv_header_time=no
12147 fi
12148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12149 fi
12150 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12151 echo "${ECHO_T}$ac_cv_header_time" >&6
12152 if test $ac_cv_header_time = yes; then
12153
12154 cat >>confdefs.h <<\_ACEOF
12155 #define TIME_WITH_SYS_TIME 1
12156 _ACEOF
12157
12158 fi
12159
12160
12161 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12162 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12163 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12164   echo $ECHO_N "(cached) $ECHO_C" >&6
12165 else
12166   cat >conftest.$ac_ext <<_ACEOF
12167 /* confdefs.h.  */
12168 _ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h.  */
12172 $ac_includes_default
12173 int
12174 main ()
12175 {
12176 static struct stat ac_aggr;
12177 if (ac_aggr.st_blksize)
12178 return 0;
12179   ;
12180   return 0;
12181 }
12182 _ACEOF
12183 rm -f conftest.$ac_objext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12185   (eval $ac_compile) 2>conftest.er1
12186   ac_status=$?
12187   grep -v '^ *+' conftest.er1 >conftest.err
12188   rm -f conftest.er1
12189   cat conftest.err >&5
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); } &&
12192          { ac_try='test -z "$ac_c_werror_flag"
12193                          || test ! -s conftest.err'
12194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195   (eval $ac_try) 2>&5
12196   ac_status=$?
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); }; } &&
12199          { ac_try='test -s conftest.$ac_objext'
12200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201   (eval $ac_try) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; }; then
12205   ac_cv_member_struct_stat_st_blksize=yes
12206 else
12207   echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12209
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h.  */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h.  */
12216 $ac_includes_default
12217 int
12218 main ()
12219 {
12220 static struct stat ac_aggr;
12221 if (sizeof ac_aggr.st_blksize)
12222 return 0;
12223   ;
12224   return 0;
12225 }
12226 _ACEOF
12227 rm -f conftest.$ac_objext
12228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12229   (eval $ac_compile) 2>conftest.er1
12230   ac_status=$?
12231   grep -v '^ *+' conftest.er1 >conftest.err
12232   rm -f conftest.er1
12233   cat conftest.err >&5
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); } &&
12236          { ac_try='test -z "$ac_c_werror_flag"
12237                          || test ! -s conftest.err'
12238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239   (eval $ac_try) 2>&5
12240   ac_status=$?
12241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242   (exit $ac_status); }; } &&
12243          { ac_try='test -s conftest.$ac_objext'
12244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245   (eval $ac_try) 2>&5
12246   ac_status=$?
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); }; }; then
12249   ac_cv_member_struct_stat_st_blksize=yes
12250 else
12251   echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12253
12254 ac_cv_member_struct_stat_st_blksize=no
12255 fi
12256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12257 fi
12258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12259 fi
12260 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12261 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12262 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12263
12264 cat >>confdefs.h <<_ACEOF
12265 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12266 _ACEOF
12267
12268
12269 cat >>confdefs.h <<\_ACEOF
12270 #define HAVE_ST_BLKSIZE 1
12271 _ACEOF
12272
12273 fi
12274
12275
12276 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12277 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12278 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12279   echo $ECHO_N "(cached) $ECHO_C" >&6
12280 else
12281   cat >conftest.$ac_ext <<_ACEOF
12282 /* confdefs.h.  */
12283 _ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h.  */
12287 $ac_includes_default
12288 int
12289 main ()
12290 {
12291 static struct stat ac_aggr;
12292 if (ac_aggr.st_blocks)
12293 return 0;
12294   ;
12295   return 0;
12296 }
12297 _ACEOF
12298 rm -f conftest.$ac_objext
12299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12300   (eval $ac_compile) 2>conftest.er1
12301   ac_status=$?
12302   grep -v '^ *+' conftest.er1 >conftest.err
12303   rm -f conftest.er1
12304   cat conftest.err >&5
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); } &&
12307          { ac_try='test -z "$ac_c_werror_flag"
12308                          || test ! -s conftest.err'
12309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310   (eval $ac_try) 2>&5
12311   ac_status=$?
12312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313   (exit $ac_status); }; } &&
12314          { ac_try='test -s conftest.$ac_objext'
12315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316   (eval $ac_try) 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); }; }; then
12320   ac_cv_member_struct_stat_st_blocks=yes
12321 else
12322   echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12324
12325 cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h.  */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h.  */
12331 $ac_includes_default
12332 int
12333 main ()
12334 {
12335 static struct stat ac_aggr;
12336 if (sizeof ac_aggr.st_blocks)
12337 return 0;
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344   (eval $ac_compile) 2>conftest.er1
12345   ac_status=$?
12346   grep -v '^ *+' conftest.er1 >conftest.err
12347   rm -f conftest.er1
12348   cat conftest.err >&5
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); } &&
12351          { ac_try='test -z "$ac_c_werror_flag"
12352                          || test ! -s conftest.err'
12353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354   (eval $ac_try) 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); }; } &&
12358          { ac_try='test -s conftest.$ac_objext'
12359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360   (eval $ac_try) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }; }; then
12364   ac_cv_member_struct_stat_st_blocks=yes
12365 else
12366   echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369 ac_cv_member_struct_stat_st_blocks=no
12370 fi
12371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12372 fi
12373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12374 fi
12375 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12376 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12377 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12378
12379 cat >>confdefs.h <<_ACEOF
12380 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12381 _ACEOF
12382
12383
12384 cat >>confdefs.h <<\_ACEOF
12385 #define HAVE_ST_BLOCKS 1
12386 _ACEOF
12387
12388 else
12389   case $LIBOBJS in
12390     "fileblocks.$ac_objext"   | \
12391   *" fileblocks.$ac_objext"   | \
12392     "fileblocks.$ac_objext "* | \
12393   *" fileblocks.$ac_objext "* ) ;;
12394   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12395 esac
12396
12397 fi
12398
12399
12400 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12401 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12402 if test "${ac_cv_struct_tm+set}" = set; then
12403   echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405   cat >conftest.$ac_ext <<_ACEOF
12406 /* confdefs.h.  */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h.  */
12411 #include <sys/types.h>
12412 #include <time.h>
12413
12414 int
12415 main ()
12416 {
12417 struct tm *tp; tp->tm_sec;
12418   ;
12419   return 0;
12420 }
12421 _ACEOF
12422 rm -f conftest.$ac_objext
12423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12424   (eval $ac_compile) 2>conftest.er1
12425   ac_status=$?
12426   grep -v '^ *+' conftest.er1 >conftest.err
12427   rm -f conftest.er1
12428   cat conftest.err >&5
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); } &&
12431          { ac_try='test -z "$ac_c_werror_flag"
12432                          || test ! -s conftest.err'
12433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434   (eval $ac_try) 2>&5
12435   ac_status=$?
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); }; } &&
12438          { ac_try='test -s conftest.$ac_objext'
12439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440   (eval $ac_try) 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); }; }; then
12444   ac_cv_struct_tm=time.h
12445 else
12446   echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12448
12449 ac_cv_struct_tm=sys/time.h
12450 fi
12451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12452 fi
12453 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12454 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12455 if test $ac_cv_struct_tm = sys/time.h; then
12456
12457 cat >>confdefs.h <<\_ACEOF
12458 #define TM_IN_SYS_TIME 1
12459 _ACEOF
12460
12461 fi
12462
12463 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12464 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12465 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12466   echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468   cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h.  */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h.  */
12474 #include <sys/types.h>
12475 #include <$ac_cv_struct_tm>
12476
12477
12478 int
12479 main ()
12480 {
12481 static struct tm ac_aggr;
12482 if (ac_aggr.tm_zone)
12483 return 0;
12484   ;
12485   return 0;
12486 }
12487 _ACEOF
12488 rm -f conftest.$ac_objext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490   (eval $ac_compile) 2>conftest.er1
12491   ac_status=$?
12492   grep -v '^ *+' conftest.er1 >conftest.err
12493   rm -f conftest.er1
12494   cat conftest.err >&5
12495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); } &&
12497          { ac_try='test -z "$ac_c_werror_flag"
12498                          || test ! -s conftest.err'
12499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500   (eval $ac_try) 2>&5
12501   ac_status=$?
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); }; } &&
12504          { ac_try='test -s conftest.$ac_objext'
12505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506   (eval $ac_try) 2>&5
12507   ac_status=$?
12508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509   (exit $ac_status); }; }; then
12510   ac_cv_member_struct_tm_tm_zone=yes
12511 else
12512   echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12514
12515 cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h.  */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h.  */
12521 #include <sys/types.h>
12522 #include <$ac_cv_struct_tm>
12523
12524
12525 int
12526 main ()
12527 {
12528 static struct tm ac_aggr;
12529 if (sizeof ac_aggr.tm_zone)
12530 return 0;
12531   ;
12532   return 0;
12533 }
12534 _ACEOF
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537   (eval $ac_compile) 2>conftest.er1
12538   ac_status=$?
12539   grep -v '^ *+' conftest.er1 >conftest.err
12540   rm -f conftest.er1
12541   cat conftest.err >&5
12542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543   (exit $ac_status); } &&
12544          { ac_try='test -z "$ac_c_werror_flag"
12545                          || test ! -s conftest.err'
12546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547   (eval $ac_try) 2>&5
12548   ac_status=$?
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); }; } &&
12551          { ac_try='test -s conftest.$ac_objext'
12552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553   (eval $ac_try) 2>&5
12554   ac_status=$?
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); }; }; then
12557   ac_cv_member_struct_tm_tm_zone=yes
12558 else
12559   echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12561
12562 ac_cv_member_struct_tm_tm_zone=no
12563 fi
12564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12565 fi
12566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12567 fi
12568 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12569 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12570 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12571
12572 cat >>confdefs.h <<_ACEOF
12573 #define HAVE_STRUCT_TM_TM_ZONE 1
12574 _ACEOF
12575
12576
12577 fi
12578
12579 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12580
12581 cat >>confdefs.h <<\_ACEOF
12582 #define HAVE_TM_ZONE 1
12583 _ACEOF
12584
12585 else
12586   echo "$as_me:$LINENO: checking for tzname" >&5
12587 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12588 if test "${ac_cv_var_tzname+set}" = set; then
12589   echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591   cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h.  */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h.  */
12597 #include <time.h>
12598 #ifndef tzname /* For SGI.  */
12599 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12600 #endif
12601
12602 int
12603 main ()
12604 {
12605 atoi(*tzname);
12606   ;
12607   return 0;
12608 }
12609 _ACEOF
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12612   (eval $ac_link) 2>conftest.er1
12613   ac_status=$?
12614   grep -v '^ *+' conftest.er1 >conftest.err
12615   rm -f conftest.er1
12616   cat conftest.err >&5
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); } &&
12619          { ac_try='test -z "$ac_c_werror_flag"
12620                          || test ! -s conftest.err'
12621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622   (eval $ac_try) 2>&5
12623   ac_status=$?
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); }; } &&
12626          { ac_try='test -s conftest$ac_exeext'
12627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628   (eval $ac_try) 2>&5
12629   ac_status=$?
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); }; }; then
12632   ac_cv_var_tzname=yes
12633 else
12634   echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.$ac_ext >&5
12636
12637 ac_cv_var_tzname=no
12638 fi
12639 rm -f conftest.err conftest.$ac_objext \
12640       conftest$ac_exeext conftest.$ac_ext
12641 fi
12642 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12643 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12644   if test $ac_cv_var_tzname = yes; then
12645
12646 cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_TZNAME 1
12648 _ACEOF
12649
12650   fi
12651 fi
12652
12653
12654 echo "$as_me:$LINENO: checking for utime.h" >&5
12655 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12656 if test "${ba_cv_header_utime_h+set}" = set; then
12657   echo $ECHO_N "(cached) $ECHO_C" >&6
12658 else
12659   cat >conftest.$ac_ext <<_ACEOF
12660 /* confdefs.h.  */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h.  */
12665
12666 #include <sys/types.h>
12667 #include <utime.h>
12668 int
12669 main ()
12670 {
12671 struct utimbuf foo
12672   ;
12673   return 0;
12674 }
12675 _ACEOF
12676 rm -f conftest.$ac_objext
12677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12678   (eval $ac_compile) 2>conftest.er1
12679   ac_status=$?
12680   grep -v '^ *+' conftest.er1 >conftest.err
12681   rm -f conftest.er1
12682   cat conftest.err >&5
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); } &&
12685          { ac_try='test -z "$ac_c_werror_flag"
12686                          || test ! -s conftest.err'
12687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688   (eval $ac_try) 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); }; } &&
12692          { ac_try='test -s conftest.$ac_objext'
12693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694   (eval $ac_try) 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; }; then
12698   ba_cv_header_utime_h=yes
12699 else
12700   echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12702
12703 ba_cv_header_utime_h=no
12704 fi
12705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12706 fi
12707 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12708 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12709 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12710 #define HAVE_UTIME_H 1
12711 _ACEOF
12712
12713
12714 echo "$as_me:$LINENO: checking for socklen_t" >&5
12715 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12716 if test "${ba_cv_header_socklen_t+set}" = set; then
12717   echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719   cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h.  */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h.  */
12725
12726 #include <sys/types.h>
12727 #include <sys/socket.h>
12728 int
12729 main ()
12730 {
12731 socklen_t x
12732   ;
12733   return 0;
12734 }
12735 _ACEOF
12736 rm -f conftest.$ac_objext
12737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738   (eval $ac_compile) 2>conftest.er1
12739   ac_status=$?
12740   grep -v '^ *+' conftest.er1 >conftest.err
12741   rm -f conftest.er1
12742   cat conftest.err >&5
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); } &&
12745          { ac_try='test -z "$ac_c_werror_flag"
12746                          || test ! -s conftest.err'
12747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748   (eval $ac_try) 2>&5
12749   ac_status=$?
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); }; } &&
12752          { ac_try='test -s conftest.$ac_objext'
12753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754   (eval $ac_try) 2>&5
12755   ac_status=$?
12756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757   (exit $ac_status); }; }; then
12758   ba_cv_header_socklen_t=yes
12759 else
12760   echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12762
12763 ba_cv_header_socklen_t=no
12764 fi
12765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12766 fi
12767 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12768 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12769 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12770 #define HAVE_SOCKLEN_T 1
12771 _ACEOF
12772
12773
12774 echo "$as_me:$LINENO: checking for bigendian" >&5
12775 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12776 if test "${ba_cv_bigendian+set}" = set; then
12777   echo $ECHO_N "(cached) $ECHO_C" >&6
12778 else
12779   if test "$cross_compiling" = yes; then
12780   ba_cv_bigendian=no
12781 else
12782   cat >conftest.$ac_ext <<_ACEOF
12783 /* confdefs.h.  */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h.  */
12788 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12789 _ACEOF
12790 rm -f conftest$ac_exeext
12791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12792   (eval $ac_link) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797   (eval $ac_try) 2>&5
12798   ac_status=$?
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); }; }; then
12801   ba_cv_bigendian=yes
12802 else
12803   echo "$as_me: program exited with status $ac_status" >&5
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12806
12807 ( exit $ac_status )
12808 ba_cv_bigendian=no
12809 fi
12810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12811 fi
12812 fi
12813 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12814 echo "${ECHO_T}$ba_cv_bigendian" >&6
12815 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12816 #define HAVE_BIGENDIAN 1
12817 _ACEOF
12818
12819
12820
12821 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12822 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12823 if test "${ac_cv_c_const+set}" = set; then
12824   echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826   cat >conftest.$ac_ext <<_ACEOF
12827 /* confdefs.h.  */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h.  */
12832
12833 int
12834 main ()
12835 {
12836 /* FIXME: Include the comments suggested by Paul. */
12837 #ifndef __cplusplus
12838   /* Ultrix mips cc rejects this.  */
12839   typedef int charset[2];
12840   const charset x;
12841   /* SunOS 4.1.1 cc rejects this.  */
12842   char const *const *ccp;
12843   char **p;
12844   /* NEC SVR4.0.2 mips cc rejects this.  */
12845   struct point {int x, y;};
12846   static struct point const zero = {0,0};
12847   /* AIX XL C 1.02.0.0 rejects this.
12848      It does not let you subtract one const X* pointer from another in
12849      an arm of an if-expression whose if-part is not a constant
12850      expression */
12851   const char *g = "string";
12852   ccp = &g + (g ? g-g : 0);
12853   /* HPUX 7.0 cc rejects these. */
12854   ++ccp;
12855   p = (char**) ccp;
12856   ccp = (char const *const *) p;
12857   { /* SCO 3.2v4 cc rejects this.  */
12858     char *t;
12859     char const *s = 0 ? (char *) 0 : (char const *) 0;
12860
12861     *t++ = 0;
12862   }
12863   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12864     int x[] = {25, 17};
12865     const int *foo = &x[0];
12866     ++foo;
12867   }
12868   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12869     typedef const int *iptr;
12870     iptr p = 0;
12871     ++p;
12872   }
12873   { /* AIX XL C 1.02.0.0 rejects this saying
12874        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12875     struct s { int j; const int *ap[3]; };
12876     struct s *b; b->j = 5;
12877   }
12878   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12879     const int foo = 10;
12880   }
12881 #endif
12882
12883   ;
12884   return 0;
12885 }
12886 _ACEOF
12887 rm -f conftest.$ac_objext
12888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12889   (eval $ac_compile) 2>conftest.er1
12890   ac_status=$?
12891   grep -v '^ *+' conftest.er1 >conftest.err
12892   rm -f conftest.er1
12893   cat conftest.err >&5
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); } &&
12896          { ac_try='test -z "$ac_c_werror_flag"
12897                          || test ! -s conftest.err'
12898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899   (eval $ac_try) 2>&5
12900   ac_status=$?
12901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); }; } &&
12903          { ac_try='test -s conftest.$ac_objext'
12904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905   (eval $ac_try) 2>&5
12906   ac_status=$?
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); }; }; then
12909   ac_cv_c_const=yes
12910 else
12911   echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12913
12914 ac_cv_c_const=no
12915 fi
12916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12917 fi
12918 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12919 echo "${ECHO_T}$ac_cv_c_const" >&6
12920 if test $ac_cv_c_const = no; then
12921
12922 cat >>confdefs.h <<\_ACEOF
12923 #define const
12924 _ACEOF
12925
12926 fi
12927
12928
12929
12930 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12931 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12932 fstype=no
12933 # The order of these tests is important.
12934 cat >conftest.$ac_ext <<_ACEOF
12935 /* confdefs.h.  */
12936 _ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h.  */
12940 #include <sys/statvfs.h>
12941 #include <sys/fstyp.h>
12942 _ACEOF
12943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12945   ac_status=$?
12946   grep -v '^ *+' conftest.er1 >conftest.err
12947   rm -f conftest.er1
12948   cat conftest.err >&5
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); } >/dev/null; then
12951   if test -s conftest.err; then
12952     ac_cpp_err=$ac_c_preproc_warn_flag
12953     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12954   else
12955     ac_cpp_err=
12956   fi
12957 else
12958   ac_cpp_err=yes
12959 fi
12960 if test -z "$ac_cpp_err"; then
12961   cat >>confdefs.h <<\_ACEOF
12962 #define FSTYPE_STATVFS 1
12963 _ACEOF
12964  fstype=SVR4
12965 else
12966   echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12968
12969
12970 fi
12971 rm -f conftest.err conftest.$ac_ext
12972 if test $fstype = no; then
12973 cat >conftest.$ac_ext <<_ACEOF
12974 /* confdefs.h.  */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h.  */
12979 #include <sys/statfs.h>
12980 #include <sys/fstyp.h>
12981 _ACEOF
12982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12984   ac_status=$?
12985   grep -v '^ *+' conftest.er1 >conftest.err
12986   rm -f conftest.er1
12987   cat conftest.err >&5
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); } >/dev/null; then
12990   if test -s conftest.err; then
12991     ac_cpp_err=$ac_c_preproc_warn_flag
12992     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12993   else
12994     ac_cpp_err=
12995   fi
12996 else
12997   ac_cpp_err=yes
12998 fi
12999 if test -z "$ac_cpp_err"; then
13000   cat >>confdefs.h <<\_ACEOF
13001 #define FSTYPE_USG_STATFS 1
13002 _ACEOF
13003  fstype=SVR3
13004 else
13005   echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13007
13008
13009 fi
13010 rm -f conftest.err conftest.$ac_ext
13011 fi
13012 if test $fstype = no; then
13013 cat >conftest.$ac_ext <<_ACEOF
13014 /* confdefs.h.  */
13015 _ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h.  */
13019 #include <sys/statfs.h>
13020 #include <sys/vmount.h>
13021 _ACEOF
13022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13023   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13024   ac_status=$?
13025   grep -v '^ *+' conftest.er1 >conftest.err
13026   rm -f conftest.er1
13027   cat conftest.err >&5
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); } >/dev/null; then
13030   if test -s conftest.err; then
13031     ac_cpp_err=$ac_c_preproc_warn_flag
13032     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13033   else
13034     ac_cpp_err=
13035   fi
13036 else
13037   ac_cpp_err=yes
13038 fi
13039 if test -z "$ac_cpp_err"; then
13040   cat >>confdefs.h <<\_ACEOF
13041 #define FSTYPE_AIX_STATFS 1
13042 _ACEOF
13043  fstype=AIX
13044 else
13045   echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13047
13048
13049 fi
13050 rm -f conftest.err conftest.$ac_ext
13051 fi
13052 if test $fstype = no; then
13053 cat >conftest.$ac_ext <<_ACEOF
13054 /* confdefs.h.  */
13055 _ACEOF
13056 cat confdefs.h >>conftest.$ac_ext
13057 cat >>conftest.$ac_ext <<_ACEOF
13058 /* end confdefs.h.  */
13059 #include <mntent.h>
13060 _ACEOF
13061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13063   ac_status=$?
13064   grep -v '^ *+' conftest.er1 >conftest.err
13065   rm -f conftest.er1
13066   cat conftest.err >&5
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); } >/dev/null; then
13069   if test -s conftest.err; then
13070     ac_cpp_err=$ac_c_preproc_warn_flag
13071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13072   else
13073     ac_cpp_err=
13074   fi
13075 else
13076   ac_cpp_err=yes
13077 fi
13078 if test -z "$ac_cpp_err"; then
13079   cat >>confdefs.h <<\_ACEOF
13080 #define FSTYPE_MNTENT 1
13081 _ACEOF
13082  fstype=4.3BSD
13083 else
13084   echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13086
13087
13088 fi
13089 rm -f conftest.err conftest.$ac_ext
13090 fi
13091 if test $fstype = no; then
13092 cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h.  */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h.  */
13098 #include <sys/mount.h>
13099
13100 _ACEOF
13101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13102   $EGREP "f_type;" >/dev/null 2>&1; then
13103   cat >>confdefs.h <<\_ACEOF
13104 #define FSTYPE_STATFS 1
13105 _ACEOF
13106  fstype=4.4BSD/OSF1
13107 fi
13108 rm -f conftest*
13109
13110 fi
13111 if test $fstype = no; then
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h.  */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h.  */
13118 #include <sys/mount.h>
13119 #include <sys/fs_types.h>
13120 _ACEOF
13121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13123   ac_status=$?
13124   grep -v '^ *+' conftest.er1 >conftest.err
13125   rm -f conftest.er1
13126   cat conftest.err >&5
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); } >/dev/null; then
13129   if test -s conftest.err; then
13130     ac_cpp_err=$ac_c_preproc_warn_flag
13131     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13132   else
13133     ac_cpp_err=
13134   fi
13135 else
13136   ac_cpp_err=yes
13137 fi
13138 if test -z "$ac_cpp_err"; then
13139   cat >>confdefs.h <<\_ACEOF
13140 #define FSTYPE_GETMNT 1
13141 _ACEOF
13142  fstype=Ultrix
13143 else
13144   echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13146
13147
13148 fi
13149 rm -f conftest.err conftest.$ac_ext
13150 fi
13151 echo "$as_me:$LINENO: result: $fstype" >&5
13152 echo "${ECHO_T}$fstype" >&6
13153
13154 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13155 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13156 if test "${ac_cv_type_signal+set}" = set; then
13157   echo $ECHO_N "(cached) $ECHO_C" >&6
13158 else
13159   cat >conftest.$ac_ext <<_ACEOF
13160 /* confdefs.h.  */
13161 _ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h.  */
13165 #include <sys/types.h>
13166 #include <signal.h>
13167 #ifdef signal
13168 # undef signal
13169 #endif
13170 #ifdef __cplusplus
13171 extern "C" void (*signal (int, void (*)(int)))(int);
13172 #else
13173 void (*signal ()) ();
13174 #endif
13175
13176 int
13177 main ()
13178 {
13179 int i;
13180   ;
13181   return 0;
13182 }
13183 _ACEOF
13184 rm -f conftest.$ac_objext
13185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13186   (eval $ac_compile) 2>conftest.er1
13187   ac_status=$?
13188   grep -v '^ *+' conftest.er1 >conftest.err
13189   rm -f conftest.er1
13190   cat conftest.err >&5
13191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192   (exit $ac_status); } &&
13193          { ac_try='test -z "$ac_c_werror_flag"
13194                          || test ! -s conftest.err'
13195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196   (eval $ac_try) 2>&5
13197   ac_status=$?
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); }; } &&
13200          { ac_try='test -s conftest.$ac_objext'
13201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202   (eval $ac_try) 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); }; }; then
13206   ac_cv_type_signal=void
13207 else
13208   echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13210
13211 ac_cv_type_signal=int
13212 fi
13213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13214 fi
13215 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13216 echo "${ECHO_T}$ac_cv_type_signal" >&6
13217
13218 cat >>confdefs.h <<_ACEOF
13219 #define RETSIGTYPE $ac_cv_type_signal
13220 _ACEOF
13221
13222
13223
13224 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13225 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13226 if test "${bash_cv_signal_vintage+set}" = set; then
13227   echo $ECHO_N "(cached) $ECHO_C" >&6
13228 else
13229
13230   cat >conftest.$ac_ext <<_ACEOF
13231 /* confdefs.h.  */
13232 _ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h.  */
13236 #include <signal.h>
13237 int
13238 main ()
13239 {
13240
13241     sigset_t ss;
13242     struct sigaction sa;
13243     sigemptyset(&ss); sigsuspend(&ss);
13244     sigaction(SIGINT, &sa, (struct sigaction *) 0);
13245     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13246
13247   ;
13248   return 0;
13249 }
13250 _ACEOF
13251 rm -f conftest.$ac_objext conftest$ac_exeext
13252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13253   (eval $ac_link) 2>conftest.er1
13254   ac_status=$?
13255   grep -v '^ *+' conftest.er1 >conftest.err
13256   rm -f conftest.er1
13257   cat conftest.err >&5
13258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259   (exit $ac_status); } &&
13260          { ac_try='test -z "$ac_c_werror_flag"
13261                          || test ! -s conftest.err'
13262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263   (eval $ac_try) 2>&5
13264   ac_status=$?
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); }; } &&
13267          { ac_try='test -s conftest$ac_exeext'
13268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269   (eval $ac_try) 2>&5
13270   ac_status=$?
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); }; }; then
13273   bash_cv_signal_vintage=posix
13274 else
13275   echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13277
13278
13279     cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h.  */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h.  */
13285 #include <signal.h>
13286 int
13287 main ()
13288 {
13289
13290         int mask = sigmask(SIGINT);
13291         sigsetmask(mask); sigblock(mask); sigpause(mask);
13292
13293   ;
13294   return 0;
13295 }
13296 _ACEOF
13297 rm -f conftest.$ac_objext conftest$ac_exeext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13299   (eval $ac_link) 2>conftest.er1
13300   ac_status=$?
13301   grep -v '^ *+' conftest.er1 >conftest.err
13302   rm -f conftest.er1
13303   cat conftest.err >&5
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); } &&
13306          { ac_try='test -z "$ac_c_werror_flag"
13307                          || test ! -s conftest.err'
13308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309   (eval $ac_try) 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); }; } &&
13313          { ac_try='test -s conftest$ac_exeext'
13314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315   (eval $ac_try) 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); }; }; then
13319   bash_cv_signal_vintage=4.2bsd
13320 else
13321   echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13323
13324
13325       cat >conftest.$ac_ext <<_ACEOF
13326 /* confdefs.h.  */
13327 _ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h.  */
13331
13332         #include <signal.h>
13333         RETSIGTYPE foo() { }
13334 int
13335 main ()
13336 {
13337
13338                 int mask = sigmask(SIGINT);
13339                 sigset(SIGINT, foo); sigrelse(SIGINT);
13340                 sighold(SIGINT); sigpause(SIGINT);
13341
13342   ;
13343   return 0;
13344 }
13345 _ACEOF
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13348   (eval $ac_link) 2>conftest.er1
13349   ac_status=$?
13350   grep -v '^ *+' conftest.er1 >conftest.err
13351   rm -f conftest.er1
13352   cat conftest.err >&5
13353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354   (exit $ac_status); } &&
13355          { ac_try='test -z "$ac_c_werror_flag"
13356                          || test ! -s conftest.err'
13357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358   (eval $ac_try) 2>&5
13359   ac_status=$?
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); }; } &&
13362          { ac_try='test -s conftest$ac_exeext'
13363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364   (eval $ac_try) 2>&5
13365   ac_status=$?
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); }; }; then
13368   bash_cv_signal_vintage=svr3
13369 else
13370   echo "$as_me: failed program was:" >&5
13371 sed 's/^/| /' conftest.$ac_ext >&5
13372
13373 bash_cv_signal_vintage=v7
13374
13375 fi
13376 rm -f conftest.err conftest.$ac_objext \
13377       conftest$ac_exeext conftest.$ac_ext
13378
13379 fi
13380 rm -f conftest.err conftest.$ac_objext \
13381       conftest$ac_exeext conftest.$ac_ext
13382
13383 fi
13384 rm -f conftest.err conftest.$ac_objext \
13385       conftest$ac_exeext conftest.$ac_ext
13386
13387 fi
13388
13389 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13390 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13391 if test "$bash_cv_signal_vintage" = posix; then
13392 cat >>confdefs.h <<\_ACEOF
13393 #define HAVE_POSIX_SIGNALS 1
13394 _ACEOF
13395
13396 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13397 cat >>confdefs.h <<\_ACEOF
13398 #define HAVE_BSD_SIGNALS 1
13399 _ACEOF
13400
13401 elif test "$bash_cv_signal_vintage" = svr3; then
13402 cat >>confdefs.h <<\_ACEOF
13403 #define HAVE_USG_SIGHOLD 1
13404 _ACEOF
13405
13406 fi
13407
13408 echo "$as_me:$LINENO: checking for mode_t" >&5
13409 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13410 if test "${ac_cv_type_mode_t+set}" = set; then
13411   echo $ECHO_N "(cached) $ECHO_C" >&6
13412 else
13413   cat >conftest.$ac_ext <<_ACEOF
13414 /* confdefs.h.  */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h.  */
13419 $ac_includes_default
13420 int
13421 main ()
13422 {
13423 if ((mode_t *) 0)
13424   return 0;
13425 if (sizeof (mode_t))
13426   return 0;
13427   ;
13428   return 0;
13429 }
13430 _ACEOF
13431 rm -f conftest.$ac_objext
13432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13433   (eval $ac_compile) 2>conftest.er1
13434   ac_status=$?
13435   grep -v '^ *+' conftest.er1 >conftest.err
13436   rm -f conftest.er1
13437   cat conftest.err >&5
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); } &&
13440          { ac_try='test -z "$ac_c_werror_flag"
13441                          || test ! -s conftest.err'
13442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443   (eval $ac_try) 2>&5
13444   ac_status=$?
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); }; } &&
13447          { ac_try='test -s conftest.$ac_objext'
13448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449   (eval $ac_try) 2>&5
13450   ac_status=$?
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); }; }; then
13453   ac_cv_type_mode_t=yes
13454 else
13455   echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13457
13458 ac_cv_type_mode_t=no
13459 fi
13460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13461 fi
13462 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13463 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13464 if test $ac_cv_type_mode_t = yes; then
13465   :
13466 else
13467
13468 cat >>confdefs.h <<_ACEOF
13469 #define mode_t int
13470 _ACEOF
13471
13472 fi
13473
13474 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13475 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13476 if test "${ac_cv_type_uid_t+set}" = set; then
13477   echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479   cat >conftest.$ac_ext <<_ACEOF
13480 /* confdefs.h.  */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h.  */
13485 #include <sys/types.h>
13486
13487 _ACEOF
13488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13489   $EGREP "uid_t" >/dev/null 2>&1; then
13490   ac_cv_type_uid_t=yes
13491 else
13492   ac_cv_type_uid_t=no
13493 fi
13494 rm -f conftest*
13495
13496 fi
13497 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13498 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13499 if test $ac_cv_type_uid_t = no; then
13500
13501 cat >>confdefs.h <<\_ACEOF
13502 #define uid_t int
13503 _ACEOF
13504
13505
13506 cat >>confdefs.h <<\_ACEOF
13507 #define gid_t int
13508 _ACEOF
13509
13510 fi
13511
13512 echo "$as_me:$LINENO: checking for size_t" >&5
13513 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13514 if test "${ac_cv_type_size_t+set}" = set; then
13515   echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517   cat >conftest.$ac_ext <<_ACEOF
13518 /* confdefs.h.  */
13519 _ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h.  */
13523 $ac_includes_default
13524 int
13525 main ()
13526 {
13527 if ((size_t *) 0)
13528   return 0;
13529 if (sizeof (size_t))
13530   return 0;
13531   ;
13532   return 0;
13533 }
13534 _ACEOF
13535 rm -f conftest.$ac_objext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537   (eval $ac_compile) 2>conftest.er1
13538   ac_status=$?
13539   grep -v '^ *+' conftest.er1 >conftest.err
13540   rm -f conftest.er1
13541   cat conftest.err >&5
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); } &&
13544          { ac_try='test -z "$ac_c_werror_flag"
13545                          || test ! -s conftest.err'
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); }; } &&
13551          { ac_try='test -s conftest.$ac_objext'
13552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553   (eval $ac_try) 2>&5
13554   ac_status=$?
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); }; }; then
13557   ac_cv_type_size_t=yes
13558 else
13559   echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13561
13562 ac_cv_type_size_t=no
13563 fi
13564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13565 fi
13566 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13567 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13568 if test $ac_cv_type_size_t = yes; then
13569   :
13570 else
13571
13572 cat >>confdefs.h <<_ACEOF
13573 #define size_t unsigned
13574 _ACEOF
13575
13576 fi
13577
13578 echo "$as_me:$LINENO: checking for pid_t" >&5
13579 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13580 if test "${ac_cv_type_pid_t+set}" = set; then
13581   echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583   cat >conftest.$ac_ext <<_ACEOF
13584 /* confdefs.h.  */
13585 _ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h.  */
13589 $ac_includes_default
13590 int
13591 main ()
13592 {
13593 if ((pid_t *) 0)
13594   return 0;
13595 if (sizeof (pid_t))
13596   return 0;
13597   ;
13598   return 0;
13599 }
13600 _ACEOF
13601 rm -f conftest.$ac_objext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13603   (eval $ac_compile) 2>conftest.er1
13604   ac_status=$?
13605   grep -v '^ *+' conftest.er1 >conftest.err
13606   rm -f conftest.er1
13607   cat conftest.err >&5
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); } &&
13610          { ac_try='test -z "$ac_c_werror_flag"
13611                          || test ! -s conftest.err'
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); }; } &&
13617          { ac_try='test -s conftest.$ac_objext'
13618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619   (eval $ac_try) 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; }; then
13623   ac_cv_type_pid_t=yes
13624 else
13625   echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628 ac_cv_type_pid_t=no
13629 fi
13630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13631 fi
13632 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13633 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13634 if test $ac_cv_type_pid_t = yes; then
13635   :
13636 else
13637
13638 cat >>confdefs.h <<_ACEOF
13639 #define pid_t int
13640 _ACEOF
13641
13642 fi
13643
13644 echo "$as_me:$LINENO: checking for off_t" >&5
13645 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13646 if test "${ac_cv_type_off_t+set}" = set; then
13647   echo $ECHO_N "(cached) $ECHO_C" >&6
13648 else
13649   cat >conftest.$ac_ext <<_ACEOF
13650 /* confdefs.h.  */
13651 _ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h.  */
13655 $ac_includes_default
13656 int
13657 main ()
13658 {
13659 if ((off_t *) 0)
13660   return 0;
13661 if (sizeof (off_t))
13662   return 0;
13663   ;
13664   return 0;
13665 }
13666 _ACEOF
13667 rm -f conftest.$ac_objext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13669   (eval $ac_compile) 2>conftest.er1
13670   ac_status=$?
13671   grep -v '^ *+' conftest.er1 >conftest.err
13672   rm -f conftest.er1
13673   cat conftest.err >&5
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); } &&
13676          { ac_try='test -z "$ac_c_werror_flag"
13677                          || test ! -s conftest.err'
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); }; } &&
13683          { ac_try='test -s conftest.$ac_objext'
13684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685   (eval $ac_try) 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; }; then
13689   ac_cv_type_off_t=yes
13690 else
13691   echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13693
13694 ac_cv_type_off_t=no
13695 fi
13696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13697 fi
13698 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13699 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13700 if test $ac_cv_type_off_t = yes; then
13701   :
13702 else
13703
13704 cat >>confdefs.h <<_ACEOF
13705 #define off_t long
13706 _ACEOF
13707
13708 fi
13709
13710 echo "$as_me:$LINENO: checking for ino_t" >&5
13711 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13712 if test "${ac_cv_type_ino_t+set}" = set; then
13713   echo $ECHO_N "(cached) $ECHO_C" >&6
13714 else
13715   cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h.  */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h.  */
13721 $ac_includes_default
13722 int
13723 main ()
13724 {
13725 if ((ino_t *) 0)
13726   return 0;
13727 if (sizeof (ino_t))
13728   return 0;
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 rm -f conftest.$ac_objext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735   (eval $ac_compile) 2>conftest.er1
13736   ac_status=$?
13737   grep -v '^ *+' conftest.er1 >conftest.err
13738   rm -f conftest.er1
13739   cat conftest.err >&5
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); } &&
13742          { ac_try='test -z "$ac_c_werror_flag"
13743                          || test ! -s conftest.err'
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); }; } &&
13749          { ac_try='test -s conftest.$ac_objext'
13750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751   (eval $ac_try) 2>&5
13752   ac_status=$?
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); }; }; then
13755   ac_cv_type_ino_t=yes
13756 else
13757   echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13759
13760 ac_cv_type_ino_t=no
13761 fi
13762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13763 fi
13764 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13765 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13766 if test $ac_cv_type_ino_t = yes; then
13767   :
13768 else
13769
13770 cat >>confdefs.h <<_ACEOF
13771 #define ino_t unsigned long
13772 _ACEOF
13773
13774 fi
13775
13776 echo "$as_me:$LINENO: checking for dev_t" >&5
13777 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13778 if test "${ac_cv_type_dev_t+set}" = set; then
13779   echo $ECHO_N "(cached) $ECHO_C" >&6
13780 else
13781   cat >conftest.$ac_ext <<_ACEOF
13782 /* confdefs.h.  */
13783 _ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h.  */
13787 $ac_includes_default
13788 int
13789 main ()
13790 {
13791 if ((dev_t *) 0)
13792   return 0;
13793 if (sizeof (dev_t))
13794   return 0;
13795   ;
13796   return 0;
13797 }
13798 _ACEOF
13799 rm -f conftest.$ac_objext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13801   (eval $ac_compile) 2>conftest.er1
13802   ac_status=$?
13803   grep -v '^ *+' conftest.er1 >conftest.err
13804   rm -f conftest.er1
13805   cat conftest.err >&5
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); } &&
13808          { ac_try='test -z "$ac_c_werror_flag"
13809                          || test ! -s conftest.err'
13810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811   (eval $ac_try) 2>&5
13812   ac_status=$?
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); }; } &&
13815          { ac_try='test -s conftest.$ac_objext'
13816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817   (eval $ac_try) 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); }; }; then
13821   ac_cv_type_dev_t=yes
13822 else
13823   echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13825
13826 ac_cv_type_dev_t=no
13827 fi
13828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13829 fi
13830 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13831 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13832 if test $ac_cv_type_dev_t = yes; then
13833   :
13834 else
13835
13836 cat >>confdefs.h <<_ACEOF
13837 #define dev_t unsigned long
13838 _ACEOF
13839
13840 fi
13841
13842 echo "$as_me:$LINENO: checking for daddr_t" >&5
13843 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13844 if test "${ac_cv_type_daddr_t+set}" = set; then
13845   echo $ECHO_N "(cached) $ECHO_C" >&6
13846 else
13847   cat >conftest.$ac_ext <<_ACEOF
13848 /* confdefs.h.  */
13849 _ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h.  */
13853 $ac_includes_default
13854 int
13855 main ()
13856 {
13857 if ((daddr_t *) 0)
13858   return 0;
13859 if (sizeof (daddr_t))
13860   return 0;
13861   ;
13862   return 0;
13863 }
13864 _ACEOF
13865 rm -f conftest.$ac_objext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13867   (eval $ac_compile) 2>conftest.er1
13868   ac_status=$?
13869   grep -v '^ *+' conftest.er1 >conftest.err
13870   rm -f conftest.er1
13871   cat conftest.err >&5
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); } &&
13874          { ac_try='test -z "$ac_c_werror_flag"
13875                          || test ! -s conftest.err'
13876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877   (eval $ac_try) 2>&5
13878   ac_status=$?
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); }; } &&
13881          { ac_try='test -s conftest.$ac_objext'
13882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883   (eval $ac_try) 2>&5
13884   ac_status=$?
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); }; }; then
13887   ac_cv_type_daddr_t=yes
13888 else
13889   echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13891
13892 ac_cv_type_daddr_t=no
13893 fi
13894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13895 fi
13896 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13897 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13898 if test $ac_cv_type_daddr_t = yes; then
13899   :
13900 else
13901
13902 cat >>confdefs.h <<_ACEOF
13903 #define daddr_t long
13904 _ACEOF
13905
13906 fi
13907
13908 echo "$as_me:$LINENO: checking for major_t" >&5
13909 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13910 if test "${ac_cv_type_major_t+set}" = set; then
13911   echo $ECHO_N "(cached) $ECHO_C" >&6
13912 else
13913   cat >conftest.$ac_ext <<_ACEOF
13914 /* confdefs.h.  */
13915 _ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h.  */
13919 $ac_includes_default
13920 int
13921 main ()
13922 {
13923 if ((major_t *) 0)
13924   return 0;
13925 if (sizeof (major_t))
13926   return 0;
13927   ;
13928   return 0;
13929 }
13930 _ACEOF
13931 rm -f conftest.$ac_objext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933   (eval $ac_compile) 2>conftest.er1
13934   ac_status=$?
13935   grep -v '^ *+' conftest.er1 >conftest.err
13936   rm -f conftest.er1
13937   cat conftest.err >&5
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); } &&
13940          { ac_try='test -z "$ac_c_werror_flag"
13941                          || test ! -s conftest.err'
13942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943   (eval $ac_try) 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); }; } &&
13947          { ac_try='test -s conftest.$ac_objext'
13948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949   (eval $ac_try) 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); }; }; then
13953   ac_cv_type_major_t=yes
13954 else
13955   echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13957
13958 ac_cv_type_major_t=no
13959 fi
13960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13961 fi
13962 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13963 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13964 if test $ac_cv_type_major_t = yes; then
13965   :
13966 else
13967
13968 cat >>confdefs.h <<_ACEOF
13969 #define major_t int
13970 _ACEOF
13971
13972 fi
13973
13974 echo "$as_me:$LINENO: checking for minor_t" >&5
13975 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13976 if test "${ac_cv_type_minor_t+set}" = set; then
13977   echo $ECHO_N "(cached) $ECHO_C" >&6
13978 else
13979   cat >conftest.$ac_ext <<_ACEOF
13980 /* confdefs.h.  */
13981 _ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h.  */
13985 $ac_includes_default
13986 int
13987 main ()
13988 {
13989 if ((minor_t *) 0)
13990   return 0;
13991 if (sizeof (minor_t))
13992   return 0;
13993   ;
13994   return 0;
13995 }
13996 _ACEOF
13997 rm -f conftest.$ac_objext
13998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13999   (eval $ac_compile) 2>conftest.er1
14000   ac_status=$?
14001   grep -v '^ *+' conftest.er1 >conftest.err
14002   rm -f conftest.er1
14003   cat conftest.err >&5
14004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); } &&
14006          { ac_try='test -z "$ac_c_werror_flag"
14007                          || test ! -s conftest.err'
14008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009   (eval $ac_try) 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); }; } &&
14013          { ac_try='test -s conftest.$ac_objext'
14014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015   (eval $ac_try) 2>&5
14016   ac_status=$?
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); }; }; then
14019   ac_cv_type_minor_t=yes
14020 else
14021   echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14023
14024 ac_cv_type_minor_t=no
14025 fi
14026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14027 fi
14028 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14029 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14030 if test $ac_cv_type_minor_t = yes; then
14031   :
14032 else
14033
14034 cat >>confdefs.h <<_ACEOF
14035 #define minor_t int
14036 _ACEOF
14037
14038 fi
14039
14040 echo "$as_me:$LINENO: checking for ssize_t" >&5
14041 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14042 if test "${ac_cv_type_ssize_t+set}" = set; then
14043   echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045   cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h.  */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h.  */
14051 $ac_includes_default
14052 int
14053 main ()
14054 {
14055 if ((ssize_t *) 0)
14056   return 0;
14057 if (sizeof (ssize_t))
14058   return 0;
14059   ;
14060   return 0;
14061 }
14062 _ACEOF
14063 rm -f conftest.$ac_objext
14064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14065   (eval $ac_compile) 2>conftest.er1
14066   ac_status=$?
14067   grep -v '^ *+' conftest.er1 >conftest.err
14068   rm -f conftest.er1
14069   cat conftest.err >&5
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); } &&
14072          { ac_try='test -z "$ac_c_werror_flag"
14073                          || test ! -s conftest.err'
14074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14075   (eval $ac_try) 2>&5
14076   ac_status=$?
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); }; } &&
14079          { ac_try='test -s conftest.$ac_objext'
14080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081   (eval $ac_try) 2>&5
14082   ac_status=$?
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); }; }; then
14085   ac_cv_type_ssize_t=yes
14086 else
14087   echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14089
14090 ac_cv_type_ssize_t=no
14091 fi
14092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14093 fi
14094 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14095 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14096 if test $ac_cv_type_ssize_t = yes; then
14097   :
14098 else
14099
14100 cat >>confdefs.h <<_ACEOF
14101 #define ssize_t int
14102 _ACEOF
14103
14104 fi
14105
14106 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14107 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14108 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14109   echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111   cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h.  */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h.  */
14117 $ac_includes_default
14118 int
14119 main ()
14120 {
14121 static struct stat ac_aggr;
14122 if (ac_aggr.st_blocks)
14123 return 0;
14124   ;
14125   return 0;
14126 }
14127 _ACEOF
14128 rm -f conftest.$ac_objext
14129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14130   (eval $ac_compile) 2>conftest.er1
14131   ac_status=$?
14132   grep -v '^ *+' conftest.er1 >conftest.err
14133   rm -f conftest.er1
14134   cat conftest.err >&5
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); } &&
14137          { ac_try='test -z "$ac_c_werror_flag"
14138                          || test ! -s conftest.err'
14139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140   (eval $ac_try) 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); }; } &&
14144          { ac_try='test -s conftest.$ac_objext'
14145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146   (eval $ac_try) 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); }; }; then
14150   ac_cv_member_struct_stat_st_blocks=yes
14151 else
14152   echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14154
14155 cat >conftest.$ac_ext <<_ACEOF
14156 /* confdefs.h.  */
14157 _ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h.  */
14161 $ac_includes_default
14162 int
14163 main ()
14164 {
14165 static struct stat ac_aggr;
14166 if (sizeof ac_aggr.st_blocks)
14167 return 0;
14168   ;
14169   return 0;
14170 }
14171 _ACEOF
14172 rm -f conftest.$ac_objext
14173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14174   (eval $ac_compile) 2>conftest.er1
14175   ac_status=$?
14176   grep -v '^ *+' conftest.er1 >conftest.err
14177   rm -f conftest.er1
14178   cat conftest.err >&5
14179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); } &&
14181          { ac_try='test -z "$ac_c_werror_flag"
14182                          || test ! -s conftest.err'
14183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184   (eval $ac_try) 2>&5
14185   ac_status=$?
14186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); }; } &&
14188          { ac_try='test -s conftest.$ac_objext'
14189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190   (eval $ac_try) 2>&5
14191   ac_status=$?
14192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193   (exit $ac_status); }; }; then
14194   ac_cv_member_struct_stat_st_blocks=yes
14195 else
14196   echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14198
14199 ac_cv_member_struct_stat_st_blocks=no
14200 fi
14201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14202 fi
14203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14204 fi
14205 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14206 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14207 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14208
14209 cat >>confdefs.h <<_ACEOF
14210 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14211 _ACEOF
14212
14213
14214 cat >>confdefs.h <<\_ACEOF
14215 #define HAVE_ST_BLOCKS 1
14216 _ACEOF
14217
14218 else
14219   case $LIBOBJS in
14220     "fileblocks.$ac_objext"   | \
14221   *" fileblocks.$ac_objext"   | \
14222     "fileblocks.$ac_objext "* | \
14223   *" fileblocks.$ac_objext "* ) ;;
14224   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14225 esac
14226
14227 fi
14228
14229
14230
14231 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14232 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14233 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14234   echo $ECHO_N "(cached) $ECHO_C" >&6
14235 else
14236   cat >conftest.$ac_ext <<_ACEOF
14237 /* confdefs.h.  */
14238 _ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h.  */
14242 $ac_includes_default
14243 int
14244 main ()
14245 {
14246 static struct stat ac_aggr;
14247 if (ac_aggr.st_rdev)
14248 return 0;
14249   ;
14250   return 0;
14251 }
14252 _ACEOF
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255   (eval $ac_compile) 2>conftest.er1
14256   ac_status=$?
14257   grep -v '^ *+' conftest.er1 >conftest.err
14258   rm -f conftest.er1
14259   cat conftest.err >&5
14260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261   (exit $ac_status); } &&
14262          { ac_try='test -z "$ac_c_werror_flag"
14263                          || test ! -s conftest.err'
14264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265   (eval $ac_try) 2>&5
14266   ac_status=$?
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); }; } &&
14269          { ac_try='test -s conftest.$ac_objext'
14270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271   (eval $ac_try) 2>&5
14272   ac_status=$?
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; }; then
14275   ac_cv_member_struct_stat_st_rdev=yes
14276 else
14277   echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14279
14280 cat >conftest.$ac_ext <<_ACEOF
14281 /* confdefs.h.  */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h.  */
14286 $ac_includes_default
14287 int
14288 main ()
14289 {
14290 static struct stat ac_aggr;
14291 if (sizeof ac_aggr.st_rdev)
14292 return 0;
14293   ;
14294   return 0;
14295 }
14296 _ACEOF
14297 rm -f conftest.$ac_objext
14298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14299   (eval $ac_compile) 2>conftest.er1
14300   ac_status=$?
14301   grep -v '^ *+' conftest.er1 >conftest.err
14302   rm -f conftest.er1
14303   cat conftest.err >&5
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); } &&
14306          { ac_try='test -z "$ac_c_werror_flag"
14307                          || test ! -s conftest.err'
14308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309   (eval $ac_try) 2>&5
14310   ac_status=$?
14311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); }; } &&
14313          { ac_try='test -s conftest.$ac_objext'
14314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315   (eval $ac_try) 2>&5
14316   ac_status=$?
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); }; }; then
14319   ac_cv_member_struct_stat_st_rdev=yes
14320 else
14321   echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14323
14324 ac_cv_member_struct_stat_st_rdev=no
14325 fi
14326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14327 fi
14328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14329 fi
14330 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14331 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14332 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14333
14334 cat >>confdefs.h <<_ACEOF
14335 #define HAVE_STRUCT_STAT_ST_RDEV 1
14336 _ACEOF
14337
14338
14339 cat >>confdefs.h <<\_ACEOF
14340 #define HAVE_ST_RDEV 1
14341 _ACEOF
14342
14343 fi
14344
14345
14346 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14347 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14348 if test "${ac_cv_struct_tm+set}" = set; then
14349   echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351   cat >conftest.$ac_ext <<_ACEOF
14352 /* confdefs.h.  */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h.  */
14357 #include <sys/types.h>
14358 #include <time.h>
14359
14360 int
14361 main ()
14362 {
14363 struct tm *tp; tp->tm_sec;
14364   ;
14365   return 0;
14366 }
14367 _ACEOF
14368 rm -f conftest.$ac_objext
14369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14370   (eval $ac_compile) 2>conftest.er1
14371   ac_status=$?
14372   grep -v '^ *+' conftest.er1 >conftest.err
14373   rm -f conftest.er1
14374   cat conftest.err >&5
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); } &&
14377          { ac_try='test -z "$ac_c_werror_flag"
14378                          || test ! -s conftest.err'
14379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380   (eval $ac_try) 2>&5
14381   ac_status=$?
14382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383   (exit $ac_status); }; } &&
14384          { ac_try='test -s conftest.$ac_objext'
14385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386   (eval $ac_try) 2>&5
14387   ac_status=$?
14388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389   (exit $ac_status); }; }; then
14390   ac_cv_struct_tm=time.h
14391 else
14392   echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14394
14395 ac_cv_struct_tm=sys/time.h
14396 fi
14397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14398 fi
14399 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14400 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14401 if test $ac_cv_struct_tm = sys/time.h; then
14402
14403 cat >>confdefs.h <<\_ACEOF
14404 #define TM_IN_SYS_TIME 1
14405 _ACEOF
14406
14407 fi
14408
14409 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14410 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14411 if test "${ac_cv_c_const+set}" = set; then
14412   echo $ECHO_N "(cached) $ECHO_C" >&6
14413 else
14414   cat >conftest.$ac_ext <<_ACEOF
14415 /* confdefs.h.  */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h.  */
14420
14421 int
14422 main ()
14423 {
14424 /* FIXME: Include the comments suggested by Paul. */
14425 #ifndef __cplusplus
14426   /* Ultrix mips cc rejects this.  */
14427   typedef int charset[2];
14428   const charset x;
14429   /* SunOS 4.1.1 cc rejects this.  */
14430   char const *const *ccp;
14431   char **p;
14432   /* NEC SVR4.0.2 mips cc rejects this.  */
14433   struct point {int x, y;};
14434   static struct point const zero = {0,0};
14435   /* AIX XL C 1.02.0.0 rejects this.
14436      It does not let you subtract one const X* pointer from another in
14437      an arm of an if-expression whose if-part is not a constant
14438      expression */
14439   const char *g = "string";
14440   ccp = &g + (g ? g-g : 0);
14441   /* HPUX 7.0 cc rejects these. */
14442   ++ccp;
14443   p = (char**) ccp;
14444   ccp = (char const *const *) p;
14445   { /* SCO 3.2v4 cc rejects this.  */
14446     char *t;
14447     char const *s = 0 ? (char *) 0 : (char const *) 0;
14448
14449     *t++ = 0;
14450   }
14451   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14452     int x[] = {25, 17};
14453     const int *foo = &x[0];
14454     ++foo;
14455   }
14456   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14457     typedef const int *iptr;
14458     iptr p = 0;
14459     ++p;
14460   }
14461   { /* AIX XL C 1.02.0.0 rejects this saying
14462        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14463     struct s { int j; const int *ap[3]; };
14464     struct s *b; b->j = 5;
14465   }
14466   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14467     const int foo = 10;
14468   }
14469 #endif
14470
14471   ;
14472   return 0;
14473 }
14474 _ACEOF
14475 rm -f conftest.$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477   (eval $ac_compile) 2>conftest.er1
14478   ac_status=$?
14479   grep -v '^ *+' conftest.er1 >conftest.err
14480   rm -f conftest.er1
14481   cat conftest.err >&5
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); } &&
14484          { ac_try='test -z "$ac_c_werror_flag"
14485                          || test ! -s conftest.err'
14486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487   (eval $ac_try) 2>&5
14488   ac_status=$?
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); }; } &&
14491          { ac_try='test -s conftest.$ac_objext'
14492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493   (eval $ac_try) 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; }; then
14497   ac_cv_c_const=yes
14498 else
14499   echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 ac_cv_c_const=no
14503 fi
14504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14505 fi
14506 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14507 echo "${ECHO_T}$ac_cv_c_const" >&6
14508 if test $ac_cv_c_const = no; then
14509
14510 cat >>confdefs.h <<\_ACEOF
14511 #define const
14512 _ACEOF
14513
14514 fi
14515
14516
14517
14518 echo "$as_me:$LINENO: checking for char" >&5
14519 echo $ECHO_N "checking for char... $ECHO_C" >&6
14520 if test "${ac_cv_type_char+set}" = set; then
14521   echo $ECHO_N "(cached) $ECHO_C" >&6
14522 else
14523   cat >conftest.$ac_ext <<_ACEOF
14524 /* confdefs.h.  */
14525 _ACEOF
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h.  */
14529 $ac_includes_default
14530 int
14531 main ()
14532 {
14533 if ((char *) 0)
14534   return 0;
14535 if (sizeof (char))
14536   return 0;
14537   ;
14538   return 0;
14539 }
14540 _ACEOF
14541 rm -f conftest.$ac_objext
14542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14543   (eval $ac_compile) 2>conftest.er1
14544   ac_status=$?
14545   grep -v '^ *+' conftest.er1 >conftest.err
14546   rm -f conftest.er1
14547   cat conftest.err >&5
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); } &&
14550          { ac_try='test -z "$ac_c_werror_flag"
14551                          || test ! -s conftest.err'
14552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553   (eval $ac_try) 2>&5
14554   ac_status=$?
14555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556   (exit $ac_status); }; } &&
14557          { ac_try='test -s conftest.$ac_objext'
14558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559   (eval $ac_try) 2>&5
14560   ac_status=$?
14561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); }; }; then
14563   ac_cv_type_char=yes
14564 else
14565   echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14567
14568 ac_cv_type_char=no
14569 fi
14570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14571 fi
14572 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14573 echo "${ECHO_T}$ac_cv_type_char" >&6
14574
14575 echo "$as_me:$LINENO: checking size of char" >&5
14576 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14577 if test "${ac_cv_sizeof_char+set}" = set; then
14578   echo $ECHO_N "(cached) $ECHO_C" >&6
14579 else
14580   if test "$ac_cv_type_char" = yes; then
14581   # The cast to unsigned long works around a bug in the HP C Compiler
14582   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14583   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14584   # This bug is HP SR number 8606223364.
14585   if test "$cross_compiling" = yes; then
14586   # Depending upon the size, compute the lo and hi bounds.
14587 cat >conftest.$ac_ext <<_ACEOF
14588 /* confdefs.h.  */
14589 _ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h.  */
14593 $ac_includes_default
14594 int
14595 main ()
14596 {
14597 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14598 test_array [0] = 0
14599
14600   ;
14601   return 0;
14602 }
14603 _ACEOF
14604 rm -f conftest.$ac_objext
14605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14606   (eval $ac_compile) 2>conftest.er1
14607   ac_status=$?
14608   grep -v '^ *+' conftest.er1 >conftest.err
14609   rm -f conftest.er1
14610   cat conftest.err >&5
14611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612   (exit $ac_status); } &&
14613          { ac_try='test -z "$ac_c_werror_flag"
14614                          || test ! -s conftest.err'
14615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616   (eval $ac_try) 2>&5
14617   ac_status=$?
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); }; } &&
14620          { ac_try='test -s conftest.$ac_objext'
14621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622   (eval $ac_try) 2>&5
14623   ac_status=$?
14624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); }; }; then
14626   ac_lo=0 ac_mid=0
14627   while :; do
14628     cat >conftest.$ac_ext <<_ACEOF
14629 /* confdefs.h.  */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h.  */
14634 $ac_includes_default
14635 int
14636 main ()
14637 {
14638 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14639 test_array [0] = 0
14640
14641   ;
14642   return 0;
14643 }
14644 _ACEOF
14645 rm -f conftest.$ac_objext
14646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14647   (eval $ac_compile) 2>conftest.er1
14648   ac_status=$?
14649   grep -v '^ *+' conftest.er1 >conftest.err
14650   rm -f conftest.er1
14651   cat conftest.err >&5
14652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); } &&
14654          { ac_try='test -z "$ac_c_werror_flag"
14655                          || test ! -s conftest.err'
14656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657   (eval $ac_try) 2>&5
14658   ac_status=$?
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); }; } &&
14661          { ac_try='test -s conftest.$ac_objext'
14662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663   (eval $ac_try) 2>&5
14664   ac_status=$?
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); }; }; then
14667   ac_hi=$ac_mid; break
14668 else
14669   echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14671
14672 ac_lo=`expr $ac_mid + 1`
14673                     if test $ac_lo -le $ac_mid; then
14674                       ac_lo= ac_hi=
14675                       break
14676                     fi
14677                     ac_mid=`expr 2 '*' $ac_mid + 1`
14678 fi
14679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14680   done
14681 else
14682   echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14684
14685 cat >conftest.$ac_ext <<_ACEOF
14686 /* confdefs.h.  */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h.  */
14691 $ac_includes_default
14692 int
14693 main ()
14694 {
14695 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14696 test_array [0] = 0
14697
14698   ;
14699   return 0;
14700 }
14701 _ACEOF
14702 rm -f conftest.$ac_objext
14703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14704   (eval $ac_compile) 2>conftest.er1
14705   ac_status=$?
14706   grep -v '^ *+' conftest.er1 >conftest.err
14707   rm -f conftest.er1
14708   cat conftest.err >&5
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); } &&
14711          { ac_try='test -z "$ac_c_werror_flag"
14712                          || test ! -s conftest.err'
14713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714   (eval $ac_try) 2>&5
14715   ac_status=$?
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); }; } &&
14718          { ac_try='test -s conftest.$ac_objext'
14719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720   (eval $ac_try) 2>&5
14721   ac_status=$?
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); }; }; then
14724   ac_hi=-1 ac_mid=-1
14725   while :; do
14726     cat >conftest.$ac_ext <<_ACEOF
14727 /* confdefs.h.  */
14728 _ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h.  */
14732 $ac_includes_default
14733 int
14734 main ()
14735 {
14736 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14737 test_array [0] = 0
14738
14739   ;
14740   return 0;
14741 }
14742 _ACEOF
14743 rm -f conftest.$ac_objext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745   (eval $ac_compile) 2>conftest.er1
14746   ac_status=$?
14747   grep -v '^ *+' conftest.er1 >conftest.err
14748   rm -f conftest.er1
14749   cat conftest.err >&5
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); } &&
14752          { ac_try='test -z "$ac_c_werror_flag"
14753                          || test ! -s conftest.err'
14754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755   (eval $ac_try) 2>&5
14756   ac_status=$?
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); }; } &&
14759          { ac_try='test -s conftest.$ac_objext'
14760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761   (eval $ac_try) 2>&5
14762   ac_status=$?
14763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); }; }; then
14765   ac_lo=$ac_mid; break
14766 else
14767   echo "$as_me: failed program was:" >&5
14768 sed 's/^/| /' conftest.$ac_ext >&5
14769
14770 ac_hi=`expr '(' $ac_mid ')' - 1`
14771                        if test $ac_mid -le $ac_hi; then
14772                          ac_lo= ac_hi=
14773                          break
14774                        fi
14775                        ac_mid=`expr 2 '*' $ac_mid`
14776 fi
14777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14778   done
14779 else
14780   echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783 ac_lo= ac_hi=
14784 fi
14785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14786 fi
14787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14788 # Binary search between lo and hi bounds.
14789 while test "x$ac_lo" != "x$ac_hi"; do
14790   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14791   cat >conftest.$ac_ext <<_ACEOF
14792 /* confdefs.h.  */
14793 _ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h.  */
14797 $ac_includes_default
14798 int
14799 main ()
14800 {
14801 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14802 test_array [0] = 0
14803
14804   ;
14805   return 0;
14806 }
14807 _ACEOF
14808 rm -f conftest.$ac_objext
14809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14810   (eval $ac_compile) 2>conftest.er1
14811   ac_status=$?
14812   grep -v '^ *+' conftest.er1 >conftest.err
14813   rm -f conftest.er1
14814   cat conftest.err >&5
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); } &&
14817          { ac_try='test -z "$ac_c_werror_flag"
14818                          || test ! -s conftest.err'
14819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820   (eval $ac_try) 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; } &&
14824          { ac_try='test -s conftest.$ac_objext'
14825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826   (eval $ac_try) 2>&5
14827   ac_status=$?
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); }; }; then
14830   ac_hi=$ac_mid
14831 else
14832   echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14834
14835 ac_lo=`expr '(' $ac_mid ')' + 1`
14836 fi
14837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14838 done
14839 case $ac_lo in
14840 ?*) ac_cv_sizeof_char=$ac_lo;;
14841 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14842 See \`config.log' for more details." >&5
14843 echo "$as_me: error: cannot compute sizeof (char), 77
14844 See \`config.log' for more details." >&2;}
14845    { (exit 1); exit 1; }; } ;;
14846 esac
14847 else
14848   if test "$cross_compiling" = yes; then
14849   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14850 See \`config.log' for more details." >&5
14851 echo "$as_me: error: cannot run test program while cross compiling
14852 See \`config.log' for more details." >&2;}
14853    { (exit 1); exit 1; }; }
14854 else
14855   cat >conftest.$ac_ext <<_ACEOF
14856 /* confdefs.h.  */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h.  */
14861 $ac_includes_default
14862 long longval () { return (long) (sizeof (char)); }
14863 unsigned long ulongval () { return (long) (sizeof (char)); }
14864 #include <stdio.h>
14865 #include <stdlib.h>
14866 int
14867 main ()
14868 {
14869
14870   FILE *f = fopen ("conftest.val", "w");
14871   if (! f)
14872     exit (1);
14873   if (((long) (sizeof (char))) < 0)
14874     {
14875       long i = longval ();
14876       if (i != ((long) (sizeof (char))))
14877         exit (1);
14878       fprintf (f, "%ld\n", i);
14879     }
14880   else
14881     {
14882       unsigned long i = ulongval ();
14883       if (i != ((long) (sizeof (char))))
14884         exit (1);
14885       fprintf (f, "%lu\n", i);
14886     }
14887   exit (ferror (f) || fclose (f) != 0);
14888
14889   ;
14890   return 0;
14891 }
14892 _ACEOF
14893 rm -f conftest$ac_exeext
14894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14895   (eval $ac_link) 2>&5
14896   ac_status=$?
14897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900   (eval $ac_try) 2>&5
14901   ac_status=$?
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); }; }; then
14904   ac_cv_sizeof_char=`cat conftest.val`
14905 else
14906   echo "$as_me: program exited with status $ac_status" >&5
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14909
14910 ( exit $ac_status )
14911 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14912 See \`config.log' for more details." >&5
14913 echo "$as_me: error: cannot compute sizeof (char), 77
14914 See \`config.log' for more details." >&2;}
14915    { (exit 1); exit 1; }; }
14916 fi
14917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14918 fi
14919 fi
14920 rm -f conftest.val
14921 else
14922   ac_cv_sizeof_char=0
14923 fi
14924 fi
14925 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14926 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14927 cat >>confdefs.h <<_ACEOF
14928 #define SIZEOF_CHAR $ac_cv_sizeof_char
14929 _ACEOF
14930
14931
14932 echo "$as_me:$LINENO: checking for short int" >&5
14933 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14934 if test "${ac_cv_type_short_int+set}" = set; then
14935   echo $ECHO_N "(cached) $ECHO_C" >&6
14936 else
14937   cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h.  */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h.  */
14943 $ac_includes_default
14944 int
14945 main ()
14946 {
14947 if ((short int *) 0)
14948   return 0;
14949 if (sizeof (short int))
14950   return 0;
14951   ;
14952   return 0;
14953 }
14954 _ACEOF
14955 rm -f conftest.$ac_objext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14957   (eval $ac_compile) 2>conftest.er1
14958   ac_status=$?
14959   grep -v '^ *+' conftest.er1 >conftest.err
14960   rm -f conftest.er1
14961   cat conftest.err >&5
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); } &&
14964          { ac_try='test -z "$ac_c_werror_flag"
14965                          || test ! -s conftest.err'
14966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967   (eval $ac_try) 2>&5
14968   ac_status=$?
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); }; } &&
14971          { ac_try='test -s conftest.$ac_objext'
14972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973   (eval $ac_try) 2>&5
14974   ac_status=$?
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); }; }; then
14977   ac_cv_type_short_int=yes
14978 else
14979   echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14981
14982 ac_cv_type_short_int=no
14983 fi
14984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14985 fi
14986 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14987 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14988
14989 echo "$as_me:$LINENO: checking size of short int" >&5
14990 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14991 if test "${ac_cv_sizeof_short_int+set}" = set; then
14992   echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994   if test "$ac_cv_type_short_int" = yes; then
14995   # The cast to unsigned long works around a bug in the HP C Compiler
14996   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14997   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14998   # This bug is HP SR number 8606223364.
14999   if test "$cross_compiling" = yes; then
15000   # Depending upon the size, compute the lo and hi bounds.
15001 cat >conftest.$ac_ext <<_ACEOF
15002 /* confdefs.h.  */
15003 _ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h.  */
15007 $ac_includes_default
15008 int
15009 main ()
15010 {
15011 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15012 test_array [0] = 0
15013
15014   ;
15015   return 0;
15016 }
15017 _ACEOF
15018 rm -f conftest.$ac_objext
15019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15020   (eval $ac_compile) 2>conftest.er1
15021   ac_status=$?
15022   grep -v '^ *+' conftest.er1 >conftest.err
15023   rm -f conftest.er1
15024   cat conftest.err >&5
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); } &&
15027          { ac_try='test -z "$ac_c_werror_flag"
15028                          || test ! -s conftest.err'
15029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030   (eval $ac_try) 2>&5
15031   ac_status=$?
15032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033   (exit $ac_status); }; } &&
15034          { ac_try='test -s conftest.$ac_objext'
15035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036   (eval $ac_try) 2>&5
15037   ac_status=$?
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); }; }; then
15040   ac_lo=0 ac_mid=0
15041   while :; do
15042     cat >conftest.$ac_ext <<_ACEOF
15043 /* confdefs.h.  */
15044 _ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h.  */
15048 $ac_includes_default
15049 int
15050 main ()
15051 {
15052 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15053 test_array [0] = 0
15054
15055   ;
15056   return 0;
15057 }
15058 _ACEOF
15059 rm -f conftest.$ac_objext
15060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15061   (eval $ac_compile) 2>conftest.er1
15062   ac_status=$?
15063   grep -v '^ *+' conftest.er1 >conftest.err
15064   rm -f conftest.er1
15065   cat conftest.err >&5
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); } &&
15068          { ac_try='test -z "$ac_c_werror_flag"
15069                          || test ! -s conftest.err'
15070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071   (eval $ac_try) 2>&5
15072   ac_status=$?
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); }; } &&
15075          { ac_try='test -s conftest.$ac_objext'
15076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077   (eval $ac_try) 2>&5
15078   ac_status=$?
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); }; }; then
15081   ac_hi=$ac_mid; break
15082 else
15083   echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15085
15086 ac_lo=`expr $ac_mid + 1`
15087                     if test $ac_lo -le $ac_mid; then
15088                       ac_lo= ac_hi=
15089                       break
15090                     fi
15091                     ac_mid=`expr 2 '*' $ac_mid + 1`
15092 fi
15093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15094   done
15095 else
15096   echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15098
15099 cat >conftest.$ac_ext <<_ACEOF
15100 /* confdefs.h.  */
15101 _ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h.  */
15105 $ac_includes_default
15106 int
15107 main ()
15108 {
15109 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15110 test_array [0] = 0
15111
15112   ;
15113   return 0;
15114 }
15115 _ACEOF
15116 rm -f conftest.$ac_objext
15117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15118   (eval $ac_compile) 2>conftest.er1
15119   ac_status=$?
15120   grep -v '^ *+' conftest.er1 >conftest.err
15121   rm -f conftest.er1
15122   cat conftest.err >&5
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); } &&
15125          { ac_try='test -z "$ac_c_werror_flag"
15126                          || test ! -s conftest.err'
15127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128   (eval $ac_try) 2>&5
15129   ac_status=$?
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); }; } &&
15132          { ac_try='test -s conftest.$ac_objext'
15133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134   (eval $ac_try) 2>&5
15135   ac_status=$?
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); }; }; then
15138   ac_hi=-1 ac_mid=-1
15139   while :; do
15140     cat >conftest.$ac_ext <<_ACEOF
15141 /* confdefs.h.  */
15142 _ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h.  */
15146 $ac_includes_default
15147 int
15148 main ()
15149 {
15150 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15151 test_array [0] = 0
15152
15153   ;
15154   return 0;
15155 }
15156 _ACEOF
15157 rm -f conftest.$ac_objext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15159   (eval $ac_compile) 2>conftest.er1
15160   ac_status=$?
15161   grep -v '^ *+' conftest.er1 >conftest.err
15162   rm -f conftest.er1
15163   cat conftest.err >&5
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); } &&
15166          { ac_try='test -z "$ac_c_werror_flag"
15167                          || test ! -s conftest.err'
15168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169   (eval $ac_try) 2>&5
15170   ac_status=$?
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); }; } &&
15173          { ac_try='test -s conftest.$ac_objext'
15174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175   (eval $ac_try) 2>&5
15176   ac_status=$?
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); }; }; then
15179   ac_lo=$ac_mid; break
15180 else
15181   echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15183
15184 ac_hi=`expr '(' $ac_mid ')' - 1`
15185                        if test $ac_mid -le $ac_hi; then
15186                          ac_lo= ac_hi=
15187                          break
15188                        fi
15189                        ac_mid=`expr 2 '*' $ac_mid`
15190 fi
15191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15192   done
15193 else
15194   echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15196
15197 ac_lo= ac_hi=
15198 fi
15199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15200 fi
15201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15202 # Binary search between lo and hi bounds.
15203 while test "x$ac_lo" != "x$ac_hi"; do
15204   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15205   cat >conftest.$ac_ext <<_ACEOF
15206 /* confdefs.h.  */
15207 _ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h.  */
15211 $ac_includes_default
15212 int
15213 main ()
15214 {
15215 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15216 test_array [0] = 0
15217
15218   ;
15219   return 0;
15220 }
15221 _ACEOF
15222 rm -f conftest.$ac_objext
15223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15224   (eval $ac_compile) 2>conftest.er1
15225   ac_status=$?
15226   grep -v '^ *+' conftest.er1 >conftest.err
15227   rm -f conftest.er1
15228   cat conftest.err >&5
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); } &&
15231          { ac_try='test -z "$ac_c_werror_flag"
15232                          || test ! -s conftest.err'
15233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234   (eval $ac_try) 2>&5
15235   ac_status=$?
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); }; } &&
15238          { ac_try='test -s conftest.$ac_objext'
15239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240   (eval $ac_try) 2>&5
15241   ac_status=$?
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); }; }; then
15244   ac_hi=$ac_mid
15245 else
15246   echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15248
15249 ac_lo=`expr '(' $ac_mid ')' + 1`
15250 fi
15251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15252 done
15253 case $ac_lo in
15254 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15255 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15256 See \`config.log' for more details." >&5
15257 echo "$as_me: error: cannot compute sizeof (short int), 77
15258 See \`config.log' for more details." >&2;}
15259    { (exit 1); exit 1; }; } ;;
15260 esac
15261 else
15262   if test "$cross_compiling" = yes; then
15263   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15264 See \`config.log' for more details." >&5
15265 echo "$as_me: error: cannot run test program while cross compiling
15266 See \`config.log' for more details." >&2;}
15267    { (exit 1); exit 1; }; }
15268 else
15269   cat >conftest.$ac_ext <<_ACEOF
15270 /* confdefs.h.  */
15271 _ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h.  */
15275 $ac_includes_default
15276 long longval () { return (long) (sizeof (short int)); }
15277 unsigned long ulongval () { return (long) (sizeof (short int)); }
15278 #include <stdio.h>
15279 #include <stdlib.h>
15280 int
15281 main ()
15282 {
15283
15284   FILE *f = fopen ("conftest.val", "w");
15285   if (! f)
15286     exit (1);
15287   if (((long) (sizeof (short int))) < 0)
15288     {
15289       long i = longval ();
15290       if (i != ((long) (sizeof (short int))))
15291         exit (1);
15292       fprintf (f, "%ld\n", i);
15293     }
15294   else
15295     {
15296       unsigned long i = ulongval ();
15297       if (i != ((long) (sizeof (short int))))
15298         exit (1);
15299       fprintf (f, "%lu\n", i);
15300     }
15301   exit (ferror (f) || fclose (f) != 0);
15302
15303   ;
15304   return 0;
15305 }
15306 _ACEOF
15307 rm -f conftest$ac_exeext
15308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15309   (eval $ac_link) 2>&5
15310   ac_status=$?
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314   (eval $ac_try) 2>&5
15315   ac_status=$?
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); }; }; then
15318   ac_cv_sizeof_short_int=`cat conftest.val`
15319 else
15320   echo "$as_me: program exited with status $ac_status" >&5
15321 echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15323
15324 ( exit $ac_status )
15325 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15326 See \`config.log' for more details." >&5
15327 echo "$as_me: error: cannot compute sizeof (short int), 77
15328 See \`config.log' for more details." >&2;}
15329    { (exit 1); exit 1; }; }
15330 fi
15331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15332 fi
15333 fi
15334 rm -f conftest.val
15335 else
15336   ac_cv_sizeof_short_int=0
15337 fi
15338 fi
15339 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15340 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15341 cat >>confdefs.h <<_ACEOF
15342 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15343 _ACEOF
15344
15345
15346 echo "$as_me:$LINENO: checking for int" >&5
15347 echo $ECHO_N "checking for int... $ECHO_C" >&6
15348 if test "${ac_cv_type_int+set}" = set; then
15349   echo $ECHO_N "(cached) $ECHO_C" >&6
15350 else
15351   cat >conftest.$ac_ext <<_ACEOF
15352 /* confdefs.h.  */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h.  */
15357 $ac_includes_default
15358 int
15359 main ()
15360 {
15361 if ((int *) 0)
15362   return 0;
15363 if (sizeof (int))
15364   return 0;
15365   ;
15366   return 0;
15367 }
15368 _ACEOF
15369 rm -f conftest.$ac_objext
15370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15371   (eval $ac_compile) 2>conftest.er1
15372   ac_status=$?
15373   grep -v '^ *+' conftest.er1 >conftest.err
15374   rm -f conftest.er1
15375   cat conftest.err >&5
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); } &&
15378          { ac_try='test -z "$ac_c_werror_flag"
15379                          || test ! -s conftest.err'
15380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381   (eval $ac_try) 2>&5
15382   ac_status=$?
15383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384   (exit $ac_status); }; } &&
15385          { ac_try='test -s conftest.$ac_objext'
15386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387   (eval $ac_try) 2>&5
15388   ac_status=$?
15389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390   (exit $ac_status); }; }; then
15391   ac_cv_type_int=yes
15392 else
15393   echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15395
15396 ac_cv_type_int=no
15397 fi
15398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15399 fi
15400 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15401 echo "${ECHO_T}$ac_cv_type_int" >&6
15402
15403 echo "$as_me:$LINENO: checking size of int" >&5
15404 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15405 if test "${ac_cv_sizeof_int+set}" = set; then
15406   echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408   if test "$ac_cv_type_int" = yes; then
15409   # The cast to unsigned long works around a bug in the HP C Compiler
15410   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15411   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15412   # This bug is HP SR number 8606223364.
15413   if test "$cross_compiling" = yes; then
15414   # Depending upon the size, compute the lo and hi bounds.
15415 cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h.  */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h.  */
15421 $ac_includes_default
15422 int
15423 main ()
15424 {
15425 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15426 test_array [0] = 0
15427
15428   ;
15429   return 0;
15430 }
15431 _ACEOF
15432 rm -f conftest.$ac_objext
15433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15434   (eval $ac_compile) 2>conftest.er1
15435   ac_status=$?
15436   grep -v '^ *+' conftest.er1 >conftest.err
15437   rm -f conftest.er1
15438   cat conftest.err >&5
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); } &&
15441          { ac_try='test -z "$ac_c_werror_flag"
15442                          || test ! -s conftest.err'
15443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444   (eval $ac_try) 2>&5
15445   ac_status=$?
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); }; } &&
15448          { ac_try='test -s conftest.$ac_objext'
15449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450   (eval $ac_try) 2>&5
15451   ac_status=$?
15452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453   (exit $ac_status); }; }; then
15454   ac_lo=0 ac_mid=0
15455   while :; do
15456     cat >conftest.$ac_ext <<_ACEOF
15457 /* confdefs.h.  */
15458 _ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h.  */
15462 $ac_includes_default
15463 int
15464 main ()
15465 {
15466 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15467 test_array [0] = 0
15468
15469   ;
15470   return 0;
15471 }
15472 _ACEOF
15473 rm -f conftest.$ac_objext
15474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15475   (eval $ac_compile) 2>conftest.er1
15476   ac_status=$?
15477   grep -v '^ *+' conftest.er1 >conftest.err
15478   rm -f conftest.er1
15479   cat conftest.err >&5
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); } &&
15482          { ac_try='test -z "$ac_c_werror_flag"
15483                          || test ! -s conftest.err'
15484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485   (eval $ac_try) 2>&5
15486   ac_status=$?
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); }; } &&
15489          { ac_try='test -s conftest.$ac_objext'
15490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491   (eval $ac_try) 2>&5
15492   ac_status=$?
15493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494   (exit $ac_status); }; }; then
15495   ac_hi=$ac_mid; break
15496 else
15497   echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15499
15500 ac_lo=`expr $ac_mid + 1`
15501                     if test $ac_lo -le $ac_mid; then
15502                       ac_lo= ac_hi=
15503                       break
15504                     fi
15505                     ac_mid=`expr 2 '*' $ac_mid + 1`
15506 fi
15507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15508   done
15509 else
15510   echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513 cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h.  */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h.  */
15519 $ac_includes_default
15520 int
15521 main ()
15522 {
15523 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15524 test_array [0] = 0
15525
15526   ;
15527   return 0;
15528 }
15529 _ACEOF
15530 rm -f conftest.$ac_objext
15531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15532   (eval $ac_compile) 2>conftest.er1
15533   ac_status=$?
15534   grep -v '^ *+' conftest.er1 >conftest.err
15535   rm -f conftest.er1
15536   cat conftest.err >&5
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); } &&
15539          { ac_try='test -z "$ac_c_werror_flag"
15540                          || test ! -s conftest.err'
15541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542   (eval $ac_try) 2>&5
15543   ac_status=$?
15544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545   (exit $ac_status); }; } &&
15546          { ac_try='test -s conftest.$ac_objext'
15547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548   (eval $ac_try) 2>&5
15549   ac_status=$?
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); }; }; then
15552   ac_hi=-1 ac_mid=-1
15553   while :; do
15554     cat >conftest.$ac_ext <<_ACEOF
15555 /* confdefs.h.  */
15556 _ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h.  */
15560 $ac_includes_default
15561 int
15562 main ()
15563 {
15564 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15565 test_array [0] = 0
15566
15567   ;
15568   return 0;
15569 }
15570 _ACEOF
15571 rm -f conftest.$ac_objext
15572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15573   (eval $ac_compile) 2>conftest.er1
15574   ac_status=$?
15575   grep -v '^ *+' conftest.er1 >conftest.err
15576   rm -f conftest.er1
15577   cat conftest.err >&5
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); } &&
15580          { ac_try='test -z "$ac_c_werror_flag"
15581                          || test ! -s conftest.err'
15582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15583   (eval $ac_try) 2>&5
15584   ac_status=$?
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); }; } &&
15587          { ac_try='test -s conftest.$ac_objext'
15588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589   (eval $ac_try) 2>&5
15590   ac_status=$?
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); }; }; then
15593   ac_lo=$ac_mid; break
15594 else
15595   echo "$as_me: failed program was:" >&5
15596 sed 's/^/| /' conftest.$ac_ext >&5
15597
15598 ac_hi=`expr '(' $ac_mid ')' - 1`
15599                        if test $ac_mid -le $ac_hi; then
15600                          ac_lo= ac_hi=
15601                          break
15602                        fi
15603                        ac_mid=`expr 2 '*' $ac_mid`
15604 fi
15605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15606   done
15607 else
15608   echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15610
15611 ac_lo= ac_hi=
15612 fi
15613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15614 fi
15615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15616 # Binary search between lo and hi bounds.
15617 while test "x$ac_lo" != "x$ac_hi"; do
15618   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15619   cat >conftest.$ac_ext <<_ACEOF
15620 /* confdefs.h.  */
15621 _ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h.  */
15625 $ac_includes_default
15626 int
15627 main ()
15628 {
15629 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15630 test_array [0] = 0
15631
15632   ;
15633   return 0;
15634 }
15635 _ACEOF
15636 rm -f conftest.$ac_objext
15637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15638   (eval $ac_compile) 2>conftest.er1
15639   ac_status=$?
15640   grep -v '^ *+' conftest.er1 >conftest.err
15641   rm -f conftest.er1
15642   cat conftest.err >&5
15643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644   (exit $ac_status); } &&
15645          { ac_try='test -z "$ac_c_werror_flag"
15646                          || test ! -s conftest.err'
15647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648   (eval $ac_try) 2>&5
15649   ac_status=$?
15650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651   (exit $ac_status); }; } &&
15652          { ac_try='test -s conftest.$ac_objext'
15653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654   (eval $ac_try) 2>&5
15655   ac_status=$?
15656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657   (exit $ac_status); }; }; then
15658   ac_hi=$ac_mid
15659 else
15660   echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15662
15663 ac_lo=`expr '(' $ac_mid ')' + 1`
15664 fi
15665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15666 done
15667 case $ac_lo in
15668 ?*) ac_cv_sizeof_int=$ac_lo;;
15669 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15670 See \`config.log' for more details." >&5
15671 echo "$as_me: error: cannot compute sizeof (int), 77
15672 See \`config.log' for more details." >&2;}
15673    { (exit 1); exit 1; }; } ;;
15674 esac
15675 else
15676   if test "$cross_compiling" = yes; then
15677   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15678 See \`config.log' for more details." >&5
15679 echo "$as_me: error: cannot run test program while cross compiling
15680 See \`config.log' for more details." >&2;}
15681    { (exit 1); exit 1; }; }
15682 else
15683   cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h.  */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h.  */
15689 $ac_includes_default
15690 long longval () { return (long) (sizeof (int)); }
15691 unsigned long ulongval () { return (long) (sizeof (int)); }
15692 #include <stdio.h>
15693 #include <stdlib.h>
15694 int
15695 main ()
15696 {
15697
15698   FILE *f = fopen ("conftest.val", "w");
15699   if (! f)
15700     exit (1);
15701   if (((long) (sizeof (int))) < 0)
15702     {
15703       long i = longval ();
15704       if (i != ((long) (sizeof (int))))
15705         exit (1);
15706       fprintf (f, "%ld\n", i);
15707     }
15708   else
15709     {
15710       unsigned long i = ulongval ();
15711       if (i != ((long) (sizeof (int))))
15712         exit (1);
15713       fprintf (f, "%lu\n", i);
15714     }
15715   exit (ferror (f) || fclose (f) != 0);
15716
15717   ;
15718   return 0;
15719 }
15720 _ACEOF
15721 rm -f conftest$ac_exeext
15722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15723   (eval $ac_link) 2>&5
15724   ac_status=$?
15725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728   (eval $ac_try) 2>&5
15729   ac_status=$?
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); }; }; then
15732   ac_cv_sizeof_int=`cat conftest.val`
15733 else
15734   echo "$as_me: program exited with status $ac_status" >&5
15735 echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15737
15738 ( exit $ac_status )
15739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15740 See \`config.log' for more details." >&5
15741 echo "$as_me: error: cannot compute sizeof (int), 77
15742 See \`config.log' for more details." >&2;}
15743    { (exit 1); exit 1; }; }
15744 fi
15745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15746 fi
15747 fi
15748 rm -f conftest.val
15749 else
15750   ac_cv_sizeof_int=0
15751 fi
15752 fi
15753 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15754 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15755 cat >>confdefs.h <<_ACEOF
15756 #define SIZEOF_INT $ac_cv_sizeof_int
15757 _ACEOF
15758
15759
15760 echo "$as_me:$LINENO: checking for long int" >&5
15761 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15762 if test "${ac_cv_type_long_int+set}" = set; then
15763   echo $ECHO_N "(cached) $ECHO_C" >&6
15764 else
15765   cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h.  */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h.  */
15771 $ac_includes_default
15772 int
15773 main ()
15774 {
15775 if ((long int *) 0)
15776   return 0;
15777 if (sizeof (long int))
15778   return 0;
15779   ;
15780   return 0;
15781 }
15782 _ACEOF
15783 rm -f conftest.$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785   (eval $ac_compile) 2>conftest.er1
15786   ac_status=$?
15787   grep -v '^ *+' conftest.er1 >conftest.err
15788   rm -f conftest.er1
15789   cat conftest.err >&5
15790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); } &&
15792          { ac_try='test -z "$ac_c_werror_flag"
15793                          || test ! -s conftest.err'
15794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795   (eval $ac_try) 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); }; } &&
15799          { ac_try='test -s conftest.$ac_objext'
15800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801   (eval $ac_try) 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); }; }; then
15805   ac_cv_type_long_int=yes
15806 else
15807   echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15809
15810 ac_cv_type_long_int=no
15811 fi
15812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15813 fi
15814 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15815 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15816
15817 echo "$as_me:$LINENO: checking size of long int" >&5
15818 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15819 if test "${ac_cv_sizeof_long_int+set}" = set; then
15820   echo $ECHO_N "(cached) $ECHO_C" >&6
15821 else
15822   if test "$ac_cv_type_long_int" = yes; then
15823   # The cast to unsigned long works around a bug in the HP C Compiler
15824   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15825   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15826   # This bug is HP SR number 8606223364.
15827   if test "$cross_compiling" = yes; then
15828   # Depending upon the size, compute the lo and hi bounds.
15829 cat >conftest.$ac_ext <<_ACEOF
15830 /* confdefs.h.  */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h.  */
15835 $ac_includes_default
15836 int
15837 main ()
15838 {
15839 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15840 test_array [0] = 0
15841
15842   ;
15843   return 0;
15844 }
15845 _ACEOF
15846 rm -f conftest.$ac_objext
15847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15848   (eval $ac_compile) 2>conftest.er1
15849   ac_status=$?
15850   grep -v '^ *+' conftest.er1 >conftest.err
15851   rm -f conftest.er1
15852   cat conftest.err >&5
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); } &&
15855          { ac_try='test -z "$ac_c_werror_flag"
15856                          || test ! -s conftest.err'
15857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858   (eval $ac_try) 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); }; } &&
15862          { ac_try='test -s conftest.$ac_objext'
15863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864   (eval $ac_try) 2>&5
15865   ac_status=$?
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); }; }; then
15868   ac_lo=0 ac_mid=0
15869   while :; do
15870     cat >conftest.$ac_ext <<_ACEOF
15871 /* confdefs.h.  */
15872 _ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h.  */
15876 $ac_includes_default
15877 int
15878 main ()
15879 {
15880 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15881 test_array [0] = 0
15882
15883   ;
15884   return 0;
15885 }
15886 _ACEOF
15887 rm -f conftest.$ac_objext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15889   (eval $ac_compile) 2>conftest.er1
15890   ac_status=$?
15891   grep -v '^ *+' conftest.er1 >conftest.err
15892   rm -f conftest.er1
15893   cat conftest.err >&5
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); } &&
15896          { ac_try='test -z "$ac_c_werror_flag"
15897                          || test ! -s conftest.err'
15898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899   (eval $ac_try) 2>&5
15900   ac_status=$?
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); }; } &&
15903          { ac_try='test -s conftest.$ac_objext'
15904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905   (eval $ac_try) 2>&5
15906   ac_status=$?
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); }; }; then
15909   ac_hi=$ac_mid; break
15910 else
15911   echo "$as_me: failed program was:" >&5
15912 sed 's/^/| /' conftest.$ac_ext >&5
15913
15914 ac_lo=`expr $ac_mid + 1`
15915                     if test $ac_lo -le $ac_mid; then
15916                       ac_lo= ac_hi=
15917                       break
15918                     fi
15919                     ac_mid=`expr 2 '*' $ac_mid + 1`
15920 fi
15921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15922   done
15923 else
15924   echo "$as_me: failed program was:" >&5
15925 sed 's/^/| /' conftest.$ac_ext >&5
15926
15927 cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h.  */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h.  */
15933 $ac_includes_default
15934 int
15935 main ()
15936 {
15937 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15938 test_array [0] = 0
15939
15940   ;
15941   return 0;
15942 }
15943 _ACEOF
15944 rm -f conftest.$ac_objext
15945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15946   (eval $ac_compile) 2>conftest.er1
15947   ac_status=$?
15948   grep -v '^ *+' conftest.er1 >conftest.err
15949   rm -f conftest.er1
15950   cat conftest.err >&5
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); } &&
15953          { ac_try='test -z "$ac_c_werror_flag"
15954                          || test ! -s conftest.err'
15955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956   (eval $ac_try) 2>&5
15957   ac_status=$?
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); }; } &&
15960          { ac_try='test -s conftest.$ac_objext'
15961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962   (eval $ac_try) 2>&5
15963   ac_status=$?
15964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965   (exit $ac_status); }; }; then
15966   ac_hi=-1 ac_mid=-1
15967   while :; do
15968     cat >conftest.$ac_ext <<_ACEOF
15969 /* confdefs.h.  */
15970 _ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h.  */
15974 $ac_includes_default
15975 int
15976 main ()
15977 {
15978 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15979 test_array [0] = 0
15980
15981   ;
15982   return 0;
15983 }
15984 _ACEOF
15985 rm -f conftest.$ac_objext
15986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15987   (eval $ac_compile) 2>conftest.er1
15988   ac_status=$?
15989   grep -v '^ *+' conftest.er1 >conftest.err
15990   rm -f conftest.er1
15991   cat conftest.err >&5
15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993   (exit $ac_status); } &&
15994          { ac_try='test -z "$ac_c_werror_flag"
15995                          || test ! -s conftest.err'
15996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997   (eval $ac_try) 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); }; } &&
16001          { ac_try='test -s conftest.$ac_objext'
16002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003   (eval $ac_try) 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); }; }; then
16007   ac_lo=$ac_mid; break
16008 else
16009   echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16011
16012 ac_hi=`expr '(' $ac_mid ')' - 1`
16013                        if test $ac_mid -le $ac_hi; then
16014                          ac_lo= ac_hi=
16015                          break
16016                        fi
16017                        ac_mid=`expr 2 '*' $ac_mid`
16018 fi
16019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16020   done
16021 else
16022   echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16024
16025 ac_lo= ac_hi=
16026 fi
16027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16028 fi
16029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16030 # Binary search between lo and hi bounds.
16031 while test "x$ac_lo" != "x$ac_hi"; do
16032   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16033   cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h.  */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h.  */
16039 $ac_includes_default
16040 int
16041 main ()
16042 {
16043 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16044 test_array [0] = 0
16045
16046   ;
16047   return 0;
16048 }
16049 _ACEOF
16050 rm -f conftest.$ac_objext
16051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16052   (eval $ac_compile) 2>conftest.er1
16053   ac_status=$?
16054   grep -v '^ *+' conftest.er1 >conftest.err
16055   rm -f conftest.er1
16056   cat conftest.err >&5
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); } &&
16059          { ac_try='test -z "$ac_c_werror_flag"
16060                          || test ! -s conftest.err'
16061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062   (eval $ac_try) 2>&5
16063   ac_status=$?
16064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); }; } &&
16066          { ac_try='test -s conftest.$ac_objext'
16067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068   (eval $ac_try) 2>&5
16069   ac_status=$?
16070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071   (exit $ac_status); }; }; then
16072   ac_hi=$ac_mid
16073 else
16074   echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16076
16077 ac_lo=`expr '(' $ac_mid ')' + 1`
16078 fi
16079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16080 done
16081 case $ac_lo in
16082 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16083 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16084 See \`config.log' for more details." >&5
16085 echo "$as_me: error: cannot compute sizeof (long int), 77
16086 See \`config.log' for more details." >&2;}
16087    { (exit 1); exit 1; }; } ;;
16088 esac
16089 else
16090   if test "$cross_compiling" = yes; then
16091   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16092 See \`config.log' for more details." >&5
16093 echo "$as_me: error: cannot run test program while cross compiling
16094 See \`config.log' for more details." >&2;}
16095    { (exit 1); exit 1; }; }
16096 else
16097   cat >conftest.$ac_ext <<_ACEOF
16098 /* confdefs.h.  */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h.  */
16103 $ac_includes_default
16104 long longval () { return (long) (sizeof (long int)); }
16105 unsigned long ulongval () { return (long) (sizeof (long int)); }
16106 #include <stdio.h>
16107 #include <stdlib.h>
16108 int
16109 main ()
16110 {
16111
16112   FILE *f = fopen ("conftest.val", "w");
16113   if (! f)
16114     exit (1);
16115   if (((long) (sizeof (long int))) < 0)
16116     {
16117       long i = longval ();
16118       if (i != ((long) (sizeof (long int))))
16119         exit (1);
16120       fprintf (f, "%ld\n", i);
16121     }
16122   else
16123     {
16124       unsigned long i = ulongval ();
16125       if (i != ((long) (sizeof (long int))))
16126         exit (1);
16127       fprintf (f, "%lu\n", i);
16128     }
16129   exit (ferror (f) || fclose (f) != 0);
16130
16131   ;
16132   return 0;
16133 }
16134 _ACEOF
16135 rm -f conftest$ac_exeext
16136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16137   (eval $ac_link) 2>&5
16138   ac_status=$?
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142   (eval $ac_try) 2>&5
16143   ac_status=$?
16144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145   (exit $ac_status); }; }; then
16146   ac_cv_sizeof_long_int=`cat conftest.val`
16147 else
16148   echo "$as_me: program exited with status $ac_status" >&5
16149 echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16151
16152 ( exit $ac_status )
16153 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16154 See \`config.log' for more details." >&5
16155 echo "$as_me: error: cannot compute sizeof (long int), 77
16156 See \`config.log' for more details." >&2;}
16157    { (exit 1); exit 1; }; }
16158 fi
16159 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16160 fi
16161 fi
16162 rm -f conftest.val
16163 else
16164   ac_cv_sizeof_long_int=0
16165 fi
16166 fi
16167 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16168 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16169 cat >>confdefs.h <<_ACEOF
16170 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16171 _ACEOF
16172
16173
16174 echo "$as_me:$LINENO: checking for long long int" >&5
16175 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16176 if test "${ac_cv_type_long_long_int+set}" = set; then
16177   echo $ECHO_N "(cached) $ECHO_C" >&6
16178 else
16179   cat >conftest.$ac_ext <<_ACEOF
16180 /* confdefs.h.  */
16181 _ACEOF
16182 cat confdefs.h >>conftest.$ac_ext
16183 cat >>conftest.$ac_ext <<_ACEOF
16184 /* end confdefs.h.  */
16185 $ac_includes_default
16186 int
16187 main ()
16188 {
16189 if ((long long int *) 0)
16190   return 0;
16191 if (sizeof (long long int))
16192   return 0;
16193   ;
16194   return 0;
16195 }
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16199   (eval $ac_compile) 2>conftest.er1
16200   ac_status=$?
16201   grep -v '^ *+' conftest.er1 >conftest.err
16202   rm -f conftest.er1
16203   cat conftest.err >&5
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); } &&
16206          { ac_try='test -z "$ac_c_werror_flag"
16207                          || test ! -s conftest.err'
16208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209   (eval $ac_try) 2>&5
16210   ac_status=$?
16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212   (exit $ac_status); }; } &&
16213          { ac_try='test -s conftest.$ac_objext'
16214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215   (eval $ac_try) 2>&5
16216   ac_status=$?
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); }; }; then
16219   ac_cv_type_long_long_int=yes
16220 else
16221   echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16223
16224 ac_cv_type_long_long_int=no
16225 fi
16226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16227 fi
16228 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16229 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16230
16231 echo "$as_me:$LINENO: checking size of long long int" >&5
16232 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16233 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16234   echo $ECHO_N "(cached) $ECHO_C" >&6
16235 else
16236   if test "$ac_cv_type_long_long_int" = yes; then
16237   # The cast to unsigned long works around a bug in the HP C Compiler
16238   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16239   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16240   # This bug is HP SR number 8606223364.
16241   if test "$cross_compiling" = yes; then
16242   # Depending upon the size, compute the lo and hi bounds.
16243 cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h.  */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h.  */
16249 $ac_includes_default
16250 int
16251 main ()
16252 {
16253 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16254 test_array [0] = 0
16255
16256   ;
16257   return 0;
16258 }
16259 _ACEOF
16260 rm -f conftest.$ac_objext
16261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16262   (eval $ac_compile) 2>conftest.er1
16263   ac_status=$?
16264   grep -v '^ *+' conftest.er1 >conftest.err
16265   rm -f conftest.er1
16266   cat conftest.err >&5
16267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268   (exit $ac_status); } &&
16269          { ac_try='test -z "$ac_c_werror_flag"
16270                          || test ! -s conftest.err'
16271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16272   (eval $ac_try) 2>&5
16273   ac_status=$?
16274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275   (exit $ac_status); }; } &&
16276          { ac_try='test -s conftest.$ac_objext'
16277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278   (eval $ac_try) 2>&5
16279   ac_status=$?
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); }; }; then
16282   ac_lo=0 ac_mid=0
16283   while :; do
16284     cat >conftest.$ac_ext <<_ACEOF
16285 /* confdefs.h.  */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h.  */
16290 $ac_includes_default
16291 int
16292 main ()
16293 {
16294 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16295 test_array [0] = 0
16296
16297   ;
16298   return 0;
16299 }
16300 _ACEOF
16301 rm -f conftest.$ac_objext
16302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16303   (eval $ac_compile) 2>conftest.er1
16304   ac_status=$?
16305   grep -v '^ *+' conftest.er1 >conftest.err
16306   rm -f conftest.er1
16307   cat conftest.err >&5
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); } &&
16310          { ac_try='test -z "$ac_c_werror_flag"
16311                          || test ! -s conftest.err'
16312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313   (eval $ac_try) 2>&5
16314   ac_status=$?
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); }; } &&
16317          { ac_try='test -s conftest.$ac_objext'
16318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319   (eval $ac_try) 2>&5
16320   ac_status=$?
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); }; }; then
16323   ac_hi=$ac_mid; break
16324 else
16325   echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16327
16328 ac_lo=`expr $ac_mid + 1`
16329                     if test $ac_lo -le $ac_mid; then
16330                       ac_lo= ac_hi=
16331                       break
16332                     fi
16333                     ac_mid=`expr 2 '*' $ac_mid + 1`
16334 fi
16335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16336   done
16337 else
16338   echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16340
16341 cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h.  */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h.  */
16347 $ac_includes_default
16348 int
16349 main ()
16350 {
16351 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16352 test_array [0] = 0
16353
16354   ;
16355   return 0;
16356 }
16357 _ACEOF
16358 rm -f conftest.$ac_objext
16359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16360   (eval $ac_compile) 2>conftest.er1
16361   ac_status=$?
16362   grep -v '^ *+' conftest.er1 >conftest.err
16363   rm -f conftest.er1
16364   cat conftest.err >&5
16365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366   (exit $ac_status); } &&
16367          { ac_try='test -z "$ac_c_werror_flag"
16368                          || test ! -s conftest.err'
16369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370   (eval $ac_try) 2>&5
16371   ac_status=$?
16372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); }; } &&
16374          { ac_try='test -s conftest.$ac_objext'
16375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376   (eval $ac_try) 2>&5
16377   ac_status=$?
16378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379   (exit $ac_status); }; }; then
16380   ac_hi=-1 ac_mid=-1
16381   while :; do
16382     cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h.  */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h.  */
16388 $ac_includes_default
16389 int
16390 main ()
16391 {
16392 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16393 test_array [0] = 0
16394
16395   ;
16396   return 0;
16397 }
16398 _ACEOF
16399 rm -f conftest.$ac_objext
16400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16401   (eval $ac_compile) 2>conftest.er1
16402   ac_status=$?
16403   grep -v '^ *+' conftest.er1 >conftest.err
16404   rm -f conftest.er1
16405   cat conftest.err >&5
16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407   (exit $ac_status); } &&
16408          { ac_try='test -z "$ac_c_werror_flag"
16409                          || test ! -s conftest.err'
16410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411   (eval $ac_try) 2>&5
16412   ac_status=$?
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); }; } &&
16415          { ac_try='test -s conftest.$ac_objext'
16416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417   (eval $ac_try) 2>&5
16418   ac_status=$?
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); }; }; then
16421   ac_lo=$ac_mid; break
16422 else
16423   echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16425
16426 ac_hi=`expr '(' $ac_mid ')' - 1`
16427                        if test $ac_mid -le $ac_hi; then
16428                          ac_lo= ac_hi=
16429                          break
16430                        fi
16431                        ac_mid=`expr 2 '*' $ac_mid`
16432 fi
16433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16434   done
16435 else
16436   echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16438
16439 ac_lo= ac_hi=
16440 fi
16441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16442 fi
16443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16444 # Binary search between lo and hi bounds.
16445 while test "x$ac_lo" != "x$ac_hi"; do
16446   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16447   cat >conftest.$ac_ext <<_ACEOF
16448 /* confdefs.h.  */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h.  */
16453 $ac_includes_default
16454 int
16455 main ()
16456 {
16457 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16458 test_array [0] = 0
16459
16460   ;
16461   return 0;
16462 }
16463 _ACEOF
16464 rm -f conftest.$ac_objext
16465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16466   (eval $ac_compile) 2>conftest.er1
16467   ac_status=$?
16468   grep -v '^ *+' conftest.er1 >conftest.err
16469   rm -f conftest.er1
16470   cat conftest.err >&5
16471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); } &&
16473          { ac_try='test -z "$ac_c_werror_flag"
16474                          || test ! -s conftest.err'
16475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476   (eval $ac_try) 2>&5
16477   ac_status=$?
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); }; } &&
16480          { ac_try='test -s conftest.$ac_objext'
16481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482   (eval $ac_try) 2>&5
16483   ac_status=$?
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); }; }; then
16486   ac_hi=$ac_mid
16487 else
16488   echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16490
16491 ac_lo=`expr '(' $ac_mid ')' + 1`
16492 fi
16493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16494 done
16495 case $ac_lo in
16496 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16497 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16498 See \`config.log' for more details." >&5
16499 echo "$as_me: error: cannot compute sizeof (long long int), 77
16500 See \`config.log' for more details." >&2;}
16501    { (exit 1); exit 1; }; } ;;
16502 esac
16503 else
16504   if test "$cross_compiling" = yes; then
16505   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16506 See \`config.log' for more details." >&5
16507 echo "$as_me: error: cannot run test program while cross compiling
16508 See \`config.log' for more details." >&2;}
16509    { (exit 1); exit 1; }; }
16510 else
16511   cat >conftest.$ac_ext <<_ACEOF
16512 /* confdefs.h.  */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h.  */
16517 $ac_includes_default
16518 long longval () { return (long) (sizeof (long long int)); }
16519 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16520 #include <stdio.h>
16521 #include <stdlib.h>
16522 int
16523 main ()
16524 {
16525
16526   FILE *f = fopen ("conftest.val", "w");
16527   if (! f)
16528     exit (1);
16529   if (((long) (sizeof (long long int))) < 0)
16530     {
16531       long i = longval ();
16532       if (i != ((long) (sizeof (long long int))))
16533         exit (1);
16534       fprintf (f, "%ld\n", i);
16535     }
16536   else
16537     {
16538       unsigned long i = ulongval ();
16539       if (i != ((long) (sizeof (long long int))))
16540         exit (1);
16541       fprintf (f, "%lu\n", i);
16542     }
16543   exit (ferror (f) || fclose (f) != 0);
16544
16545   ;
16546   return 0;
16547 }
16548 _ACEOF
16549 rm -f conftest$ac_exeext
16550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16551   (eval $ac_link) 2>&5
16552   ac_status=$?
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556   (eval $ac_try) 2>&5
16557   ac_status=$?
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); }; }; then
16560   ac_cv_sizeof_long_long_int=`cat conftest.val`
16561 else
16562   echo "$as_me: program exited with status $ac_status" >&5
16563 echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16565
16566 ( exit $ac_status )
16567 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16568 See \`config.log' for more details." >&5
16569 echo "$as_me: error: cannot compute sizeof (long long int), 77
16570 See \`config.log' for more details." >&2;}
16571    { (exit 1); exit 1; }; }
16572 fi
16573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16574 fi
16575 fi
16576 rm -f conftest.val
16577 else
16578   ac_cv_sizeof_long_long_int=0
16579 fi
16580 fi
16581 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16582 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16583 cat >>confdefs.h <<_ACEOF
16584 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16585 _ACEOF
16586
16587
16588 echo "$as_me:$LINENO: checking for int *" >&5
16589 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16590 if test "${ac_cv_type_int_p+set}" = set; then
16591   echo $ECHO_N "(cached) $ECHO_C" >&6
16592 else
16593   cat >conftest.$ac_ext <<_ACEOF
16594 /* confdefs.h.  */
16595 _ACEOF
16596 cat confdefs.h >>conftest.$ac_ext
16597 cat >>conftest.$ac_ext <<_ACEOF
16598 /* end confdefs.h.  */
16599 $ac_includes_default
16600 int
16601 main ()
16602 {
16603 if ((int * *) 0)
16604   return 0;
16605 if (sizeof (int *))
16606   return 0;
16607   ;
16608   return 0;
16609 }
16610 _ACEOF
16611 rm -f conftest.$ac_objext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16613   (eval $ac_compile) 2>conftest.er1
16614   ac_status=$?
16615   grep -v '^ *+' conftest.er1 >conftest.err
16616   rm -f conftest.er1
16617   cat conftest.err >&5
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); } &&
16620          { ac_try='test -z "$ac_c_werror_flag"
16621                          || test ! -s conftest.err'
16622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623   (eval $ac_try) 2>&5
16624   ac_status=$?
16625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626   (exit $ac_status); }; } &&
16627          { ac_try='test -s conftest.$ac_objext'
16628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629   (eval $ac_try) 2>&5
16630   ac_status=$?
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); }; }; then
16633   ac_cv_type_int_p=yes
16634 else
16635   echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16637
16638 ac_cv_type_int_p=no
16639 fi
16640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16641 fi
16642 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16643 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16644
16645 echo "$as_me:$LINENO: checking size of int *" >&5
16646 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16647 if test "${ac_cv_sizeof_int_p+set}" = set; then
16648   echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650   if test "$ac_cv_type_int_p" = yes; then
16651   # The cast to unsigned long works around a bug in the HP C Compiler
16652   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16653   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16654   # This bug is HP SR number 8606223364.
16655   if test "$cross_compiling" = yes; then
16656   # Depending upon the size, compute the lo and hi bounds.
16657 cat >conftest.$ac_ext <<_ACEOF
16658 /* confdefs.h.  */
16659 _ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h.  */
16663 $ac_includes_default
16664 int
16665 main ()
16666 {
16667 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16668 test_array [0] = 0
16669
16670   ;
16671   return 0;
16672 }
16673 _ACEOF
16674 rm -f conftest.$ac_objext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16676   (eval $ac_compile) 2>conftest.er1
16677   ac_status=$?
16678   grep -v '^ *+' conftest.er1 >conftest.err
16679   rm -f conftest.er1
16680   cat conftest.err >&5
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); } &&
16683          { ac_try='test -z "$ac_c_werror_flag"
16684                          || test ! -s conftest.err'
16685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686   (eval $ac_try) 2>&5
16687   ac_status=$?
16688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689   (exit $ac_status); }; } &&
16690          { ac_try='test -s conftest.$ac_objext'
16691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692   (eval $ac_try) 2>&5
16693   ac_status=$?
16694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695   (exit $ac_status); }; }; then
16696   ac_lo=0 ac_mid=0
16697   while :; do
16698     cat >conftest.$ac_ext <<_ACEOF
16699 /* confdefs.h.  */
16700 _ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h.  */
16704 $ac_includes_default
16705 int
16706 main ()
16707 {
16708 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16709 test_array [0] = 0
16710
16711   ;
16712   return 0;
16713 }
16714 _ACEOF
16715 rm -f conftest.$ac_objext
16716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717   (eval $ac_compile) 2>conftest.er1
16718   ac_status=$?
16719   grep -v '^ *+' conftest.er1 >conftest.err
16720   rm -f conftest.er1
16721   cat conftest.err >&5
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); } &&
16724          { ac_try='test -z "$ac_c_werror_flag"
16725                          || test ! -s conftest.err'
16726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727   (eval $ac_try) 2>&5
16728   ac_status=$?
16729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730   (exit $ac_status); }; } &&
16731          { ac_try='test -s conftest.$ac_objext'
16732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733   (eval $ac_try) 2>&5
16734   ac_status=$?
16735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); }; }; then
16737   ac_hi=$ac_mid; break
16738 else
16739   echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.$ac_ext >&5
16741
16742 ac_lo=`expr $ac_mid + 1`
16743                     if test $ac_lo -le $ac_mid; then
16744                       ac_lo= ac_hi=
16745                       break
16746                     fi
16747                     ac_mid=`expr 2 '*' $ac_mid + 1`
16748 fi
16749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16750   done
16751 else
16752   echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16754
16755 cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h.  */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h.  */
16761 $ac_includes_default
16762 int
16763 main ()
16764 {
16765 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16766 test_array [0] = 0
16767
16768   ;
16769   return 0;
16770 }
16771 _ACEOF
16772 rm -f conftest.$ac_objext
16773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16774   (eval $ac_compile) 2>conftest.er1
16775   ac_status=$?
16776   grep -v '^ *+' conftest.er1 >conftest.err
16777   rm -f conftest.er1
16778   cat conftest.err >&5
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); } &&
16781          { ac_try='test -z "$ac_c_werror_flag"
16782                          || test ! -s conftest.err'
16783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784   (eval $ac_try) 2>&5
16785   ac_status=$?
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); }; } &&
16788          { ac_try='test -s conftest.$ac_objext'
16789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790   (eval $ac_try) 2>&5
16791   ac_status=$?
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); }; }; then
16794   ac_hi=-1 ac_mid=-1
16795   while :; do
16796     cat >conftest.$ac_ext <<_ACEOF
16797 /* confdefs.h.  */
16798 _ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h.  */
16802 $ac_includes_default
16803 int
16804 main ()
16805 {
16806 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16807 test_array [0] = 0
16808
16809   ;
16810   return 0;
16811 }
16812 _ACEOF
16813 rm -f conftest.$ac_objext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16815   (eval $ac_compile) 2>conftest.er1
16816   ac_status=$?
16817   grep -v '^ *+' conftest.er1 >conftest.err
16818   rm -f conftest.er1
16819   cat conftest.err >&5
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); } &&
16822          { ac_try='test -z "$ac_c_werror_flag"
16823                          || test ! -s conftest.err'
16824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825   (eval $ac_try) 2>&5
16826   ac_status=$?
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); }; } &&
16829          { ac_try='test -s conftest.$ac_objext'
16830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831   (eval $ac_try) 2>&5
16832   ac_status=$?
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); }; }; then
16835   ac_lo=$ac_mid; break
16836 else
16837   echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16839
16840 ac_hi=`expr '(' $ac_mid ')' - 1`
16841                        if test $ac_mid -le $ac_hi; then
16842                          ac_lo= ac_hi=
16843                          break
16844                        fi
16845                        ac_mid=`expr 2 '*' $ac_mid`
16846 fi
16847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16848   done
16849 else
16850   echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16852
16853 ac_lo= ac_hi=
16854 fi
16855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16856 fi
16857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16858 # Binary search between lo and hi bounds.
16859 while test "x$ac_lo" != "x$ac_hi"; do
16860   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16861   cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h.  */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h.  */
16867 $ac_includes_default
16868 int
16869 main ()
16870 {
16871 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16872 test_array [0] = 0
16873
16874   ;
16875   return 0;
16876 }
16877 _ACEOF
16878 rm -f conftest.$ac_objext
16879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16880   (eval $ac_compile) 2>conftest.er1
16881   ac_status=$?
16882   grep -v '^ *+' conftest.er1 >conftest.err
16883   rm -f conftest.er1
16884   cat conftest.err >&5
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); } &&
16887          { ac_try='test -z "$ac_c_werror_flag"
16888                          || test ! -s conftest.err'
16889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16890   (eval $ac_try) 2>&5
16891   ac_status=$?
16892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893   (exit $ac_status); }; } &&
16894          { ac_try='test -s conftest.$ac_objext'
16895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896   (eval $ac_try) 2>&5
16897   ac_status=$?
16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899   (exit $ac_status); }; }; then
16900   ac_hi=$ac_mid
16901 else
16902   echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16904
16905 ac_lo=`expr '(' $ac_mid ')' + 1`
16906 fi
16907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16908 done
16909 case $ac_lo in
16910 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16911 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16912 See \`config.log' for more details." >&5
16913 echo "$as_me: error: cannot compute sizeof (int *), 77
16914 See \`config.log' for more details." >&2;}
16915    { (exit 1); exit 1; }; } ;;
16916 esac
16917 else
16918   if test "$cross_compiling" = yes; then
16919   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16920 See \`config.log' for more details." >&5
16921 echo "$as_me: error: cannot run test program while cross compiling
16922 See \`config.log' for more details." >&2;}
16923    { (exit 1); exit 1; }; }
16924 else
16925   cat >conftest.$ac_ext <<_ACEOF
16926 /* confdefs.h.  */
16927 _ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h.  */
16931 $ac_includes_default
16932 long longval () { return (long) (sizeof (int *)); }
16933 unsigned long ulongval () { return (long) (sizeof (int *)); }
16934 #include <stdio.h>
16935 #include <stdlib.h>
16936 int
16937 main ()
16938 {
16939
16940   FILE *f = fopen ("conftest.val", "w");
16941   if (! f)
16942     exit (1);
16943   if (((long) (sizeof (int *))) < 0)
16944     {
16945       long i = longval ();
16946       if (i != ((long) (sizeof (int *))))
16947         exit (1);
16948       fprintf (f, "%ld\n", i);
16949     }
16950   else
16951     {
16952       unsigned long i = ulongval ();
16953       if (i != ((long) (sizeof (int *))))
16954         exit (1);
16955       fprintf (f, "%lu\n", i);
16956     }
16957   exit (ferror (f) || fclose (f) != 0);
16958
16959   ;
16960   return 0;
16961 }
16962 _ACEOF
16963 rm -f conftest$ac_exeext
16964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16965   (eval $ac_link) 2>&5
16966   ac_status=$?
16967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970   (eval $ac_try) 2>&5
16971   ac_status=$?
16972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973   (exit $ac_status); }; }; then
16974   ac_cv_sizeof_int_p=`cat conftest.val`
16975 else
16976   echo "$as_me: program exited with status $ac_status" >&5
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16979
16980 ( exit $ac_status )
16981 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16982 See \`config.log' for more details." >&5
16983 echo "$as_me: error: cannot compute sizeof (int *), 77
16984 See \`config.log' for more details." >&2;}
16985    { (exit 1); exit 1; }; }
16986 fi
16987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16988 fi
16989 fi
16990 rm -f conftest.val
16991 else
16992   ac_cv_sizeof_int_p=0
16993 fi
16994 fi
16995 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16996 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16997 cat >>confdefs.h <<_ACEOF
16998 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16999 _ACEOF
17000
17001
17002
17003 # Check for sys/types.h types
17004 echo "$as_me:$LINENO: checking for u_int type" >&5
17005 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
17006 if test "${ac_cv_have_u_int+set}" = set; then
17007   echo $ECHO_N "(cached) $ECHO_C" >&6
17008 else
17009
17010     cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h.  */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h.  */
17016  #include <sys/types.h>
17017 int
17018 main ()
17019 {
17020  u_int a; a = 1;
17021   ;
17022   return 0;
17023 }
17024 _ACEOF
17025 rm -f conftest.$ac_objext
17026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17027   (eval $ac_compile) 2>conftest.er1
17028   ac_status=$?
17029   grep -v '^ *+' conftest.er1 >conftest.err
17030   rm -f conftest.er1
17031   cat conftest.err >&5
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); } &&
17034          { ac_try='test -z "$ac_c_werror_flag"
17035                          || test ! -s conftest.err'
17036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037   (eval $ac_try) 2>&5
17038   ac_status=$?
17039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040   (exit $ac_status); }; } &&
17041          { ac_try='test -s conftest.$ac_objext'
17042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043   (eval $ac_try) 2>&5
17044   ac_status=$?
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); }; }; then
17047    ac_cv_have_u_int="yes"
17048 else
17049   echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17051
17052  ac_cv_have_u_int="no"
17053
17054 fi
17055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17056
17057 fi
17058 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17059 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17060 if test "x$ac_cv_have_u_int" = "xyes" ; then
17061    cat >>confdefs.h <<\_ACEOF
17062 #define HAVE_U_INT 1
17063 _ACEOF
17064
17065    have_u_int=1
17066 fi
17067
17068 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17069 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17070 if test "${ac_cv_have_intmax_t+set}" = set; then
17071   echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073
17074    cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h.  */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h.  */
17080  #include <sys/types.h>
17081 int
17082 main ()
17083 {
17084  intmax_t a; a = 1;
17085   ;
17086   return 0;
17087 }
17088 _ACEOF
17089 rm -f conftest.$ac_objext
17090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17091   (eval $ac_compile) 2>conftest.er1
17092   ac_status=$?
17093   grep -v '^ *+' conftest.er1 >conftest.err
17094   rm -f conftest.er1
17095   cat conftest.err >&5
17096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097   (exit $ac_status); } &&
17098          { ac_try='test -z "$ac_c_werror_flag"
17099                          || test ! -s conftest.err'
17100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101   (eval $ac_try) 2>&5
17102   ac_status=$?
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); }; } &&
17105          { ac_try='test -s conftest.$ac_objext'
17106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107   (eval $ac_try) 2>&5
17108   ac_status=$?
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); }; }; then
17111    ac_cv_have_intmax_t="yes"
17112 else
17113   echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17115
17116
17117          cat >conftest.$ac_ext <<_ACEOF
17118 /* confdefs.h.  */
17119 _ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h.  */
17123  #include <stdint.h>
17124 int
17125 main ()
17126 {
17127  intmax_t a; a = 1;
17128   ;
17129   return 0;
17130 }
17131 _ACEOF
17132 rm -f conftest.$ac_objext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17134   (eval $ac_compile) 2>conftest.er1
17135   ac_status=$?
17136   grep -v '^ *+' conftest.er1 >conftest.err
17137   rm -f conftest.er1
17138   cat conftest.err >&5
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); } &&
17141          { ac_try='test -z "$ac_c_werror_flag"
17142                          || test ! -s conftest.err'
17143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144   (eval $ac_try) 2>&5
17145   ac_status=$?
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); }; } &&
17148          { ac_try='test -s conftest.$ac_objext'
17149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150   (eval $ac_try) 2>&5
17151   ac_status=$?
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); }; }; then
17154    ac_cv_have_intmax_t="yes"
17155 else
17156   echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17158
17159  ac_cv_have_intmax_t="no"
17160
17161 fi
17162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17163
17164
17165 fi
17166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17167
17168
17169 fi
17170 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17171 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17172 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17173    cat >>confdefs.h <<\_ACEOF
17174 #define HAVE_INTMAX_T 1
17175 _ACEOF
17176
17177    have_intmax_t=1
17178 fi
17179
17180
17181 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17182 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17183 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17184   echo $ECHO_N "(cached) $ECHO_C" >&6
17185 else
17186
17187    cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h.  */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h.  */
17193  #include <sys/types.h>
17194 int
17195 main ()
17196 {
17197  u_intmax_t a; a = 1;
17198   ;
17199   return 0;
17200 }
17201 _ACEOF
17202 rm -f conftest.$ac_objext
17203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17204   (eval $ac_compile) 2>conftest.er1
17205   ac_status=$?
17206   grep -v '^ *+' conftest.er1 >conftest.err
17207   rm -f conftest.er1
17208   cat conftest.err >&5
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); } &&
17211          { ac_try='test -z "$ac_c_werror_flag"
17212                          || test ! -s conftest.err'
17213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214   (eval $ac_try) 2>&5
17215   ac_status=$?
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); }; } &&
17218          { ac_try='test -s conftest.$ac_objext'
17219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220   (eval $ac_try) 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); }; }; then
17224    ac_cv_have_u_intmax_t="yes"
17225 else
17226   echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17228
17229
17230          cat >conftest.$ac_ext <<_ACEOF
17231 /* confdefs.h.  */
17232 _ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h.  */
17236  #include <stdint.h>
17237 int
17238 main ()
17239 {
17240  u_intmax_t a; a = 1;
17241   ;
17242   return 0;
17243 }
17244 _ACEOF
17245 rm -f conftest.$ac_objext
17246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17247   (eval $ac_compile) 2>conftest.er1
17248   ac_status=$?
17249   grep -v '^ *+' conftest.er1 >conftest.err
17250   rm -f conftest.er1
17251   cat conftest.err >&5
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); } &&
17254          { ac_try='test -z "$ac_c_werror_flag"
17255                          || test ! -s conftest.err'
17256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257   (eval $ac_try) 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); }; } &&
17261          { ac_try='test -s conftest.$ac_objext'
17262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263   (eval $ac_try) 2>&5
17264   ac_status=$?
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); }; }; then
17267    ac_cv_have_u_intmax_t="yes"
17268 else
17269   echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17271
17272  ac_cv_have_u_intmax_t="no"
17273
17274 fi
17275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17276
17277
17278 fi
17279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17280
17281 fi
17282 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17283 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17284 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17285    cat >>confdefs.h <<\_ACEOF
17286 #define HAVE_U_INTMAX_T 1
17287 _ACEOF
17288
17289    have_u_intmax_t=1
17290 fi
17291
17292
17293 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17294 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17295 if test "${ac_cv_have_intxx_t+set}" = set; then
17296   echo $ECHO_N "(cached) $ECHO_C" >&6
17297 else
17298
17299    cat >conftest.$ac_ext <<_ACEOF
17300 /* confdefs.h.  */
17301 _ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h.  */
17305  #include <sys/types.h>
17306 int
17307 main ()
17308 {
17309  int8_t a; int16_t b; int32_t c; a = b = c = 1;
17310   ;
17311   return 0;
17312 }
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316   (eval $ac_compile) 2>conftest.er1
17317   ac_status=$?
17318   grep -v '^ *+' conftest.er1 >conftest.err
17319   rm -f conftest.er1
17320   cat conftest.err >&5
17321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322   (exit $ac_status); } &&
17323          { ac_try='test -z "$ac_c_werror_flag"
17324                          || test ! -s conftest.err'
17325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326   (eval $ac_try) 2>&5
17327   ac_status=$?
17328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329   (exit $ac_status); }; } &&
17330          { ac_try='test -s conftest.$ac_objext'
17331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332   (eval $ac_try) 2>&5
17333   ac_status=$?
17334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335   (exit $ac_status); }; }; then
17336    ac_cv_have_intxx_t="yes"
17337 else
17338   echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17340
17341  ac_cv_have_intxx_t="no"
17342
17343 fi
17344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17345
17346 fi
17347 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17348 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17349 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17350    cat >>confdefs.h <<\_ACEOF
17351 #define HAVE_INTXX_T 1
17352 _ACEOF
17353
17354    have_intxx_t=1
17355 fi
17356
17357 echo "$as_me:$LINENO: checking for int64_t type" >&5
17358 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17359 if test "${ac_cv_have_int64_t+set}" = set; then
17360   echo $ECHO_N "(cached) $ECHO_C" >&6
17361 else
17362
17363    cat >conftest.$ac_ext <<_ACEOF
17364 /* confdefs.h.  */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h.  */
17369  #include <sys/types.h>
17370 int
17371 main ()
17372 {
17373  int64_t a; a = 1;
17374   ;
17375   return 0;
17376 }
17377 _ACEOF
17378 rm -f conftest.$ac_objext
17379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17380   (eval $ac_compile) 2>conftest.er1
17381   ac_status=$?
17382   grep -v '^ *+' conftest.er1 >conftest.err
17383   rm -f conftest.er1
17384   cat conftest.err >&5
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); } &&
17387          { ac_try='test -z "$ac_c_werror_flag"
17388                          || test ! -s conftest.err'
17389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390   (eval $ac_try) 2>&5
17391   ac_status=$?
17392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393   (exit $ac_status); }; } &&
17394          { ac_try='test -s conftest.$ac_objext'
17395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396   (eval $ac_try) 2>&5
17397   ac_status=$?
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); }; }; then
17400    ac_cv_have_int64_t="yes"
17401 else
17402   echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17404
17405  ac_cv_have_int64_t="no"
17406
17407 fi
17408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17409
17410 fi
17411 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17412 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17413 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17414    cat >>confdefs.h <<\_ACEOF
17415 #define HAVE_INT64_T 1
17416 _ACEOF
17417
17418    have_int64_t=1
17419 fi
17420
17421 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17422 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17423 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17424   echo $ECHO_N "(cached) $ECHO_C" >&6
17425 else
17426
17427    cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h.  */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h.  */
17433  #include <sys/types.h>
17434 int
17435 main ()
17436 {
17437  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17438   ;
17439   return 0;
17440 }
17441 _ACEOF
17442 rm -f conftest.$ac_objext
17443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17444   (eval $ac_compile) 2>conftest.er1
17445   ac_status=$?
17446   grep -v '^ *+' conftest.er1 >conftest.err
17447   rm -f conftest.er1
17448   cat conftest.err >&5
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); } &&
17451          { ac_try='test -z "$ac_c_werror_flag"
17452                          || test ! -s conftest.err'
17453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454   (eval $ac_try) 2>&5
17455   ac_status=$?
17456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457   (exit $ac_status); }; } &&
17458          { ac_try='test -s conftest.$ac_objext'
17459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460   (eval $ac_try) 2>&5
17461   ac_status=$?
17462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463   (exit $ac_status); }; }; then
17464    ac_cv_have_u_intxx_t="yes"
17465 else
17466   echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17468
17469  ac_cv_have_u_intxx_t="no"
17470
17471 fi
17472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17473
17474 fi
17475 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17476 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17477 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17478    cat >>confdefs.h <<\_ACEOF
17479 #define HAVE_U_INTXX_T 1
17480 _ACEOF
17481
17482    have_u_intxx_t=1
17483 fi
17484
17485 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17486 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17487 if test "${ac_cv_have_u_int64_t+set}" = set; then
17488   echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490
17491    cat >conftest.$ac_ext <<_ACEOF
17492 /* confdefs.h.  */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h.  */
17497  #include <sys/types.h>
17498 int
17499 main ()
17500 {
17501  u_int64_t a; a = 1;
17502   ;
17503   return 0;
17504 }
17505 _ACEOF
17506 rm -f conftest.$ac_objext
17507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17508   (eval $ac_compile) 2>conftest.er1
17509   ac_status=$?
17510   grep -v '^ *+' conftest.er1 >conftest.err
17511   rm -f conftest.er1
17512   cat conftest.err >&5
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); } &&
17515          { ac_try='test -z "$ac_c_werror_flag"
17516                          || test ! -s conftest.err'
17517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518   (eval $ac_try) 2>&5
17519   ac_status=$?
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); }; } &&
17522          { ac_try='test -s conftest.$ac_objext'
17523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524   (eval $ac_try) 2>&5
17525   ac_status=$?
17526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); }; }; then
17528    ac_cv_have_u_int64_t="yes"
17529 else
17530   echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17532
17533  ac_cv_have_u_int64_t="no"
17534
17535 fi
17536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17537
17538 fi
17539 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17540 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17541 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17542    cat >>confdefs.h <<\_ACEOF
17543 #define HAVE_U_INT64_T 1
17544 _ACEOF
17545
17546    have_u_int64_t=1
17547 fi
17548
17549 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17550            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17551 then
17552    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17553 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17554    cat >conftest.$ac_ext <<_ACEOF
17555 /* confdefs.h.  */
17556 _ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h.  */
17560  #include <sys/bitypes.h>
17561 int
17562 main ()
17563 {
17564  int8_t a; int16_t b; int32_t c;
17565         u_int8_t e; u_int16_t f; u_int32_t g;
17566         a = b = c = e = f = g = 1;
17567   ;
17568   return 0;
17569 }
17570 _ACEOF
17571 rm -f conftest.$ac_objext
17572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17573   (eval $ac_compile) 2>conftest.er1
17574   ac_status=$?
17575   grep -v '^ *+' conftest.er1 >conftest.err
17576   rm -f conftest.er1
17577   cat conftest.err >&5
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); } &&
17580          { ac_try='test -z "$ac_c_werror_flag"
17581                          || test ! -s conftest.err'
17582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583   (eval $ac_try) 2>&5
17584   ac_status=$?
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); }; } &&
17587          { ac_try='test -s conftest.$ac_objext'
17588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589   (eval $ac_try) 2>&5
17590   ac_status=$?
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); }; }; then
17593    cat >>confdefs.h <<\_ACEOF
17594 #define HAVE_U_INTXX_T 1
17595 _ACEOF
17596
17597         cat >>confdefs.h <<\_ACEOF
17598 #define HAVE_INTXX_T 1
17599 _ACEOF
17600
17601         cat >>confdefs.h <<\_ACEOF
17602 #define HAVE_SYS_BITYPES_H 1
17603 _ACEOF
17604
17605         echo "$as_me:$LINENO: result: yes" >&5
17606 echo "${ECHO_T}yes" >&6
17607 else
17608   echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17610
17611  echo "$as_me:$LINENO: result: no" >&5
17612 echo "${ECHO_T}no" >&6
17613
17614 fi
17615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17616 fi
17617
17618 if test -z "$have_u_intxx_t" ; then
17619    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17620 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17621 if test "${ac_cv_have_uintxx_t+set}" = set; then
17622   echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624
17625       cat >conftest.$ac_ext <<_ACEOF
17626 /* confdefs.h.  */
17627 _ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h.  */
17631  #include <sys/types.h>
17632 int
17633 main ()
17634 {
17635  uint8_t a; uint16_t b;
17636            uint32_t c; a = b = c = 1;
17637   ;
17638   return 0;
17639 }
17640 _ACEOF
17641 rm -f conftest.$ac_objext
17642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17643   (eval $ac_compile) 2>conftest.er1
17644   ac_status=$?
17645   grep -v '^ *+' conftest.er1 >conftest.err
17646   rm -f conftest.er1
17647   cat conftest.err >&5
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); } &&
17650          { ac_try='test -z "$ac_c_werror_flag"
17651                          || test ! -s conftest.err'
17652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653   (eval $ac_try) 2>&5
17654   ac_status=$?
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); }; } &&
17657          { ac_try='test -s conftest.$ac_objext'
17658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659   (eval $ac_try) 2>&5
17660   ac_status=$?
17661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662   (exit $ac_status); }; }; then
17663    ac_cv_have_uintxx_t="yes"
17664 else
17665   echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668  ac_cv_have_uintxx_t="no"
17669
17670 fi
17671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17672
17673 fi
17674 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17675 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17676    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17677       cat >>confdefs.h <<\_ACEOF
17678 #define HAVE_UINTXX_T 1
17679 _ACEOF
17680
17681    fi
17682 fi
17683
17684 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17685           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17686 then
17687    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17688 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17689    cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h.  */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h.  */
17695  #include <sys/bitypes.h>
17696 int
17697 main ()
17698 {
17699  int64_t a; u_int64_t b;
17700        a = b = 1;
17701   ;
17702   return 0;
17703 }
17704 _ACEOF
17705 rm -f conftest.$ac_objext
17706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17707   (eval $ac_compile) 2>conftest.er1
17708   ac_status=$?
17709   grep -v '^ *+' conftest.er1 >conftest.err
17710   rm -f conftest.er1
17711   cat conftest.err >&5
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); } &&
17714          { ac_try='test -z "$ac_c_werror_flag"
17715                          || test ! -s conftest.err'
17716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717   (eval $ac_try) 2>&5
17718   ac_status=$?
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); }; } &&
17721          { ac_try='test -s conftest.$ac_objext'
17722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723   (eval $ac_try) 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; }; then
17727    cat >>confdefs.h <<\_ACEOF
17728 #define HAVE_U_INT64_T 1
17729 _ACEOF
17730
17731        cat >>confdefs.h <<\_ACEOF
17732 #define HAVE_INT64_T 1
17733 _ACEOF
17734
17735        echo "$as_me:$LINENO: result: yes" >&5
17736 echo "${ECHO_T}yes" >&6
17737 else
17738   echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17740
17741  echo "$as_me:$LINENO: result: no" >&5
17742 echo "${ECHO_T}no" >&6
17743
17744 fi
17745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17746 fi
17747
17748 if (test -z "$have_uintxx_t" && \
17749           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17750 then
17751    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17752 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17753    cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h.  */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h.  */
17759  #include <sys/bitypes.h>
17760 int
17761 main ()
17762 {
17763  uint8_t a; uint16_t b;
17764           uint32_t c; a = b = c = 1;
17765   ;
17766   return 0;
17767 }
17768 _ACEOF
17769 rm -f conftest.$ac_objext
17770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17771   (eval $ac_compile) 2>conftest.er1
17772   ac_status=$?
17773   grep -v '^ *+' conftest.er1 >conftest.err
17774   rm -f conftest.er1
17775   cat conftest.err >&5
17776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777   (exit $ac_status); } &&
17778          { ac_try='test -z "$ac_c_werror_flag"
17779                          || test ! -s conftest.err'
17780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781   (eval $ac_try) 2>&5
17782   ac_status=$?
17783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784   (exit $ac_status); }; } &&
17785          { ac_try='test -s conftest.$ac_objext'
17786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787   (eval $ac_try) 2>&5
17788   ac_status=$?
17789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790   (exit $ac_status); }; }; then
17791    cat >>confdefs.h <<\_ACEOF
17792 #define HAVE_UINTXX_T 1
17793 _ACEOF
17794
17795        echo "$as_me:$LINENO: result: yes" >&5
17796 echo "${ECHO_T}yes" >&6
17797 else
17798   echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801  echo "$as_me:$LINENO: result: no" >&5
17802 echo "${ECHO_T}no" >&6
17803
17804 fi
17805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17806
17807 fi
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825 for ac_func in \
17826         fork \
17827         getcwd \
17828         gethostname \
17829         getpid \
17830         gettimeofday \
17831         setpgid \
17832         setpgrp \
17833         setsid \
17834         signal \
17835         strerror \
17836         strncmp \
17837         strncpy \
17838         vfprintf \
17839
17840 do
17841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17842 echo "$as_me:$LINENO: checking for $ac_func" >&5
17843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17844 if eval "test \"\${$as_ac_var+set}\" = set"; then
17845   echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847   cat >conftest.$ac_ext <<_ACEOF
17848 /* confdefs.h.  */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h.  */
17853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17855 #define $ac_func innocuous_$ac_func
17856
17857 /* System header to define __stub macros and hopefully few prototypes,
17858     which can conflict with char $ac_func (); below.
17859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17860     <limits.h> exists even on freestanding compilers.  */
17861
17862 #ifdef __STDC__
17863 # include <limits.h>
17864 #else
17865 # include <assert.h>
17866 #endif
17867
17868 #undef $ac_func
17869
17870 /* Override any gcc2 internal prototype to avoid an error.  */
17871 #ifdef __cplusplus
17872 extern "C"
17873 {
17874 #endif
17875 /* We use char because int might match the return type of a gcc2
17876    builtin and then its argument prototype would still apply.  */
17877 char $ac_func ();
17878 /* The GNU C library defines this for functions which it implements
17879     to always fail with ENOSYS.  Some functions are actually named
17880     something starting with __ and the normal name is an alias.  */
17881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17882 choke me
17883 #else
17884 char (*f) () = $ac_func;
17885 #endif
17886 #ifdef __cplusplus
17887 }
17888 #endif
17889
17890 int
17891 main ()
17892 {
17893 return f != $ac_func;
17894   ;
17895   return 0;
17896 }
17897 _ACEOF
17898 rm -f conftest.$ac_objext conftest$ac_exeext
17899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17900   (eval $ac_link) 2>conftest.er1
17901   ac_status=$?
17902   grep -v '^ *+' conftest.er1 >conftest.err
17903   rm -f conftest.er1
17904   cat conftest.err >&5
17905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906   (exit $ac_status); } &&
17907          { ac_try='test -z "$ac_c_werror_flag"
17908                          || test ! -s conftest.err'
17909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910   (eval $ac_try) 2>&5
17911   ac_status=$?
17912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913   (exit $ac_status); }; } &&
17914          { ac_try='test -s conftest$ac_exeext'
17915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916   (eval $ac_try) 2>&5
17917   ac_status=$?
17918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919   (exit $ac_status); }; }; then
17920   eval "$as_ac_var=yes"
17921 else
17922   echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17924
17925 eval "$as_ac_var=no"
17926 fi
17927 rm -f conftest.err conftest.$ac_objext \
17928       conftest$ac_exeext conftest.$ac_ext
17929 fi
17930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17932 if test `eval echo '${'$as_ac_var'}'` = yes; then
17933   cat >>confdefs.h <<_ACEOF
17934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17935 _ACEOF
17936
17937 else
17938   echo 'configure: cannot find needed function.'; exit 1
17939
17940 fi
17941 done
17942
17943
17944
17945 for ac_func in fchdir
17946 do
17947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17948 echo "$as_me:$LINENO: checking for $ac_func" >&5
17949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17950 if eval "test \"\${$as_ac_var+set}\" = set"; then
17951   echo $ECHO_N "(cached) $ECHO_C" >&6
17952 else
17953   cat >conftest.$ac_ext <<_ACEOF
17954 /* confdefs.h.  */
17955 _ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h.  */
17959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17961 #define $ac_func innocuous_$ac_func
17962
17963 /* System header to define __stub macros and hopefully few prototypes,
17964     which can conflict with char $ac_func (); below.
17965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17966     <limits.h> exists even on freestanding compilers.  */
17967
17968 #ifdef __STDC__
17969 # include <limits.h>
17970 #else
17971 # include <assert.h>
17972 #endif
17973
17974 #undef $ac_func
17975
17976 /* Override any gcc2 internal prototype to avoid an error.  */
17977 #ifdef __cplusplus
17978 extern "C"
17979 {
17980 #endif
17981 /* We use char because int might match the return type of a gcc2
17982    builtin and then its argument prototype would still apply.  */
17983 char $ac_func ();
17984 /* The GNU C library defines this for functions which it implements
17985     to always fail with ENOSYS.  Some functions are actually named
17986     something starting with __ and the normal name is an alias.  */
17987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17988 choke me
17989 #else
17990 char (*f) () = $ac_func;
17991 #endif
17992 #ifdef __cplusplus
17993 }
17994 #endif
17995
17996 int
17997 main ()
17998 {
17999 return f != $ac_func;
18000   ;
18001   return 0;
18002 }
18003 _ACEOF
18004 rm -f conftest.$ac_objext conftest$ac_exeext
18005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18006   (eval $ac_link) 2>conftest.er1
18007   ac_status=$?
18008   grep -v '^ *+' conftest.er1 >conftest.err
18009   rm -f conftest.er1
18010   cat conftest.err >&5
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); } &&
18013          { ac_try='test -z "$ac_c_werror_flag"
18014                          || test ! -s conftest.err'
18015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18016   (eval $ac_try) 2>&5
18017   ac_status=$?
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); }; } &&
18020          { ac_try='test -s conftest$ac_exeext'
18021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022   (eval $ac_try) 2>&5
18023   ac_status=$?
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); }; }; then
18026   eval "$as_ac_var=yes"
18027 else
18028   echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18030
18031 eval "$as_ac_var=no"
18032 fi
18033 rm -f conftest.err conftest.$ac_objext \
18034       conftest$ac_exeext conftest.$ac_ext
18035 fi
18036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18038 if test `eval echo '${'$as_ac_var'}'` = yes; then
18039   cat >>confdefs.h <<_ACEOF
18040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18041 _ACEOF
18042  cat >>confdefs.h <<\_ACEOF
18043 #define HAVE_FCHDIR 1
18044 _ACEOF
18045
18046 fi
18047 done
18048
18049
18050 for ac_func in strtoll
18051 do
18052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18053 echo "$as_me:$LINENO: checking for $ac_func" >&5
18054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18055 if eval "test \"\${$as_ac_var+set}\" = set"; then
18056   echo $ECHO_N "(cached) $ECHO_C" >&6
18057 else
18058   cat >conftest.$ac_ext <<_ACEOF
18059 /* confdefs.h.  */
18060 _ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h.  */
18064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18066 #define $ac_func innocuous_$ac_func
18067
18068 /* System header to define __stub macros and hopefully few prototypes,
18069     which can conflict with char $ac_func (); below.
18070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18071     <limits.h> exists even on freestanding compilers.  */
18072
18073 #ifdef __STDC__
18074 # include <limits.h>
18075 #else
18076 # include <assert.h>
18077 #endif
18078
18079 #undef $ac_func
18080
18081 /* Override any gcc2 internal prototype to avoid an error.  */
18082 #ifdef __cplusplus
18083 extern "C"
18084 {
18085 #endif
18086 /* We use char because int might match the return type of a gcc2
18087    builtin and then its argument prototype would still apply.  */
18088 char $ac_func ();
18089 /* The GNU C library defines this for functions which it implements
18090     to always fail with ENOSYS.  Some functions are actually named
18091     something starting with __ and the normal name is an alias.  */
18092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18093 choke me
18094 #else
18095 char (*f) () = $ac_func;
18096 #endif
18097 #ifdef __cplusplus
18098 }
18099 #endif
18100
18101 int
18102 main ()
18103 {
18104 return f != $ac_func;
18105   ;
18106   return 0;
18107 }
18108 _ACEOF
18109 rm -f conftest.$ac_objext conftest$ac_exeext
18110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18111   (eval $ac_link) 2>conftest.er1
18112   ac_status=$?
18113   grep -v '^ *+' conftest.er1 >conftest.err
18114   rm -f conftest.er1
18115   cat conftest.err >&5
18116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117   (exit $ac_status); } &&
18118          { ac_try='test -z "$ac_c_werror_flag"
18119                          || test ! -s conftest.err'
18120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121   (eval $ac_try) 2>&5
18122   ac_status=$?
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); }; } &&
18125          { ac_try='test -s conftest$ac_exeext'
18126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127   (eval $ac_try) 2>&5
18128   ac_status=$?
18129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130   (exit $ac_status); }; }; then
18131   eval "$as_ac_var=yes"
18132 else
18133   echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18135
18136 eval "$as_ac_var=no"
18137 fi
18138 rm -f conftest.err conftest.$ac_objext \
18139       conftest$ac_exeext conftest.$ac_ext
18140 fi
18141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18143 if test `eval echo '${'$as_ac_var'}'` = yes; then
18144   cat >>confdefs.h <<_ACEOF
18145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18146 _ACEOF
18147  cat >>confdefs.h <<\_ACEOF
18148 #define HAVE_STRTOLL 1
18149 _ACEOF
18150
18151 fi
18152 done
18153
18154
18155
18156 for ac_func in chflags
18157 do
18158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18159 echo "$as_me:$LINENO: checking for $ac_func" >&5
18160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18161 if eval "test \"\${$as_ac_var+set}\" = set"; then
18162   echo $ECHO_N "(cached) $ECHO_C" >&6
18163 else
18164   cat >conftest.$ac_ext <<_ACEOF
18165 /* confdefs.h.  */
18166 _ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h.  */
18170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18172 #define $ac_func innocuous_$ac_func
18173
18174 /* System header to define __stub macros and hopefully few prototypes,
18175     which can conflict with char $ac_func (); below.
18176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18177     <limits.h> exists even on freestanding compilers.  */
18178
18179 #ifdef __STDC__
18180 # include <limits.h>
18181 #else
18182 # include <assert.h>
18183 #endif
18184
18185 #undef $ac_func
18186
18187 /* Override any gcc2 internal prototype to avoid an error.  */
18188 #ifdef __cplusplus
18189 extern "C"
18190 {
18191 #endif
18192 /* We use char because int might match the return type of a gcc2
18193    builtin and then its argument prototype would still apply.  */
18194 char $ac_func ();
18195 /* The GNU C library defines this for functions which it implements
18196     to always fail with ENOSYS.  Some functions are actually named
18197     something starting with __ and the normal name is an alias.  */
18198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18199 choke me
18200 #else
18201 char (*f) () = $ac_func;
18202 #endif
18203 #ifdef __cplusplus
18204 }
18205 #endif
18206
18207 int
18208 main ()
18209 {
18210 return f != $ac_func;
18211   ;
18212   return 0;
18213 }
18214 _ACEOF
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18217   (eval $ac_link) 2>conftest.er1
18218   ac_status=$?
18219   grep -v '^ *+' conftest.er1 >conftest.err
18220   rm -f conftest.er1
18221   cat conftest.err >&5
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); } &&
18224          { ac_try='test -z "$ac_c_werror_flag"
18225                          || test ! -s conftest.err'
18226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227   (eval $ac_try) 2>&5
18228   ac_status=$?
18229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230   (exit $ac_status); }; } &&
18231          { ac_try='test -s conftest$ac_exeext'
18232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233   (eval $ac_try) 2>&5
18234   ac_status=$?
18235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236   (exit $ac_status); }; }; then
18237   eval "$as_ac_var=yes"
18238 else
18239   echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18241
18242 eval "$as_ac_var=no"
18243 fi
18244 rm -f conftest.err conftest.$ac_objext \
18245       conftest$ac_exeext conftest.$ac_ext
18246 fi
18247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18249 if test `eval echo '${'$as_ac_var'}'` = yes; then
18250   cat >>confdefs.h <<_ACEOF
18251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18252 _ACEOF
18253
18254 fi
18255 done
18256
18257
18258
18259
18260
18261
18262 for ac_func in snprintf vsnprintf gethostid fseeko
18263 do
18264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18265 echo "$as_me:$LINENO: checking for $ac_func" >&5
18266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18267 if eval "test \"\${$as_ac_var+set}\" = set"; then
18268   echo $ECHO_N "(cached) $ECHO_C" >&6
18269 else
18270   cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h.  */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h.  */
18276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18278 #define $ac_func innocuous_$ac_func
18279
18280 /* System header to define __stub macros and hopefully few prototypes,
18281     which can conflict with char $ac_func (); below.
18282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18283     <limits.h> exists even on freestanding compilers.  */
18284
18285 #ifdef __STDC__
18286 # include <limits.h>
18287 #else
18288 # include <assert.h>
18289 #endif
18290
18291 #undef $ac_func
18292
18293 /* Override any gcc2 internal prototype to avoid an error.  */
18294 #ifdef __cplusplus
18295 extern "C"
18296 {
18297 #endif
18298 /* We use char because int might match the return type of a gcc2
18299    builtin and then its argument prototype would still apply.  */
18300 char $ac_func ();
18301 /* The GNU C library defines this for functions which it implements
18302     to always fail with ENOSYS.  Some functions are actually named
18303     something starting with __ and the normal name is an alias.  */
18304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18305 choke me
18306 #else
18307 char (*f) () = $ac_func;
18308 #endif
18309 #ifdef __cplusplus
18310 }
18311 #endif
18312
18313 int
18314 main ()
18315 {
18316 return f != $ac_func;
18317   ;
18318   return 0;
18319 }
18320 _ACEOF
18321 rm -f conftest.$ac_objext conftest$ac_exeext
18322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18323   (eval $ac_link) 2>conftest.er1
18324   ac_status=$?
18325   grep -v '^ *+' conftest.er1 >conftest.err
18326   rm -f conftest.er1
18327   cat conftest.err >&5
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); } &&
18330          { ac_try='test -z "$ac_c_werror_flag"
18331                          || test ! -s conftest.err'
18332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333   (eval $ac_try) 2>&5
18334   ac_status=$?
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); }; } &&
18337          { ac_try='test -s conftest$ac_exeext'
18338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339   (eval $ac_try) 2>&5
18340   ac_status=$?
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); }; }; then
18343   eval "$as_ac_var=yes"
18344 else
18345   echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18347
18348 eval "$as_ac_var=no"
18349 fi
18350 rm -f conftest.err conftest.$ac_objext \
18351       conftest$ac_exeext conftest.$ac_ext
18352 fi
18353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18355 if test `eval echo '${'$as_ac_var'}'` = yes; then
18356   cat >>confdefs.h <<_ACEOF
18357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18358 _ACEOF
18359
18360 fi
18361 done
18362
18363
18364
18365
18366
18367
18368 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18369 do
18370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18371 echo "$as_me:$LINENO: checking for $ac_func" >&5
18372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18373 if eval "test \"\${$as_ac_var+set}\" = set"; then
18374   echo $ECHO_N "(cached) $ECHO_C" >&6
18375 else
18376   cat >conftest.$ac_ext <<_ACEOF
18377 /* confdefs.h.  */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h.  */
18382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18384 #define $ac_func innocuous_$ac_func
18385
18386 /* System header to define __stub macros and hopefully few prototypes,
18387     which can conflict with char $ac_func (); below.
18388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18389     <limits.h> exists even on freestanding compilers.  */
18390
18391 #ifdef __STDC__
18392 # include <limits.h>
18393 #else
18394 # include <assert.h>
18395 #endif
18396
18397 #undef $ac_func
18398
18399 /* Override any gcc2 internal prototype to avoid an error.  */
18400 #ifdef __cplusplus
18401 extern "C"
18402 {
18403 #endif
18404 /* We use char because int might match the return type of a gcc2
18405    builtin and then its argument prototype would still apply.  */
18406 char $ac_func ();
18407 /* The GNU C library defines this for functions which it implements
18408     to always fail with ENOSYS.  Some functions are actually named
18409     something starting with __ and the normal name is an alias.  */
18410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18411 choke me
18412 #else
18413 char (*f) () = $ac_func;
18414 #endif
18415 #ifdef __cplusplus
18416 }
18417 #endif
18418
18419 int
18420 main ()
18421 {
18422 return f != $ac_func;
18423   ;
18424   return 0;
18425 }
18426 _ACEOF
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18429   (eval $ac_link) 2>conftest.er1
18430   ac_status=$?
18431   grep -v '^ *+' conftest.er1 >conftest.err
18432   rm -f conftest.er1
18433   cat conftest.err >&5
18434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435   (exit $ac_status); } &&
18436          { ac_try='test -z "$ac_c_werror_flag"
18437                          || test ! -s conftest.err'
18438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439   (eval $ac_try) 2>&5
18440   ac_status=$?
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); }; } &&
18443          { ac_try='test -s conftest$ac_exeext'
18444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445   (eval $ac_try) 2>&5
18446   ac_status=$?
18447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448   (exit $ac_status); }; }; then
18449   eval "$as_ac_var=yes"
18450 else
18451   echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18453
18454 eval "$as_ac_var=no"
18455 fi
18456 rm -f conftest.err conftest.$ac_objext \
18457       conftest$ac_exeext conftest.$ac_ext
18458 fi
18459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18461 if test `eval echo '${'$as_ac_var'}'` = yes; then
18462   cat >>confdefs.h <<_ACEOF
18463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18464 _ACEOF
18465
18466 fi
18467 done
18468
18469
18470 # If resolver functions are not in libc check for -lnsl or -lresolv.
18471 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18472 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18473 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18474   echo $ECHO_N "(cached) $ECHO_C" >&6
18475 else
18476   cat >conftest.$ac_ext <<_ACEOF
18477 /* confdefs.h.  */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h.  */
18482 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18484 #define gethostbyname_r innocuous_gethostbyname_r
18485
18486 /* System header to define __stub macros and hopefully few prototypes,
18487     which can conflict with char gethostbyname_r (); below.
18488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18489     <limits.h> exists even on freestanding compilers.  */
18490
18491 #ifdef __STDC__
18492 # include <limits.h>
18493 #else
18494 # include <assert.h>
18495 #endif
18496
18497 #undef gethostbyname_r
18498
18499 /* Override any gcc2 internal prototype to avoid an error.  */
18500 #ifdef __cplusplus
18501 extern "C"
18502 {
18503 #endif
18504 /* We use char because int might match the return type of a gcc2
18505    builtin and then its argument prototype would still apply.  */
18506 char gethostbyname_r ();
18507 /* The GNU C library defines this for functions which it implements
18508     to always fail with ENOSYS.  Some functions are actually named
18509     something starting with __ and the normal name is an alias.  */
18510 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18511 choke me
18512 #else
18513 char (*f) () = gethostbyname_r;
18514 #endif
18515 #ifdef __cplusplus
18516 }
18517 #endif
18518
18519 int
18520 main ()
18521 {
18522 return f != gethostbyname_r;
18523   ;
18524   return 0;
18525 }
18526 _ACEOF
18527 rm -f conftest.$ac_objext conftest$ac_exeext
18528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18529   (eval $ac_link) 2>conftest.er1
18530   ac_status=$?
18531   grep -v '^ *+' conftest.er1 >conftest.err
18532   rm -f conftest.er1
18533   cat conftest.err >&5
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); } &&
18536          { ac_try='test -z "$ac_c_werror_flag"
18537                          || test ! -s conftest.err'
18538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539   (eval $ac_try) 2>&5
18540   ac_status=$?
18541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); }; } &&
18543          { ac_try='test -s conftest$ac_exeext'
18544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545   (eval $ac_try) 2>&5
18546   ac_status=$?
18547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); }; }; then
18549   ac_cv_func_gethostbyname_r=yes
18550 else
18551   echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18553
18554 ac_cv_func_gethostbyname_r=no
18555 fi
18556 rm -f conftest.err conftest.$ac_objext \
18557       conftest$ac_exeext conftest.$ac_ext
18558 fi
18559 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18560 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18561 if test $ac_cv_func_gethostbyname_r = yes; then
18562   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18563 echo "${ECHO_T}using libc's resolver" >&6
18564 else
18565
18566 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18567 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18568 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18569   echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571   ac_check_lib_save_LIBS=$LIBS
18572 LIBS="-lnsl  $LIBS"
18573 cat >conftest.$ac_ext <<_ACEOF
18574 /* confdefs.h.  */
18575 _ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h.  */
18579
18580 /* Override any gcc2 internal prototype to avoid an error.  */
18581 #ifdef __cplusplus
18582 extern "C"
18583 #endif
18584 /* We use char because int might match the return type of a gcc2
18585    builtin and then its argument prototype would still apply.  */
18586 char gethostbyname_r ();
18587 int
18588 main ()
18589 {
18590 gethostbyname_r ();
18591   ;
18592   return 0;
18593 }
18594 _ACEOF
18595 rm -f conftest.$ac_objext conftest$ac_exeext
18596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18597   (eval $ac_link) 2>conftest.er1
18598   ac_status=$?
18599   grep -v '^ *+' conftest.er1 >conftest.err
18600   rm -f conftest.er1
18601   cat conftest.err >&5
18602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603   (exit $ac_status); } &&
18604          { ac_try='test -z "$ac_c_werror_flag"
18605                          || test ! -s conftest.err'
18606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607   (eval $ac_try) 2>&5
18608   ac_status=$?
18609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610   (exit $ac_status); }; } &&
18611          { ac_try='test -s conftest$ac_exeext'
18612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613   (eval $ac_try) 2>&5
18614   ac_status=$?
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); }; }; then
18617   ac_cv_lib_nsl_gethostbyname_r=yes
18618 else
18619   echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18621
18622 ac_cv_lib_nsl_gethostbyname_r=no
18623 fi
18624 rm -f conftest.err conftest.$ac_objext \
18625       conftest$ac_exeext conftest.$ac_ext
18626 LIBS=$ac_check_lib_save_LIBS
18627 fi
18628 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18629 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18630 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18631   cat >>confdefs.h <<_ACEOF
18632 #define HAVE_LIBNSL 1
18633 _ACEOF
18634
18635   LIBS="-lnsl $LIBS"
18636
18637 fi
18638
18639
18640 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18641 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18642 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18643   echo $ECHO_N "(cached) $ECHO_C" >&6
18644 else
18645   ac_check_lib_save_LIBS=$LIBS
18646 LIBS="-lresolv  $LIBS"
18647 cat >conftest.$ac_ext <<_ACEOF
18648 /* confdefs.h.  */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h.  */
18653
18654 /* Override any gcc2 internal prototype to avoid an error.  */
18655 #ifdef __cplusplus
18656 extern "C"
18657 #endif
18658 /* We use char because int might match the return type of a gcc2
18659    builtin and then its argument prototype would still apply.  */
18660 char gethostbyname_r ();
18661 int
18662 main ()
18663 {
18664 gethostbyname_r ();
18665   ;
18666   return 0;
18667 }
18668 _ACEOF
18669 rm -f conftest.$ac_objext conftest$ac_exeext
18670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18671   (eval $ac_link) 2>conftest.er1
18672   ac_status=$?
18673   grep -v '^ *+' conftest.er1 >conftest.err
18674   rm -f conftest.er1
18675   cat conftest.err >&5
18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); } &&
18678          { ac_try='test -z "$ac_c_werror_flag"
18679                          || test ! -s conftest.err'
18680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681   (eval $ac_try) 2>&5
18682   ac_status=$?
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); }; } &&
18685          { ac_try='test -s conftest$ac_exeext'
18686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687   (eval $ac_try) 2>&5
18688   ac_status=$?
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); }; }; then
18691   ac_cv_lib_resolv_gethostbyname_r=yes
18692 else
18693   echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18695
18696 ac_cv_lib_resolv_gethostbyname_r=no
18697 fi
18698 rm -f conftest.err conftest.$ac_objext \
18699       conftest$ac_exeext conftest.$ac_ext
18700 LIBS=$ac_check_lib_save_LIBS
18701 fi
18702 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18703 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18704 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18705   cat >>confdefs.h <<_ACEOF
18706 #define HAVE_LIBRESOLV 1
18707 _ACEOF
18708
18709   LIBS="-lresolv $LIBS"
18710
18711 fi
18712
18713 fi
18714
18715
18716
18717
18718
18719 for ac_func in inet_pton
18720 do
18721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18722 echo "$as_me:$LINENO: checking for $ac_func" >&5
18723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18724 if eval "test \"\${$as_ac_var+set}\" = set"; then
18725   echo $ECHO_N "(cached) $ECHO_C" >&6
18726 else
18727   cat >conftest.$ac_ext <<_ACEOF
18728 /* confdefs.h.  */
18729 _ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h.  */
18733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18735 #define $ac_func innocuous_$ac_func
18736
18737 /* System header to define __stub macros and hopefully few prototypes,
18738     which can conflict with char $ac_func (); below.
18739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18740     <limits.h> exists even on freestanding compilers.  */
18741
18742 #ifdef __STDC__
18743 # include <limits.h>
18744 #else
18745 # include <assert.h>
18746 #endif
18747
18748 #undef $ac_func
18749
18750 /* Override any gcc2 internal prototype to avoid an error.  */
18751 #ifdef __cplusplus
18752 extern "C"
18753 {
18754 #endif
18755 /* We use char because int might match the return type of a gcc2
18756    builtin and then its argument prototype would still apply.  */
18757 char $ac_func ();
18758 /* The GNU C library defines this for functions which it implements
18759     to always fail with ENOSYS.  Some functions are actually named
18760     something starting with __ and the normal name is an alias.  */
18761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18762 choke me
18763 #else
18764 char (*f) () = $ac_func;
18765 #endif
18766 #ifdef __cplusplus
18767 }
18768 #endif
18769
18770 int
18771 main ()
18772 {
18773 return f != $ac_func;
18774   ;
18775   return 0;
18776 }
18777 _ACEOF
18778 rm -f conftest.$ac_objext conftest$ac_exeext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18780   (eval $ac_link) 2>conftest.er1
18781   ac_status=$?
18782   grep -v '^ *+' conftest.er1 >conftest.err
18783   rm -f conftest.er1
18784   cat conftest.err >&5
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); } &&
18787          { ac_try='test -z "$ac_c_werror_flag"
18788                          || test ! -s conftest.err'
18789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790   (eval $ac_try) 2>&5
18791   ac_status=$?
18792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); }; } &&
18794          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18800   eval "$as_ac_var=yes"
18801 else
18802   echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18804
18805 eval "$as_ac_var=no"
18806 fi
18807 rm -f conftest.err conftest.$ac_objext \
18808       conftest$ac_exeext conftest.$ac_ext
18809 fi
18810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18812 if test `eval echo '${'$as_ac_var'}'` = yes; then
18813   cat >>confdefs.h <<_ACEOF
18814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18815 _ACEOF
18816  cat >>confdefs.h <<\_ACEOF
18817 #define HAVE_INET_PTON 1
18818 _ACEOF
18819
18820 fi
18821 done
18822
18823
18824 for ac_func in inet_ntop
18825 do
18826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18827 echo "$as_me:$LINENO: checking for $ac_func" >&5
18828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18829 if eval "test \"\${$as_ac_var+set}\" = set"; then
18830   echo $ECHO_N "(cached) $ECHO_C" >&6
18831 else
18832   cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h.  */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h.  */
18838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18840 #define $ac_func innocuous_$ac_func
18841
18842 /* System header to define __stub macros and hopefully few prototypes,
18843     which can conflict with char $ac_func (); below.
18844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18845     <limits.h> exists even on freestanding compilers.  */
18846
18847 #ifdef __STDC__
18848 # include <limits.h>
18849 #else
18850 # include <assert.h>
18851 #endif
18852
18853 #undef $ac_func
18854
18855 /* Override any gcc2 internal prototype to avoid an error.  */
18856 #ifdef __cplusplus
18857 extern "C"
18858 {
18859 #endif
18860 /* We use char because int might match the return type of a gcc2
18861    builtin and then its argument prototype would still apply.  */
18862 char $ac_func ();
18863 /* The GNU C library defines this for functions which it implements
18864     to always fail with ENOSYS.  Some functions are actually named
18865     something starting with __ and the normal name is an alias.  */
18866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18867 choke me
18868 #else
18869 char (*f) () = $ac_func;
18870 #endif
18871 #ifdef __cplusplus
18872 }
18873 #endif
18874
18875 int
18876 main ()
18877 {
18878 return f != $ac_func;
18879   ;
18880   return 0;
18881 }
18882 _ACEOF
18883 rm -f conftest.$ac_objext conftest$ac_exeext
18884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18885   (eval $ac_link) 2>conftest.er1
18886   ac_status=$?
18887   grep -v '^ *+' conftest.er1 >conftest.err
18888   rm -f conftest.er1
18889   cat conftest.err >&5
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); } &&
18892          { ac_try='test -z "$ac_c_werror_flag"
18893                          || test ! -s conftest.err'
18894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895   (eval $ac_try) 2>&5
18896   ac_status=$?
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); }; } &&
18899          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18905   eval "$as_ac_var=yes"
18906 else
18907   echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18909
18910 eval "$as_ac_var=no"
18911 fi
18912 rm -f conftest.err conftest.$ac_objext \
18913       conftest$ac_exeext conftest.$ac_ext
18914 fi
18915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18917 if test `eval echo '${'$as_ac_var'}'` = yes; then
18918   cat >>confdefs.h <<_ACEOF
18919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18920 _ACEOF
18921  cat >>confdefs.h <<\_ACEOF
18922 #define HAVE_INET_NTOP 1
18923 _ACEOF
18924
18925 fi
18926 done
18927
18928
18929 for ac_func in gethostbyname2
18930 do
18931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18932 echo "$as_me:$LINENO: checking for $ac_func" >&5
18933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18934 if eval "test \"\${$as_ac_var+set}\" = set"; then
18935   echo $ECHO_N "(cached) $ECHO_C" >&6
18936 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18945 #define $ac_func innocuous_$ac_func
18946
18947 /* System header to define __stub macros and hopefully few prototypes,
18948     which can conflict with char $ac_func (); below.
18949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18950     <limits.h> exists even on freestanding compilers.  */
18951
18952 #ifdef __STDC__
18953 # include <limits.h>
18954 #else
18955 # include <assert.h>
18956 #endif
18957
18958 #undef $ac_func
18959
18960 /* Override any gcc2 internal prototype to avoid an error.  */
18961 #ifdef __cplusplus
18962 extern "C"
18963 {
18964 #endif
18965 /* We use char because int might match the return type of a gcc2
18966    builtin and then its argument prototype would still apply.  */
18967 char $ac_func ();
18968 /* The GNU C library defines this for functions which it implements
18969     to always fail with ENOSYS.  Some functions are actually named
18970     something starting with __ and the normal name is an alias.  */
18971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18972 choke me
18973 #else
18974 char (*f) () = $ac_func;
18975 #endif
18976 #ifdef __cplusplus
18977 }
18978 #endif
18979
18980 int
18981 main ()
18982 {
18983 return f != $ac_func;
18984   ;
18985   return 0;
18986 }
18987 _ACEOF
18988 rm -f conftest.$ac_objext conftest$ac_exeext
18989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18990   (eval $ac_link) 2>conftest.er1
18991   ac_status=$?
18992   grep -v '^ *+' conftest.er1 >conftest.err
18993   rm -f conftest.er1
18994   cat conftest.err >&5
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); } &&
18997          { ac_try='test -z "$ac_c_werror_flag"
18998                          || test ! -s conftest.err'
18999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000   (eval $ac_try) 2>&5
19001   ac_status=$?
19002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003   (exit $ac_status); }; } &&
19004          { ac_try='test -s conftest$ac_exeext'
19005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006   (eval $ac_try) 2>&5
19007   ac_status=$?
19008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009   (exit $ac_status); }; }; then
19010   eval "$as_ac_var=yes"
19011 else
19012   echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19014
19015 eval "$as_ac_var=no"
19016 fi
19017 rm -f conftest.err conftest.$ac_objext \
19018       conftest$ac_exeext conftest.$ac_ext
19019 fi
19020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19022 if test `eval echo '${'$as_ac_var'}'` = yes; then
19023   cat >>confdefs.h <<_ACEOF
19024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19025 _ACEOF
19026  cat >>confdefs.h <<\_ACEOF
19027 #define HAVE_GETHOSTBYNAME2 1
19028 _ACEOF
19029
19030 fi
19031 done
19032
19033
19034 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19035 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19036 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19037   echo $ECHO_N "(cached) $ECHO_C" >&6
19038 else
19039   cat >conftest.$ac_ext <<_ACEOF
19040 /* confdefs.h.  */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h.  */
19045 #include <sys/socket.h>
19046 int
19047 main ()
19048 {
19049 struct sockaddr s; s.sa_len;
19050   ;
19051   return 0;
19052 }
19053 _ACEOF
19054 rm -f conftest.$ac_objext
19055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056   (eval $ac_compile) 2>conftest.er1
19057   ac_status=$?
19058   grep -v '^ *+' conftest.er1 >conftest.err
19059   rm -f conftest.er1
19060   cat conftest.err >&5
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); } &&
19063          { ac_try='test -z "$ac_c_werror_flag"
19064                          || test ! -s conftest.err'
19065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066   (eval $ac_try) 2>&5
19067   ac_status=$?
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); }; } &&
19070          { ac_try='test -s conftest.$ac_objext'
19071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072   (eval $ac_try) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; }; then
19076   ac_cv_struct_sockaddr_sa_len=yes
19077 else
19078   echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19080
19081 ac_cv_struct_sockaddr_sa_len=no
19082 fi
19083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19084 fi
19085 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19086 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19087
19088  if test $ac_cv_struct_sockaddr_sa_len = yes; then
19089
19090 cat >>confdefs.h <<\_ACEOF
19091 #define HAVE_SA_LEN 1
19092 _ACEOF
19093
19094  fi
19095
19096
19097 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19098 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19099 if test "${ac_cv_ipv6_support+set}" = set; then
19100   echo $ECHO_N "(cached) $ECHO_C" >&6
19101 else
19102   cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h.  */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h.  */
19108  #include <sys/types.h>
19109 #include <sys/socket.h>
19110 #include <netinet/in.h>
19111 int
19112 main ()
19113 {
19114 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19115  0;
19116   ;
19117   return 0;
19118 }
19119 _ACEOF
19120 rm -f conftest.$ac_objext conftest$ac_exeext
19121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19122   (eval $ac_link) 2>conftest.er1
19123   ac_status=$?
19124   grep -v '^ *+' conftest.er1 >conftest.err
19125   rm -f conftest.er1
19126   cat conftest.err >&5
19127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128   (exit $ac_status); } &&
19129          { ac_try='test -z "$ac_c_werror_flag"
19130                          || test ! -s conftest.err'
19131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132   (eval $ac_try) 2>&5
19133   ac_status=$?
19134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135   (exit $ac_status); }; } &&
19136          { ac_try='test -s conftest$ac_exeext'
19137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138   (eval $ac_try) 2>&5
19139   ac_status=$?
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); }; }; then
19142   ac_cv_ipv6_support=yes
19143 else
19144   echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19146
19147 ac_cv_ipv6_support=no
19148 fi
19149 rm -f conftest.err conftest.$ac_objext \
19150       conftest$ac_exeext conftest.$ac_ext
19151 fi
19152 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19153 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19154
19155 if test "$ac_cv_ipv6_support" = yes; then
19156
19157 cat >>confdefs.h <<\_ACEOF
19158 #define HAVE_IPV6 1
19159 _ACEOF
19160
19161 fi
19162
19163
19164
19165
19166 for ac_func in strftime
19167 do
19168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19169 echo "$as_me:$LINENO: checking for $ac_func" >&5
19170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19171 if eval "test \"\${$as_ac_var+set}\" = set"; then
19172   echo $ECHO_N "(cached) $ECHO_C" >&6
19173 else
19174   cat >conftest.$ac_ext <<_ACEOF
19175 /* confdefs.h.  */
19176 _ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h.  */
19180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19182 #define $ac_func innocuous_$ac_func
19183
19184 /* System header to define __stub macros and hopefully few prototypes,
19185     which can conflict with char $ac_func (); below.
19186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19187     <limits.h> exists even on freestanding compilers.  */
19188
19189 #ifdef __STDC__
19190 # include <limits.h>
19191 #else
19192 # include <assert.h>
19193 #endif
19194
19195 #undef $ac_func
19196
19197 /* Override any gcc2 internal prototype to avoid an error.  */
19198 #ifdef __cplusplus
19199 extern "C"
19200 {
19201 #endif
19202 /* We use char because int might match the return type of a gcc2
19203    builtin and then its argument prototype would still apply.  */
19204 char $ac_func ();
19205 /* The GNU C library defines this for functions which it implements
19206     to always fail with ENOSYS.  Some functions are actually named
19207     something starting with __ and the normal name is an alias.  */
19208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19209 choke me
19210 #else
19211 char (*f) () = $ac_func;
19212 #endif
19213 #ifdef __cplusplus
19214 }
19215 #endif
19216
19217 int
19218 main ()
19219 {
19220 return f != $ac_func;
19221   ;
19222   return 0;
19223 }
19224 _ACEOF
19225 rm -f conftest.$ac_objext conftest$ac_exeext
19226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19227   (eval $ac_link) 2>conftest.er1
19228   ac_status=$?
19229   grep -v '^ *+' conftest.er1 >conftest.err
19230   rm -f conftest.er1
19231   cat conftest.err >&5
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); } &&
19234          { ac_try='test -z "$ac_c_werror_flag"
19235                          || test ! -s conftest.err'
19236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19237   (eval $ac_try) 2>&5
19238   ac_status=$?
19239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240   (exit $ac_status); }; } &&
19241          { ac_try='test -s conftest$ac_exeext'
19242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243   (eval $ac_try) 2>&5
19244   ac_status=$?
19245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246   (exit $ac_status); }; }; then
19247   eval "$as_ac_var=yes"
19248 else
19249   echo "$as_me: failed program was:" >&5
19250 sed 's/^/| /' conftest.$ac_ext >&5
19251
19252 eval "$as_ac_var=no"
19253 fi
19254 rm -f conftest.err conftest.$ac_objext \
19255       conftest$ac_exeext conftest.$ac_ext
19256 fi
19257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19259 if test `eval echo '${'$as_ac_var'}'` = yes; then
19260   cat >>confdefs.h <<_ACEOF
19261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19262 _ACEOF
19263
19264 else
19265   # strftime is in -lintl on SCO UNIX.
19266 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19267 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19268 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19269   echo $ECHO_N "(cached) $ECHO_C" >&6
19270 else
19271   ac_check_lib_save_LIBS=$LIBS
19272 LIBS="-lintl  $LIBS"
19273 cat >conftest.$ac_ext <<_ACEOF
19274 /* confdefs.h.  */
19275 _ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h.  */
19279
19280 /* Override any gcc2 internal prototype to avoid an error.  */
19281 #ifdef __cplusplus
19282 extern "C"
19283 #endif
19284 /* We use char because int might match the return type of a gcc2
19285    builtin and then its argument prototype would still apply.  */
19286 char strftime ();
19287 int
19288 main ()
19289 {
19290 strftime ();
19291   ;
19292   return 0;
19293 }
19294 _ACEOF
19295 rm -f conftest.$ac_objext conftest$ac_exeext
19296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19297   (eval $ac_link) 2>conftest.er1
19298   ac_status=$?
19299   grep -v '^ *+' conftest.er1 >conftest.err
19300   rm -f conftest.er1
19301   cat conftest.err >&5
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); } &&
19304          { ac_try='test -z "$ac_c_werror_flag"
19305                          || test ! -s conftest.err'
19306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307   (eval $ac_try) 2>&5
19308   ac_status=$?
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); }; } &&
19311          { ac_try='test -s conftest$ac_exeext'
19312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313   (eval $ac_try) 2>&5
19314   ac_status=$?
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); }; }; then
19317   ac_cv_lib_intl_strftime=yes
19318 else
19319   echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19321
19322 ac_cv_lib_intl_strftime=no
19323 fi
19324 rm -f conftest.err conftest.$ac_objext \
19325       conftest$ac_exeext conftest.$ac_ext
19326 LIBS=$ac_check_lib_save_LIBS
19327 fi
19328 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19329 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19330 if test $ac_cv_lib_intl_strftime = yes; then
19331   cat >>confdefs.h <<\_ACEOF
19332 #define HAVE_STRFTIME 1
19333 _ACEOF
19334
19335 LIBS="-lintl $LIBS"
19336 fi
19337
19338 fi
19339 done
19340
19341
19342 for ac_func in vprintf
19343 do
19344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19345 echo "$as_me:$LINENO: checking for $ac_func" >&5
19346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19347 if eval "test \"\${$as_ac_var+set}\" = set"; then
19348   echo $ECHO_N "(cached) $ECHO_C" >&6
19349 else
19350   cat >conftest.$ac_ext <<_ACEOF
19351 /* confdefs.h.  */
19352 _ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h.  */
19356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19358 #define $ac_func innocuous_$ac_func
19359
19360 /* System header to define __stub macros and hopefully few prototypes,
19361     which can conflict with char $ac_func (); below.
19362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19363     <limits.h> exists even on freestanding compilers.  */
19364
19365 #ifdef __STDC__
19366 # include <limits.h>
19367 #else
19368 # include <assert.h>
19369 #endif
19370
19371 #undef $ac_func
19372
19373 /* Override any gcc2 internal prototype to avoid an error.  */
19374 #ifdef __cplusplus
19375 extern "C"
19376 {
19377 #endif
19378 /* We use char because int might match the return type of a gcc2
19379    builtin and then its argument prototype would still apply.  */
19380 char $ac_func ();
19381 /* The GNU C library defines this for functions which it implements
19382     to always fail with ENOSYS.  Some functions are actually named
19383     something starting with __ and the normal name is an alias.  */
19384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19385 choke me
19386 #else
19387 char (*f) () = $ac_func;
19388 #endif
19389 #ifdef __cplusplus
19390 }
19391 #endif
19392
19393 int
19394 main ()
19395 {
19396 return f != $ac_func;
19397   ;
19398   return 0;
19399 }
19400 _ACEOF
19401 rm -f conftest.$ac_objext conftest$ac_exeext
19402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19403   (eval $ac_link) 2>conftest.er1
19404   ac_status=$?
19405   grep -v '^ *+' conftest.er1 >conftest.err
19406   rm -f conftest.er1
19407   cat conftest.err >&5
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); } &&
19410          { ac_try='test -z "$ac_c_werror_flag"
19411                          || test ! -s conftest.err'
19412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413   (eval $ac_try) 2>&5
19414   ac_status=$?
19415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416   (exit $ac_status); }; } &&
19417          { ac_try='test -s conftest$ac_exeext'
19418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419   (eval $ac_try) 2>&5
19420   ac_status=$?
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); }; }; then
19423   eval "$as_ac_var=yes"
19424 else
19425   echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428 eval "$as_ac_var=no"
19429 fi
19430 rm -f conftest.err conftest.$ac_objext \
19431       conftest$ac_exeext conftest.$ac_ext
19432 fi
19433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19435 if test `eval echo '${'$as_ac_var'}'` = yes; then
19436   cat >>confdefs.h <<_ACEOF
19437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19438 _ACEOF
19439
19440 echo "$as_me:$LINENO: checking for _doprnt" >&5
19441 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19442 if test "${ac_cv_func__doprnt+set}" = set; then
19443   echo $ECHO_N "(cached) $ECHO_C" >&6
19444 else
19445   cat >conftest.$ac_ext <<_ACEOF
19446 /* confdefs.h.  */
19447 _ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h.  */
19451 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19453 #define _doprnt innocuous__doprnt
19454
19455 /* System header to define __stub macros and hopefully few prototypes,
19456     which can conflict with char _doprnt (); below.
19457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19458     <limits.h> exists even on freestanding compilers.  */
19459
19460 #ifdef __STDC__
19461 # include <limits.h>
19462 #else
19463 # include <assert.h>
19464 #endif
19465
19466 #undef _doprnt
19467
19468 /* Override any gcc2 internal prototype to avoid an error.  */
19469 #ifdef __cplusplus
19470 extern "C"
19471 {
19472 #endif
19473 /* We use char because int might match the return type of a gcc2
19474    builtin and then its argument prototype would still apply.  */
19475 char _doprnt ();
19476 /* The GNU C library defines this for functions which it implements
19477     to always fail with ENOSYS.  Some functions are actually named
19478     something starting with __ and the normal name is an alias.  */
19479 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19480 choke me
19481 #else
19482 char (*f) () = _doprnt;
19483 #endif
19484 #ifdef __cplusplus
19485 }
19486 #endif
19487
19488 int
19489 main ()
19490 {
19491 return f != _doprnt;
19492   ;
19493   return 0;
19494 }
19495 _ACEOF
19496 rm -f conftest.$ac_objext conftest$ac_exeext
19497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19498   (eval $ac_link) 2>conftest.er1
19499   ac_status=$?
19500   grep -v '^ *+' conftest.er1 >conftest.err
19501   rm -f conftest.er1
19502   cat conftest.err >&5
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); } &&
19505          { ac_try='test -z "$ac_c_werror_flag"
19506                          || test ! -s conftest.err'
19507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508   (eval $ac_try) 2>&5
19509   ac_status=$?
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); }; } &&
19512          { ac_try='test -s conftest$ac_exeext'
19513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514   (eval $ac_try) 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); }; }; then
19518   ac_cv_func__doprnt=yes
19519 else
19520   echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19522
19523 ac_cv_func__doprnt=no
19524 fi
19525 rm -f conftest.err conftest.$ac_objext \
19526       conftest$ac_exeext conftest.$ac_ext
19527 fi
19528 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19529 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19530 if test $ac_cv_func__doprnt = yes; then
19531
19532 cat >>confdefs.h <<\_ACEOF
19533 #define HAVE_DOPRNT 1
19534 _ACEOF
19535
19536 fi
19537
19538 fi
19539 done
19540
19541
19542 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19543 # for constant arguments.  Useless!
19544 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19545 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19546 if test "${ac_cv_working_alloca_h+set}" = set; then
19547   echo $ECHO_N "(cached) $ECHO_C" >&6
19548 else
19549   cat >conftest.$ac_ext <<_ACEOF
19550 /* confdefs.h.  */
19551 _ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h.  */
19555 #include <alloca.h>
19556 int
19557 main ()
19558 {
19559 char *p = (char *) alloca (2 * sizeof (int));
19560   ;
19561   return 0;
19562 }
19563 _ACEOF
19564 rm -f conftest.$ac_objext conftest$ac_exeext
19565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19566   (eval $ac_link) 2>conftest.er1
19567   ac_status=$?
19568   grep -v '^ *+' conftest.er1 >conftest.err
19569   rm -f conftest.er1
19570   cat conftest.err >&5
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); } &&
19573          { ac_try='test -z "$ac_c_werror_flag"
19574                          || test ! -s conftest.err'
19575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576   (eval $ac_try) 2>&5
19577   ac_status=$?
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); }; } &&
19580          { ac_try='test -s conftest$ac_exeext'
19581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582   (eval $ac_try) 2>&5
19583   ac_status=$?
19584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585   (exit $ac_status); }; }; then
19586   ac_cv_working_alloca_h=yes
19587 else
19588   echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.$ac_ext >&5
19590
19591 ac_cv_working_alloca_h=no
19592 fi
19593 rm -f conftest.err conftest.$ac_objext \
19594       conftest$ac_exeext conftest.$ac_ext
19595 fi
19596 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19597 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19598 if test $ac_cv_working_alloca_h = yes; then
19599
19600 cat >>confdefs.h <<\_ACEOF
19601 #define HAVE_ALLOCA_H 1
19602 _ACEOF
19603
19604 fi
19605
19606 echo "$as_me:$LINENO: checking for alloca" >&5
19607 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19608 if test "${ac_cv_func_alloca_works+set}" = set; then
19609   echo $ECHO_N "(cached) $ECHO_C" >&6
19610 else
19611   cat >conftest.$ac_ext <<_ACEOF
19612 /* confdefs.h.  */
19613 _ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h.  */
19617 #ifdef __GNUC__
19618 # define alloca __builtin_alloca
19619 #else
19620 # ifdef _MSC_VER
19621 #  include <malloc.h>
19622 #  define alloca _alloca
19623 # else
19624 #  if HAVE_ALLOCA_H
19625 #   include <alloca.h>
19626 #  else
19627 #   ifdef _AIX
19628  #pragma alloca
19629 #   else
19630 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19631 char *alloca ();
19632 #    endif
19633 #   endif
19634 #  endif
19635 # endif
19636 #endif
19637
19638 int
19639 main ()
19640 {
19641 char *p = (char *) alloca (1);
19642   ;
19643   return 0;
19644 }
19645 _ACEOF
19646 rm -f conftest.$ac_objext conftest$ac_exeext
19647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19648   (eval $ac_link) 2>conftest.er1
19649   ac_status=$?
19650   grep -v '^ *+' conftest.er1 >conftest.err
19651   rm -f conftest.er1
19652   cat conftest.err >&5
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); } &&
19655          { ac_try='test -z "$ac_c_werror_flag"
19656                          || test ! -s conftest.err'
19657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658   (eval $ac_try) 2>&5
19659   ac_status=$?
19660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661   (exit $ac_status); }; } &&
19662          { ac_try='test -s conftest$ac_exeext'
19663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664   (eval $ac_try) 2>&5
19665   ac_status=$?
19666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); }; }; then
19668   ac_cv_func_alloca_works=yes
19669 else
19670   echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19672
19673 ac_cv_func_alloca_works=no
19674 fi
19675 rm -f conftest.err conftest.$ac_objext \
19676       conftest$ac_exeext conftest.$ac_ext
19677 fi
19678 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19679 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19680
19681 if test $ac_cv_func_alloca_works = yes; then
19682
19683 cat >>confdefs.h <<\_ACEOF
19684 #define HAVE_ALLOCA 1
19685 _ACEOF
19686
19687 else
19688   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19689 # that cause trouble.  Some versions do not even contain alloca or
19690 # contain a buggy version.  If you still want to use their alloca,
19691 # use ar to extract alloca.o from them instead of compiling alloca.c.
19692
19693 ALLOCA=alloca.$ac_objext
19694
19695 cat >>confdefs.h <<\_ACEOF
19696 #define C_ALLOCA 1
19697 _ACEOF
19698
19699
19700 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19701 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19702 if test "${ac_cv_os_cray+set}" = set; then
19703   echo $ECHO_N "(cached) $ECHO_C" >&6
19704 else
19705   cat >conftest.$ac_ext <<_ACEOF
19706 /* confdefs.h.  */
19707 _ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h.  */
19711 #if defined(CRAY) && ! defined(CRAY2)
19712 webecray
19713 #else
19714 wenotbecray
19715 #endif
19716
19717 _ACEOF
19718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19719   $EGREP "webecray" >/dev/null 2>&1; then
19720   ac_cv_os_cray=yes
19721 else
19722   ac_cv_os_cray=no
19723 fi
19724 rm -f conftest*
19725
19726 fi
19727 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19728 echo "${ECHO_T}$ac_cv_os_cray" >&6
19729 if test $ac_cv_os_cray = yes; then
19730   for ac_func in _getb67 GETB67 getb67; do
19731     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19732 echo "$as_me:$LINENO: checking for $ac_func" >&5
19733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19734 if eval "test \"\${$as_ac_var+set}\" = set"; then
19735   echo $ECHO_N "(cached) $ECHO_C" >&6
19736 else
19737   cat >conftest.$ac_ext <<_ACEOF
19738 /* confdefs.h.  */
19739 _ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h.  */
19743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19745 #define $ac_func innocuous_$ac_func
19746
19747 /* System header to define __stub macros and hopefully few prototypes,
19748     which can conflict with char $ac_func (); below.
19749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19750     <limits.h> exists even on freestanding compilers.  */
19751
19752 #ifdef __STDC__
19753 # include <limits.h>
19754 #else
19755 # include <assert.h>
19756 #endif
19757
19758 #undef $ac_func
19759
19760 /* Override any gcc2 internal prototype to avoid an error.  */
19761 #ifdef __cplusplus
19762 extern "C"
19763 {
19764 #endif
19765 /* We use char because int might match the return type of a gcc2
19766    builtin and then its argument prototype would still apply.  */
19767 char $ac_func ();
19768 /* The GNU C library defines this for functions which it implements
19769     to always fail with ENOSYS.  Some functions are actually named
19770     something starting with __ and the normal name is an alias.  */
19771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19772 choke me
19773 #else
19774 char (*f) () = $ac_func;
19775 #endif
19776 #ifdef __cplusplus
19777 }
19778 #endif
19779
19780 int
19781 main ()
19782 {
19783 return f != $ac_func;
19784   ;
19785   return 0;
19786 }
19787 _ACEOF
19788 rm -f conftest.$ac_objext conftest$ac_exeext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19790   (eval $ac_link) 2>conftest.er1
19791   ac_status=$?
19792   grep -v '^ *+' conftest.er1 >conftest.err
19793   rm -f conftest.er1
19794   cat conftest.err >&5
19795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796   (exit $ac_status); } &&
19797          { ac_try='test -z "$ac_c_werror_flag"
19798                          || test ! -s conftest.err'
19799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800   (eval $ac_try) 2>&5
19801   ac_status=$?
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); }; } &&
19804          { ac_try='test -s conftest$ac_exeext'
19805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806   (eval $ac_try) 2>&5
19807   ac_status=$?
19808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809   (exit $ac_status); }; }; then
19810   eval "$as_ac_var=yes"
19811 else
19812   echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19814
19815 eval "$as_ac_var=no"
19816 fi
19817 rm -f conftest.err conftest.$ac_objext \
19818       conftest$ac_exeext conftest.$ac_ext
19819 fi
19820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19821 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19822 if test `eval echo '${'$as_ac_var'}'` = yes; then
19823
19824 cat >>confdefs.h <<_ACEOF
19825 #define CRAY_STACKSEG_END $ac_func
19826 _ACEOF
19827
19828     break
19829 fi
19830
19831   done
19832 fi
19833
19834 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19835 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19836 if test "${ac_cv_c_stack_direction+set}" = set; then
19837   echo $ECHO_N "(cached) $ECHO_C" >&6
19838 else
19839   if test "$cross_compiling" = yes; then
19840   ac_cv_c_stack_direction=0
19841 else
19842   cat >conftest.$ac_ext <<_ACEOF
19843 /* confdefs.h.  */
19844 _ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h.  */
19848 int
19849 find_stack_direction ()
19850 {
19851   static char *addr = 0;
19852   auto char dummy;
19853   if (addr == 0)
19854     {
19855       addr = &dummy;
19856       return find_stack_direction ();
19857     }
19858   else
19859     return (&dummy > addr) ? 1 : -1;
19860 }
19861
19862 int
19863 main ()
19864 {
19865   exit (find_stack_direction () < 0);
19866 }
19867 _ACEOF
19868 rm -f conftest$ac_exeext
19869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19870   (eval $ac_link) 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875   (eval $ac_try) 2>&5
19876   ac_status=$?
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); }; }; then
19879   ac_cv_c_stack_direction=1
19880 else
19881   echo "$as_me: program exited with status $ac_status" >&5
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19884
19885 ( exit $ac_status )
19886 ac_cv_c_stack_direction=-1
19887 fi
19888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19889 fi
19890 fi
19891 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19892 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19893
19894 cat >>confdefs.h <<_ACEOF
19895 #define STACK_DIRECTION $ac_cv_c_stack_direction
19896 _ACEOF
19897
19898
19899 fi
19900
19901 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19902 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19903 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19904 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19905   echo $ECHO_N "(cached) $ECHO_C" >&6
19906 else
19907   ac_check_lib_save_LIBS=$LIBS
19908 LIBS="-lsun  $LIBS"
19909 cat >conftest.$ac_ext <<_ACEOF
19910 /* confdefs.h.  */
19911 _ACEOF
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h.  */
19915
19916 /* Override any gcc2 internal prototype to avoid an error.  */
19917 #ifdef __cplusplus
19918 extern "C"
19919 #endif
19920 /* We use char because int might match the return type of a gcc2
19921    builtin and then its argument prototype would still apply.  */
19922 char getmntent ();
19923 int
19924 main ()
19925 {
19926 getmntent ();
19927   ;
19928   return 0;
19929 }
19930 _ACEOF
19931 rm -f conftest.$ac_objext conftest$ac_exeext
19932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19933   (eval $ac_link) 2>conftest.er1
19934   ac_status=$?
19935   grep -v '^ *+' conftest.er1 >conftest.err
19936   rm -f conftest.er1
19937   cat conftest.err >&5
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); } &&
19940          { ac_try='test -z "$ac_c_werror_flag"
19941                          || test ! -s conftest.err'
19942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943   (eval $ac_try) 2>&5
19944   ac_status=$?
19945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946   (exit $ac_status); }; } &&
19947          { ac_try='test -s conftest$ac_exeext'
19948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949   (eval $ac_try) 2>&5
19950   ac_status=$?
19951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952   (exit $ac_status); }; }; then
19953   ac_cv_lib_sun_getmntent=yes
19954 else
19955   echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19957
19958 ac_cv_lib_sun_getmntent=no
19959 fi
19960 rm -f conftest.err conftest.$ac_objext \
19961       conftest$ac_exeext conftest.$ac_ext
19962 LIBS=$ac_check_lib_save_LIBS
19963 fi
19964 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19965 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19966 if test $ac_cv_lib_sun_getmntent = yes; then
19967   LIBS="-lsun $LIBS"
19968 else
19969   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19970 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19971 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19972   echo $ECHO_N "(cached) $ECHO_C" >&6
19973 else
19974   ac_check_lib_save_LIBS=$LIBS
19975 LIBS="-lseq  $LIBS"
19976 cat >conftest.$ac_ext <<_ACEOF
19977 /* confdefs.h.  */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h.  */
19982
19983 /* Override any gcc2 internal prototype to avoid an error.  */
19984 #ifdef __cplusplus
19985 extern "C"
19986 #endif
19987 /* We use char because int might match the return type of a gcc2
19988    builtin and then its argument prototype would still apply.  */
19989 char getmntent ();
19990 int
19991 main ()
19992 {
19993 getmntent ();
19994   ;
19995   return 0;
19996 }
19997 _ACEOF
19998 rm -f conftest.$ac_objext conftest$ac_exeext
19999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20000   (eval $ac_link) 2>conftest.er1
20001   ac_status=$?
20002   grep -v '^ *+' conftest.er1 >conftest.err
20003   rm -f conftest.er1
20004   cat conftest.err >&5
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); } &&
20007          { ac_try='test -z "$ac_c_werror_flag"
20008                          || test ! -s conftest.err'
20009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010   (eval $ac_try) 2>&5
20011   ac_status=$?
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); }; } &&
20014          { ac_try='test -s conftest$ac_exeext'
20015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016   (eval $ac_try) 2>&5
20017   ac_status=$?
20018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019   (exit $ac_status); }; }; then
20020   ac_cv_lib_seq_getmntent=yes
20021 else
20022   echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20024
20025 ac_cv_lib_seq_getmntent=no
20026 fi
20027 rm -f conftest.err conftest.$ac_objext \
20028       conftest$ac_exeext conftest.$ac_ext
20029 LIBS=$ac_check_lib_save_LIBS
20030 fi
20031 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20032 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20033 if test $ac_cv_lib_seq_getmntent = yes; then
20034   LIBS="-lseq $LIBS"
20035 else
20036   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20037 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20038 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20039   echo $ECHO_N "(cached) $ECHO_C" >&6
20040 else
20041   ac_check_lib_save_LIBS=$LIBS
20042 LIBS="-lgen  $LIBS"
20043 cat >conftest.$ac_ext <<_ACEOF
20044 /* confdefs.h.  */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h.  */
20049
20050 /* Override any gcc2 internal prototype to avoid an error.  */
20051 #ifdef __cplusplus
20052 extern "C"
20053 #endif
20054 /* We use char because int might match the return type of a gcc2
20055    builtin and then its argument prototype would still apply.  */
20056 char getmntent ();
20057 int
20058 main ()
20059 {
20060 getmntent ();
20061   ;
20062   return 0;
20063 }
20064 _ACEOF
20065 rm -f conftest.$ac_objext conftest$ac_exeext
20066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20067   (eval $ac_link) 2>conftest.er1
20068   ac_status=$?
20069   grep -v '^ *+' conftest.er1 >conftest.err
20070   rm -f conftest.er1
20071   cat conftest.err >&5
20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073   (exit $ac_status); } &&
20074          { ac_try='test -z "$ac_c_werror_flag"
20075                          || test ! -s conftest.err'
20076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077   (eval $ac_try) 2>&5
20078   ac_status=$?
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); }; } &&
20081          { ac_try='test -s conftest$ac_exeext'
20082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083   (eval $ac_try) 2>&5
20084   ac_status=$?
20085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086   (exit $ac_status); }; }; then
20087   ac_cv_lib_gen_getmntent=yes
20088 else
20089   echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20091
20092 ac_cv_lib_gen_getmntent=no
20093 fi
20094 rm -f conftest.err conftest.$ac_objext \
20095       conftest$ac_exeext conftest.$ac_ext
20096 LIBS=$ac_check_lib_save_LIBS
20097 fi
20098 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20099 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20100 if test $ac_cv_lib_gen_getmntent = yes; then
20101   LIBS="-lgen $LIBS"
20102 fi
20103
20104 fi
20105
20106 fi
20107
20108
20109 for ac_func in getmntent
20110 do
20111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20112 echo "$as_me:$LINENO: checking for $ac_func" >&5
20113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20114 if eval "test \"\${$as_ac_var+set}\" = set"; then
20115   echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20117   cat >conftest.$ac_ext <<_ACEOF
20118 /* confdefs.h.  */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h.  */
20123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20125 #define $ac_func innocuous_$ac_func
20126
20127 /* System header to define __stub macros and hopefully few prototypes,
20128     which can conflict with char $ac_func (); below.
20129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20130     <limits.h> exists even on freestanding compilers.  */
20131
20132 #ifdef __STDC__
20133 # include <limits.h>
20134 #else
20135 # include <assert.h>
20136 #endif
20137
20138 #undef $ac_func
20139
20140 /* Override any gcc2 internal prototype to avoid an error.  */
20141 #ifdef __cplusplus
20142 extern "C"
20143 {
20144 #endif
20145 /* We use char because int might match the return type of a gcc2
20146    builtin and then its argument prototype would still apply.  */
20147 char $ac_func ();
20148 /* The GNU C library defines this for functions which it implements
20149     to always fail with ENOSYS.  Some functions are actually named
20150     something starting with __ and the normal name is an alias.  */
20151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20152 choke me
20153 #else
20154 char (*f) () = $ac_func;
20155 #endif
20156 #ifdef __cplusplus
20157 }
20158 #endif
20159
20160 int
20161 main ()
20162 {
20163 return f != $ac_func;
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20170   (eval $ac_link) 2>conftest.er1
20171   ac_status=$?
20172   grep -v '^ *+' conftest.er1 >conftest.err
20173   rm -f conftest.er1
20174   cat conftest.err >&5
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); } &&
20177          { ac_try='test -z "$ac_c_werror_flag"
20178                          || test ! -s conftest.err'
20179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180   (eval $ac_try) 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }; } &&
20184          { ac_try='test -s conftest$ac_exeext'
20185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186   (eval $ac_try) 2>&5
20187   ac_status=$?
20188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189   (exit $ac_status); }; }; then
20190   eval "$as_ac_var=yes"
20191 else
20192   echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20194
20195 eval "$as_ac_var=no"
20196 fi
20197 rm -f conftest.err conftest.$ac_objext \
20198       conftest$ac_exeext conftest.$ac_ext
20199 fi
20200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20202 if test `eval echo '${'$as_ac_var'}'` = yes; then
20203   cat >>confdefs.h <<_ACEOF
20204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20205 _ACEOF
20206
20207 fi
20208 done
20209
20210
20211 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20212 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20213 if test "${ac_cv_func_closedir_void+set}" = set; then
20214   echo $ECHO_N "(cached) $ECHO_C" >&6
20215 else
20216   if test "$cross_compiling" = yes; then
20217   ac_cv_func_closedir_void=yes
20218 else
20219   cat >conftest.$ac_ext <<_ACEOF
20220 /* confdefs.h.  */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h.  */
20225 $ac_includes_default
20226 #include <$ac_header_dirent>
20227 #ifndef __cplusplus
20228 int closedir ();
20229 #endif
20230
20231 int
20232 main ()
20233 {
20234 exit (closedir (opendir (".")) != 0);
20235   ;
20236   return 0;
20237 }
20238 _ACEOF
20239 rm -f conftest$ac_exeext
20240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20241   (eval $ac_link) 2>&5
20242   ac_status=$?
20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246   (eval $ac_try) 2>&5
20247   ac_status=$?
20248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249   (exit $ac_status); }; }; then
20250   ac_cv_func_closedir_void=no
20251 else
20252   echo "$as_me: program exited with status $ac_status" >&5
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20255
20256 ( exit $ac_status )
20257 ac_cv_func_closedir_void=yes
20258 fi
20259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20260 fi
20261 fi
20262 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20263 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20264 if test $ac_cv_func_closedir_void = yes; then
20265
20266 cat >>confdefs.h <<\_ACEOF
20267 #define CLOSEDIR_VOID 1
20268 _ACEOF
20269
20270 fi
20271
20272 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20273 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20274 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20275   echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277   if test "$cross_compiling" = yes; then
20278   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20279 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20280    { (exit 1); exit 1; }; }
20281 else
20282   cat >conftest.$ac_ext <<_ACEOF
20283 /* confdefs.h.  */
20284 _ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h.  */
20288 #if HAVE_UNISTD_H
20289 # include <unistd.h>
20290 #endif
20291
20292 int
20293 main ()
20294 {
20295 /* If this system has a BSD-style setpgrp which takes arguments,
20296   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20297   exit successfully. */
20298   exit (setpgrp (1,1) == -1 ? 0 : 1);
20299   ;
20300   return 0;
20301 }
20302 _ACEOF
20303 rm -f conftest$ac_exeext
20304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20305   (eval $ac_link) 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310   (eval $ac_try) 2>&5
20311   ac_status=$?
20312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313   (exit $ac_status); }; }; then
20314   ac_cv_func_setpgrp_void=no
20315 else
20316   echo "$as_me: program exited with status $ac_status" >&5
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20319
20320 ( exit $ac_status )
20321 ac_cv_func_setpgrp_void=yes
20322 fi
20323 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20324 fi
20325 fi
20326 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20327 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20328 if test $ac_cv_func_setpgrp_void = yes; then
20329
20330 cat >>confdefs.h <<\_ACEOF
20331 #define SETPGRP_VOID 1
20332 _ACEOF
20333
20334 fi
20335                       # AC_FUNC_FNMATCH    dnl use local version
20336
20337
20338 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20339 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20340 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20341   echo $ECHO_N "(cached) $ECHO_C" >&6
20342 else
20343   ac_check_lib_save_LIBS=$LIBS
20344 LIBS="-lxpg4  $LIBS"
20345 cat >conftest.$ac_ext <<_ACEOF
20346 /* confdefs.h.  */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h.  */
20351
20352 /* Override any gcc2 internal prototype to avoid an error.  */
20353 #ifdef __cplusplus
20354 extern "C"
20355 #endif
20356 /* We use char because int might match the return type of a gcc2
20357    builtin and then its argument prototype would still apply.  */
20358 char setlocale ();
20359 int
20360 main ()
20361 {
20362 setlocale ();
20363   ;
20364   return 0;
20365 }
20366 _ACEOF
20367 rm -f conftest.$ac_objext conftest$ac_exeext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369   (eval $ac_link) 2>conftest.er1
20370   ac_status=$?
20371   grep -v '^ *+' conftest.er1 >conftest.err
20372   rm -f conftest.er1
20373   cat conftest.err >&5
20374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375   (exit $ac_status); } &&
20376          { ac_try='test -z "$ac_c_werror_flag"
20377                          || test ! -s conftest.err'
20378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379   (eval $ac_try) 2>&5
20380   ac_status=$?
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); }; } &&
20383          { ac_try='test -s conftest$ac_exeext'
20384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385   (eval $ac_try) 2>&5
20386   ac_status=$?
20387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388   (exit $ac_status); }; }; then
20389   ac_cv_lib_xpg4_setlocale=yes
20390 else
20391   echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20393
20394 ac_cv_lib_xpg4_setlocale=no
20395 fi
20396 rm -f conftest.err conftest.$ac_objext \
20397       conftest$ac_exeext conftest.$ac_ext
20398 LIBS=$ac_check_lib_save_LIBS
20399 fi
20400 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20401 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20402 if test $ac_cv_lib_xpg4_setlocale = yes; then
20403   LIBS="$LIBS -lxpg4"
20404 fi
20405
20406
20407
20408
20409 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20410 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20411 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20412   echo $ECHO_N "(cached) $ECHO_C" >&6
20413 else
20414   ac_check_lib_save_LIBS=$LIBS
20415 LIBS="-lsun  $LIBS"
20416 cat >conftest.$ac_ext <<_ACEOF
20417 /* confdefs.h.  */
20418 _ACEOF
20419 cat confdefs.h >>conftest.$ac_ext
20420 cat >>conftest.$ac_ext <<_ACEOF
20421 /* end confdefs.h.  */
20422
20423 /* Override any gcc2 internal prototype to avoid an error.  */
20424 #ifdef __cplusplus
20425 extern "C"
20426 #endif
20427 /* We use char because int might match the return type of a gcc2
20428    builtin and then its argument prototype would still apply.  */
20429 char getpwnam ();
20430 int
20431 main ()
20432 {
20433 getpwnam ();
20434   ;
20435   return 0;
20436 }
20437 _ACEOF
20438 rm -f conftest.$ac_objext conftest$ac_exeext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20440   (eval $ac_link) 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); } &&
20447          { ac_try='test -z "$ac_c_werror_flag"
20448                          || test ! -s conftest.err'
20449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450   (eval $ac_try) 2>&5
20451   ac_status=$?
20452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453   (exit $ac_status); }; } &&
20454          { ac_try='test -s conftest$ac_exeext'
20455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456   (eval $ac_try) 2>&5
20457   ac_status=$?
20458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459   (exit $ac_status); }; }; then
20460   ac_cv_lib_sun_getpwnam=yes
20461 else
20462   echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20464
20465 ac_cv_lib_sun_getpwnam=no
20466 fi
20467 rm -f conftest.err conftest.$ac_objext \
20468       conftest$ac_exeext conftest.$ac_ext
20469 LIBS=$ac_check_lib_save_LIBS
20470 fi
20471 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20472 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20473 if test $ac_cv_lib_sun_getpwnam = yes; then
20474   cat >>confdefs.h <<_ACEOF
20475 #define HAVE_LIBSUN 1
20476 _ACEOF
20477
20478   LIBS="-lsun $LIBS"
20479
20480 fi
20481
20482
20483
20484 for ac_header in zlib.h
20485 do
20486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20488   echo "$as_me:$LINENO: checking for $ac_header" >&5
20489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20491   echo $ECHO_N "(cached) $ECHO_C" >&6
20492 fi
20493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20495 else
20496   # Is the header compilable?
20497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20499 cat >conftest.$ac_ext <<_ACEOF
20500 /* confdefs.h.  */
20501 _ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h.  */
20505 $ac_includes_default
20506 #include <$ac_header>
20507 _ACEOF
20508 rm -f conftest.$ac_objext
20509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20510   (eval $ac_compile) 2>conftest.er1
20511   ac_status=$?
20512   grep -v '^ *+' conftest.er1 >conftest.err
20513   rm -f conftest.er1
20514   cat conftest.err >&5
20515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); } &&
20517          { ac_try='test -z "$ac_c_werror_flag"
20518                          || test ! -s conftest.err'
20519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520   (eval $ac_try) 2>&5
20521   ac_status=$?
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); }; } &&
20524          { ac_try='test -s conftest.$ac_objext'
20525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526   (eval $ac_try) 2>&5
20527   ac_status=$?
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); }; }; then
20530   ac_header_compiler=yes
20531 else
20532   echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20534
20535 ac_header_compiler=no
20536 fi
20537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20539 echo "${ECHO_T}$ac_header_compiler" >&6
20540
20541 # Is the header present?
20542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20544 cat >conftest.$ac_ext <<_ACEOF
20545 /* confdefs.h.  */
20546 _ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h.  */
20550 #include <$ac_header>
20551 _ACEOF
20552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20554   ac_status=$?
20555   grep -v '^ *+' conftest.er1 >conftest.err
20556   rm -f conftest.er1
20557   cat conftest.err >&5
20558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559   (exit $ac_status); } >/dev/null; then
20560   if test -s conftest.err; then
20561     ac_cpp_err=$ac_c_preproc_warn_flag
20562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20563   else
20564     ac_cpp_err=
20565   fi
20566 else
20567   ac_cpp_err=yes
20568 fi
20569 if test -z "$ac_cpp_err"; then
20570   ac_header_preproc=yes
20571 else
20572   echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20574
20575   ac_header_preproc=no
20576 fi
20577 rm -f conftest.err conftest.$ac_ext
20578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20579 echo "${ECHO_T}$ac_header_preproc" >&6
20580
20581 # So?  What about this header?
20582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20583   yes:no: )
20584     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20588     ac_header_preproc=yes
20589     ;;
20590   no:yes:* )
20591     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20593     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20594 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20595     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20597     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20598 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20601     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20603     (
20604       cat <<\_ASBOX
20605 ## ------------------------------------------ ##
20606 ## Report this to the AC_PACKAGE_NAME lists.  ##
20607 ## ------------------------------------------ ##
20608 _ASBOX
20609     ) |
20610       sed "s/^/$as_me: WARNING:     /" >&2
20611     ;;
20612 esac
20613 echo "$as_me:$LINENO: checking for $ac_header" >&5
20614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20616   echo $ECHO_N "(cached) $ECHO_C" >&6
20617 else
20618   eval "$as_ac_Header=\$ac_header_preproc"
20619 fi
20620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20622
20623 fi
20624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20625   cat >>confdefs.h <<_ACEOF
20626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20627 _ACEOF
20628
20629 fi
20630
20631 done
20632
20633 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20634 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20635 if test "${ac_cv_lib_z_deflate+set}" = set; then
20636   echo $ECHO_N "(cached) $ECHO_C" >&6
20637 else
20638   ac_check_lib_save_LIBS=$LIBS
20639 LIBS="-lz  $LIBS"
20640 cat >conftest.$ac_ext <<_ACEOF
20641 /* confdefs.h.  */
20642 _ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h.  */
20646
20647 /* Override any gcc2 internal prototype to avoid an error.  */
20648 #ifdef __cplusplus
20649 extern "C"
20650 #endif
20651 /* We use char because int might match the return type of a gcc2
20652    builtin and then its argument prototype would still apply.  */
20653 char deflate ();
20654 int
20655 main ()
20656 {
20657 deflate ();
20658   ;
20659   return 0;
20660 }
20661 _ACEOF
20662 rm -f conftest.$ac_objext conftest$ac_exeext
20663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20664   (eval $ac_link) 2>conftest.er1
20665   ac_status=$?
20666   grep -v '^ *+' conftest.er1 >conftest.err
20667   rm -f conftest.er1
20668   cat conftest.err >&5
20669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); } &&
20671          { ac_try='test -z "$ac_c_werror_flag"
20672                          || test ! -s conftest.err'
20673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674   (eval $ac_try) 2>&5
20675   ac_status=$?
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); }; } &&
20678          { ac_try='test -s conftest$ac_exeext'
20679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680   (eval $ac_try) 2>&5
20681   ac_status=$?
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); }; }; then
20684   ac_cv_lib_z_deflate=yes
20685 else
20686   echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20688
20689 ac_cv_lib_z_deflate=no
20690 fi
20691 rm -f conftest.err conftest.$ac_objext \
20692       conftest$ac_exeext conftest.$ac_ext
20693 LIBS=$ac_check_lib_save_LIBS
20694 fi
20695 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20696 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20697 if test $ac_cv_lib_z_deflate = yes; then
20698   FDLIBS="-lz"
20699 fi
20700
20701 have_zlib=no
20702 if test x$FDLIBS = x-lz; then
20703   cat >>confdefs.h <<\_ACEOF
20704 #define HAVE_LIBZ 1
20705 _ACEOF
20706
20707   have_zlib=yes
20708 fi
20709
20710 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20711   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20712 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20713 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20714   echo $ECHO_N "(cached) $ECHO_C" >&6
20715 fi
20716 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20717 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20718 else
20719   # Is the header compilable?
20720 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20721 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20722 cat >conftest.$ac_ext <<_ACEOF
20723 /* confdefs.h.  */
20724 _ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h.  */
20728 $ac_includes_default
20729 #include <sys/acl.h>
20730 _ACEOF
20731 rm -f conftest.$ac_objext
20732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20733   (eval $ac_compile) 2>conftest.er1
20734   ac_status=$?
20735   grep -v '^ *+' conftest.er1 >conftest.err
20736   rm -f conftest.er1
20737   cat conftest.err >&5
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); } &&
20740          { ac_try='test -z "$ac_c_werror_flag"
20741                          || test ! -s conftest.err'
20742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743   (eval $ac_try) 2>&5
20744   ac_status=$?
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); }; } &&
20747          { ac_try='test -s conftest.$ac_objext'
20748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749   (eval $ac_try) 2>&5
20750   ac_status=$?
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); }; }; then
20753   ac_header_compiler=yes
20754 else
20755   echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20757
20758 ac_header_compiler=no
20759 fi
20760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20762 echo "${ECHO_T}$ac_header_compiler" >&6
20763
20764 # Is the header present?
20765 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20766 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20767 cat >conftest.$ac_ext <<_ACEOF
20768 /* confdefs.h.  */
20769 _ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h.  */
20773 #include <sys/acl.h>
20774 _ACEOF
20775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20777   ac_status=$?
20778   grep -v '^ *+' conftest.er1 >conftest.err
20779   rm -f conftest.er1
20780   cat conftest.err >&5
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); } >/dev/null; then
20783   if test -s conftest.err; then
20784     ac_cpp_err=$ac_c_preproc_warn_flag
20785     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20786   else
20787     ac_cpp_err=
20788   fi
20789 else
20790   ac_cpp_err=yes
20791 fi
20792 if test -z "$ac_cpp_err"; then
20793   ac_header_preproc=yes
20794 else
20795   echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20797
20798   ac_header_preproc=no
20799 fi
20800 rm -f conftest.err conftest.$ac_ext
20801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20802 echo "${ECHO_T}$ac_header_preproc" >&6
20803
20804 # So?  What about this header?
20805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20806   yes:no: )
20807     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20808 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20809     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20810 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20811     ac_header_preproc=yes
20812     ;;
20813   no:yes:* )
20814     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20815 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20816     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20817 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20818     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20819 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20820     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20821 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20822     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20823 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20824     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20825 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20826     (
20827       cat <<\_ASBOX
20828 ## ------------------------------------------ ##
20829 ## Report this to the AC_PACKAGE_NAME lists.  ##
20830 ## ------------------------------------------ ##
20831 _ASBOX
20832     ) |
20833       sed "s/^/$as_me: WARNING:     /" >&2
20834     ;;
20835 esac
20836 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20837 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20838 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20839   echo $ECHO_N "(cached) $ECHO_C" >&6
20840 else
20841   ac_cv_header_sys_acl_h=$ac_header_preproc
20842 fi
20843 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20844 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20845
20846 fi
20847
20848
20849 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20850 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20851 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20852   echo $ECHO_N "(cached) $ECHO_C" >&6
20853 else
20854   ac_check_lib_save_LIBS=$LIBS
20855 LIBS="-lacl  $LIBS"
20856 cat >conftest.$ac_ext <<_ACEOF
20857 /* confdefs.h.  */
20858 _ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h.  */
20862
20863 /* Override any gcc2 internal prototype to avoid an error.  */
20864 #ifdef __cplusplus
20865 extern "C"
20866 #endif
20867 /* We use char because int might match the return type of a gcc2
20868    builtin and then its argument prototype would still apply.  */
20869 char acl_get_file ();
20870 int
20871 main ()
20872 {
20873 acl_get_file ();
20874   ;
20875   return 0;
20876 }
20877 _ACEOF
20878 rm -f conftest.$ac_objext conftest$ac_exeext
20879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20880   (eval $ac_link) 2>conftest.er1
20881   ac_status=$?
20882   grep -v '^ *+' conftest.er1 >conftest.err
20883   rm -f conftest.er1
20884   cat conftest.err >&5
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } &&
20887          { ac_try='test -z "$ac_c_werror_flag"
20888                          || test ! -s conftest.err'
20889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890   (eval $ac_try) 2>&5
20891   ac_status=$?
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); }; } &&
20894          { ac_try='test -s conftest$ac_exeext'
20895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896   (eval $ac_try) 2>&5
20897   ac_status=$?
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); }; }; then
20900   ac_cv_lib_acl_acl_get_file=yes
20901 else
20902   echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20904
20905 ac_cv_lib_acl_acl_get_file=no
20906 fi
20907 rm -f conftest.err conftest.$ac_objext \
20908       conftest$ac_exeext conftest.$ac_ext
20909 LIBS=$ac_check_lib_save_LIBS
20910 fi
20911 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20912 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20913 if test $ac_cv_lib_acl_acl_get_file = yes; then
20914   FDLIBS="-lacl $FDLIBS"
20915 fi
20916
20917 have_acl=no
20918 if test $ac_cv_lib_acl_acl_get_file = yes; then
20919    cat >>confdefs.h <<\_ACEOF
20920 #define HAVE_ACL 1
20921 _ACEOF
20922
20923    have_acl=yes
20924 fi
20925
20926 PTHREAD_LIB=""
20927 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20928 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20929 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20930   echo $ECHO_N "(cached) $ECHO_C" >&6
20931 else
20932   ac_check_lib_save_LIBS=$LIBS
20933 LIBS="-lpthread  $LIBS"
20934 cat >conftest.$ac_ext <<_ACEOF
20935 /* confdefs.h.  */
20936 _ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h.  */
20940
20941 /* Override any gcc2 internal prototype to avoid an error.  */
20942 #ifdef __cplusplus
20943 extern "C"
20944 #endif
20945 /* We use char because int might match the return type of a gcc2
20946    builtin and then its argument prototype would still apply.  */
20947 char pthread_create ();
20948 int
20949 main ()
20950 {
20951 pthread_create ();
20952   ;
20953   return 0;
20954 }
20955 _ACEOF
20956 rm -f conftest.$ac_objext conftest$ac_exeext
20957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20958   (eval $ac_link) 2>conftest.er1
20959   ac_status=$?
20960   grep -v '^ *+' conftest.er1 >conftest.err
20961   rm -f conftest.er1
20962   cat conftest.err >&5
20963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964   (exit $ac_status); } &&
20965          { ac_try='test -z "$ac_c_werror_flag"
20966                          || test ! -s conftest.err'
20967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968   (eval $ac_try) 2>&5
20969   ac_status=$?
20970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971   (exit $ac_status); }; } &&
20972          { ac_try='test -s conftest$ac_exeext'
20973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974   (eval $ac_try) 2>&5
20975   ac_status=$?
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); }; }; then
20978   ac_cv_lib_pthread_pthread_create=yes
20979 else
20980   echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20982
20983 ac_cv_lib_pthread_pthread_create=no
20984 fi
20985 rm -f conftest.err conftest.$ac_objext \
20986       conftest$ac_exeext conftest.$ac_ext
20987 LIBS=$ac_check_lib_save_LIBS
20988 fi
20989 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20990 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20991 if test $ac_cv_lib_pthread_pthread_create = yes; then
20992   PTHREAD_LIB="-lpthread"
20993 else
20994   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20995 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20996 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20997   echo $ECHO_N "(cached) $ECHO_C" >&6
20998 else
20999   ac_check_lib_save_LIBS=$LIBS
21000 LIBS="-lpthreads  $LIBS"
21001 cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h.  */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h.  */
21007
21008 /* Override any gcc2 internal prototype to avoid an error.  */
21009 #ifdef __cplusplus
21010 extern "C"
21011 #endif
21012 /* We use char because int might match the return type of a gcc2
21013    builtin and then its argument prototype would still apply.  */
21014 char pthread_create ();
21015 int
21016 main ()
21017 {
21018 pthread_create ();
21019   ;
21020   return 0;
21021 }
21022 _ACEOF
21023 rm -f conftest.$ac_objext conftest$ac_exeext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21025   (eval $ac_link) 2>conftest.er1
21026   ac_status=$?
21027   grep -v '^ *+' conftest.er1 >conftest.err
21028   rm -f conftest.er1
21029   cat conftest.err >&5
21030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031   (exit $ac_status); } &&
21032          { ac_try='test -z "$ac_c_werror_flag"
21033                          || test ! -s conftest.err'
21034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035   (eval $ac_try) 2>&5
21036   ac_status=$?
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); }; } &&
21039          { ac_try='test -s conftest$ac_exeext'
21040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041   (eval $ac_try) 2>&5
21042   ac_status=$?
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); }; }; then
21045   ac_cv_lib_pthreads_pthread_create=yes
21046 else
21047   echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050 ac_cv_lib_pthreads_pthread_create=no
21051 fi
21052 rm -f conftest.err conftest.$ac_objext \
21053       conftest$ac_exeext conftest.$ac_ext
21054 LIBS=$ac_check_lib_save_LIBS
21055 fi
21056 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21057 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21058 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21059   PTHREAD_LIB="-lpthreads"
21060 else
21061   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21062 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21063 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21064   echo $ECHO_N "(cached) $ECHO_C" >&6
21065 else
21066   ac_check_lib_save_LIBS=$LIBS
21067 LIBS="-lc_r  $LIBS"
21068 cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h.  */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h.  */
21074
21075 /* Override any gcc2 internal prototype to avoid an error.  */
21076 #ifdef __cplusplus
21077 extern "C"
21078 #endif
21079 /* We use char because int might match the return type of a gcc2
21080    builtin and then its argument prototype would still apply.  */
21081 char pthread_create ();
21082 int
21083 main ()
21084 {
21085 pthread_create ();
21086   ;
21087   return 0;
21088 }
21089 _ACEOF
21090 rm -f conftest.$ac_objext conftest$ac_exeext
21091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21092   (eval $ac_link) 2>conftest.er1
21093   ac_status=$?
21094   grep -v '^ *+' conftest.er1 >conftest.err
21095   rm -f conftest.er1
21096   cat conftest.err >&5
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); } &&
21099          { ac_try='test -z "$ac_c_werror_flag"
21100                          || test ! -s conftest.err'
21101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102   (eval $ac_try) 2>&5
21103   ac_status=$?
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); }; } &&
21106          { ac_try='test -s conftest$ac_exeext'
21107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108   (eval $ac_try) 2>&5
21109   ac_status=$?
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); }; }; then
21112   ac_cv_lib_c_r_pthread_create=yes
21113 else
21114   echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21116
21117 ac_cv_lib_c_r_pthread_create=no
21118 fi
21119 rm -f conftest.err conftest.$ac_objext \
21120       conftest$ac_exeext conftest.$ac_ext
21121 LIBS=$ac_check_lib_save_LIBS
21122 fi
21123 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21124 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21125 if test $ac_cv_lib_c_r_pthread_create = yes; then
21126   PTHREAD_LIB="-lc_r"
21127 else
21128   echo "$as_me:$LINENO: checking for pthread_create" >&5
21129 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21130 if test "${ac_cv_func_pthread_create+set}" = set; then
21131   echo $ECHO_N "(cached) $ECHO_C" >&6
21132 else
21133   cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h.  */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h.  */
21139 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21141 #define pthread_create innocuous_pthread_create
21142
21143 /* System header to define __stub macros and hopefully few prototypes,
21144     which can conflict with char pthread_create (); below.
21145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21146     <limits.h> exists even on freestanding compilers.  */
21147
21148 #ifdef __STDC__
21149 # include <limits.h>
21150 #else
21151 # include <assert.h>
21152 #endif
21153
21154 #undef pthread_create
21155
21156 /* Override any gcc2 internal prototype to avoid an error.  */
21157 #ifdef __cplusplus
21158 extern "C"
21159 {
21160 #endif
21161 /* We use char because int might match the return type of a gcc2
21162    builtin and then its argument prototype would still apply.  */
21163 char pthread_create ();
21164 /* The GNU C library defines this for functions which it implements
21165     to always fail with ENOSYS.  Some functions are actually named
21166     something starting with __ and the normal name is an alias.  */
21167 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21168 choke me
21169 #else
21170 char (*f) () = pthread_create;
21171 #endif
21172 #ifdef __cplusplus
21173 }
21174 #endif
21175
21176 int
21177 main ()
21178 {
21179 return f != pthread_create;
21180   ;
21181   return 0;
21182 }
21183 _ACEOF
21184 rm -f conftest.$ac_objext conftest$ac_exeext
21185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21186   (eval $ac_link) 2>conftest.er1
21187   ac_status=$?
21188   grep -v '^ *+' conftest.er1 >conftest.err
21189   rm -f conftest.er1
21190   cat conftest.err >&5
21191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192   (exit $ac_status); } &&
21193          { ac_try='test -z "$ac_c_werror_flag"
21194                          || test ! -s conftest.err'
21195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196   (eval $ac_try) 2>&5
21197   ac_status=$?
21198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199   (exit $ac_status); }; } &&
21200          { ac_try='test -s conftest$ac_exeext'
21201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202   (eval $ac_try) 2>&5
21203   ac_status=$?
21204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205   (exit $ac_status); }; }; then
21206   ac_cv_func_pthread_create=yes
21207 else
21208   echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21210
21211 ac_cv_func_pthread_create=no
21212 fi
21213 rm -f conftest.err conftest.$ac_objext \
21214       conftest$ac_exeext conftest.$ac_ext
21215 fi
21216 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21217 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21218
21219
21220 fi
21221
21222
21223 fi
21224
21225
21226 fi
21227
21228
21229
21230 cat >>confdefs.h <<\_ACEOF
21231 #define FDLIBS 1
21232 _ACEOF
21233
21234
21235
21236 CFLAGS=${CFLAGS--O}
21237 LDFLAGS=${LDFLAGS--O}
21238 DB_LIBS="${SQL_LFLAGS}"
21239
21240 CPPFLAGS="$CPPFLAGS"
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255 OBJLIST=
21256
21257
21258 lld="lld"
21259 llu="llu"
21260
21261 WCFLAGS=
21262 WLDFLAGS=
21263
21264 #
21265 # Finally we set appropriate distribution specific
21266 #  variables and defaults
21267 #
21268 # PFILES are platform specific files
21269 PFILES="platforms/Makefile"
21270 PSCMD="ps -e"
21271 WIN32=
21272 MACOSX=
21273 hostname=`uname -n | cut -d '.' -f 1`
21274 case "$DISTNAME" in
21275 aix)
21276         DISTVER=`uname -r`
21277         PSCMD="ps -e -o pid,comm"
21278         PFILES="${PFILES} \
21279            platforms/aix/Makefile"
21280         TAPEDRIVE="/dev/rmt0.1"
21281   ;;
21282 alpha)
21283         DISTVER=`uname -r`
21284         PTHREAD_LIB="-lpthread -lexc"
21285         if test "${CC}" = "gcc" ; then
21286            lld="lld"
21287            llu="llu"
21288         else
21289            lld="ld"
21290            llu="lu"
21291         fi
21292         TAPEDRIVE="/dev/nrmt0"
21293   ;;
21294 bsdi)
21295         DISTVER=`uname -a |awk '{print $3}'`
21296         TAPEDRIVE="/dev/nrmt0"
21297         PTHREAD_LIB="-pthread"
21298         CFLAGS="${CFLAGS} -pthread"
21299         PSCMD="ps -x -o pid,command"
21300         lld="qd"
21301         llu="qu"
21302         PFILES="${PFILES} \
21303             platforms/bsdi/Makefile \
21304             platforms/bsdi/bacula-fd \
21305             platforms/bsdi/bacula-sd \
21306             platforms/bsdi/bacula-dir"
21307         largefile_support="yes"
21308   ;;
21309 cygwin)
21310         DISTVER=`uname -a |awk '{print $3}'`
21311         TAPEDRIVE="/dev/nrst0"
21312         WIN32=win32
21313         WCFLAGS="-mwindows"
21314         WLDFLAGS="-mwindows"
21315   ;;
21316 darwin)
21317         DISTVER=`uname -r`
21318         TAPEDRIVE="/dev/nst0"
21319         PSCMD="ps -e -o pid,command"
21320         MACOSX=macosx
21321         PFILES="${PFILES} \
21322            platforms/darwin/Makefile"
21323   ;;
21324 debian)
21325         DISTVER=`cat /etc/debian_version`
21326         TAPEDRIVE="/dev/nrst0"
21327         PSCMD="ps -e -o pid,command"
21328   ;;
21329 freebsd)
21330         DISTVER=`uname -a |awk '{print $3}'`
21331         VER=`echo $DISTVER | cut -c 1`
21332         if test x$VER = x4 ; then
21333            PTHREAD_LIB="-pthread"
21334            CFLAGS="${CFLAGS} -pthread"
21335         fi
21336         lld="qd"
21337         llu="qu"
21338         TAPEDRIVE="/dev/nrsa0"
21339         PSCMD="ps -x -o pid,command"
21340         PFILES="${PFILES} \
21341             platforms/freebsd/Makefile \
21342             platforms/freebsd/bacula-fd \
21343             platforms/freebsd/bacula-sd \
21344             platforms/freebsd/bacula-dir"
21345         largefile_support="yes"
21346   ;;
21347 hpux)
21348         PSCMD="UNIX95=1 ps -e -o pid,comm"
21349         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21350         DISTVER=`uname -r`
21351         TAPEDRIVE="/dev/rmt/0hnb"
21352         PTHREAD_LIB="-lpthread"
21353         cat >>confdefs.h <<\_ACEOF
21354 #define _INCLUDE_LONGLONG 1
21355 _ACEOF
21356
21357   ;;
21358 irix)
21359         DISTVER=`uname -r`
21360         TAPEDRIVE="/dev/rmt/0cbn"
21361         PSCMD="ps -e -o pid,comm"
21362         PFILES="${PFILES} \
21363             platforms/irix/Makefile \
21364             platforms/irix/bacula-fd \
21365             platforms/irix/bacula-sd \
21366             platforms/irix/bacula-dir"
21367   ;;
21368 netbsd)
21369         DISTVER=`uname -a |awk '{print $3}'`
21370         lld="qd"
21371         llu="qu"
21372         TAPEDRIVE="/dev/nrst0"
21373         PSCMD="ps -a -o pid,command"
21374         PTHREAD_LIB="-pthread"
21375         CFLAGS="${CFLAGS} -pthread"
21376   ;;
21377 openbsd)
21378         DISTVER=`uname -a |awk '{print $3}'`
21379         lld="qd"
21380         llu="qu"
21381         TAPEDRIVE="/dev/nrst0"
21382         PSCMD="ps -ax -o pid,command"
21383         PTHREAD_LIB="-pthread"
21384         CFLAGS="${CFLAGS} -pthread"
21385         PFILES="${PFILES} \
21386             platforms/openbsd/Makefile \
21387             platforms/openbsd/bacula-fd \
21388             platforms/openbsd/bacula-sd \
21389             platforms/openbsd/bacula-dir"
21390   ;;
21391 redhat)
21392         if test -f /etc/whitebox-release ; then
21393            f=/etc/whitebox-release
21394         else
21395            f=/etc/redhat-release
21396         fi
21397         if test `cat $f | grep release |\
21398                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21399            DISTVER="Enterprise "`cat $f | grep release |\
21400                     cut -f 6 -d ' '`
21401         else
21402             DISTVER=`cat /etc/redhat-release | grep release |\
21403                      cut -f 5 -d ' '`
21404         fi
21405         TAPEDRIVE="/dev/nst0"
21406         PSCMD="ps -e -o pid,command"
21407         PFILES="${PFILES} \
21408             platforms/redhat/Makefile \
21409             platforms/redhat/bacula-fd \
21410             platforms/redhat/bacula-sd \
21411             platforms/redhat/bacula-dir \
21412             platforms/redhat/bacula.spec \
21413             "
21414         hostname=`hostname -s`
21415   ;;
21416 mandrake)
21417         DISTVER=`cat /etc/mandrake-release | grep release |\
21418            cut -f 5 -d ' '`
21419         TAPEDRIVE="/dev/nst0"
21420         PSCMD="ps -e -o pid,command"
21421         PFILES="${PFILES} \
21422             platforms/mandrake/Makefile \
21423             platforms/mandrake/bacula-fd \
21424             platforms/mandrake/bacula-sd \
21425             platforms/mandrake/bacula-dir \
21426             platforms/mandrake/bacula.spec \
21427             "
21428   ;;
21429 gentoo)
21430         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21431         TAPEDRIVE="/dev/nst0"
21432         PSCMD="ps -e -o pid,command"
21433         PFILES="${PFILES} \
21434             platforms/gentoo/Makefile \
21435          platforms/gentoo/bacula-init \
21436             platforms/gentoo/bacula-fd \
21437             platforms/gentoo/bacula-sd \
21438             platforms/gentoo/bacula-dir"
21439   ;;
21440 slackware)
21441         DISTVER=`cat /etc/slackware-version`
21442         TAPEDRIVE="/dev/nst0"
21443         PSCMD="ps -e -o pid,command"
21444         PFILES="${PFILES} \
21445             platforms/slackware/Makefile \
21446             platforms/slackware/rc.bacula-fd \
21447             platforms/slackware/rc.bacula-sd \
21448             platforms/slackware/rc.bacula-dir\
21449             platforms/slackware/functions.bacula"
21450   ;;
21451 solaris)
21452         DISTVER=`uname -r`
21453         TAPEDRIVE="/dev/rmt/0cbn"
21454         PSCMD="ps -e -o pid,comm"
21455         PFILES="${PFILES} \
21456             platforms/solaris/Makefile \
21457             platforms/solaris/bacula-fd \
21458             platforms/solaris/bacula-sd \
21459             platforms/solaris/bacula-dir"
21460         if test x$DISTVER = x5.6 ; then
21461             cat >>confdefs.h <<\_ACEOF
21462 #define HAVE_OLD_SOCKOPT 1
21463 _ACEOF
21464
21465         fi
21466         LIBS="$LIBS -lresolv"
21467   ;;
21468 suse)
21469         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21470             cut -f 3 -d ' '`
21471         TAPEDRIVE="/dev/nst0"
21472         PSCMD="ps -e -o pid,command"
21473         PFILES="${PFILES} \
21474             platforms/suse/Makefile \
21475             platforms/suse/bacula-fd \
21476             platforms/suse/bacula-sd \
21477             platforms/suse/bacula-dir \
21478             platforms/suse/bacula \
21479             platforms/suse/bacula.spec"
21480   ;;
21481 suse5)
21482         DISTNAME=suse
21483         DISTVER=5.x
21484         TAPEDRIVE="/dev/nst0"
21485         PSCMD="ps -e -o pid,command"
21486         PFILES="${PFILES} \
21487             platforms/suse/Makefile \
21488             platforms/suse/bacula-fd \
21489             platforms/suse/bacula-sd \
21490             platforms/suse/bacula-dir"
21491   ;;
21492 unknown)
21493         DISTVER=unknown
21494         TAPEDRIVE="/dev/nst0"
21495   ;;
21496 *)
21497   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21498   ;;
21499 esac
21500
21501
21502
21503 LIBS="$PTHREAD_LIB $LIBS"
21504
21505 cat >>confdefs.h <<_ACEOF
21506 #define lld "$lld"
21507 _ACEOF
21508
21509 cat >>confdefs.h <<_ACEOF
21510 #define llu "$llu"
21511 _ACEOF
21512
21513
21514
21515
21516
21517
21518
21519
21520 MCOMMON=./autoconf/Make.common
21521
21522
21523 if test "x${subsysdir}" = "x${sbindir}" ; then
21524    echo " "
21525    echo " "
21526    echo "You have set both --sbindir and --with-subsys-dir"
21527    echo "  equal to: ${subsysdir} "
21528    echo "This is not permitted. Please reconfigure."
21529    echo " "
21530    echo "Aborting configuration ..."
21531    echo " "
21532    echo " "
21533    exit 1
21534 fi
21535
21536                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     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/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/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 src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
21537           ac_config_commands="$ac_config_commands default"
21538 cat >confcache <<\_ACEOF
21539 # This file is a shell script that caches the results of configure
21540 # tests run on this system so they can be shared between configure
21541 # scripts and configure runs, see configure's option --config-cache.
21542 # It is not useful on other systems.  If it contains results you don't
21543 # want to keep, you may remove or edit it.
21544 #
21545 # config.status only pays attention to the cache file if you give it
21546 # the --recheck option to rerun configure.
21547 #
21548 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21549 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21550 # following values.
21551
21552 _ACEOF
21553
21554 # The following way of writing the cache mishandles newlines in values,
21555 # but we know of no workaround that is simple, portable, and efficient.
21556 # So, don't put newlines in cache variables' values.
21557 # Ultrix sh set writes to stderr and can't be redirected directly,
21558 # and sets the high bit in the cache file unless we assign to the vars.
21559 {
21560   (set) 2>&1 |
21561     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21562     *ac_space=\ *)
21563       # `set' does not quote correctly, so add quotes (double-quote
21564       # substitution turns \\\\ into \\, and sed turns \\ into \).
21565       sed -n \
21566         "s/'/'\\\\''/g;
21567           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21568       ;;
21569     *)
21570       # `set' quotes correctly as required by POSIX, so do not add quotes.
21571       sed -n \
21572         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21573       ;;
21574     esac;
21575 } |
21576   sed '
21577      t clear
21578      : clear
21579      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21580      t end
21581      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21582      : end' >>confcache
21583 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21584   if test -w $cache_file; then
21585     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21586     cat confcache >$cache_file
21587   else
21588     echo "not updating unwritable cache $cache_file"
21589   fi
21590 fi
21591 rm -f confcache
21592
21593 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21594 # Let make expand exec_prefix.
21595 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21596
21597 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21598 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21599 # trailing colons and then remove the whole line if VPATH becomes empty
21600 # (actually we leave an empty line to preserve line numbers).
21601 if test "x$srcdir" = x.; then
21602   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21603 s/:*\$(srcdir):*/:/;
21604 s/:*\${srcdir}:*/:/;
21605 s/:*@srcdir@:*/:/;
21606 s/^\([^=]*=[     ]*\):*/\1/;
21607 s/:*$//;
21608 s/^[^=]*=[       ]*$//;
21609 }'
21610 fi
21611
21612 DEFS=-DHAVE_CONFIG_H
21613
21614 ac_libobjs=
21615 ac_ltlibobjs=
21616 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21617   # 1. Remove the extension, and $U if already installed.
21618   ac_i=`echo "$ac_i" |
21619          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21620   # 2. Add them.
21621   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21622   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21623 done
21624 LIBOBJS=$ac_libobjs
21625
21626 LTLIBOBJS=$ac_ltlibobjs
21627
21628
21629
21630 : ${CONFIG_STATUS=./config.status}
21631 ac_clean_files_save=$ac_clean_files
21632 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21633 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21634 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21635 cat >$CONFIG_STATUS <<_ACEOF
21636 #! $SHELL
21637 # Generated by $as_me.
21638 # Run this file to recreate the current configuration.
21639 # Compiler output produced by configure, useful for debugging
21640 # configure, is in config.log if it exists.
21641
21642 debug=false
21643 ac_cs_recheck=false
21644 ac_cs_silent=false
21645 SHELL=\${CONFIG_SHELL-$SHELL}
21646 _ACEOF
21647
21648 cat >>$CONFIG_STATUS <<\_ACEOF
21649 ## --------------------- ##
21650 ## M4sh Initialization.  ##
21651 ## --------------------- ##
21652
21653 # Be Bourne compatible
21654 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21655   emulate sh
21656   NULLCMD=:
21657   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21658   # is contrary to our usage.  Disable this feature.
21659   alias -g '${1+"$@"}'='"$@"'
21660 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21661   set -o posix
21662 fi
21663 DUALCASE=1; export DUALCASE # for MKS sh
21664
21665 # Support unset when possible.
21666 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21667   as_unset=unset
21668 else
21669   as_unset=false
21670 fi
21671
21672
21673 # Work around bugs in pre-3.0 UWIN ksh.
21674 $as_unset ENV MAIL MAILPATH
21675 PS1='$ '
21676 PS2='> '
21677 PS4='+ '
21678
21679 # NLS nuisances.
21680 for as_var in \
21681   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21682   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21683   LC_TELEPHONE LC_TIME
21684 do
21685   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21686     eval $as_var=C; export $as_var
21687   else
21688     $as_unset $as_var
21689   fi
21690 done
21691
21692 # Required to use basename.
21693 if expr a : '\(a\)' >/dev/null 2>&1; then
21694   as_expr=expr
21695 else
21696   as_expr=false
21697 fi
21698
21699 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21700   as_basename=basename
21701 else
21702   as_basename=false
21703 fi
21704
21705
21706 # Name of the executable.
21707 as_me=`$as_basename "$0" ||
21708 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21709          X"$0" : 'X\(//\)$' \| \
21710          X"$0" : 'X\(/\)$' \| \
21711          .     : '\(.\)' 2>/dev/null ||
21712 echo X/"$0" |
21713     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21714           /^X\/\(\/\/\)$/{ s//\1/; q; }
21715           /^X\/\(\/\).*/{ s//\1/; q; }
21716           s/.*/./; q'`
21717
21718
21719 # PATH needs CR, and LINENO needs CR and PATH.
21720 # Avoid depending upon Character Ranges.
21721 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21722 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21723 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21724 as_cr_digits='0123456789'
21725 as_cr_alnum=$as_cr_Letters$as_cr_digits
21726
21727 # The user is always right.
21728 if test "${PATH_SEPARATOR+set}" != set; then
21729   echo "#! /bin/sh" >conf$$.sh
21730   echo  "exit 0"   >>conf$$.sh
21731   chmod +x conf$$.sh
21732   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21733     PATH_SEPARATOR=';'
21734   else
21735     PATH_SEPARATOR=:
21736   fi
21737   rm -f conf$$.sh
21738 fi
21739
21740
21741   as_lineno_1=$LINENO
21742   as_lineno_2=$LINENO
21743   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21744   test "x$as_lineno_1" != "x$as_lineno_2" &&
21745   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21746   # Find who we are.  Look in the path if we contain no path at all
21747   # relative or not.
21748   case $0 in
21749     *[\\/]* ) as_myself=$0 ;;
21750     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21751 for as_dir in $PATH
21752 do
21753   IFS=$as_save_IFS
21754   test -z "$as_dir" && as_dir=.
21755   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21756 done
21757
21758        ;;
21759   esac
21760   # We did not find ourselves, most probably we were run as `sh COMMAND'
21761   # in which case we are not to be found in the path.
21762   if test "x$as_myself" = x; then
21763     as_myself=$0
21764   fi
21765   if test ! -f "$as_myself"; then
21766     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21767 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21768    { (exit 1); exit 1; }; }
21769   fi
21770   case $CONFIG_SHELL in
21771   '')
21772     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21773 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21774 do
21775   IFS=$as_save_IFS
21776   test -z "$as_dir" && as_dir=.
21777   for as_base in sh bash ksh sh5; do
21778          case $as_dir in
21779          /*)
21780            if ("$as_dir/$as_base" -c '
21781   as_lineno_1=$LINENO
21782   as_lineno_2=$LINENO
21783   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21784   test "x$as_lineno_1" != "x$as_lineno_2" &&
21785   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21786              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21787              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21788              CONFIG_SHELL=$as_dir/$as_base
21789              export CONFIG_SHELL
21790              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21791            fi;;
21792          esac
21793        done
21794 done
21795 ;;
21796   esac
21797
21798   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21799   # uniformly replaced by the line number.  The first 'sed' inserts a
21800   # line-number line before each line; the second 'sed' does the real
21801   # work.  The second script uses 'N' to pair each line-number line
21802   # with the numbered line, and appends trailing '-' during
21803   # substitution so that $LINENO is not a special case at line end.
21804   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21805   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21806   sed '=' <$as_myself |
21807     sed '
21808       N
21809       s,$,-,
21810       : loop
21811       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21812       t loop
21813       s,-$,,
21814       s,^['$as_cr_digits']*\n,,
21815     ' >$as_me.lineno &&
21816   chmod +x $as_me.lineno ||
21817     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21818 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21819    { (exit 1); exit 1; }; }
21820
21821   # Don't try to exec as it changes $[0], causing all sort of problems
21822   # (the dirname of $[0] is not the place where we might find the
21823   # original and so on.  Autoconf is especially sensible to this).
21824   . ./$as_me.lineno
21825   # Exit status is that of the last command.
21826   exit
21827 }
21828
21829
21830 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21831   *c*,-n*) ECHO_N= ECHO_C='
21832 ' ECHO_T='      ' ;;
21833   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21834   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21835 esac
21836
21837 if expr a : '\(a\)' >/dev/null 2>&1; then
21838   as_expr=expr
21839 else
21840   as_expr=false
21841 fi
21842
21843 rm -f conf$$ conf$$.exe conf$$.file
21844 echo >conf$$.file
21845 if ln -s conf$$.file conf$$ 2>/dev/null; then
21846   # We could just check for DJGPP; but this test a) works b) is more generic
21847   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21848   if test -f conf$$.exe; then
21849     # Don't use ln at all; we don't have any links
21850     as_ln_s='cp -p'
21851   else
21852     as_ln_s='ln -s'
21853   fi
21854 elif ln conf$$.file conf$$ 2>/dev/null; then
21855   as_ln_s=ln
21856 else
21857   as_ln_s='cp -p'
21858 fi
21859 rm -f conf$$ conf$$.exe conf$$.file
21860
21861 if mkdir -p . 2>/dev/null; then
21862   as_mkdir_p=:
21863 else
21864   test -d ./-p && rmdir ./-p
21865   as_mkdir_p=false
21866 fi
21867
21868 as_executable_p="test -f"
21869
21870 # Sed expression to map a string onto a valid CPP name.
21871 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21872
21873 # Sed expression to map a string onto a valid variable name.
21874 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21875
21876
21877 # IFS
21878 # We need space, tab and new line, in precisely that order.
21879 as_nl='
21880 '
21881 IFS="   $as_nl"
21882
21883 # CDPATH.
21884 $as_unset CDPATH
21885
21886 exec 6>&1
21887
21888 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21889 # report actual input values of CONFIG_FILES etc. instead of their
21890 # values after options handling.  Logging --version etc. is OK.
21891 exec 5>>config.log
21892 {
21893   echo
21894   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21895 ## Running $as_me. ##
21896 _ASBOX
21897 } >&5
21898 cat >&5 <<_CSEOF
21899
21900 This file was extended by $as_me, which was
21901 generated by GNU Autoconf 2.59.  Invocation command line was
21902
21903   CONFIG_FILES    = $CONFIG_FILES
21904   CONFIG_HEADERS  = $CONFIG_HEADERS
21905   CONFIG_LINKS    = $CONFIG_LINKS
21906   CONFIG_COMMANDS = $CONFIG_COMMANDS
21907   $ $0 $@
21908
21909 _CSEOF
21910 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21911 echo >&5
21912 _ACEOF
21913
21914 # Files that config.status was made for.
21915 if test -n "$ac_config_files"; then
21916   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21917 fi
21918
21919 if test -n "$ac_config_headers"; then
21920   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21921 fi
21922
21923 if test -n "$ac_config_links"; then
21924   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21925 fi
21926
21927 if test -n "$ac_config_commands"; then
21928   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21929 fi
21930
21931 cat >>$CONFIG_STATUS <<\_ACEOF
21932
21933 ac_cs_usage="\
21934 \`$as_me' instantiates files from templates according to the
21935 current configuration.
21936
21937 Usage: $0 [OPTIONS] [FILE]...
21938
21939   -h, --help       print this help, then exit
21940   -V, --version    print version number, then exit
21941   -q, --quiet      do not print progress messages
21942   -d, --debug      don't remove temporary files
21943       --recheck    update $as_me by reconfiguring in the same conditions
21944   --file=FILE[:TEMPLATE]
21945                    instantiate the configuration file FILE
21946   --header=FILE[:TEMPLATE]
21947                    instantiate the configuration header FILE
21948
21949 Configuration files:
21950 $config_files
21951
21952 Configuration headers:
21953 $config_headers
21954
21955 Configuration commands:
21956 $config_commands
21957
21958 Report bugs to <bug-autoconf@gnu.org>."
21959 _ACEOF
21960
21961 cat >>$CONFIG_STATUS <<_ACEOF
21962 ac_cs_version="\\
21963 config.status
21964 configured by $0, generated by GNU Autoconf 2.59,
21965   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21966
21967 Copyright (C) 2003 Free Software Foundation, Inc.
21968 This config.status script is free software; the Free Software Foundation
21969 gives unlimited permission to copy, distribute and modify it."
21970 srcdir=$srcdir
21971 INSTALL="$INSTALL"
21972 _ACEOF
21973
21974 cat >>$CONFIG_STATUS <<\_ACEOF
21975 # If no file are specified by the user, then we need to provide default
21976 # value.  By we need to know if files were specified by the user.
21977 ac_need_defaults=:
21978 while test $# != 0
21979 do
21980   case $1 in
21981   --*=*)
21982     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21983     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21984     ac_shift=:
21985     ;;
21986   -*)
21987     ac_option=$1
21988     ac_optarg=$2
21989     ac_shift=shift
21990     ;;
21991   *) # This is not an option, so the user has probably given explicit
21992      # arguments.
21993      ac_option=$1
21994      ac_need_defaults=false;;
21995   esac
21996
21997   case $ac_option in
21998   # Handling of the options.
21999 _ACEOF
22000 cat >>$CONFIG_STATUS <<\_ACEOF
22001   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22002     ac_cs_recheck=: ;;
22003   --version | --vers* | -V )
22004     echo "$ac_cs_version"; exit 0 ;;
22005   --he | --h)
22006     # Conflict between --help and --header
22007     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22008 Try \`$0 --help' for more information." >&5
22009 echo "$as_me: error: ambiguous option: $1
22010 Try \`$0 --help' for more information." >&2;}
22011    { (exit 1); exit 1; }; };;
22012   --help | --hel | -h )
22013     echo "$ac_cs_usage"; exit 0 ;;
22014   --debug | --d* | -d )
22015     debug=: ;;
22016   --file | --fil | --fi | --f )
22017     $ac_shift
22018     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22019     ac_need_defaults=false;;
22020   --header | --heade | --head | --hea )
22021     $ac_shift
22022     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22023     ac_need_defaults=false;;
22024   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22025   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22026     ac_cs_silent=: ;;
22027
22028   # This is an error.
22029   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22030 Try \`$0 --help' for more information." >&5
22031 echo "$as_me: error: unrecognized option: $1
22032 Try \`$0 --help' for more information." >&2;}
22033    { (exit 1); exit 1; }; } ;;
22034
22035   *) ac_config_targets="$ac_config_targets $1" ;;
22036
22037   esac
22038   shift
22039 done
22040
22041 ac_configure_extra_args=
22042
22043 if $ac_cs_silent; then
22044   exec 6>/dev/null
22045   ac_configure_extra_args="$ac_configure_extra_args --silent"
22046 fi
22047
22048 _ACEOF
22049 cat >>$CONFIG_STATUS <<_ACEOF
22050 if \$ac_cs_recheck; then
22051   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22052   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22053 fi
22054
22055 _ACEOF
22056
22057
22058
22059
22060
22061 cat >>$CONFIG_STATUS <<\_ACEOF
22062 for ac_config_target in $ac_config_targets
22063 do
22064   case "$ac_config_target" in
22065   # Handling of arguments.
22066   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22067   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22068   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22069   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22070   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22071   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22072   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22073   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22074   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22075   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22076   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22077   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22078   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22079   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22080   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22081   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22082   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22083   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22084   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22085   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22086   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22087   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22088   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22089   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22090   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22091   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22092   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22093   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22094   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22095   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22096   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
22097   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
22098   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22099   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22100   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22101   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22102   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22103   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22104   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22105   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22106   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22107   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22108   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22109   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22110   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22111   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22112   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22113   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22114   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22115   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22116   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22117   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22118   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22119   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22120   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22121   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22122   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22123   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22124   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22125   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22126   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22127   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22128   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22129   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22130   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22131   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22132   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22133   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22134   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22135   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22136   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22137   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22138   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22139   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22140   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22141   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22142   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22143   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22144   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22145   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22146   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22147   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22148   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22149   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22150   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22151   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22152   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22153   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22154   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22155   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22156   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22157   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22158   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22159   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22160   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22161   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22162   "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22163   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22164   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22165   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22166   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22167 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22168    { (exit 1); exit 1; }; };;
22169   esac
22170 done
22171
22172 # If the user did not use the arguments to specify the items to instantiate,
22173 # then the envvar interface is used.  Set only those that are not.
22174 # We use the long form for the default assignment because of an extremely
22175 # bizarre bug on SunOS 4.1.3.
22176 if $ac_need_defaults; then
22177   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22178   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22179   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22180 fi
22181
22182 # Have a temporary directory for convenience.  Make it in the build tree
22183 # simply because there is no reason to put it here, and in addition,
22184 # creating and moving files from /tmp can sometimes cause problems.
22185 # Create a temporary directory, and hook for its removal unless debugging.
22186 $debug ||
22187 {
22188   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22189   trap '{ (exit 1); exit 1; }' 1 2 13 15
22190 }
22191
22192 # Create a (secure) tmp directory for tmp files.
22193
22194 {
22195   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22196   test -n "$tmp" && test -d "$tmp"
22197 }  ||
22198 {
22199   tmp=./confstat$$-$RANDOM
22200   (umask 077 && mkdir $tmp)
22201 } ||
22202 {
22203    echo "$me: cannot create a temporary directory in ." >&2
22204    { (exit 1); exit 1; }
22205 }
22206
22207 _ACEOF
22208
22209 cat >>$CONFIG_STATUS <<_ACEOF
22210
22211 #
22212 # CONFIG_FILES section.
22213 #
22214
22215 # No need to generate the scripts if there are no CONFIG_FILES.
22216 # This happens for instance when ./config.status config.h
22217 if test -n "\$CONFIG_FILES"; then
22218   # Protect against being on the right side of a sed subst in config.status.
22219   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22220    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22221 s,@SHELL@,$SHELL,;t t
22222 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22223 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22224 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22225 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22226 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22227 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22228 s,@exec_prefix@,$exec_prefix,;t t
22229 s,@prefix@,$prefix,;t t
22230 s,@program_transform_name@,$program_transform_name,;t t
22231 s,@bindir@,$bindir,;t t
22232 s,@sbindir@,$sbindir,;t t
22233 s,@libexecdir@,$libexecdir,;t t
22234 s,@datadir@,$datadir,;t t
22235 s,@sysconfdir@,$sysconfdir,;t t
22236 s,@sharedstatedir@,$sharedstatedir,;t t
22237 s,@localstatedir@,$localstatedir,;t t
22238 s,@libdir@,$libdir,;t t
22239 s,@includedir@,$includedir,;t t
22240 s,@oldincludedir@,$oldincludedir,;t t
22241 s,@infodir@,$infodir,;t t
22242 s,@mandir@,$mandir,;t t
22243 s,@build_alias@,$build_alias,;t t
22244 s,@host_alias@,$host_alias,;t t
22245 s,@target_alias@,$target_alias,;t t
22246 s,@DEFS@,$DEFS,;t t
22247 s,@ECHO_C@,$ECHO_C,;t t
22248 s,@ECHO_N@,$ECHO_N,;t t
22249 s,@ECHO_T@,$ECHO_T,;t t
22250 s,@LIBS@,$LIBS,;t t
22251 s,@BUILD_DIR@,$BUILD_DIR,;t t
22252 s,@TRUEPRG@,$TRUEPRG,;t t
22253 s,@FALSEPRG@,$FALSEPRG,;t t
22254 s,@VERSION@,$VERSION,;t t
22255 s,@DATE@,$DATE,;t t
22256 s,@LSMDATE@,$LSMDATE,;t t
22257 s,@CC@,$CC,;t t
22258 s,@CFLAGS@,$CFLAGS,;t t
22259 s,@LDFLAGS@,$LDFLAGS,;t t
22260 s,@CPPFLAGS@,$CPPFLAGS,;t t
22261 s,@ac_ct_CC@,$ac_ct_CC,;t t
22262 s,@EXEEXT@,$EXEEXT,;t t
22263 s,@OBJEXT@,$OBJEXT,;t t
22264 s,@CXX@,$CXX,;t t
22265 s,@CXXFLAGS@,$CXXFLAGS,;t t
22266 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22267 s,@CPP@,$CPP,;t t
22268 s,@EGREP@,$EGREP,;t t
22269 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22270 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22271 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22272 s,@RANLIB@,$RANLIB,;t t
22273 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22274 s,@MV@,$MV,;t t
22275 s,@RM@,$RM,;t t
22276 s,@CP@,$CP,;t t
22277 s,@SED@,$SED,;t t
22278 s,@ECHO@,$ECHO,;t t
22279 s,@CMP@,$CMP,;t t
22280 s,@TBL@,$TBL,;t t
22281 s,@AR@,$AR,;t t
22282 s,@OPENSSL@,$OPENSSL,;t t
22283 s,@MTX@,$MTX,;t t
22284 s,@MKISOFS@,$MKISOFS,;t t
22285 s,@PYTHON@,$PYTHON,;t t
22286 s,@GROWISOFS@,$GROWISOFS,;t t
22287 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22288 s,@PKGCONFIG@,$PKGCONFIG,;t t
22289 s,@WXCONFIG@,$WXCONFIG,;t t
22290 s,@CDRECORD@,$CDRECORD,;t t
22291 s,@PIDOF@,$PIDOF,;t t
22292 s,@AWK@,$AWK,;t t
22293 s,@ARFLAGS@,$ARFLAGS,;t t
22294 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22295 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22296 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22297 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22298 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22299 s,@build@,$build,;t t
22300 s,@build_cpu@,$build_cpu,;t t
22301 s,@build_vendor@,$build_vendor,;t t
22302 s,@build_os@,$build_os,;t t
22303 s,@host@,$host,;t t
22304 s,@host_cpu@,$host_cpu,;t t
22305 s,@host_vendor@,$host_vendor,;t t
22306 s,@host_os@,$host_os,;t t
22307 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22308 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22309 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22310 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22311 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22312 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22313 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22314 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22315 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22316 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22317 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22318 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22319 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22320 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22321 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22322 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22323 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22324 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22325 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22326 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22327 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22328 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22329 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22330 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22331 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22332 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22333 s,@MSGFMT@,$MSGFMT,;t t
22334 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22335 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22336 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22337 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22338 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22339 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22340 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22341 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22342 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22343 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22344 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22345 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22346 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22347 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22348 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22349 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22350 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22351 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22352 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22353 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22354 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22355 s,@GNOME_DIR@,$GNOME_DIR,;t t
22356 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22357 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22358 s,@WX_DIR@,$WX_DIR,;t t
22359 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22360 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22361 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22362 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22363 s,@STATIC_FD@,$STATIC_FD,;t t
22364 s,@STATIC_SD@,$STATIC_SD,;t t
22365 s,@STATIC_DIR@,$STATIC_DIR,;t t
22366 s,@STATIC_CONS@,$STATIC_CONS,;t t
22367 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22368 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22369 s,@ALL_DIRS@,$ALL_DIRS,;t t
22370 s,@CONS_INC@,$CONS_INC,;t t
22371 s,@CONS_OBJ@,$CONS_OBJ,;t t
22372 s,@CONS_SRC@,$CONS_SRC,;t t
22373 s,@CONS_LIBS@,$CONS_LIBS,;t t
22374 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22375 s,@READLINE_SRC@,$READLINE_SRC,;t t
22376 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22377 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22378 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22379 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22380 s,@working_dir@,$working_dir,;t t
22381 s,@scriptdir@,$scriptdir,;t t
22382 s,@dump_email@,$dump_email,;t t
22383 s,@job_email@,$job_email,;t t
22384 s,@smtp_host@,$smtp_host,;t t
22385 s,@piddir@,$piddir,;t t
22386 s,@subsysdir@,$subsysdir,;t t
22387 s,@baseport@,$baseport,;t t
22388 s,@dir_port@,$dir_port,;t t
22389 s,@fd_port@,$fd_port,;t t
22390 s,@sd_port@,$sd_port,;t t
22391 s,@dir_password@,$dir_password,;t t
22392 s,@fd_password@,$fd_password,;t t
22393 s,@sd_password@,$sd_password,;t t
22394 s,@mon_dir_password@,$mon_dir_password,;t t
22395 s,@mon_fd_password@,$mon_fd_password,;t t
22396 s,@mon_sd_password@,$mon_sd_password,;t t
22397 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22398 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22399 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22400 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22401 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22402 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22403 s,@dir_user@,$dir_user,;t t
22404 s,@dir_group@,$dir_group,;t t
22405 s,@sd_user@,$sd_user,;t t
22406 s,@sd_group@,$sd_group,;t t
22407 s,@fd_user@,$fd_user,;t t
22408 s,@fd_group@,$fd_group,;t t
22409 s,@SBINPERM@,$SBINPERM,;t t
22410 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22411 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22412 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22413 s,@cats@,$cats,;t t
22414 s,@DB_NAME@,$DB_NAME,;t t
22415 s,@GETCONF@,$GETCONF,;t t
22416 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22417 s,@X_CFLAGS@,$X_CFLAGS,;t t
22418 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22419 s,@X_LIBS@,$X_LIBS,;t t
22420 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22421 s,@LIBOBJS@,$LIBOBJS,;t t
22422 s,@ALLOCA@,$ALLOCA,;t t
22423 s,@FDLIBS@,$FDLIBS,;t t
22424 s,@DEBUG@,$DEBUG,;t t
22425 s,@DINCLUDE@,$DINCLUDE,;t t
22426 s,@DLIB@,$DLIB,;t t
22427 s,@DB_LIBS@,$DB_LIBS,;t t
22428 s,@WCFLAGS@,$WCFLAGS,;t t
22429 s,@WLDFLAGS@,$WLDFLAGS,;t t
22430 s,@OBJLIST@,$OBJLIST,;t t
22431 s,@hostname@,$hostname,;t t
22432 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22433 s,@PSCMD@,$PSCMD,;t t
22434 s,@WIN32@,$WIN32,;t t
22435 s,@MACOSX@,$MACOSX,;t t
22436 s,@DISTNAME@,$DISTNAME,;t t
22437 s,@DISTVER@,$DISTVER,;t t
22438 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22439 /@MCOMMON@/r $MCOMMON
22440 s,@MCOMMON@,,;t t
22441 CEOF
22442
22443 _ACEOF
22444
22445   cat >>$CONFIG_STATUS <<\_ACEOF
22446   # Split the substitutions into bite-sized pieces for seds with
22447   # small command number limits, like on Digital OSF/1 and HP-UX.
22448   ac_max_sed_lines=48
22449   ac_sed_frag=1 # Number of current file.
22450   ac_beg=1 # First line for current file.
22451   ac_end=$ac_max_sed_lines # Line after last line for current file.
22452   ac_more_lines=:
22453   ac_sed_cmds=
22454   while $ac_more_lines; do
22455     if test $ac_beg -gt 1; then
22456       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22457     else
22458       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22459     fi
22460     if test ! -s $tmp/subs.frag; then
22461       ac_more_lines=false
22462     else
22463       # The purpose of the label and of the branching condition is to
22464       # speed up the sed processing (if there are no `@' at all, there
22465       # is no need to browse any of the substitutions).
22466       # These are the two extra sed commands mentioned above.
22467       (echo ':t
22468   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22469       if test -z "$ac_sed_cmds"; then
22470         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22471       else
22472         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22473       fi
22474       ac_sed_frag=`expr $ac_sed_frag + 1`
22475       ac_beg=$ac_end
22476       ac_end=`expr $ac_end + $ac_max_sed_lines`
22477     fi
22478   done
22479   if test -z "$ac_sed_cmds"; then
22480     ac_sed_cmds=cat
22481   fi
22482 fi # test -n "$CONFIG_FILES"
22483
22484 _ACEOF
22485 cat >>$CONFIG_STATUS <<\_ACEOF
22486 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22487   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22488   case $ac_file in
22489   - | *:- | *:-:* ) # input from stdin
22490         cat >$tmp/stdin
22491         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22492         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22493   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22494         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22495   * )   ac_file_in=$ac_file.in ;;
22496   esac
22497
22498   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22499   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22501          X"$ac_file" : 'X\(//\)[^/]' \| \
22502          X"$ac_file" : 'X\(//\)$' \| \
22503          X"$ac_file" : 'X\(/\)' \| \
22504          .     : '\(.\)' 2>/dev/null ||
22505 echo X"$ac_file" |
22506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22507           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22508           /^X\(\/\/\)$/{ s//\1/; q; }
22509           /^X\(\/\).*/{ s//\1/; q; }
22510           s/.*/./; q'`
22511   { if $as_mkdir_p; then
22512     mkdir -p "$ac_dir"
22513   else
22514     as_dir="$ac_dir"
22515     as_dirs=
22516     while test ! -d "$as_dir"; do
22517       as_dirs="$as_dir $as_dirs"
22518       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22520          X"$as_dir" : 'X\(//\)[^/]' \| \
22521          X"$as_dir" : 'X\(//\)$' \| \
22522          X"$as_dir" : 'X\(/\)' \| \
22523          .     : '\(.\)' 2>/dev/null ||
22524 echo X"$as_dir" |
22525     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22526           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22527           /^X\(\/\/\)$/{ s//\1/; q; }
22528           /^X\(\/\).*/{ s//\1/; q; }
22529           s/.*/./; q'`
22530     done
22531     test ! -n "$as_dirs" || mkdir $as_dirs
22532   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22533 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22534    { (exit 1); exit 1; }; }; }
22535
22536   ac_builddir=.
22537
22538 if test "$ac_dir" != .; then
22539   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22540   # A "../" for each directory in $ac_dir_suffix.
22541   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22542 else
22543   ac_dir_suffix= ac_top_builddir=
22544 fi
22545
22546 case $srcdir in
22547   .)  # No --srcdir option.  We are building in place.
22548     ac_srcdir=.
22549     if test -z "$ac_top_builddir"; then
22550        ac_top_srcdir=.
22551     else
22552        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22553     fi ;;
22554   [\\/]* | ?:[\\/]* )  # Absolute path.
22555     ac_srcdir=$srcdir$ac_dir_suffix;
22556     ac_top_srcdir=$srcdir ;;
22557   *) # Relative path.
22558     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22559     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22560 esac
22561
22562 # Do not use `cd foo && pwd` to compute absolute paths, because
22563 # the directories may not exist.
22564 case `pwd` in
22565 .) ac_abs_builddir="$ac_dir";;
22566 *)
22567   case "$ac_dir" in
22568   .) ac_abs_builddir=`pwd`;;
22569   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22570   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22571   esac;;
22572 esac
22573 case $ac_abs_builddir in
22574 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22575 *)
22576   case ${ac_top_builddir}. in
22577   .) ac_abs_top_builddir=$ac_abs_builddir;;
22578   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22579   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22580   esac;;
22581 esac
22582 case $ac_abs_builddir in
22583 .) ac_abs_srcdir=$ac_srcdir;;
22584 *)
22585   case $ac_srcdir in
22586   .) ac_abs_srcdir=$ac_abs_builddir;;
22587   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22588   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22589   esac;;
22590 esac
22591 case $ac_abs_builddir in
22592 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22593 *)
22594   case $ac_top_srcdir in
22595   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22596   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22597   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22598   esac;;
22599 esac
22600
22601
22602   case $INSTALL in
22603   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22604   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22605   esac
22606
22607   if test x"$ac_file" != x-; then
22608     { echo "$as_me:$LINENO: creating $ac_file" >&5
22609 echo "$as_me: creating $ac_file" >&6;}
22610     rm -f "$ac_file"
22611   fi
22612   # Let's still pretend it is `configure' which instantiates (i.e., don't
22613   # use $as_me), people would be surprised to read:
22614   #    /* config.h.  Generated by config.status.  */
22615   if test x"$ac_file" = x-; then
22616     configure_input=
22617   else
22618     configure_input="$ac_file.  "
22619   fi
22620   configure_input=$configure_input"Generated from `echo $ac_file_in |
22621                                      sed 's,.*/,,'` by configure."
22622
22623   # First look for the input files in the build tree, otherwise in the
22624   # src tree.
22625   ac_file_inputs=`IFS=:
22626     for f in $ac_file_in; do
22627       case $f in
22628       -) echo $tmp/stdin ;;
22629       [\\/$]*)
22630          # Absolute (can't be DOS-style, as IFS=:)
22631          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22632 echo "$as_me: error: cannot find input file: $f" >&2;}
22633    { (exit 1); exit 1; }; }
22634          echo "$f";;
22635       *) # Relative
22636          if test -f "$f"; then
22637            # Build tree
22638            echo "$f"
22639          elif test -f "$srcdir/$f"; then
22640            # Source tree
22641            echo "$srcdir/$f"
22642          else
22643            # /dev/null tree
22644            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22645 echo "$as_me: error: cannot find input file: $f" >&2;}
22646    { (exit 1); exit 1; }; }
22647          fi;;
22648       esac
22649     done` || { (exit 1); exit 1; }
22650 _ACEOF
22651 cat >>$CONFIG_STATUS <<_ACEOF
22652   sed "$ac_vpsub
22653 $extrasub
22654 _ACEOF
22655 cat >>$CONFIG_STATUS <<\_ACEOF
22656 :t
22657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22658 s,@configure_input@,$configure_input,;t t
22659 s,@srcdir@,$ac_srcdir,;t t
22660 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22661 s,@top_srcdir@,$ac_top_srcdir,;t t
22662 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22663 s,@builddir@,$ac_builddir,;t t
22664 s,@abs_builddir@,$ac_abs_builddir,;t t
22665 s,@top_builddir@,$ac_top_builddir,;t t
22666 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22667 s,@INSTALL@,$ac_INSTALL,;t t
22668 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22669   rm -f $tmp/stdin
22670   if test x"$ac_file" != x-; then
22671     mv $tmp/out $ac_file
22672   else
22673     cat $tmp/out
22674     rm -f $tmp/out
22675   fi
22676
22677 done
22678 _ACEOF
22679 cat >>$CONFIG_STATUS <<\_ACEOF
22680
22681 #
22682 # CONFIG_HEADER section.
22683 #
22684
22685 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22686 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22687 #
22688 # ac_d sets the value in "#define NAME VALUE" lines.
22689 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22690 ac_dB='[         ].*$,\1#\2'
22691 ac_dC=' '
22692 ac_dD=',;t'
22693 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22694 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22695 ac_uB='$,\1#\2define\3'
22696 ac_uC=' '
22697 ac_uD=',;t'
22698
22699 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22700   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22701   case $ac_file in
22702   - | *:- | *:-:* ) # input from stdin
22703         cat >$tmp/stdin
22704         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22705         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22706   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22707         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22708   * )   ac_file_in=$ac_file.in ;;
22709   esac
22710
22711   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22712 echo "$as_me: creating $ac_file" >&6;}
22713
22714   # First look for the input files in the build tree, otherwise in the
22715   # src tree.
22716   ac_file_inputs=`IFS=:
22717     for f in $ac_file_in; do
22718       case $f in
22719       -) echo $tmp/stdin ;;
22720       [\\/$]*)
22721          # Absolute (can't be DOS-style, as IFS=:)
22722          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22723 echo "$as_me: error: cannot find input file: $f" >&2;}
22724    { (exit 1); exit 1; }; }
22725          # Do quote $f, to prevent DOS paths from being IFS'd.
22726          echo "$f";;
22727       *) # Relative
22728          if test -f "$f"; then
22729            # Build tree
22730            echo "$f"
22731          elif test -f "$srcdir/$f"; then
22732            # Source tree
22733            echo "$srcdir/$f"
22734          else
22735            # /dev/null tree
22736            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22737 echo "$as_me: error: cannot find input file: $f" >&2;}
22738    { (exit 1); exit 1; }; }
22739          fi;;
22740       esac
22741     done` || { (exit 1); exit 1; }
22742   # Remove the trailing spaces.
22743   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22744
22745 _ACEOF
22746
22747 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22748 # `conftest.undefs', that substitutes the proper values into
22749 # config.h.in to produce config.h.  The first handles `#define'
22750 # templates, and the second `#undef' templates.
22751 # And first: Protect against being on the right side of a sed subst in
22752 # config.status.  Protect against being in an unquoted here document
22753 # in config.status.
22754 rm -f conftest.defines conftest.undefs
22755 # Using a here document instead of a string reduces the quoting nightmare.
22756 # Putting comments in sed scripts is not portable.
22757 #
22758 # `end' is used to avoid that the second main sed command (meant for
22759 # 0-ary CPP macros) applies to n-ary macro definitions.
22760 # See the Autoconf documentation for `clear'.
22761 cat >confdef2sed.sed <<\_ACEOF
22762 s/[\\&,]/\\&/g
22763 s,[\\$`],\\&,g
22764 t clear
22765 : clear
22766 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22767 t end
22768 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22769 : end
22770 _ACEOF
22771 # If some macros were called several times there might be several times
22772 # the same #defines, which is useless.  Nevertheless, we may not want to
22773 # sort them, since we want the *last* AC-DEFINE to be honored.
22774 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22775 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22776 rm -f confdef2sed.sed
22777
22778 # This sed command replaces #undef with comments.  This is necessary, for
22779 # example, in the case of _POSIX_SOURCE, which is predefined and required
22780 # on some systems where configure will not decide to define it.
22781 cat >>conftest.undefs <<\_ACEOF
22782 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22783 _ACEOF
22784
22785 # Break up conftest.defines because some shells have a limit on the size
22786 # of here documents, and old seds have small limits too (100 cmds).
22787 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22788 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22789 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22790 echo '  :' >>$CONFIG_STATUS
22791 rm -f conftest.tail
22792 while grep . conftest.defines >/dev/null
22793 do
22794   # Write a limited-size here document to $tmp/defines.sed.
22795   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22796   # Speed up: don't consider the non `#define' lines.
22797   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22798   # Work around the forget-to-reset-the-flag bug.
22799   echo 't clr' >>$CONFIG_STATUS
22800   echo ': clr' >>$CONFIG_STATUS
22801   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22802   echo 'CEOF
22803   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22804   rm -f $tmp/in
22805   mv $tmp/out $tmp/in
22806 ' >>$CONFIG_STATUS
22807   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22808   rm -f conftest.defines
22809   mv conftest.tail conftest.defines
22810 done
22811 rm -f conftest.defines
22812 echo '  fi # grep' >>$CONFIG_STATUS
22813 echo >>$CONFIG_STATUS
22814
22815 # Break up conftest.undefs because some shells have a limit on the size
22816 # of here documents, and old seds have small limits too (100 cmds).
22817 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22818 rm -f conftest.tail
22819 while grep . conftest.undefs >/dev/null
22820 do
22821   # Write a limited-size here document to $tmp/undefs.sed.
22822   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22823   # Speed up: don't consider the non `#undef'
22824   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22825   # Work around the forget-to-reset-the-flag bug.
22826   echo 't clr' >>$CONFIG_STATUS
22827   echo ': clr' >>$CONFIG_STATUS
22828   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22829   echo 'CEOF
22830   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22831   rm -f $tmp/in
22832   mv $tmp/out $tmp/in
22833 ' >>$CONFIG_STATUS
22834   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22835   rm -f conftest.undefs
22836   mv conftest.tail conftest.undefs
22837 done
22838 rm -f conftest.undefs
22839
22840 cat >>$CONFIG_STATUS <<\_ACEOF
22841   # Let's still pretend it is `configure' which instantiates (i.e., don't
22842   # use $as_me), people would be surprised to read:
22843   #    /* config.h.  Generated by config.status.  */
22844   if test x"$ac_file" = x-; then
22845     echo "/* Generated by configure.  */" >$tmp/config.h
22846   else
22847     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22848   fi
22849   cat $tmp/in >>$tmp/config.h
22850   rm -f $tmp/in
22851   if test x"$ac_file" != x-; then
22852     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22853       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22854 echo "$as_me: $ac_file is unchanged" >&6;}
22855     else
22856       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22858          X"$ac_file" : 'X\(//\)[^/]' \| \
22859          X"$ac_file" : 'X\(//\)$' \| \
22860          X"$ac_file" : 'X\(/\)' \| \
22861          .     : '\(.\)' 2>/dev/null ||
22862 echo X"$ac_file" |
22863     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22864           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22865           /^X\(\/\/\)$/{ s//\1/; q; }
22866           /^X\(\/\).*/{ s//\1/; q; }
22867           s/.*/./; q'`
22868       { if $as_mkdir_p; then
22869     mkdir -p "$ac_dir"
22870   else
22871     as_dir="$ac_dir"
22872     as_dirs=
22873     while test ! -d "$as_dir"; do
22874       as_dirs="$as_dir $as_dirs"
22875       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22877          X"$as_dir" : 'X\(//\)[^/]' \| \
22878          X"$as_dir" : 'X\(//\)$' \| \
22879          X"$as_dir" : 'X\(/\)' \| \
22880          .     : '\(.\)' 2>/dev/null ||
22881 echo X"$as_dir" |
22882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22883           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22884           /^X\(\/\/\)$/{ s//\1/; q; }
22885           /^X\(\/\).*/{ s//\1/; q; }
22886           s/.*/./; q'`
22887     done
22888     test ! -n "$as_dirs" || mkdir $as_dirs
22889   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22890 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22891    { (exit 1); exit 1; }; }; }
22892
22893       rm -f $ac_file
22894       mv $tmp/config.h $ac_file
22895     fi
22896   else
22897     cat $tmp/config.h
22898     rm -f $tmp/config.h
22899   fi
22900 done
22901 _ACEOF
22902 cat >>$CONFIG_STATUS <<\_ACEOF
22903
22904 #
22905 # CONFIG_COMMANDS section.
22906 #
22907 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22908   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22909   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22910   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22911 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22912          X"$ac_dest" : 'X\(//\)[^/]' \| \
22913          X"$ac_dest" : 'X\(//\)$' \| \
22914          X"$ac_dest" : 'X\(/\)' \| \
22915          .     : '\(.\)' 2>/dev/null ||
22916 echo X"$ac_dest" |
22917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22918           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22919           /^X\(\/\/\)$/{ s//\1/; q; }
22920           /^X\(\/\).*/{ s//\1/; q; }
22921           s/.*/./; q'`
22922   { if $as_mkdir_p; then
22923     mkdir -p "$ac_dir"
22924   else
22925     as_dir="$ac_dir"
22926     as_dirs=
22927     while test ! -d "$as_dir"; do
22928       as_dirs="$as_dir $as_dirs"
22929       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22931          X"$as_dir" : 'X\(//\)[^/]' \| \
22932          X"$as_dir" : 'X\(//\)$' \| \
22933          X"$as_dir" : 'X\(/\)' \| \
22934          .     : '\(.\)' 2>/dev/null ||
22935 echo X"$as_dir" |
22936     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22937           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22938           /^X\(\/\/\)$/{ s//\1/; q; }
22939           /^X\(\/\).*/{ s//\1/; q; }
22940           s/.*/./; q'`
22941     done
22942     test ! -n "$as_dirs" || mkdir $as_dirs
22943   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22945    { (exit 1); exit 1; }; }; }
22946
22947   ac_builddir=.
22948
22949 if test "$ac_dir" != .; then
22950   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22951   # A "../" for each directory in $ac_dir_suffix.
22952   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22953 else
22954   ac_dir_suffix= ac_top_builddir=
22955 fi
22956
22957 case $srcdir in
22958   .)  # No --srcdir option.  We are building in place.
22959     ac_srcdir=.
22960     if test -z "$ac_top_builddir"; then
22961        ac_top_srcdir=.
22962     else
22963        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22964     fi ;;
22965   [\\/]* | ?:[\\/]* )  # Absolute path.
22966     ac_srcdir=$srcdir$ac_dir_suffix;
22967     ac_top_srcdir=$srcdir ;;
22968   *) # Relative path.
22969     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22970     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22971 esac
22972
22973 # Do not use `cd foo && pwd` to compute absolute paths, because
22974 # the directories may not exist.
22975 case `pwd` in
22976 .) ac_abs_builddir="$ac_dir";;
22977 *)
22978   case "$ac_dir" in
22979   .) ac_abs_builddir=`pwd`;;
22980   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22981   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22982   esac;;
22983 esac
22984 case $ac_abs_builddir in
22985 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22986 *)
22987   case ${ac_top_builddir}. in
22988   .) ac_abs_top_builddir=$ac_abs_builddir;;
22989   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22990   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22991   esac;;
22992 esac
22993 case $ac_abs_builddir in
22994 .) ac_abs_srcdir=$ac_srcdir;;
22995 *)
22996   case $ac_srcdir in
22997   .) ac_abs_srcdir=$ac_abs_builddir;;
22998   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22999   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23000   esac;;
23001 esac
23002 case $ac_abs_builddir in
23003 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23004 *)
23005   case $ac_top_srcdir in
23006   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23007   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23008   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23009   esac;;
23010 esac
23011
23012
23013   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23014 echo "$as_me: executing $ac_dest commands" >&6;}
23015   case $ac_dest in
23016     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
23017  ;;
23018   esac
23019 done
23020 _ACEOF
23021
23022 cat >>$CONFIG_STATUS <<\_ACEOF
23023
23024 { (exit 0); exit 0; }
23025 _ACEOF
23026 chmod +x $CONFIG_STATUS
23027 ac_clean_files=$ac_clean_files_save
23028
23029
23030 # configure is writing to config.log, and then calls config.status.
23031 # config.status does its own redirection, appending to config.log.
23032 # Unfortunately, on DOS this fails, as config.log is still kept open
23033 # by configure, so config.status won't be able to write to it; its
23034 # output is simply discarded.  So we exec the FD to /dev/null,
23035 # effectively closing config.log, so it can be properly (re)opened and
23036 # appended to by config.status.  When coming back to configure, we
23037 # need to make the FD available again.
23038 if test "$no_create" != yes; then
23039   ac_cs_success=:
23040   ac_config_status_args=
23041   test "$silent" = yes &&
23042     ac_config_status_args="$ac_config_status_args --quiet"
23043   exec 5>/dev/null
23044   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23045   exec 5>>config.log
23046   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23047   # would make configure fail if this is the last instruction.
23048   $ac_cs_success || { (exit 1); exit 1; }
23049 fi
23050
23051
23052 cd scripts
23053 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23054 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23055 cd ..
23056
23057 c=src/cats
23058
23059 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
23060 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
23061
23062 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
23063 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
23064
23065 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
23066 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
23067
23068 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
23069 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
23070
23071 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
23072 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
23073
23074 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23075 chmod 755 $c/sqlite
23076 chmod 755 $c/mysql
23077
23078 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23079    largefile_support="yes"
23080 fi
23081
23082 #
23083 # A whole lot of hand springs to get the compiler version.
23084 #  This is because gcc changed the output in version 3.0
23085 #
23086 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23087 if test "x${CCVERSION}" = "x" ; then
23088   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23089 fi
23090 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23091 if test x"${CXXVERSION}" = x ; then
23092   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23093 fi
23094
23095 if test "x${subsysdir}" = "x${sbindir}" ; then
23096    echo " "
23097    echo " "
23098    echo "You have set --sbindir and --with-subsys-dir"
23099    echo "  both equal to: ${subsysdir} "
23100    echo "  This is not permitted. Please reconfigure."
23101    echo " "
23102    echo "Aborting configuration ..."
23103    echo " "
23104    echo " "
23105    exit 1
23106 fi
23107
23108 if test "x${db_name}" = "xInternal" ; then
23109    echo " "
23110    echo " "
23111    echo "You have not specified either --enable-client-only or one of the"
23112    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23113    echo "  This is not permitted. Please reconfigure."
23114    echo " "
23115    echo "Aborting the configuration ..."
23116    echo " "
23117    echo " "
23118    exit 1
23119 fi
23120
23121 echo "
23122 Configuration on `date`:
23123
23124   Host:                       $host -- ${DISTNAME} ${DISTVER}
23125   Bacula version:             ${VERSION} (${DATE})
23126   Source code location:       ${srcdir}
23127   Install binaries:           ${sbindir}
23128   Install config files:       ${sysconfdir}
23129   Scripts directory:          ${scriptdir}
23130   Working directory:          ${working_dir}
23131   PID directory:              ${piddir}
23132   Subsys directory:           ${subsysdir}
23133   C Compiler:                 ${CC} ${CCVERSION}
23134   C++ Compiler:               ${CXX} ${CXXVERSION}
23135   Compiler flags:             ${WCFLAGS} ${CFLAGS}
23136   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
23137   Libraries:                  ${LIBS}
23138   Statically Linked Tools:    ${support_static_tools}
23139   Statically Linked FD:       ${support_static_fd}
23140   Statically Linked SD:       ${support_static_sd}
23141   Statically Linked DIR:      ${support_static_dir}
23142   Statically Linked CONS:     ${support_static_cons}
23143   Database type:              ${db_name}
23144   Database lib:               ${DB_LIBS}
23145
23146   Job Output Email:           ${job_email}
23147   Traceback Email:            ${dump_email}
23148   SMTP Host Address:          ${smtp_host}
23149
23150   Director Port:              ${dir_port}
23151   File daemon Port:           ${fd_port}
23152   Storage daemon Port:        ${sd_port}
23153
23154   Director User:              ${dir_user}
23155   Director Group:             ${dir_group}
23156   Storage Daemon User:        ${sd_user}
23157   Storage DaemonGroup:        ${sd_group}
23158   File Daemon User:           ${fd_user}
23159   File Daemon Group:          ${fd_group}
23160
23161   SQL binaries Directory      ${SQL_BINDIR}
23162
23163   Large file support:         $largefile_support
23164   Bacula conio support:       ${got_conio} ${CONS_LIBS}
23165   readline support:           ${got_readline} ${PRTREADLINE_SRC}
23166   TCP Wrappers support:       ${TCPW_MSG}
23167   TLS support:                ${support_tls}
23168   ZLIB support:               ${have_zlib}
23169   enable-smartalloc:          ${support_smartalloc}
23170   enable-gnome:               ${support_gnome} ${gnome_version}
23171   enable-wx-console:          ${support_wx_console}
23172   enable-tray-monitor:        ${support_tray_monitor}
23173   client-only:                ${build_client_only}
23174   ACL support:                ${have_acl}
23175   Python support:             ${support_python} ${PYTHON_LIBS}
23176
23177   " > config.out
23178
23179 cat config.out