]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
This commit was manufactured by cvs2svn to create tag
[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 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 CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password 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   --with-tcp-wrappers=DIR        enable tcpwrappers support
883   --with-working-dir=PATH        specify path of Bacula working directory
884   --with-scriptdir=PATH    specify path of Bacula scripts directory
885   --with-dump-email=EMAIL        dump email address
886   --with-job-email=EMAIL         job output email address
887   --with-smtp-host=HOST          SMTP mail host address
888   --with-pid-dir=PATH            specify location of Bacula pid files
889   --with-subsys-dir=PATH         specify location of Bacula subsys file
890   --with-baseport=PORT           specify base port address for daemons
891   --with-dir-password=PASSWORD   specify Director's password
892   --with-fd-password=PASSWORD    specify Client's password
893   --with-sd-password=PASSWORD    specify Storage daemon's password
894   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
895   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
896   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
897   --with-bimagemgr-cgidir=DIR   specify bimagemgr cgi-bin dir
898   --with-bimagemgr-docdir=DIR   specify bimagemgr doc root dir
899   --with-bimagemgr-binowner=USER   specify bimagemgr binary file owner
900   --with-bimagemgr-bingroup=USER   specify bimagemgr binary file group
901   --with-bimagemgr-dataowner=USER       specify bimagemgr data file owner
902   --with-bimagemgr-datagroup=USER       specify bimagemgr data file group
903   --with-dir-user=USER           specify user for Director daemon
904   --with-dir-group=GROUP                 specify group for Director daemon
905   --with-sd-user=USER            specify user for Storage daemon
906   --with-sd-group=GROUP          specify group for Storage daemon
907   --with-fd-user=USER            specify user for File daemon
908   --with-fd-group=GROUP          specify group for File daemon
909   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
910   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
911                           base install directory, defaults to /usr/local/pgsql
912
913   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
914                           install directory, default is to search through
915                           a number of common places for the MySQL files.
916
917   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
918                           install directory, default is to search through
919                           a number of common places for the MySQL files.
920
921   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
922                           install directory, default is to search through
923                           a number of common places for the SQLite files.
924   --with-x                use the X Window System
925
926 Some influential environment variables:
927   CC          C compiler command
928   CFLAGS      C compiler flags
929   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
930               nonstandard directory <lib dir>
931   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
932               headers in a nonstandard directory <include dir>
933   CXX         C++ compiler command
934   CXXFLAGS    C++ compiler flags
935   CPP         C preprocessor
936
937 Use these variables to override the choices made by `configure' or to help
938 it to find libraries and programs with nonstandard names/locations.
939
940 _ACEOF
941 fi
942
943 if test "$ac_init_help" = "recursive"; then
944   # If there are subdirs, report their specific --help.
945   ac_popdir=`pwd`
946   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
947     test -d $ac_dir || continue
948     ac_builddir=.
949
950 if test "$ac_dir" != .; then
951   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
952   # A "../" for each directory in $ac_dir_suffix.
953   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
954 else
955   ac_dir_suffix= ac_top_builddir=
956 fi
957
958 case $srcdir in
959   .)  # No --srcdir option.  We are building in place.
960     ac_srcdir=.
961     if test -z "$ac_top_builddir"; then
962        ac_top_srcdir=.
963     else
964        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
965     fi ;;
966   [\\/]* | ?:[\\/]* )  # Absolute path.
967     ac_srcdir=$srcdir$ac_dir_suffix;
968     ac_top_srcdir=$srcdir ;;
969   *) # Relative path.
970     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
971     ac_top_srcdir=$ac_top_builddir$srcdir ;;
972 esac
973
974 # Do not use `cd foo && pwd` to compute absolute paths, because
975 # the directories may not exist.
976 case `pwd` in
977 .) ac_abs_builddir="$ac_dir";;
978 *)
979   case "$ac_dir" in
980   .) ac_abs_builddir=`pwd`;;
981   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
982   *) ac_abs_builddir=`pwd`/"$ac_dir";;
983   esac;;
984 esac
985 case $ac_abs_builddir in
986 .) ac_abs_top_builddir=${ac_top_builddir}.;;
987 *)
988   case ${ac_top_builddir}. in
989   .) ac_abs_top_builddir=$ac_abs_builddir;;
990   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
991   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
992   esac;;
993 esac
994 case $ac_abs_builddir in
995 .) ac_abs_srcdir=$ac_srcdir;;
996 *)
997   case $ac_srcdir in
998   .) ac_abs_srcdir=$ac_abs_builddir;;
999   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1000   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1001   esac;;
1002 esac
1003 case $ac_abs_builddir in
1004 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1005 *)
1006   case $ac_top_srcdir in
1007   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1008   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1009   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1010   esac;;
1011 esac
1012
1013     cd $ac_dir
1014     # Check for guested configure; otherwise get Cygnus style configure.
1015     if test -f $ac_srcdir/configure.gnu; then
1016       echo
1017       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1018     elif test -f $ac_srcdir/configure; then
1019       echo
1020       $SHELL $ac_srcdir/configure  --help=recursive
1021     elif test -f $ac_srcdir/configure.ac ||
1022            test -f $ac_srcdir/configure.in; then
1023       echo
1024       $ac_configure --help
1025     else
1026       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1027     fi
1028     cd $ac_popdir
1029   done
1030 fi
1031
1032 test -n "$ac_init_help" && exit 0
1033 if $ac_init_version; then
1034   cat <<\_ACEOF
1035
1036 Copyright (C) 2003 Free Software Foundation, Inc.
1037 This configure script is free software; the Free Software Foundation
1038 gives unlimited permission to copy, distribute and modify it.
1039 _ACEOF
1040   exit 0
1041 fi
1042 exec 5>config.log
1043 cat >&5 <<_ACEOF
1044 This file contains any messages produced by compilers while
1045 running configure, to aid debugging if configure makes a mistake.
1046
1047 It was created by $as_me, which was
1048 generated by GNU Autoconf 2.59.  Invocation command line was
1049
1050   $ $0 $@
1051
1052 _ACEOF
1053 {
1054 cat <<_ASUNAME
1055 ## --------- ##
1056 ## Platform. ##
1057 ## --------- ##
1058
1059 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1060 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1061 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1062 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1063 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1064
1065 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1066 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1067
1068 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1069 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1070 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1071 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1072 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1073 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1074 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1075
1076 _ASUNAME
1077
1078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1079 for as_dir in $PATH
1080 do
1081   IFS=$as_save_IFS
1082   test -z "$as_dir" && as_dir=.
1083   echo "PATH: $as_dir"
1084 done
1085
1086 } >&5
1087
1088 cat >&5 <<_ACEOF
1089
1090
1091 ## ----------- ##
1092 ## Core tests. ##
1093 ## ----------- ##
1094
1095 _ACEOF
1096
1097
1098 # Keep a trace of the command line.
1099 # Strip out --no-create and --no-recursion so they do not pile up.
1100 # Strip out --silent because we don't want to record it for future runs.
1101 # Also quote any args containing shell meta-characters.
1102 # Make two passes to allow for proper duplicate-argument suppression.
1103 ac_configure_args=
1104 ac_configure_args0=
1105 ac_configure_args1=
1106 ac_sep=
1107 ac_must_keep_next=false
1108 for ac_pass in 1 2
1109 do
1110   for ac_arg
1111   do
1112     case $ac_arg in
1113     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1114     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115     | -silent | --silent | --silen | --sile | --sil)
1116       continue ;;
1117     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1118       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1119     esac
1120     case $ac_pass in
1121     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1122     2)
1123       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1124       if test $ac_must_keep_next = true; then
1125         ac_must_keep_next=false # Got value, back to normal.
1126       else
1127         case $ac_arg in
1128           *=* | --config-cache | -C | -disable-* | --disable-* \
1129           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1130           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1131           | -with-* | --with-* | -without-* | --without-* | --x)
1132             case "$ac_configure_args0 " in
1133               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1134             esac
1135             ;;
1136           -* ) ac_must_keep_next=true ;;
1137         esac
1138       fi
1139       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1140       # Get rid of the leading space.
1141       ac_sep=" "
1142       ;;
1143     esac
1144   done
1145 done
1146 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1147 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1148
1149 # When interrupted or exit'd, cleanup temporary files, and complete
1150 # config.log.  We remove comments because anyway the quotes in there
1151 # would cause problems or look ugly.
1152 # WARNING: Be sure not to use single quotes in there, as some shells,
1153 # such as our DU 5.0 friend, will then `close' the trap.
1154 trap 'exit_status=$?
1155   # Save into config.log some information that might help in debugging.
1156   {
1157     echo
1158
1159     cat <<\_ASBOX
1160 ## ---------------- ##
1161 ## Cache variables. ##
1162 ## ---------------- ##
1163 _ASBOX
1164     echo
1165     # The following way of writing the cache mishandles newlines in values,
1166 {
1167   (set) 2>&1 |
1168     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1169     *ac_space=\ *)
1170       sed -n \
1171         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1172           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1173       ;;
1174     *)
1175       sed -n \
1176         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1177       ;;
1178     esac;
1179 }
1180     echo
1181
1182     cat <<\_ASBOX
1183 ## ----------------- ##
1184 ## Output variables. ##
1185 ## ----------------- ##
1186 _ASBOX
1187     echo
1188     for ac_var in $ac_subst_vars
1189     do
1190       eval ac_val=$`echo $ac_var`
1191       echo "$ac_var='"'"'$ac_val'"'"'"
1192     done | sort
1193     echo
1194
1195     if test -n "$ac_subst_files"; then
1196       cat <<\_ASBOX
1197 ## ------------- ##
1198 ## Output files. ##
1199 ## ------------- ##
1200 _ASBOX
1201       echo
1202       for ac_var in $ac_subst_files
1203       do
1204         eval ac_val=$`echo $ac_var`
1205         echo "$ac_var='"'"'$ac_val'"'"'"
1206       done | sort
1207       echo
1208     fi
1209
1210     if test -s confdefs.h; then
1211       cat <<\_ASBOX
1212 ## ----------- ##
1213 ## confdefs.h. ##
1214 ## ----------- ##
1215 _ASBOX
1216       echo
1217       sed "/^$/d" confdefs.h | sort
1218       echo
1219     fi
1220     test "$ac_signal" != 0 &&
1221       echo "$as_me: caught signal $ac_signal"
1222     echo "$as_me: exit $exit_status"
1223   } >&5
1224   rm -f core *.core &&
1225   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1226     exit $exit_status
1227      ' 0
1228 for ac_signal in 1 2 13 15; do
1229   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1230 done
1231 ac_signal=0
1232
1233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1234 rm -rf conftest* confdefs.h
1235 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1236 echo >confdefs.h
1237
1238 # Predefined preprocessor variables.
1239
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_NAME "$PACKAGE_NAME"
1242 _ACEOF
1243
1244
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1247 _ACEOF
1248
1249
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1252 _ACEOF
1253
1254
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_STRING "$PACKAGE_STRING"
1257 _ACEOF
1258
1259
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1262 _ACEOF
1263
1264
1265 # Let the site file select an alternate cache file if it wants to.
1266 # Prefer explicitly selected file to automatically selected ones.
1267 if test -z "$CONFIG_SITE"; then
1268   if test "x$prefix" != xNONE; then
1269     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1270   else
1271     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1272   fi
1273 fi
1274 for ac_site_file in $CONFIG_SITE; do
1275   if test -r "$ac_site_file"; then
1276     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1277 echo "$as_me: loading site script $ac_site_file" >&6;}
1278     sed 's/^/| /' "$ac_site_file" >&5
1279     . "$ac_site_file"
1280   fi
1281 done
1282
1283 if test -r "$cache_file"; then
1284   # Some versions of bash will fail to source /dev/null (special
1285   # files actually), so we avoid doing that.
1286   if test -f "$cache_file"; then
1287     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1288 echo "$as_me: loading cache $cache_file" >&6;}
1289     case $cache_file in
1290       [\\/]* | ?:[\\/]* ) . $cache_file;;
1291       *)                      . ./$cache_file;;
1292     esac
1293   fi
1294 else
1295   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1296 echo "$as_me: creating cache $cache_file" >&6;}
1297   >$cache_file
1298 fi
1299
1300 # Check that the precious variables saved in the cache have kept the same
1301 # value.
1302 ac_cache_corrupted=false
1303 for ac_var in `(set) 2>&1 |
1304                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1305   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1306   eval ac_new_set=\$ac_env_${ac_var}_set
1307   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1308   eval ac_new_val="\$ac_env_${ac_var}_value"
1309   case $ac_old_set,$ac_new_set in
1310     set,)
1311       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1312 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1313       ac_cache_corrupted=: ;;
1314     ,set)
1315       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1317       ac_cache_corrupted=: ;;
1318     ,);;
1319     *)
1320       if test "x$ac_old_val" != "x$ac_new_val"; then
1321         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1322 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1323         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1324 echo "$as_me:   former value:  $ac_old_val" >&2;}
1325         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1326 echo "$as_me:   current value: $ac_new_val" >&2;}
1327         ac_cache_corrupted=:
1328       fi;;
1329   esac
1330   # Pass precious variables to config.status.
1331   if test "$ac_new_set" = set; then
1332     case $ac_new_val in
1333     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1334       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1335     *) ac_arg=$ac_var=$ac_new_val ;;
1336     esac
1337     case " $ac_configure_args " in
1338       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1339       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1340     esac
1341   fi
1342 done
1343 if $ac_cache_corrupted; then
1344   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1345 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1346   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1347 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1348    { (exit 1); exit 1; }; }
1349 fi
1350
1351 ac_ext=c
1352 ac_cpp='$CPP $CPPFLAGS'
1353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375 BUILD_DIR=`pwd`
1376 cd ..
1377 TOP_DIR=`pwd`
1378 cd ${BUILD_DIR}
1379
1380 ac_aux_dir=
1381 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1382   if test -f $ac_dir/install-sh; then
1383     ac_aux_dir=$ac_dir
1384     ac_install_sh="$ac_aux_dir/install-sh -c"
1385     break
1386   elif test -f $ac_dir/install.sh; then
1387     ac_aux_dir=$ac_dir
1388     ac_install_sh="$ac_aux_dir/install.sh -c"
1389     break
1390   elif test -f $ac_dir/shtool; then
1391     ac_aux_dir=$ac_dir
1392     ac_install_sh="$ac_aux_dir/shtool install -c"
1393     break
1394   fi
1395 done
1396 if test -z "$ac_aux_dir"; then
1397   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1398 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1399    { (exit 1); exit 1; }; }
1400 fi
1401 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1402 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1403 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1404
1405           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1406
1407
1408
1409
1410
1411 for ac_prog in true
1412 do
1413   # Extract the first word of "$ac_prog", so it can be a program name with args.
1414 set dummy $ac_prog; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1418   echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420   case $TRUEPRG in
1421   [\\/]* | ?:[\\/]*)
1422   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1423   ;;
1424   *)
1425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426 for as_dir in $PATH
1427 do
1428   IFS=$as_save_IFS
1429   test -z "$as_dir" && as_dir=.
1430   for ac_exec_ext in '' $ac_executable_extensions; do
1431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1432     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1434     break 2
1435   fi
1436 done
1437 done
1438
1439   ;;
1440 esac
1441 fi
1442 TRUEPRG=$ac_cv_path_TRUEPRG
1443
1444 if test -n "$TRUEPRG"; then
1445   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1446 echo "${ECHO_T}$TRUEPRG" >&6
1447 else
1448   echo "$as_me:$LINENO: result: no" >&5
1449 echo "${ECHO_T}no" >&6
1450 fi
1451
1452   test -n "$TRUEPRG" && break
1453 done
1454 test -n "$TRUEPRG" || TRUEPRG=":"
1455
1456 for ac_prog in false
1457 do
1458   # Extract the first word of "$ac_prog", so it can be a program name with args.
1459 set dummy $ac_prog; ac_word=$2
1460 echo "$as_me:$LINENO: checking for $ac_word" >&5
1461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1463   echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465   case $FALSEPRG in
1466   [\\/]* | ?:[\\/]*)
1467   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1468   ;;
1469   *)
1470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471 for as_dir in $PATH
1472 do
1473   IFS=$as_save_IFS
1474   test -z "$as_dir" && as_dir=.
1475   for ac_exec_ext in '' $ac_executable_extensions; do
1476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1477     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1479     break 2
1480   fi
1481 done
1482 done
1483
1484   ;;
1485 esac
1486 fi
1487 FALSEPRG=$ac_cv_path_FALSEPRG
1488
1489 if test -n "$FALSEPRG"; then
1490   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1491 echo "${ECHO_T}$FALSEPRG" >&6
1492 else
1493   echo "$as_me:$LINENO: result: no" >&5
1494 echo "${ECHO_T}no" >&6
1495 fi
1496
1497   test -n "$FALSEPRG" && break
1498 done
1499 test -n "$FALSEPRG" || FALSEPRG=":"
1500
1501
1502 #AC_CANONICAL_HOST
1503
1504 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1505 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1506 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1507 echo "configuring for bacula $VERSION ($DATE)"
1508
1509
1510
1511 ac_ext=c
1512 ac_cpp='$CPP $CPPFLAGS'
1513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516 if test -n "$ac_tool_prefix"; then
1517   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522   echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524   if test -n "$CC"; then
1525   ac_cv_prog_CC="$CC" # Let the user override the test.
1526 else
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 for as_dir in $PATH
1529 do
1530   IFS=$as_save_IFS
1531   test -z "$as_dir" && as_dir=.
1532   for ac_exec_ext in '' $ac_executable_extensions; do
1533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536     break 2
1537   fi
1538 done
1539 done
1540
1541 fi
1542 fi
1543 CC=$ac_cv_prog_CC
1544 if test -n "$CC"; then
1545   echo "$as_me:$LINENO: result: $CC" >&5
1546 echo "${ECHO_T}$CC" >&6
1547 else
1548   echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1550 fi
1551
1552 fi
1553 if test -z "$ac_cv_prog_CC"; then
1554   ac_ct_CC=$CC
1555   # Extract the first word of "gcc", so it can be a program name with args.
1556 set dummy gcc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560   echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562   if test -n "$ac_ct_CC"; then
1563   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1564 else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568   IFS=$as_save_IFS
1569   test -z "$as_dir" && as_dir=.
1570   for ac_exec_ext in '' $ac_executable_extensions; do
1571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572     ac_cv_prog_ac_ct_CC="gcc"
1573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574     break 2
1575   fi
1576 done
1577 done
1578
1579 fi
1580 fi
1581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1585 else
1586   echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1588 fi
1589
1590   CC=$ac_ct_CC
1591 else
1592   CC="$ac_cv_prog_CC"
1593 fi
1594
1595 if test -z "$CC"; then
1596   if test -n "$ac_tool_prefix"; then
1597   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1598 set dummy ${ac_tool_prefix}cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602   echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604   if test -n "$CC"; then
1605   ac_cv_prog_CC="$CC" # Let the user override the test.
1606 else
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1609 do
1610   IFS=$as_save_IFS
1611   test -z "$as_dir" && as_dir=.
1612   for ac_exec_ext in '' $ac_executable_extensions; do
1613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614     ac_cv_prog_CC="${ac_tool_prefix}cc"
1615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616     break 2
1617   fi
1618 done
1619 done
1620
1621 fi
1622 fi
1623 CC=$ac_cv_prog_CC
1624 if test -n "$CC"; then
1625   echo "$as_me:$LINENO: result: $CC" >&5
1626 echo "${ECHO_T}$CC" >&6
1627 else
1628   echo "$as_me:$LINENO: result: no" >&5
1629 echo "${ECHO_T}no" >&6
1630 fi
1631
1632 fi
1633 if test -z "$ac_cv_prog_CC"; then
1634   ac_ct_CC=$CC
1635   # Extract the first word of "cc", so it can be a program name with args.
1636 set dummy cc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   if test -n "$ac_ct_CC"; then
1643   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     ac_cv_prog_ac_ct_CC="cc"
1653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654     break 2
1655   fi
1656 done
1657 done
1658
1659 fi
1660 fi
1661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662 if test -n "$ac_ct_CC"; then
1663   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664 echo "${ECHO_T}$ac_ct_CC" >&6
1665 else
1666   echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 fi
1669
1670   CC=$ac_ct_CC
1671 else
1672   CC="$ac_cv_prog_CC"
1673 fi
1674
1675 fi
1676 if test -z "$CC"; then
1677   # Extract the first word of "cc", so it can be a program name with args.
1678 set dummy cc; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_CC+set}" = set; then
1682   echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684   if test -n "$CC"; then
1685   ac_cv_prog_CC="$CC" # Let the user override the test.
1686 else
1687   ac_prog_rejected=no
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1690 do
1691   IFS=$as_save_IFS
1692   test -z "$as_dir" && as_dir=.
1693   for ac_exec_ext in '' $ac_executable_extensions; do
1694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1696        ac_prog_rejected=yes
1697        continue
1698      fi
1699     ac_cv_prog_CC="cc"
1700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701     break 2
1702   fi
1703 done
1704 done
1705
1706 if test $ac_prog_rejected = yes; then
1707   # We found a bogon in the path, so make sure we never use it.
1708   set dummy $ac_cv_prog_CC
1709   shift
1710   if test $# != 0; then
1711     # We chose a different compiler from the bogus one.
1712     # However, it has the same basename, so the bogon will be chosen
1713     # first if we set CC to just the basename; use the full file name.
1714     shift
1715     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1716   fi
1717 fi
1718 fi
1719 fi
1720 CC=$ac_cv_prog_CC
1721 if test -n "$CC"; then
1722   echo "$as_me:$LINENO: result: $CC" >&5
1723 echo "${ECHO_T}$CC" >&6
1724 else
1725   echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729 fi
1730 if test -z "$CC"; then
1731   if test -n "$ac_tool_prefix"; then
1732   for ac_prog in cl
1733   do
1734     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_CC+set}" = set; then
1739   echo $ECHO_N "(cached) $ECHO_C" >&6
1740 else
1741   if test -n "$CC"; then
1742   ac_cv_prog_CC="$CC" # Let the user override the test.
1743 else
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745 for as_dir in $PATH
1746 do
1747   IFS=$as_save_IFS
1748   test -z "$as_dir" && as_dir=.
1749   for ac_exec_ext in '' $ac_executable_extensions; do
1750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753     break 2
1754   fi
1755 done
1756 done
1757
1758 fi
1759 fi
1760 CC=$ac_cv_prog_CC
1761 if test -n "$CC"; then
1762   echo "$as_me:$LINENO: result: $CC" >&5
1763 echo "${ECHO_T}$CC" >&6
1764 else
1765   echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1767 fi
1768
1769     test -n "$CC" && break
1770   done
1771 fi
1772 if test -z "$CC"; then
1773   ac_ct_CC=$CC
1774   for ac_prog in cl
1775 do
1776   # Extract the first word of "$ac_prog", so it can be a program name with args.
1777 set dummy $ac_prog; ac_word=$2
1778 echo "$as_me:$LINENO: checking for $ac_word" >&5
1779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1781   echo $ECHO_N "(cached) $ECHO_C" >&6
1782 else
1783   if test -n "$ac_ct_CC"; then
1784   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1785 else
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 for as_dir in $PATH
1788 do
1789   IFS=$as_save_IFS
1790   test -z "$as_dir" && as_dir=.
1791   for ac_exec_ext in '' $ac_executable_extensions; do
1792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793     ac_cv_prog_ac_ct_CC="$ac_prog"
1794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795     break 2
1796   fi
1797 done
1798 done
1799
1800 fi
1801 fi
1802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1803 if test -n "$ac_ct_CC"; then
1804   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1805 echo "${ECHO_T}$ac_ct_CC" >&6
1806 else
1807   echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1809 fi
1810
1811   test -n "$ac_ct_CC" && break
1812 done
1813
1814   CC=$ac_ct_CC
1815 fi
1816
1817 fi
1818
1819
1820 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1821 See \`config.log' for more details." >&5
1822 echo "$as_me: error: no acceptable C compiler found in \$PATH
1823 See \`config.log' for more details." >&2;}
1824    { (exit 1); exit 1; }; }
1825
1826 # Provide some information about the compiler.
1827 echo "$as_me:$LINENO:" \
1828      "checking for C compiler version" >&5
1829 ac_compiler=`set X $ac_compile; echo $2`
1830 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1831   (eval $ac_compiler --version </dev/null >&5) 2>&5
1832   ac_status=$?
1833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834   (exit $ac_status); }
1835 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1836   (eval $ac_compiler -v </dev/null >&5) 2>&5
1837   ac_status=$?
1838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839   (exit $ac_status); }
1840 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1841   (eval $ac_compiler -V </dev/null >&5) 2>&5
1842   ac_status=$?
1843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844   (exit $ac_status); }
1845
1846 cat >conftest.$ac_ext <<_ACEOF
1847 /* confdefs.h.  */
1848 _ACEOF
1849 cat confdefs.h >>conftest.$ac_ext
1850 cat >>conftest.$ac_ext <<_ACEOF
1851 /* end confdefs.h.  */
1852
1853 int
1854 main ()
1855 {
1856
1857   ;
1858   return 0;
1859 }
1860 _ACEOF
1861 ac_clean_files_save=$ac_clean_files
1862 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1863 # Try to create an executable without -o first, disregard a.out.
1864 # It will help us diagnose broken compilers, and finding out an intuition
1865 # of exeext.
1866 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1867 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1868 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1869 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1870   (eval $ac_link_default) 2>&5
1871   ac_status=$?
1872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873   (exit $ac_status); }; then
1874   # Find the output, starting from the most likely.  This scheme is
1875 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1876 # resort.
1877
1878 # Be careful to initialize this variable, since it used to be cached.
1879 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1880 ac_cv_exeext=
1881 # b.out is created by i960 compilers.
1882 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1883 do
1884   test -f "$ac_file" || continue
1885   case $ac_file in
1886     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1887         ;;
1888     conftest.$ac_ext )
1889         # This is the source file.
1890         ;;
1891     [ab].out )
1892         # We found the default executable, but exeext='' is most
1893         # certainly right.
1894         break;;
1895     *.* )
1896         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1897         # FIXME: I believe we export ac_cv_exeext for Libtool,
1898         # but it would be cool to find out if it's true.  Does anybody
1899         # maintain Libtool? --akim.
1900         export ac_cv_exeext
1901         break;;
1902     * )
1903         break;;
1904   esac
1905 done
1906 else
1907   echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1911 See \`config.log' for more details." >&5
1912 echo "$as_me: error: C compiler cannot create executables
1913 See \`config.log' for more details." >&2;}
1914    { (exit 77); exit 77; }; }
1915 fi
1916
1917 ac_exeext=$ac_cv_exeext
1918 echo "$as_me:$LINENO: result: $ac_file" >&5
1919 echo "${ECHO_T}$ac_file" >&6
1920
1921 # Check the compiler produces executables we can run.  If not, either
1922 # the compiler is broken, or we cross compile.
1923 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1924 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1925 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1926 # If not cross compiling, check that we can run a simple program.
1927 if test "$cross_compiling" != yes; then
1928   if { ac_try='./$ac_file'
1929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1930   (eval $ac_try) 2>&5
1931   ac_status=$?
1932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933   (exit $ac_status); }; }; then
1934     cross_compiling=no
1935   else
1936     if test "$cross_compiling" = maybe; then
1937         cross_compiling=yes
1938     else
1939         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1940 If you meant to cross compile, use \`--host'.
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: cannot run C compiled programs.
1943 If you meant to cross compile, use \`--host'.
1944 See \`config.log' for more details." >&2;}
1945    { (exit 1); exit 1; }; }
1946     fi
1947   fi
1948 fi
1949 echo "$as_me:$LINENO: result: yes" >&5
1950 echo "${ECHO_T}yes" >&6
1951
1952 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1953 ac_clean_files=$ac_clean_files_save
1954 # Check the compiler produces executables we can run.  If not, either
1955 # the compiler is broken, or we cross compile.
1956 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1957 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1958 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1959 echo "${ECHO_T}$cross_compiling" >&6
1960
1961 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1962 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1964   (eval $ac_link) 2>&5
1965   ac_status=$?
1966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967   (exit $ac_status); }; then
1968   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1969 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1970 # work properly (i.e., refer to `conftest.exe'), while it won't with
1971 # `rm'.
1972 for ac_file in conftest.exe conftest conftest.*; do
1973   test -f "$ac_file" || continue
1974   case $ac_file in
1975     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1976     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1977           export ac_cv_exeext
1978           break;;
1979     * ) break;;
1980   esac
1981 done
1982 else
1983   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1984 See \`config.log' for more details." >&5
1985 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1986 See \`config.log' for more details." >&2;}
1987    { (exit 1); exit 1; }; }
1988 fi
1989
1990 rm -f conftest$ac_cv_exeext
1991 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1992 echo "${ECHO_T}$ac_cv_exeext" >&6
1993
1994 rm -f conftest.$ac_ext
1995 EXEEXT=$ac_cv_exeext
1996 ac_exeext=$EXEEXT
1997 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1998 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1999 if test "${ac_cv_objext+set}" = set; then
2000   echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002   cat >conftest.$ac_ext <<_ACEOF
2003 /* confdefs.h.  */
2004 _ACEOF
2005 cat confdefs.h >>conftest.$ac_ext
2006 cat >>conftest.$ac_ext <<_ACEOF
2007 /* end confdefs.h.  */
2008
2009 int
2010 main ()
2011 {
2012
2013   ;
2014   return 0;
2015 }
2016 _ACEOF
2017 rm -f conftest.o conftest.obj
2018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019   (eval $ac_compile) 2>&5
2020   ac_status=$?
2021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022   (exit $ac_status); }; then
2023   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2024   case $ac_file in
2025     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2026     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2027        break;;
2028   esac
2029 done
2030 else
2031   echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2033
2034 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2035 See \`config.log' for more details." >&5
2036 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2037 See \`config.log' for more details." >&2;}
2038    { (exit 1); exit 1; }; }
2039 fi
2040
2041 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2042 fi
2043 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2044 echo "${ECHO_T}$ac_cv_objext" >&6
2045 OBJEXT=$ac_cv_objext
2046 ac_objext=$OBJEXT
2047 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2048 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2049 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   cat >conftest.$ac_ext <<_ACEOF
2053 /* confdefs.h.  */
2054 _ACEOF
2055 cat confdefs.h >>conftest.$ac_ext
2056 cat >>conftest.$ac_ext <<_ACEOF
2057 /* end confdefs.h.  */
2058
2059 int
2060 main ()
2061 {
2062 #ifndef __GNUC__
2063        choke me
2064 #endif
2065
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 rm -f conftest.$ac_objext
2071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2072   (eval $ac_compile) 2>conftest.er1
2073   ac_status=$?
2074   grep -v '^ *+' conftest.er1 >conftest.err
2075   rm -f conftest.er1
2076   cat conftest.err >&5
2077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078   (exit $ac_status); } &&
2079          { ac_try='test -z "$ac_c_werror_flag"
2080                          || test ! -s conftest.err'
2081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082   (eval $ac_try) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }; } &&
2086          { ac_try='test -s conftest.$ac_objext'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; }; then
2092   ac_compiler_gnu=yes
2093 else
2094   echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 ac_compiler_gnu=no
2098 fi
2099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2100 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2101
2102 fi
2103 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2104 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2105 GCC=`test $ac_compiler_gnu = yes && echo yes`
2106 ac_test_CFLAGS=${CFLAGS+set}
2107 ac_save_CFLAGS=$CFLAGS
2108 CFLAGS="-g"
2109 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2110 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2111 if test "${ac_cv_prog_cc_g+set}" = set; then
2112   echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114   cat >conftest.$ac_ext <<_ACEOF
2115 /* confdefs.h.  */
2116 _ACEOF
2117 cat confdefs.h >>conftest.$ac_ext
2118 cat >>conftest.$ac_ext <<_ACEOF
2119 /* end confdefs.h.  */
2120
2121 int
2122 main ()
2123 {
2124
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 rm -f conftest.$ac_objext
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131   (eval $ac_compile) 2>conftest.er1
2132   ac_status=$?
2133   grep -v '^ *+' conftest.er1 >conftest.err
2134   rm -f conftest.er1
2135   cat conftest.err >&5
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); } &&
2138          { ac_try='test -z "$ac_c_werror_flag"
2139                          || test ! -s conftest.err'
2140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141   (eval $ac_try) 2>&5
2142   ac_status=$?
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); }; } &&
2145          { ac_try='test -s conftest.$ac_objext'
2146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147   (eval $ac_try) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }; }; then
2151   ac_cv_prog_cc_g=yes
2152 else
2153   echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.$ac_ext >&5
2155
2156 ac_cv_prog_cc_g=no
2157 fi
2158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2159 fi
2160 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2161 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2162 if test "$ac_test_CFLAGS" = set; then
2163   CFLAGS=$ac_save_CFLAGS
2164 elif test $ac_cv_prog_cc_g = yes; then
2165   if test "$GCC" = yes; then
2166     CFLAGS="-g -O2"
2167   else
2168     CFLAGS="-g"
2169   fi
2170 else
2171   if test "$GCC" = yes; then
2172     CFLAGS="-O2"
2173   else
2174     CFLAGS=
2175   fi
2176 fi
2177 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2178 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2179 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182   ac_cv_prog_cc_stdc=no
2183 ac_save_CC=$CC
2184 cat >conftest.$ac_ext <<_ACEOF
2185 /* confdefs.h.  */
2186 _ACEOF
2187 cat confdefs.h >>conftest.$ac_ext
2188 cat >>conftest.$ac_ext <<_ACEOF
2189 /* end confdefs.h.  */
2190 #include <stdarg.h>
2191 #include <stdio.h>
2192 #include <sys/types.h>
2193 #include <sys/stat.h>
2194 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2195 struct buf { int x; };
2196 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2197 static char *e (p, i)
2198      char **p;
2199      int i;
2200 {
2201   return p[i];
2202 }
2203 static char *f (char * (*g) (char **, int), char **p, ...)
2204 {
2205   char *s;
2206   va_list v;
2207   va_start (v,p);
2208   s = g (p, va_arg (v,int));
2209   va_end (v);
2210   return s;
2211 }
2212
2213 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2214    function prototypes and stuff, but not '\xHH' hex character constants.
2215    These don't provoke an error unfortunately, instead are silently treated
2216    as 'x'.  The following induces an error, until -std1 is added to get
2217    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2218    array size at least.  It's necessary to write '\x00'==0 to get something
2219    that's true only with -std1.  */
2220 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2221
2222 int test (int i, double x);
2223 struct s1 {int (*f) (int a);};
2224 struct s2 {int (*f) (double a);};
2225 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2226 int argc;
2227 char **argv;
2228 int
2229 main ()
2230 {
2231 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2232   ;
2233   return 0;
2234 }
2235 _ACEOF
2236 # Don't try gcc -ansi; that turns off useful extensions and
2237 # breaks some systems' header files.
2238 # AIX                   -qlanglvl=ansi
2239 # Ultrix and OSF/1      -std1
2240 # HP-UX 10.20 and later -Ae
2241 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2242 # SVR4                  -Xc -D__EXTENSIONS__
2243 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2244 do
2245   CC="$ac_save_CC $ac_arg"
2246   rm -f conftest.$ac_objext
2247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2248   (eval $ac_compile) 2>conftest.er1
2249   ac_status=$?
2250   grep -v '^ *+' conftest.er1 >conftest.err
2251   rm -f conftest.er1
2252   cat conftest.err >&5
2253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254   (exit $ac_status); } &&
2255          { ac_try='test -z "$ac_c_werror_flag"
2256                          || test ! -s conftest.err'
2257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258   (eval $ac_try) 2>&5
2259   ac_status=$?
2260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); }; } &&
2262          { ac_try='test -s conftest.$ac_objext'
2263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264   (eval $ac_try) 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); }; }; then
2268   ac_cv_prog_cc_stdc=$ac_arg
2269 break
2270 else
2271   echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2273
2274 fi
2275 rm -f conftest.err conftest.$ac_objext
2276 done
2277 rm -f conftest.$ac_ext conftest.$ac_objext
2278 CC=$ac_save_CC
2279
2280 fi
2281
2282 case "x$ac_cv_prog_cc_stdc" in
2283   x|xno)
2284     echo "$as_me:$LINENO: result: none needed" >&5
2285 echo "${ECHO_T}none needed" >&6 ;;
2286   *)
2287     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2288 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2289     CC="$CC $ac_cv_prog_cc_stdc" ;;
2290 esac
2291
2292 # Some people use a C++ compiler to compile C.  Since we use `exit',
2293 # in C++ we need to declare it.  In case someone uses the same compiler
2294 # for both compiling C and C++ we need to have the C++ compiler decide
2295 # the declaration of exit, since it's the most demanding environment.
2296 cat >conftest.$ac_ext <<_ACEOF
2297 #ifndef __cplusplus
2298   choke me
2299 #endif
2300 _ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303   (eval $ac_compile) 2>conftest.er1
2304   ac_status=$?
2305   grep -v '^ *+' conftest.er1 >conftest.err
2306   rm -f conftest.er1
2307   cat conftest.err >&5
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); } &&
2310          { ac_try='test -z "$ac_c_werror_flag"
2311                          || test ! -s conftest.err'
2312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313   (eval $ac_try) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; } &&
2317          { ac_try='test -s conftest.$ac_objext'
2318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319   (eval $ac_try) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; }; then
2323   for ac_declaration in \
2324    '' \
2325    'extern "C" void std::exit (int) throw (); using std::exit;' \
2326    'extern "C" void std::exit (int); using std::exit;' \
2327    'extern "C" void exit (int) throw ();' \
2328    'extern "C" void exit (int);' \
2329    'void exit (int);'
2330 do
2331   cat >conftest.$ac_ext <<_ACEOF
2332 /* confdefs.h.  */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h.  */
2337 $ac_declaration
2338 #include <stdlib.h>
2339 int
2340 main ()
2341 {
2342 exit (42);
2343   ;
2344   return 0;
2345 }
2346 _ACEOF
2347 rm -f conftest.$ac_objext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349   (eval $ac_compile) 2>conftest.er1
2350   ac_status=$?
2351   grep -v '^ *+' conftest.er1 >conftest.err
2352   rm -f conftest.er1
2353   cat conftest.err >&5
2354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355   (exit $ac_status); } &&
2356          { ac_try='test -z "$ac_c_werror_flag"
2357                          || test ! -s conftest.err'
2358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359   (eval $ac_try) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; } &&
2363          { ac_try='test -s conftest.$ac_objext'
2364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365   (eval $ac_try) 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); }; }; then
2369   :
2370 else
2371   echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2373
2374 continue
2375 fi
2376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2377   cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h.  */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h.  */
2383 $ac_declaration
2384 int
2385 main ()
2386 {
2387 exit (42);
2388   ;
2389   return 0;
2390 }
2391 _ACEOF
2392 rm -f conftest.$ac_objext
2393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2394   (eval $ac_compile) 2>conftest.er1
2395   ac_status=$?
2396   grep -v '^ *+' conftest.er1 >conftest.err
2397   rm -f conftest.er1
2398   cat conftest.err >&5
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); } &&
2401          { ac_try='test -z "$ac_c_werror_flag"
2402                          || test ! -s conftest.err'
2403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404   (eval $ac_try) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; } &&
2408          { ac_try='test -s conftest.$ac_objext'
2409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410   (eval $ac_try) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; }; then
2414   break
2415 else
2416   echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2418
2419 fi
2420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2421 done
2422 rm -f conftest*
2423 if test -n "$ac_declaration"; then
2424   echo '#ifdef __cplusplus' >>confdefs.h
2425   echo $ac_declaration      >>confdefs.h
2426   echo '#endif'             >>confdefs.h
2427 fi
2428
2429 else
2430   echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2432
2433 fi
2434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2435 ac_ext=c
2436 ac_cpp='$CPP $CPPFLAGS'
2437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2440
2441 ac_ext=cc
2442 ac_cpp='$CXXCPP $CPPFLAGS'
2443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2446 if test -n "$ac_tool_prefix"; then
2447   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2448   do
2449     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2451 echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2453 if test "${ac_cv_prog_CXX+set}" = set; then
2454   echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456   if test -n "$CXX"; then
2457   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462   IFS=$as_save_IFS
2463   test -z "$as_dir" && as_dir=.
2464   for ac_exec_ext in '' $ac_executable_extensions; do
2465   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2466     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468     break 2
2469   fi
2470 done
2471 done
2472
2473 fi
2474 fi
2475 CXX=$ac_cv_prog_CXX
2476 if test -n "$CXX"; then
2477   echo "$as_me:$LINENO: result: $CXX" >&5
2478 echo "${ECHO_T}$CXX" >&6
2479 else
2480   echo "$as_me:$LINENO: result: no" >&5
2481 echo "${ECHO_T}no" >&6
2482 fi
2483
2484     test -n "$CXX" && break
2485   done
2486 fi
2487 if test -z "$CXX"; then
2488   ac_ct_CXX=$CXX
2489   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2490 do
2491   # Extract the first word of "$ac_prog", so it can be a program name with args.
2492 set dummy $ac_prog; ac_word=$2
2493 echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2495 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   if test -n "$ac_ct_CXX"; then
2499   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2500 else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504   IFS=$as_save_IFS
2505   test -z "$as_dir" && as_dir=.
2506   for ac_exec_ext in '' $ac_executable_extensions; do
2507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508     ac_cv_prog_ac_ct_CXX="$ac_prog"
2509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510     break 2
2511   fi
2512 done
2513 done
2514
2515 fi
2516 fi
2517 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2518 if test -n "$ac_ct_CXX"; then
2519   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2520 echo "${ECHO_T}$ac_ct_CXX" >&6
2521 else
2522   echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6
2524 fi
2525
2526   test -n "$ac_ct_CXX" && break
2527 done
2528 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2529
2530   CXX=$ac_ct_CXX
2531 fi
2532
2533
2534 # Provide some information about the compiler.
2535 echo "$as_me:$LINENO:" \
2536      "checking for C++ compiler version" >&5
2537 ac_compiler=`set X $ac_compile; echo $2`
2538 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2539   (eval $ac_compiler --version </dev/null >&5) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }
2543 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2544   (eval $ac_compiler -v </dev/null >&5) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }
2548 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2549   (eval $ac_compiler -V </dev/null >&5) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }
2553
2554 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2555 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2556 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569 #ifndef __GNUC__
2570        choke me
2571 #endif
2572
2573   ;
2574   return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579   (eval $ac_compile) 2>conftest.er1
2580   ac_status=$?
2581   grep -v '^ *+' conftest.er1 >conftest.err
2582   rm -f conftest.er1
2583   cat conftest.err >&5
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); } &&
2586          { ac_try='test -z "$ac_cxx_werror_flag"
2587                          || test ! -s conftest.err'
2588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589   (eval $ac_try) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); }; } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   ac_compiler_gnu=yes
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 ac_compiler_gnu=no
2605 fi
2606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2607 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2608
2609 fi
2610 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2611 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2612 GXX=`test $ac_compiler_gnu = yes && echo yes`
2613 ac_test_CXXFLAGS=${CXXFLAGS+set}
2614 ac_save_CXXFLAGS=$CXXFLAGS
2615 CXXFLAGS="-g"
2616 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2617 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2618 if test "${ac_cv_prog_cxx_g+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   cat >conftest.$ac_ext <<_ACEOF
2622 /* confdefs.h.  */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h.  */
2627
2628 int
2629 main ()
2630 {
2631
2632   ;
2633   return 0;
2634 }
2635 _ACEOF
2636 rm -f conftest.$ac_objext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638   (eval $ac_compile) 2>conftest.er1
2639   ac_status=$?
2640   grep -v '^ *+' conftest.er1 >conftest.err
2641   rm -f conftest.er1
2642   cat conftest.err >&5
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); } &&
2645          { ac_try='test -z "$ac_cxx_werror_flag"
2646                          || test ! -s conftest.err'
2647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648   (eval $ac_try) 2>&5
2649   ac_status=$?
2650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651   (exit $ac_status); }; } &&
2652          { ac_try='test -s conftest.$ac_objext'
2653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654   (eval $ac_try) 2>&5
2655   ac_status=$?
2656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657   (exit $ac_status); }; }; then
2658   ac_cv_prog_cxx_g=yes
2659 else
2660   echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2662
2663 ac_cv_prog_cxx_g=no
2664 fi
2665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666 fi
2667 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2668 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2669 if test "$ac_test_CXXFLAGS" = set; then
2670   CXXFLAGS=$ac_save_CXXFLAGS
2671 elif test $ac_cv_prog_cxx_g = yes; then
2672   if test "$GXX" = yes; then
2673     CXXFLAGS="-g -O2"
2674   else
2675     CXXFLAGS="-g"
2676   fi
2677 else
2678   if test "$GXX" = yes; then
2679     CXXFLAGS="-O2"
2680   else
2681     CXXFLAGS=
2682   fi
2683 fi
2684 for ac_declaration in \
2685    '' \
2686    'extern "C" void std::exit (int) throw (); using std::exit;' \
2687    'extern "C" void std::exit (int); using std::exit;' \
2688    'extern "C" void exit (int) throw ();' \
2689    'extern "C" void exit (int);' \
2690    'void exit (int);'
2691 do
2692   cat >conftest.$ac_ext <<_ACEOF
2693 /* confdefs.h.  */
2694 _ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h.  */
2698 $ac_declaration
2699 #include <stdlib.h>
2700 int
2701 main ()
2702 {
2703 exit (42);
2704   ;
2705   return 0;
2706 }
2707 _ACEOF
2708 rm -f conftest.$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710   (eval $ac_compile) 2>conftest.er1
2711   ac_status=$?
2712   grep -v '^ *+' conftest.er1 >conftest.err
2713   rm -f conftest.er1
2714   cat conftest.err >&5
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); } &&
2717          { ac_try='test -z "$ac_cxx_werror_flag"
2718                          || test ! -s conftest.err'
2719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720   (eval $ac_try) 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); }; } &&
2724          { ac_try='test -s conftest.$ac_objext'
2725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726   (eval $ac_try) 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; }; then
2730   :
2731 else
2732   echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735 continue
2736 fi
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738   cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h.  */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h.  */
2744 $ac_declaration
2745 int
2746 main ()
2747 {
2748 exit (42);
2749   ;
2750   return 0;
2751 }
2752 _ACEOF
2753 rm -f conftest.$ac_objext
2754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755   (eval $ac_compile) 2>conftest.er1
2756   ac_status=$?
2757   grep -v '^ *+' conftest.er1 >conftest.err
2758   rm -f conftest.er1
2759   cat conftest.err >&5
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); } &&
2762          { ac_try='test -z "$ac_cxx_werror_flag"
2763                          || test ! -s conftest.err'
2764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765   (eval $ac_try) 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); }; } &&
2769          { ac_try='test -s conftest.$ac_objext'
2770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771   (eval $ac_try) 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }; }; then
2775   break
2776 else
2777   echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2779
2780 fi
2781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2782 done
2783 rm -f conftest*
2784 if test -n "$ac_declaration"; then
2785   echo '#ifdef __cplusplus' >>confdefs.h
2786   echo $ac_declaration      >>confdefs.h
2787   echo '#endif'             >>confdefs.h
2788 fi
2789
2790 ac_ext=c
2791 ac_cpp='$CPP $CPPFLAGS'
2792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795
2796 if test "x$CC" != xcc; then
2797   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2798 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2799 else
2800   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2801 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2802 fi
2803 set dummy $CC; ac_cc=`echo $2 |
2804                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2805 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2806   echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808   cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h.  */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h.  */
2814
2815 int
2816 main ()
2817 {
2818
2819   ;
2820   return 0;
2821 }
2822 _ACEOF
2823 # Make sure it works both with $CC and with simple cc.
2824 # We do the test twice because some compilers refuse to overwrite an
2825 # existing .o file with -o, though they will create one.
2826 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2827 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828   (eval $ac_try) 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); } &&
2832    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833   (eval $ac_try) 2>&5
2834   ac_status=$?
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); };
2837 then
2838   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2839   if test "x$CC" != xcc; then
2840     # Test first that cc exists at all.
2841     if { ac_try='cc -c conftest.$ac_ext >&5'
2842   { (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); }; }; then
2847       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2848       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849   (eval $ac_try) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); } &&
2853          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); };
2858       then
2859         # cc works too.
2860         :
2861       else
2862         # cc exists but doesn't like -o.
2863         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2864       fi
2865     fi
2866   fi
2867 else
2868   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2869 fi
2870 rm -f conftest*
2871
2872 fi
2873 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2874   echo "$as_me:$LINENO: result: yes" >&5
2875 echo "${ECHO_T}yes" >&6
2876 else
2877   echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2879
2880 cat >>confdefs.h <<\_ACEOF
2881 #define NO_MINUS_C_MINUS_O 1
2882 _ACEOF
2883
2884 fi
2885
2886 ac_ext=c
2887 ac_cpp='$CPP $CPPFLAGS'
2888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2892 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2893 # On Suns, sometimes $CPP names a directory.
2894 if test -n "$CPP" && test -d "$CPP"; then
2895   CPP=
2896 fi
2897 if test -z "$CPP"; then
2898   if test "${ac_cv_prog_CPP+set}" = set; then
2899   echo $ECHO_N "(cached) $ECHO_C" >&6
2900 else
2901       # Double quotes because CPP needs to be expanded
2902     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2903     do
2904       ac_preproc_ok=false
2905 for ac_c_preproc_warn_flag in '' yes
2906 do
2907   # Use a header file that comes with gcc, so configuring glibc
2908   # with a fresh cross-compiler works.
2909   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2910   # <limits.h> exists even on freestanding compilers.
2911   # On the NeXT, cc -E runs the code through the compiler's parser,
2912   # not just through cpp. "Syntax error" is here to catch this case.
2913   cat >conftest.$ac_ext <<_ACEOF
2914 /* confdefs.h.  */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h.  */
2919 #ifdef __STDC__
2920 # include <limits.h>
2921 #else
2922 # include <assert.h>
2923 #endif
2924                      Syntax error
2925 _ACEOF
2926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2927   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2928   ac_status=$?
2929   grep -v '^ *+' conftest.er1 >conftest.err
2930   rm -f conftest.er1
2931   cat conftest.err >&5
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); } >/dev/null; then
2934   if test -s conftest.err; then
2935     ac_cpp_err=$ac_c_preproc_warn_flag
2936     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2937   else
2938     ac_cpp_err=
2939   fi
2940 else
2941   ac_cpp_err=yes
2942 fi
2943 if test -z "$ac_cpp_err"; then
2944   :
2945 else
2946   echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949   # Broken: fails on valid input.
2950 continue
2951 fi
2952 rm -f conftest.err conftest.$ac_ext
2953
2954   # OK, works on sane cases.  Now check whether non-existent headers
2955   # can be detected and how.
2956   cat >conftest.$ac_ext <<_ACEOF
2957 /* confdefs.h.  */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h.  */
2962 #include <ac_nonexistent.h>
2963 _ACEOF
2964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2965   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2966   ac_status=$?
2967   grep -v '^ *+' conftest.er1 >conftest.err
2968   rm -f conftest.er1
2969   cat conftest.err >&5
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); } >/dev/null; then
2972   if test -s conftest.err; then
2973     ac_cpp_err=$ac_c_preproc_warn_flag
2974     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2975   else
2976     ac_cpp_err=
2977   fi
2978 else
2979   ac_cpp_err=yes
2980 fi
2981 if test -z "$ac_cpp_err"; then
2982   # Broken: success on invalid input.
2983 continue
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988   # Passes both tests.
2989 ac_preproc_ok=:
2990 break
2991 fi
2992 rm -f conftest.err conftest.$ac_ext
2993
2994 done
2995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2996 rm -f conftest.err conftest.$ac_ext
2997 if $ac_preproc_ok; then
2998   break
2999 fi
3000
3001     done
3002     ac_cv_prog_CPP=$CPP
3003
3004 fi
3005   CPP=$ac_cv_prog_CPP
3006 else
3007   ac_cv_prog_CPP=$CPP
3008 fi
3009 echo "$as_me:$LINENO: result: $CPP" >&5
3010 echo "${ECHO_T}$CPP" >&6
3011 ac_preproc_ok=false
3012 for ac_c_preproc_warn_flag in '' yes
3013 do
3014   # Use a header file that comes with gcc, so configuring glibc
3015   # with a fresh cross-compiler works.
3016   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3017   # <limits.h> exists even on freestanding compilers.
3018   # On the NeXT, cc -E runs the code through the compiler's parser,
3019   # not just through cpp. "Syntax error" is here to catch this case.
3020   cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026 #ifdef __STDC__
3027 # include <limits.h>
3028 #else
3029 # include <assert.h>
3030 #endif
3031                      Syntax error
3032 _ACEOF
3033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3035   ac_status=$?
3036   grep -v '^ *+' conftest.er1 >conftest.err
3037   rm -f conftest.er1
3038   cat conftest.err >&5
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); } >/dev/null; then
3041   if test -s conftest.err; then
3042     ac_cpp_err=$ac_c_preproc_warn_flag
3043     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3044   else
3045     ac_cpp_err=
3046   fi
3047 else
3048   ac_cpp_err=yes
3049 fi
3050 if test -z "$ac_cpp_err"; then
3051   :
3052 else
3053   echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056   # Broken: fails on valid input.
3057 continue
3058 fi
3059 rm -f conftest.err conftest.$ac_ext
3060
3061   # OK, works on sane cases.  Now check whether non-existent headers
3062   # can be detected and how.
3063   cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h.  */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h.  */
3069 #include <ac_nonexistent.h>
3070 _ACEOF
3071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3073   ac_status=$?
3074   grep -v '^ *+' conftest.er1 >conftest.err
3075   rm -f conftest.er1
3076   cat conftest.err >&5
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); } >/dev/null; then
3079   if test -s conftest.err; then
3080     ac_cpp_err=$ac_c_preproc_warn_flag
3081     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3082   else
3083     ac_cpp_err=
3084   fi
3085 else
3086   ac_cpp_err=yes
3087 fi
3088 if test -z "$ac_cpp_err"; then
3089   # Broken: success on invalid input.
3090 continue
3091 else
3092   echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095   # Passes both tests.
3096 ac_preproc_ok=:
3097 break
3098 fi
3099 rm -f conftest.err conftest.$ac_ext
3100
3101 done
3102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3103 rm -f conftest.err conftest.$ac_ext
3104 if $ac_preproc_ok; then
3105   :
3106 else
3107   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3108 See \`config.log' for more details." >&5
3109 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3110 See \`config.log' for more details." >&2;}
3111    { (exit 1); exit 1; }; }
3112 fi
3113
3114 ac_ext=c
3115 ac_cpp='$CPP $CPPFLAGS'
3116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3119
3120
3121 echo "$as_me:$LINENO: checking for egrep" >&5
3122 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3123 if test "${ac_cv_prog_egrep+set}" = set; then
3124   echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3127     then ac_cv_prog_egrep='grep -E'
3128     else ac_cv_prog_egrep='egrep'
3129     fi
3130 fi
3131 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3132 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3133  EGREP=$ac_cv_prog_egrep
3134
3135
3136 if test $ac_cv_c_compiler_gnu = yes; then
3137     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3138 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3139 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142     ac_pattern="Autoconf.*'x'"
3143   cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h.  */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h.  */
3149 #include <sgtty.h>
3150 Autoconf TIOCGETP
3151 _ACEOF
3152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3153   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3154   ac_cv_prog_gcc_traditional=yes
3155 else
3156   ac_cv_prog_gcc_traditional=no
3157 fi
3158 rm -f conftest*
3159
3160
3161   if test $ac_cv_prog_gcc_traditional = no; then
3162     cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168 #include <termio.h>
3169 Autoconf TCGETA
3170 _ACEOF
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3173   ac_cv_prog_gcc_traditional=yes
3174 fi
3175 rm -f conftest*
3176
3177   fi
3178 fi
3179 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3180 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3181   if test $ac_cv_prog_gcc_traditional = yes; then
3182     CC="$CC -traditional"
3183   fi
3184 fi
3185
3186 if test "x$CC" = xgcc
3187 then
3188    cat >>confdefs.h <<\_ACEOF
3189 #define HAVE_GCC 1
3190 _ACEOF
3191
3192 fi
3193
3194 # Find a good install program.  We prefer a C program (faster),
3195 # so one script is as good as another.  But avoid the broken or
3196 # incompatible versions:
3197 # SysV /etc/install, /usr/sbin/install
3198 # SunOS /usr/etc/install
3199 # IRIX /sbin/install
3200 # AIX /bin/install
3201 # AmigaOS /C/install, which installs bootblocks on floppy discs
3202 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3203 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3204 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3205 # OS/2's system install, which has a completely different semantic
3206 # ./install, which can be erroneously created by make from ./install.sh.
3207 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3208 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3209 if test -z "$INSTALL"; then
3210 if test "${ac_cv_path_install+set}" = set; then
3211   echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216   IFS=$as_save_IFS
3217   test -z "$as_dir" && as_dir=.
3218   # Account for people who put trailing slashes in PATH elements.
3219 case $as_dir/ in
3220   ./ | .// | /cC/* | \
3221   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3222   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3223   /usr/ucb/* ) ;;
3224   *)
3225     # OSF1 and SCO ODT 3.0 have their own names for install.
3226     # Don't use installbsd from OSF since it installs stuff as root
3227     # by default.
3228     for ac_prog in ginstall scoinst install; do
3229       for ac_exec_ext in '' $ac_executable_extensions; do
3230         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3231           if test $ac_prog = install &&
3232             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3233             # AIX install.  It has an incompatible calling convention.
3234             :
3235           elif test $ac_prog = install &&
3236             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3237             # program-specific install script used by HP pwplus--don't use.
3238             :
3239           else
3240             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3241             break 3
3242           fi
3243         fi
3244       done
3245     done
3246     ;;
3247 esac
3248 done
3249
3250
3251 fi
3252   if test "${ac_cv_path_install+set}" = set; then
3253     INSTALL=$ac_cv_path_install
3254   else
3255     # As a last resort, use the slow shell script.  We don't cache a
3256     # path for INSTALL within a source directory, because that will
3257     # break other packages using the cache if that directory is
3258     # removed, or if the path is relative.
3259     INSTALL=$ac_install_sh
3260   fi
3261 fi
3262 echo "$as_me:$LINENO: result: $INSTALL" >&5
3263 echo "${ECHO_T}$INSTALL" >&6
3264
3265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3266 # It thinks the first close brace ends the variable substitution.
3267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3268
3269 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3270
3271 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3272
3273 if test -n "$ac_tool_prefix"; then
3274   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3276 echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3278 if test "${ac_cv_prog_RANLIB+set}" = set; then
3279   echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281   if test -n "$RANLIB"; then
3282   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287   IFS=$as_save_IFS
3288   test -z "$as_dir" && as_dir=.
3289   for ac_exec_ext in '' $ac_executable_extensions; do
3290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293     break 2
3294   fi
3295 done
3296 done
3297
3298 fi
3299 fi
3300 RANLIB=$ac_cv_prog_RANLIB
3301 if test -n "$RANLIB"; then
3302   echo "$as_me:$LINENO: result: $RANLIB" >&5
3303 echo "${ECHO_T}$RANLIB" >&6
3304 else
3305   echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3307 fi
3308
3309 fi
3310 if test -z "$ac_cv_prog_RANLIB"; then
3311   ac_ct_RANLIB=$RANLIB
3312   # Extract the first word of "ranlib", so it can be a program name with args.
3313 set dummy ranlib; ac_word=$2
3314 echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3317   echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319   if test -n "$ac_ct_RANLIB"; then
3320   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3324 do
3325   IFS=$as_save_IFS
3326   test -z "$as_dir" && as_dir=.
3327   for ac_exec_ext in '' $ac_executable_extensions; do
3328   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329     ac_cv_prog_ac_ct_RANLIB="ranlib"
3330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331     break 2
3332   fi
3333 done
3334 done
3335
3336   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3337 fi
3338 fi
3339 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3340 if test -n "$ac_ct_RANLIB"; then
3341   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3342 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3343 else
3344   echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3346 fi
3347
3348   RANLIB=$ac_ct_RANLIB
3349 else
3350   RANLIB="$ac_cv_prog_RANLIB"
3351 fi
3352
3353 # Extract the first word of "mv", so it can be a program name with args.
3354 set dummy mv; ac_word=$2
3355 echo "$as_me:$LINENO: checking for $ac_word" >&5
3356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3357 if test "${ac_cv_path_MV+set}" = set; then
3358   echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360   case $MV in
3361   [\\/]* | ?:[\\/]*)
3362   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3363   ;;
3364   *)
3365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3367 do
3368   IFS=$as_save_IFS
3369   test -z "$as_dir" && as_dir=.
3370   for ac_exec_ext in '' $ac_executable_extensions; do
3371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374     break 2
3375   fi
3376 done
3377 done
3378
3379   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3380   ;;
3381 esac
3382 fi
3383 MV=$ac_cv_path_MV
3384
3385 if test -n "$MV"; then
3386   echo "$as_me:$LINENO: result: $MV" >&5
3387 echo "${ECHO_T}$MV" >&6
3388 else
3389   echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6
3391 fi
3392
3393 # Extract the first word of "rm", so it can be a program name with args.
3394 set dummy rm; ac_word=$2
3395 echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397 if test "${ac_cv_path_RM+set}" = set; then
3398   echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400   case $RM in
3401   [\\/]* | ?:[\\/]*)
3402   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3403   ;;
3404   *)
3405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408   IFS=$as_save_IFS
3409   test -z "$as_dir" && as_dir=.
3410   for ac_exec_ext in '' $ac_executable_extensions; do
3411   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414     break 2
3415   fi
3416 done
3417 done
3418
3419   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3420   ;;
3421 esac
3422 fi
3423 RM=$ac_cv_path_RM
3424
3425 if test -n "$RM"; then
3426   echo "$as_me:$LINENO: result: $RM" >&5
3427 echo "${ECHO_T}$RM" >&6
3428 else
3429   echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6
3431 fi
3432
3433 # Extract the first word of "cp", so it can be a program name with args.
3434 set dummy cp; ac_word=$2
3435 echo "$as_me:$LINENO: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3437 if test "${ac_cv_path_CP+set}" = set; then
3438   echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440   case $CP in
3441   [\\/]* | ?:[\\/]*)
3442   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3443   ;;
3444   *)
3445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448   IFS=$as_save_IFS
3449   test -z "$as_dir" && as_dir=.
3450   for ac_exec_ext in '' $ac_executable_extensions; do
3451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454     break 2
3455   fi
3456 done
3457 done
3458
3459   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3460   ;;
3461 esac
3462 fi
3463 CP=$ac_cv_path_CP
3464
3465 if test -n "$CP"; then
3466   echo "$as_me:$LINENO: result: $CP" >&5
3467 echo "${ECHO_T}$CP" >&6
3468 else
3469   echo "$as_me:$LINENO: result: no" >&5
3470 echo "${ECHO_T}no" >&6
3471 fi
3472
3473 # Extract the first word of "sed", so it can be a program name with args.
3474 set dummy sed; ac_word=$2
3475 echo "$as_me:$LINENO: checking for $ac_word" >&5
3476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477 if test "${ac_cv_path_SED+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   case $SED in
3481   [\\/]* | ?:[\\/]*)
3482   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3483   ;;
3484   *)
3485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 for as_dir in $PATH
3487 do
3488   IFS=$as_save_IFS
3489   test -z "$as_dir" && as_dir=.
3490   for ac_exec_ext in '' $ac_executable_extensions; do
3491   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3492     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494     break 2
3495   fi
3496 done
3497 done
3498
3499   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3500   ;;
3501 esac
3502 fi
3503 SED=$ac_cv_path_SED
3504
3505 if test -n "$SED"; then
3506   echo "$as_me:$LINENO: result: $SED" >&5
3507 echo "${ECHO_T}$SED" >&6
3508 else
3509   echo "$as_me:$LINENO: result: no" >&5
3510 echo "${ECHO_T}no" >&6
3511 fi
3512
3513 # Extract the first word of "echo", so it can be a program name with args.
3514 set dummy echo; ac_word=$2
3515 echo "$as_me:$LINENO: checking for $ac_word" >&5
3516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3517 if test "${ac_cv_path_ECHO+set}" = set; then
3518   echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520   case $ECHO in
3521   [\\/]* | ?:[\\/]*)
3522   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3523   ;;
3524   *)
3525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528   IFS=$as_save_IFS
3529   test -z "$as_dir" && as_dir=.
3530   for ac_exec_ext in '' $ac_executable_extensions; do
3531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534     break 2
3535   fi
3536 done
3537 done
3538
3539   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3540   ;;
3541 esac
3542 fi
3543 ECHO=$ac_cv_path_ECHO
3544
3545 if test -n "$ECHO"; then
3546   echo "$as_me:$LINENO: result: $ECHO" >&5
3547 echo "${ECHO_T}$ECHO" >&6
3548 else
3549   echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6
3551 fi
3552
3553 # Extract the first word of "cmp", so it can be a program name with args.
3554 set dummy cmp; ac_word=$2
3555 echo "$as_me:$LINENO: checking for $ac_word" >&5
3556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557 if test "${ac_cv_path_CMP+set}" = set; then
3558   echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560   case $CMP in
3561   [\\/]* | ?:[\\/]*)
3562   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3563   ;;
3564   *)
3565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3567 do
3568   IFS=$as_save_IFS
3569   test -z "$as_dir" && as_dir=.
3570   for ac_exec_ext in '' $ac_executable_extensions; do
3571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3574     break 2
3575   fi
3576 done
3577 done
3578
3579   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3580   ;;
3581 esac
3582 fi
3583 CMP=$ac_cv_path_CMP
3584
3585 if test -n "$CMP"; then
3586   echo "$as_me:$LINENO: result: $CMP" >&5
3587 echo "${ECHO_T}$CMP" >&6
3588 else
3589   echo "$as_me:$LINENO: result: no" >&5
3590 echo "${ECHO_T}no" >&6
3591 fi
3592
3593 # Extract the first word of "tbl", so it can be a program name with args.
3594 set dummy tbl; ac_word=$2
3595 echo "$as_me:$LINENO: checking for $ac_word" >&5
3596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3597 if test "${ac_cv_path_TBL+set}" = set; then
3598   echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600   case $TBL in
3601   [\\/]* | ?:[\\/]*)
3602   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3603   ;;
3604   *)
3605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH
3607 do
3608   IFS=$as_save_IFS
3609   test -z "$as_dir" && as_dir=.
3610   for ac_exec_ext in '' $ac_executable_extensions; do
3611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3612     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3614     break 2
3615   fi
3616 done
3617 done
3618
3619   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3620   ;;
3621 esac
3622 fi
3623 TBL=$ac_cv_path_TBL
3624
3625 if test -n "$TBL"; then
3626   echo "$as_me:$LINENO: result: $TBL" >&5
3627 echo "${ECHO_T}$TBL" >&6
3628 else
3629   echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6
3631 fi
3632
3633 # Extract the first word of "ar", so it can be a program name with args.
3634 set dummy ar; ac_word=$2
3635 echo "$as_me:$LINENO: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637 if test "${ac_cv_path_AR+set}" = set; then
3638   echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640   case $AR in
3641   [\\/]* | ?:[\\/]*)
3642   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3643   ;;
3644   *)
3645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
3648   IFS=$as_save_IFS
3649   test -z "$as_dir" && as_dir=.
3650   for ac_exec_ext in '' $ac_executable_extensions; do
3651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654     break 2
3655   fi
3656 done
3657 done
3658
3659   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3660   ;;
3661 esac
3662 fi
3663 AR=$ac_cv_path_AR
3664
3665 if test -n "$AR"; then
3666   echo "$as_me:$LINENO: result: $AR" >&5
3667 echo "${ECHO_T}$AR" >&6
3668 else
3669   echo "$as_me:$LINENO: result: no" >&5
3670 echo "${ECHO_T}no" >&6
3671 fi
3672
3673 # Extract the first word of "openssl", so it can be a program name with args.
3674 set dummy openssl; ac_word=$2
3675 echo "$as_me:$LINENO: checking for $ac_word" >&5
3676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3677 if test "${ac_cv_path_OPENSSL+set}" = set; then
3678   echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680   case $OPENSSL in
3681   [\\/]* | ?:[\\/]*)
3682   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3683   ;;
3684   *)
3685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688   IFS=$as_save_IFS
3689   test -z "$as_dir" && as_dir=.
3690   for ac_exec_ext in '' $ac_executable_extensions; do
3691   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3692     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3694     break 2
3695   fi
3696 done
3697 done
3698
3699   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3700   ;;
3701 esac
3702 fi
3703 OPENSSL=$ac_cv_path_OPENSSL
3704
3705 if test -n "$OPENSSL"; then
3706   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3707 echo "${ECHO_T}$OPENSSL" >&6
3708 else
3709   echo "$as_me:$LINENO: result: no" >&5
3710 echo "${ECHO_T}no" >&6
3711 fi
3712
3713 # Extract the first word of "mtx", so it can be a program name with args.
3714 set dummy mtx; ac_word=$2
3715 echo "$as_me:$LINENO: checking for $ac_word" >&5
3716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3717 if test "${ac_cv_path_MTX+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   case $MTX in
3721   [\\/]* | ?:[\\/]*)
3722   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3723   ;;
3724   *)
3725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3727 do
3728   IFS=$as_save_IFS
3729   test -z "$as_dir" && as_dir=.
3730   for ac_exec_ext in '' $ac_executable_extensions; do
3731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734     break 2
3735   fi
3736 done
3737 done
3738
3739   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3740   ;;
3741 esac
3742 fi
3743 MTX=$ac_cv_path_MTX
3744
3745 if test -n "$MTX"; then
3746   echo "$as_me:$LINENO: result: $MTX" >&5
3747 echo "${ECHO_T}$MTX" >&6
3748 else
3749   echo "$as_me:$LINENO: result: no" >&5
3750 echo "${ECHO_T}no" >&6
3751 fi
3752
3753 # Extract the first word of "pkg-config", so it can be a program name with args.
3754 set dummy pkg-config; ac_word=$2
3755 echo "$as_me:$LINENO: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3757 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760   case $PKGCONFIG in
3761   [\\/]* | ?:[\\/]*)
3762   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3763   ;;
3764   *)
3765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768   IFS=$as_save_IFS
3769   test -z "$as_dir" && as_dir=.
3770   for ac_exec_ext in '' $ac_executable_extensions; do
3771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3772     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774     break 2
3775   fi
3776 done
3777 done
3778
3779   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3780   ;;
3781 esac
3782 fi
3783 PKGCONFIG=$ac_cv_path_PKGCONFIG
3784
3785 if test -n "$PKGCONFIG"; then
3786   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3787 echo "${ECHO_T}$PKGCONFIG" >&6
3788 else
3789   echo "$as_me:$LINENO: result: no" >&5
3790 echo "${ECHO_T}no" >&6
3791 fi
3792
3793 # Extract the first word of "wx-config", so it can be a program name with args.
3794 set dummy wx-config; ac_word=$2
3795 echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3798   echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800   case $WXCONFIG in
3801   [\\/]* | ?:[\\/]*)
3802   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3803   ;;
3804   *)
3805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808   IFS=$as_save_IFS
3809   test -z "$as_dir" && as_dir=.
3810   for ac_exec_ext in '' $ac_executable_extensions; do
3811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814     break 2
3815   fi
3816 done
3817 done
3818
3819   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3820   ;;
3821 esac
3822 fi
3823 WXCONFIG=$ac_cv_path_WXCONFIG
3824
3825 if test -n "$WXCONFIG"; then
3826   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3827 echo "${ECHO_T}$WXCONFIG" >&6
3828 else
3829   echo "$as_me:$LINENO: result: no" >&5
3830 echo "${ECHO_T}no" >&6
3831 fi
3832
3833 # Extract the first word of "cdrecord", so it can be a program name with args.
3834 set dummy cdrecord; ac_word=$2
3835 echo "$as_me:$LINENO: checking for $ac_word" >&5
3836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3837 if test "${ac_cv_path_CDRECORD+set}" = set; then
3838   echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840   case $CDRECORD in
3841   [\\/]* | ?:[\\/]*)
3842   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3843   ;;
3844   *)
3845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH
3847 do
3848   IFS=$as_save_IFS
3849   test -z "$as_dir" && as_dir=.
3850   for ac_exec_ext in '' $ac_executable_extensions; do
3851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3854     break 2
3855   fi
3856 done
3857 done
3858
3859   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
3860   ;;
3861 esac
3862 fi
3863 CDRECORD=$ac_cv_path_CDRECORD
3864
3865 if test -n "$CDRECORD"; then
3866   echo "$as_me:$LINENO: result: $CDRECORD" >&5
3867 echo "${ECHO_T}$CDRECORD" >&6
3868 else
3869   echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3871 fi
3872
3873 # Extract the first word of "pidof", so it can be a program name with args.
3874 set dummy pidof; ac_word=$2
3875 echo "$as_me:$LINENO: checking for $ac_word" >&5
3876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3877 if test "${ac_cv_path_PIDOF+set}" = set; then
3878   echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880   case $PIDOF in
3881   [\\/]* | ?:[\\/]*)
3882   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
3883   ;;
3884   *)
3885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3887 do
3888   IFS=$as_save_IFS
3889   test -z "$as_dir" && as_dir=.
3890   for ac_exec_ext in '' $ac_executable_extensions; do
3891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
3893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894     break 2
3895   fi
3896 done
3897 done
3898
3899   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
3900   ;;
3901 esac
3902 fi
3903 PIDOF=$ac_cv_path_PIDOF
3904
3905 if test -n "$PIDOF"; then
3906   echo "$as_me:$LINENO: result: $PIDOF" >&5
3907 echo "${ECHO_T}$PIDOF" >&6
3908 else
3909   echo "$as_me:$LINENO: result: no" >&5
3910 echo "${ECHO_T}no" >&6
3911 fi
3912
3913 for ac_prog in gawk mawk nawk awk
3914 do
3915   # Extract the first word of "$ac_prog", so it can be a program name with args.
3916 set dummy $ac_prog; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_prog_AWK+set}" = set; then
3920   echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922   if test -n "$AWK"; then
3923   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928   IFS=$as_save_IFS
3929   test -z "$as_dir" && as_dir=.
3930   for ac_exec_ext in '' $ac_executable_extensions; do
3931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932     ac_cv_prog_AWK="$ac_prog"
3933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934     break 2
3935   fi
3936 done
3937 done
3938
3939 fi
3940 fi
3941 AWK=$ac_cv_prog_AWK
3942 if test -n "$AWK"; then
3943   echo "$as_me:$LINENO: result: $AWK" >&5
3944 echo "${ECHO_T}$AWK" >&6
3945 else
3946   echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3948 fi
3949
3950   test -n "$AWK" && break
3951 done
3952
3953 # Some AWK programs fail, so test it and warn the user
3954 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
3955       { if ((prog == $2) || (("(" prog ")") == $2) ||
3956            (("" prog "") == $2) ||
3957            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
3958 else
3959   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
3960    The regex engine of $AWK is too broken to be used you
3961    might want to install GNU AWK.
3962    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
3963 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
3964    The regex engine of $AWK is too broken to be used you
3965    might want to install GNU AWK.
3966    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
3967    { (exit 1); exit 1; }; }
3968 fi
3969 THE_AWK=$AWK
3970 # Extract the first word of "$THE_AWK", so it can be a program name with args.
3971 set dummy $THE_AWK; ac_word=$2
3972 echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3974 if test "${ac_cv_path_AWK+set}" = set; then
3975   echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977   case $AWK in
3978   [\\/]* | ?:[\\/]*)
3979   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3980   ;;
3981   *)
3982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3984 do
3985   IFS=$as_save_IFS
3986   test -z "$as_dir" && as_dir=.
3987   for ac_exec_ext in '' $ac_executable_extensions; do
3988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3989     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3991     break 2
3992   fi
3993 done
3994 done
3995
3996   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
3997   ;;
3998 esac
3999 fi
4000 AWK=$ac_cv_path_AWK
4001
4002 if test -n "$AWK"; then
4003   echo "$as_me:$LINENO: result: $AWK" >&5
4004 echo "${ECHO_T}$AWK" >&6
4005 else
4006   echo "$as_me:$LINENO: result: no" >&5
4007 echo "${ECHO_T}no" >&6
4008 fi
4009
4010
4011
4012 test -n "$ARFLAG" || ARFLAGS="cr"
4013
4014
4015 MAKE_SHELL=/bin/sh
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025 # Make sure we can run config.sub.
4026 $ac_config_sub sun4 >/dev/null 2>&1 ||
4027   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4028 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4029    { (exit 1); exit 1; }; }
4030
4031 echo "$as_me:$LINENO: checking build system type" >&5
4032 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4033 if test "${ac_cv_build+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   ac_cv_build_alias=$build_alias
4037 test -z "$ac_cv_build_alias" &&
4038   ac_cv_build_alias=`$ac_config_guess`
4039 test -z "$ac_cv_build_alias" &&
4040   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4041 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4042    { (exit 1); exit 1; }; }
4043 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4044   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4045 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4046    { (exit 1); exit 1; }; }
4047
4048 fi
4049 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4050 echo "${ECHO_T}$ac_cv_build" >&6
4051 build=$ac_cv_build
4052 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4053 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4054 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4055
4056
4057
4058 echo "$as_me:$LINENO: checking host system type" >&5
4059 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4060 if test "${ac_cv_host+set}" = set; then
4061   echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063   ac_cv_host_alias=$host_alias
4064 test -z "$ac_cv_host_alias" &&
4065   ac_cv_host_alias=$ac_cv_build_alias
4066 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4067   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4068 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4069    { (exit 1); exit 1; }; }
4070
4071 fi
4072 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4073 echo "${ECHO_T}$ac_cv_host" >&6
4074 host=$ac_cv_host
4075 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4076 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4077 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4078
4079
4080 case $host_os in
4081   *cygwin* ) CYGWIN=yes;;
4082          * ) CYGWIN=no;;
4083 esac
4084
4085 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4086 then
4087
4088
4089 if $TRUEPRG; then
4090   HAVE_SUN_OS_TRUE=
4091   HAVE_SUN_OS_FALSE='#'
4092 else
4093   HAVE_SUN_OS_TRUE='#'
4094   HAVE_SUN_OS_FALSE=
4095 fi
4096         cat >>confdefs.h <<\_ACEOF
4097 #define HAVE_SUN_OS 1
4098 _ACEOF
4099
4100 else
4101
4102
4103 if $FALSEPRG; then
4104   HAVE_SUN_OS_TRUE=
4105   HAVE_SUN_OS_FALSE='#'
4106 else
4107   HAVE_SUN_OS_TRUE='#'
4108   HAVE_SUN_OS_FALSE=
4109 fi
4110 fi
4111
4112 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4113 then
4114
4115
4116 if $TRUEPRG; then
4117   HAVE_OSF1_OS_TRUE=
4118   HAVE_OSF1_OS_FALSE='#'
4119 else
4120   HAVE_OSF1_OS_TRUE='#'
4121   HAVE_OSF1_OS_FALSE=
4122 fi
4123         cat >>confdefs.h <<\_ACEOF
4124 #define HAVE_OSF1_OS 1
4125 _ACEOF
4126
4127 else
4128
4129
4130 if $FALSEPRG; then
4131   HAVE_OSF1_OS_TRUE=
4132   HAVE_OSF1_OS_FALSE='#'
4133 else
4134   HAVE_OSF1_OS_TRUE='#'
4135   HAVE_OSF1_OS_FALSE=
4136 fi
4137 fi
4138
4139 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4140 then
4141
4142
4143 if $TRUEPRG; then
4144   HAVE_AIX_OS_TRUE=
4145   HAVE_AIX_OS_FALSE='#'
4146 else
4147   HAVE_AIX_OS_TRUE='#'
4148   HAVE_AIX_OS_FALSE=
4149 fi
4150         cat >>confdefs.h <<\_ACEOF
4151 #define HAVE_AIX_OS 1
4152 _ACEOF
4153
4154 else
4155
4156
4157 if $FALSEPRG; then
4158   HAVE_AIX_OS_TRUE=
4159   HAVE_AIX_OS_FALSE='#'
4160 else
4161   HAVE_AIX_OS_TRUE='#'
4162   HAVE_AIX_OS_FALSE=
4163 fi
4164 fi
4165
4166 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4167 then
4168
4169
4170 if $TRUEPRG; then
4171   HAVE_HPUX_OS_TRUE=
4172   HAVE_HPUX_OS_FALSE='#'
4173 else
4174   HAVE_HPUX_OS_TRUE='#'
4175   HAVE_HPUX_OS_FALSE=
4176 fi
4177         cat >>confdefs.h <<\_ACEOF
4178 #define HAVE_HPUX_OS 1
4179 _ACEOF
4180
4181 else
4182
4183
4184 if $FALSEPRG; then
4185   HAVE_HPUX_OS_TRUE=
4186   HAVE_HPUX_OS_FALSE='#'
4187 else
4188   HAVE_HPUX_OS_TRUE='#'
4189   HAVE_HPUX_OS_FALSE=
4190 fi
4191 fi
4192
4193 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4194 then
4195
4196
4197 if $TRUEPRG; then
4198   HAVE_LINUX_OS_TRUE=
4199   HAVE_LINUX_OS_FALSE='#'
4200 else
4201   HAVE_LINUX_OS_TRUE='#'
4202   HAVE_LINUX_OS_FALSE=
4203 fi
4204         cat >>confdefs.h <<\_ACEOF
4205 #define HAVE_LINUX_OS 1
4206 _ACEOF
4207
4208 else
4209
4210
4211 if $FALSEPRG; then
4212   HAVE_LINUX_OS_TRUE=
4213   HAVE_LINUX_OS_FALSE='#'
4214 else
4215   HAVE_LINUX_OS_TRUE='#'
4216   HAVE_LINUX_OS_FALSE=
4217 fi
4218 fi
4219
4220 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4221 then
4222
4223
4224 if $TRUEPRG; then
4225   HAVE_FREEBSD_OS_TRUE=
4226   HAVE_FREEBSD_OS_FALSE='#'
4227 else
4228   HAVE_FREEBSD_OS_TRUE='#'
4229   HAVE_FREEBSD_OS_FALSE=
4230 fi
4231         cat >>confdefs.h <<\_ACEOF
4232 #define HAVE_FREEBSD_OS 1
4233 _ACEOF
4234
4235 else
4236
4237
4238 if $FALSEPRG; then
4239   HAVE_FREEBSD_OS_TRUE=
4240   HAVE_FREEBSD_OS_FALSE='#'
4241 else
4242   HAVE_FREEBSD_OS_TRUE='#'
4243   HAVE_FREEBSD_OS_FALSE=
4244 fi
4245 fi
4246
4247 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4248 then
4249
4250
4251 if $TRUEPRG; then
4252   HAVE_NETBSD_OS_TRUE=
4253   HAVE_NETBSD_OS_FALSE='#'
4254 else
4255   HAVE_NETBSD_OS_TRUE='#'
4256   HAVE_NETBSD_OS_FALSE=
4257 fi
4258         cat >>confdefs.h <<\_ACEOF
4259 #define HAVE_NETBSD_OS 1
4260 _ACEOF
4261
4262 else
4263
4264
4265 if $FALSEPRG; then
4266   HAVE_NETBSD_OS_TRUE=
4267   HAVE_NETBSD_OS_FALSE='#'
4268 else
4269   HAVE_NETBSD_OS_TRUE='#'
4270   HAVE_NETBSD_OS_FALSE=
4271 fi
4272 fi
4273
4274 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4275 then
4276
4277
4278 if $TRUEPRG; then
4279   HAVE_OPENBSD_OS_TRUE=
4280   HAVE_OPENBSD_OS_FALSE='#'
4281 else
4282   HAVE_OPENBSD_OS_TRUE='#'
4283   HAVE_OPENBSD_OS_FALSE=
4284 fi
4285         cat >>confdefs.h <<\_ACEOF
4286 #define HAVE_OPENBSD_OS 1
4287 _ACEOF
4288
4289 else
4290
4291
4292 if $FALSEPRG; then
4293   HAVE_OPENBSD_OS_TRUE=
4294   HAVE_OPENBSD_OS_FALSE='#'
4295 else
4296   HAVE_OPENBSD_OS_TRUE='#'
4297   HAVE_OPENBSD_OS_FALSE=
4298 fi
4299 fi
4300
4301 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4302 then
4303
4304
4305 if $TRUEPRG; then
4306   HAVE_BSDI_OS_TRUE=
4307   HAVE_BSDI_OS_FALSE='#'
4308 else
4309   HAVE_BSDI_OS_TRUE='#'
4310   HAVE_BSDI_OS_FALSE=
4311 fi
4312         cat >>confdefs.h <<\_ACEOF
4313 #define HAVE_BSDI_OS 1
4314 _ACEOF
4315
4316 else
4317
4318
4319 if $FALSEPRG; then
4320   HAVE_BSDI_OS_TRUE=
4321   HAVE_BSDI_OS_FALSE='#'
4322 else
4323   HAVE_BSDI_OS_TRUE='#'
4324   HAVE_BSDI_OS_FALSE=
4325 fi
4326 fi
4327
4328 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4329 then
4330
4331
4332 if $TRUEPRG; then
4333   HAVE_SGI_OS_TRUE=
4334   HAVE_SGI_OS_FALSE='#'
4335 else
4336   HAVE_SGI_OS_TRUE='#'
4337   HAVE_SGI_OS_FALSE=
4338 fi
4339         cat >>confdefs.h <<\_ACEOF
4340 #define HAVE_SGI_OS 1
4341 _ACEOF
4342
4343 else
4344
4345
4346 if $FALSEPRG; then
4347   HAVE_SGI_OS_TRUE=
4348   HAVE_SGI_OS_FALSE='#'
4349 else
4350   HAVE_SGI_OS_TRUE='#'
4351   HAVE_SGI_OS_FALSE=
4352 fi
4353 fi
4354
4355 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4356 then
4357
4358
4359 if $TRUEPRG; then
4360   HAVE_IRIX_OS_TRUE=
4361   HAVE_IRIX_OS_FALSE='#'
4362 else
4363   HAVE_IRIX_OS_TRUE='#'
4364   HAVE_IRIX_OS_FALSE=
4365 fi
4366         cat >>confdefs.h <<\_ACEOF
4367 #define HAVE_IRIX_OS 1
4368 _ACEOF
4369
4370 else
4371
4372
4373 if $FALSEPRG; then
4374   HAVE_IRIX_OS_TRUE=
4375   HAVE_IRIX_OS_FALSE='#'
4376 else
4377   HAVE_IRIX_OS_TRUE='#'
4378   HAVE_IRIX_OS_FALSE=
4379 fi
4380 fi
4381
4382 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4383 then
4384
4385
4386 if $TRUEPRG; then
4387   HAVE_DARWIN_OS_TRUE=
4388   HAVE_DARWIN_OS_FALSE='#'
4389 else
4390   HAVE_DARWIN_OS_TRUE='#'
4391   HAVE_DARWIN_OS_FALSE=
4392 fi
4393     cat >>confdefs.h <<\_ACEOF
4394 #define HAVE_DARWIN_OS 1
4395 _ACEOF
4396
4397 else
4398
4399
4400 if $FALSEPRG; then
4401   HAVE_DARWIN_OS_TRUE=
4402   HAVE_DARWIN_OS_FALSE='#'
4403 else
4404   HAVE_DARWIN_OS_TRUE='#'
4405   HAVE_DARWIN_OS_FALSE=
4406 fi
4407 fi
4408
4409
4410 # -----------------------------------------------------------
4411 # ----------------------------------------------------------
4412 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4413 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4414 if test "x$DISTNAME" != "x"
4415 then
4416         echo "distname set to $DISTNAME"
4417 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4418 then
4419         DISTNAME=alpha
4420 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4421 then
4422         DISTNAME=aix
4423 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4424 then
4425         DISTNAME=hpux
4426 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4427 then
4428         DISTNAME=solaris
4429 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4430 then
4431         DISTNAME=freebsd
4432 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4433 then
4434         DISTNAME=netbsd
4435 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4436 then
4437         DISTNAME=openbsd
4438 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4439 then
4440         DISTNAME=irix
4441 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4442 then
4443         DISTNAME=bsdi
4444 elif test -f /etc/SuSE-release
4445 then
4446         DISTNAME=suse
4447 elif test -d /etc/SuSEconfig
4448 then
4449         DISTNAME=suse5
4450 elif test -f /etc/mandrake-release
4451 then
4452         DISTNAME=mandrake
4453 elif test -f /etc/whitebox-release
4454 then
4455        DISTNAME=redhat
4456 elif test -f /etc/redhat-release
4457 then
4458         DISTNAME=redhat
4459 elif test -f /etc/gentoo-release
4460 then
4461         DISTNAME=gentoo
4462 elif test -f /etc/debian_version
4463 then
4464         DISTNAME=debian
4465 elif test -f /etc/slackware-version
4466 then
4467         DISTNAME=slackware
4468 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4469 then
4470     DISTNAME=darwin
4471 elif test -f /etc/engarde-version
4472 then
4473         DISTNAME=engarde
4474 elif test "$CYGWIN" = yes
4475 then
4476         DISTNAME=cygwin
4477         cat >>confdefs.h <<\_ACEOF
4478 #define HAVE_CYGWIN 1
4479 _ACEOF
4480
4481 else
4482         DISTNAME=unknown
4483 fi
4484 echo "$as_me:$LINENO: result: done" >&5
4485 echo "${ECHO_T}done" >&6
4486
4487
4488 # -----------------------------------------------------------
4489 # ----------------------------------------------------------
4490
4491
4492
4493 if false; then
4494   INSIDE_GNOME_COMMON_TRUE=
4495   INSIDE_GNOME_COMMON_FALSE='#'
4496 else
4497   INSIDE_GNOME_COMMON_TRUE='#'
4498   INSIDE_GNOME_COMMON_FALSE=
4499 fi
4500
4501         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4502
4503         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4504
4505
4506 # ------------------------------------------------------------------
4507 #  If the user has not set --prefix, we set our default to nothing.
4508 #  In this case, if the user has not set --sysconfdir, we set it
4509 #  to the package default of /etc/bacula.  If either --prefix or
4510 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4511 # ------------------------------------------------------------------
4512 if test x${prefix} = xNONE ; then
4513     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4514         sysconfdir=/etc/bacula
4515     fi
4516     prefix=
4517 fi
4518 sysconfdir=`eval echo ${sysconfdir}`
4519
4520 # -------------------------------------------------------------------------
4521 #  If the user has not set --exec-prefix, we default to ${prefix}
4522 # -------------------------------------------------------------------------
4523 if test x${exec_prefix} = xNONE ; then
4524     exec_prefix=${prefix}
4525 fi
4526
4527 # ------------------------------------------------------------------
4528 # If the user has not set --sbindir, we set our default as /sbin
4529 # ------------------------------------------------------------------
4530 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4531     sbindir=${exec_prefix}/sbin
4532 fi
4533 sbindir=`eval echo ${sbindir}`
4534
4535 # ------------------------------------------------------------------
4536 # All list of languages for which a translation exist. Each
4537 #  language is separated by a space.
4538 # ------------------------------------------------------------------
4539 ALL_LINGUAS=""
4540
4541 for ac_prog in msgfmt
4542 do
4543   # Extract the first word of "$ac_prog", so it can be a program name with args.
4544 set dummy $ac_prog; ac_word=$2
4545 echo "$as_me:$LINENO: checking for $ac_word" >&5
4546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4547 if test "${ac_cv_path_MSGFMT+set}" = set; then
4548   echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550   case $MSGFMT in
4551   [\\/]* | ?:[\\/]*)
4552   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4553   ;;
4554   *)
4555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560   for ac_exec_ext in '' $ac_executable_extensions; do
4561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564     break 2
4565   fi
4566 done
4567 done
4568
4569   ;;
4570 esac
4571 fi
4572 MSGFMT=$ac_cv_path_MSGFMT
4573
4574 if test -n "$MSGFMT"; then
4575   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4576 echo "${ECHO_T}$MSGFMT" >&6
4577 else
4578   echo "$as_me:$LINENO: result: no" >&5
4579 echo "${ECHO_T}no" >&6
4580 fi
4581
4582   test -n "$MSGFMT" && break
4583 done
4584 test -n "$MSGFMT" || MSGFMT="no"
4585
4586 if test "$MSGFMT" = "no"
4587 then
4588    echo 'msgfmt program not found, disabling NLS !'
4589    USE_NLS=no
4590    USE_INCLUDED_LIBINTL=no
4591 #else
4592 #   AM_GNU_GETTEXT
4593 fi
4594
4595
4596 support_mysql=no
4597 support_sqlite=no
4598 support_postgresql=no
4599 support_smartalloc=yes
4600 support_readline=yes
4601 support_conio=yes
4602 support_gnome=no
4603 support_wx_console=no
4604 gnome_version=
4605 support_static_tools=no
4606 support_static_fd=no
4607 support_static_sd=no
4608 support_static_dir=no
4609 support_static_cons=no
4610 support_python=no
4611 build_client_only=no
4612 cats=
4613 db_name=Internal
4614 DB_NAME=bdb
4615
4616
4617 # -------------------------------------------
4618 # gnome (default off)
4619 # -------------------------------------------
4620 # Check whether --enable-gnome or --disable-gnome was given.
4621 if test "${enable_gnome+set}" = set; then
4622   enableval="$enable_gnome"
4623   if test x$enableval = xyes; then
4624     support_gnome=yes
4625   fi
4626 fi;
4627
4628 GNOME_DIR=
4629 if test x$support_gnome = xyes; then
4630   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4631   pkg=$?
4632   if test $pkg = 0; then
4633      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4634      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4635      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4636      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4637
4638
4639
4640
4641      GNOME_DIR=src/gnome2-console
4642      gnome_version="Version 2.x"
4643   else
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4656 if test "${with_gnome_includes+set}" = set; then
4657   withval="$with_gnome_includes"
4658
4659         CFLAGS="$CFLAGS -I$withval"
4660
4661 fi;
4662
4663
4664 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4665 if test "${with_gnome_libs+set}" = set; then
4666   withval="$with_gnome_libs"
4667
4668         LDFLAGS="$LDFLAGS -L$withval"
4669         gnome_prefix=$withval
4670
4671 fi;
4672
4673
4674 # Check whether --with-gnome or --without-gnome was given.
4675 if test "${with_gnome+set}" = set; then
4676   withval="$with_gnome"
4677   if test x$withval = xyes; then
4678                         want_gnome=yes
4679                                                                         :
4680                 else
4681                         if test "x$withval" = xno; then
4682                                 want_gnome=no
4683                         else
4684                                 want_gnome=yes
4685                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4686                                 CFLAGS="$CFLAGS -I$withval/include"
4687                                 gnome_prefix=$withval/lib
4688                         fi
4689                 fi
4690 else
4691   want_gnome=yes
4692 fi;
4693
4694         if test "x$want_gnome" = xyes; then
4695
4696             # Extract the first word of "gnome-config", so it can be a program name with args.
4697 set dummy gnome-config; ac_word=$2
4698 echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4700 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   case $GNOME_CONFIG in
4704   [\\/]* | ?:[\\/]*)
4705   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4706   ;;
4707   *)
4708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711   IFS=$as_save_IFS
4712   test -z "$as_dir" && as_dir=.
4713   for ac_exec_ext in '' $ac_executable_extensions; do
4714   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717     break 2
4718   fi
4719 done
4720 done
4721
4722   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4723   ;;
4724 esac
4725 fi
4726 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4727
4728 if test -n "$GNOME_CONFIG"; then
4729   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4730 echo "${ECHO_T}$GNOME_CONFIG" >&6
4731 else
4732   echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6
4734 fi
4735
4736             if test "$GNOME_CONFIG" = "no"; then
4737               no_gnome_config="yes"
4738             else
4739               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4740 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4741               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4742                 echo "$as_me:$LINENO: result: yes" >&5
4743 echo "${ECHO_T}yes" >&6
4744
4745
4746         # Extract the first word of "orbit-config", so it can be a program name with args.
4747 set dummy orbit-config; ac_word=$2
4748 echo "$as_me:$LINENO: checking for $ac_word" >&5
4749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4750 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4751   echo $ECHO_N "(cached) $ECHO_C" >&6
4752 else
4753   case $ORBIT_CONFIG in
4754   [\\/]* | ?:[\\/]*)
4755   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4756   ;;
4757   *)
4758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4760 do
4761   IFS=$as_save_IFS
4762   test -z "$as_dir" && as_dir=.
4763   for ac_exec_ext in '' $ac_executable_extensions; do
4764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4765     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767     break 2
4768   fi
4769 done
4770 done
4771
4772   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4773   ;;
4774 esac
4775 fi
4776 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4777
4778 if test -n "$ORBIT_CONFIG"; then
4779   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4780 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4781 else
4782   echo "$as_me:$LINENO: result: no" >&5
4783 echo "${ECHO_T}no" >&6
4784 fi
4785
4786         # Extract the first word of "orbit-idl", so it can be a program name with args.
4787 set dummy orbit-idl; ac_word=$2
4788 echo "$as_me:$LINENO: checking for $ac_word" >&5
4789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4790 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4791   echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793   case $ORBIT_IDL in
4794   [\\/]* | ?:[\\/]*)
4795   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4796   ;;
4797   *)
4798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801   IFS=$as_save_IFS
4802   test -z "$as_dir" && as_dir=.
4803   for ac_exec_ext in '' $ac_executable_extensions; do
4804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4805     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807     break 2
4808   fi
4809 done
4810 done
4811
4812   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4813   ;;
4814 esac
4815 fi
4816 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4817
4818 if test -n "$ORBIT_IDL"; then
4819   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4820 echo "${ECHO_T}$ORBIT_IDL" >&6
4821 else
4822   echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6
4824 fi
4825
4826         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4827 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4828 if test "${gnome_cv_orbit_found+set}" = set; then
4829   echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831
4832                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4833                         gnome_cv_orbit_found=no
4834                 else
4835                         gnome_cv_orbit_found=yes
4836                 fi
4837
4838 fi
4839 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4840 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4841
4842
4843 if test x$gnome_cv_orbit_found = xyes; then
4844   HAVE_ORBIT_TRUE=
4845   HAVE_ORBIT_FALSE='#'
4846 else
4847   HAVE_ORBIT_TRUE='#'
4848   HAVE_ORBIT_FALSE=
4849 fi
4850         if test x$gnome_cv_orbit_found = xyes; then
4851
4852                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4853                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4854
4855
4856         else
4857                 if test xfail = xfailure; then
4858                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4859 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4860    { (exit 1); exit 1; }; }
4861                 fi
4862         fi
4863
4864         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4865 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4866 if test "${gnome_cv_gnorba_found+set}" = set; then
4867   echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869
4870                 gnome_cv_gnorba_found=no
4871                 if test x$gnome_cv_orbit_found = xyes; then
4872                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4873                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4874                         if test -n "$GNORBA_LIBS"; then
4875                                 gnome_cv_gnorba_found=yes
4876                         fi
4877                 fi
4878
4879 fi
4880 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4881 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4882
4883
4884 if test x$gnome_cv_gnorba_found = xyes; then
4885   HAVE_GNORBA_TRUE=
4886   HAVE_GNORBA_FALSE='#'
4887 else
4888   HAVE_GNORBA_TRUE='#'
4889   HAVE_GNORBA_FALSE=
4890 fi
4891         if test x$gnome_cv_orbit_found = xyes; then
4892
4893                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4894                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4895
4896
4897         else
4898                 if test xfail = xfailure; then
4899                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4900 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4901    { (exit 1); exit 1; }; }
4902                 fi
4903         fi
4904
4905                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4906                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4907                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4908                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4909                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4910                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4911                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4912
4913               else
4914                 echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6
4916                 no_gnome_config="yes"
4917               fi
4918             fi
4919
4920             if test x$exec_prefix = xNONE; then
4921                 if test x$prefix = xNONE; then
4922                     gnome_prefix=$ac_default_prefix/lib
4923                 else
4924                     gnome_prefix=$prefix/lib
4925                 fi
4926             else
4927                 gnome_prefix=`eval echo \`echo $libdir\``
4928             fi
4929
4930             if test "$no_gnome_config" = "yes"; then
4931               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4932 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4933               if test -f $gnome_prefix/gnomeConf.sh; then
4934                 echo "$as_me:$LINENO: result: found" >&5
4935 echo "${ECHO_T}found" >&6
4936                 echo "loading gnome configuration from" \
4937                      "$gnome_prefix/gnomeConf.sh"
4938                 . $gnome_prefix/gnomeConf.sh
4939
4940               else
4941                 echo "$as_me:$LINENO: result: not found" >&5
4942 echo "${ECHO_T}not found" >&6
4943                 if test xfail = xfail; then
4944                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4945 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4946    { (exit 1); exit 1; }; }
4947                 fi
4948               fi
4949             fi
4950         fi
4951
4952         if test -n ""; then
4953           n=""
4954           for i in $n; do
4955             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4956 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4957             case $i in
4958               applets)
4959
4960                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4961                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4962 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4963               docklets)
4964
4965                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4966                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4967 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4968               capplet)
4969
4970                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4971                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4972 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4973               *)
4974                 echo "$as_me:$LINENO: result: unknown library" >&5
4975 echo "${ECHO_T}unknown library" >&6
4976             esac
4977             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4978             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4979           done
4980         fi
4981
4982
4983      GNOME_DIR=src/gnome-console
4984      gnome_version="Version 1.4"
4985   fi
4986 fi
4987
4988
4989
4990 # -------------------------------------------
4991 # wx-console (default off)
4992 # -------------------------------------------
4993 # Check whether --enable-wx-console or --disable-wx-console was given.
4994 if test "${enable_wx_console+set}" = set; then
4995   enableval="$enable_wx_console"
4996   if test x$enableval = xyes; then
4997     support_wx_console=yes
4998   fi
4999 fi;
5000
5001 WX_DIR=
5002 if test x$support_wx_console = xyes; then
5003   abc=`$WXCONFIG --cppflags`
5004   pkg=$?
5005   if test $pkg = 0; then
5006      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
5007      WXCONS_LDFLAGS=`$WXCONFIG --libs`
5008
5009
5010      WX_DIR=src/wx-console
5011   else
5012      echo " "
5013      echo "wx-config program not found. wx-console disabled."
5014      echo " "
5015      support_wx_console=no
5016   fi
5017 fi
5018
5019
5020
5021 # -------------------------------------------
5022 # tray-monitor (default off)
5023 # -------------------------------------------
5024 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5025 if test "${enable_tray_monitor+set}" = set; then
5026   enableval="$enable_tray_monitor"
5027   if test x$enableval = xyes; then
5028     support_tray_monitor=yes
5029   fi
5030 fi;
5031
5032 TRAY_MONITOR_DIR=
5033 if test x$support_tray_monitor = xyes; then
5034   abc=`$PKGCONFIG --exists gtk+-2.0`
5035   pkg=$?
5036   if test $pkg = 0; then
5037      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5038      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5039
5040
5041      TRAY_MONITOR_DIR=src/tray-monitor
5042      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5043      pkg=$?
5044      if test $pkg = 0; then
5045         cat >>confdefs.h <<\_ACEOF
5046 #define HAVE_GTK_2_4 1
5047 _ACEOF
5048
5049      fi
5050   fi
5051 fi
5052
5053
5054 # -------------------------------------------
5055 # smartalloc (default off)
5056 # -------------------------------------------
5057 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5058 if test "${enable_smartalloc+set}" = set; then
5059   enableval="$enable_smartalloc"
5060   if test x$enableval = xno; then
5061     support_smartalloc=no
5062   fi
5063 fi;
5064
5065 if test x$support_smartalloc = xyes; then
5066    cat >>confdefs.h <<\_ACEOF
5067 #define SMARTALLOC 1
5068 _ACEOF
5069
5070 fi
5071
5072 # -------------------------------------------
5073 # static-tools (default off)
5074 # -------------------------------------------
5075 # Check whether --enable-static-tools or --disable-static-tools was given.
5076 if test "${enable_static_tools+set}" = set; then
5077   enableval="$enable_static_tools"
5078   if test x$enableval = xyes; then
5079      support_static_tools=yes
5080    fi
5081 fi;
5082
5083 TTOOL_LDFLAGS=
5084 if test x$support_static_tools = xyes; then
5085    TTOOL_LDFLAGS="-static"
5086 fi
5087
5088
5089 # -------------------------------------------
5090 # static-fd    (default off)
5091 # -------------------------------------------
5092 # Check whether --enable-static-fd or --disable-static-fd was given.
5093 if test "${enable_static_fd+set}" = set; then
5094   enableval="$enable_static_fd"
5095   if test x$enableval = xyes; then
5096      support_static_fd=yes
5097    fi
5098 fi;
5099
5100 STATIC_FD=
5101 if test x$support_static_fd = xyes; then
5102    STATIC_FD="static-bacula-fd"
5103 fi
5104
5105
5106 # -------------------------------------------
5107 # static-sd    (default off)
5108 # -------------------------------------------
5109 # Check whether --enable-static-sd or --disable-static-sd was given.
5110 if test "${enable_static_sd+set}" = set; then
5111   enableval="$enable_static_sd"
5112   if test x$enableval = xyes; then
5113      support_static_sd=yes
5114    fi
5115 fi;
5116
5117 STATIC_SD=
5118 if test x$support_static_sd = xyes; then
5119    STATIC_SD="static-bacula-sd"
5120 fi
5121
5122
5123 # -------------------------------------------
5124 # static-dir   (default off)
5125 # -------------------------------------------
5126 # Check whether --enable-static-dir or --disable-static-dir was given.
5127 if test "${enable_static_dir+set}" = set; then
5128   enableval="$enable_static_dir"
5129   if test x$enableval = xyes; then
5130      support_static_dir=yes
5131    fi
5132 fi;
5133
5134 STATIC_DIR=
5135 if test x$support_static_dir = xyes; then
5136    STATIC_DIR="static-bacula-dir"
5137 fi
5138
5139
5140 # -------------------------------------------
5141 # static-cons  (default off)
5142 # -------------------------------------------
5143 # Check whether --enable-static-cons or --disable-static-cons was given.
5144 if test "${enable_static_cons+set}" = set; then
5145   enableval="$enable_static_cons"
5146   if test x$enableval = xyes; then
5147      support_static_cons=yes
5148    fi
5149 fi;
5150
5151 STATIC_CONS=
5152 STATIC_GNOME_CONS=
5153 STATIC_WX_CONS=
5154 if test x$support_static_cons = xyes; then
5155    STATIC_CONS="static-bconsole"
5156    STATIC_GNOME_CONS="static-gnome-console"
5157    STATIC_WX_CONS="static-wx-console"
5158 fi
5159
5160
5161
5162
5163 # -------------------------------------------
5164 # client_only  (default off)
5165 # -------------------------------------------
5166 # Check whether --enable-client-only or --disable-client-only was given.
5167 if test "${enable_client_only+set}" = set; then
5168   enableval="$enable_client_only"
5169   if test x$enableval = xyes; then
5170      build_client_only=yes
5171     db_name=None
5172     DB_NAME=none
5173    fi
5174 fi;
5175 if test x$build_client_only = xno; then
5176    ALL_DIRS="subdirs"
5177 else
5178    ALL_DIRS=""
5179 fi
5180
5181
5182 # ---------------------------------------------------
5183 # Check for conio (Bacula readline substitute)(
5184 # ---------------------------------------------------
5185 # this allows you to turn it completely off
5186 # Check whether --enable-conio or --disable-conio was given.
5187 if test "${enable_conio+set}" = set; then
5188   enableval="$enable_conio"
5189   if test x$enableval = xno; then
5190     support_conio=no
5191   fi
5192 fi;
5193
5194 got_conio="no"
5195 if test x$support_conio = xyes; then
5196    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5197 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5198 if test "${ac_cv_header_stdc+set}" = set; then
5199   echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201   cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h.  */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h.  */
5207 #include <stdlib.h>
5208 #include <stdarg.h>
5209 #include <string.h>
5210 #include <float.h>
5211
5212 int
5213 main ()
5214 {
5215
5216   ;
5217   return 0;
5218 }
5219 _ACEOF
5220 rm -f conftest.$ac_objext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5222   (eval $ac_compile) 2>conftest.er1
5223   ac_status=$?
5224   grep -v '^ *+' conftest.er1 >conftest.err
5225   rm -f conftest.er1
5226   cat conftest.err >&5
5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); } &&
5229          { ac_try='test -z "$ac_c_werror_flag"
5230                          || test ! -s conftest.err'
5231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232   (eval $ac_try) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); }; } &&
5236          { ac_try='test -s conftest.$ac_objext'
5237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238   (eval $ac_try) 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); }; }; then
5242   ac_cv_header_stdc=yes
5243 else
5244   echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 ac_cv_header_stdc=no
5248 fi
5249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5250
5251 if test $ac_cv_header_stdc = yes; then
5252   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5253   cat >conftest.$ac_ext <<_ACEOF
5254 /* confdefs.h.  */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h.  */
5259 #include <string.h>
5260
5261 _ACEOF
5262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5263   $EGREP "memchr" >/dev/null 2>&1; then
5264   :
5265 else
5266   ac_cv_header_stdc=no
5267 fi
5268 rm -f conftest*
5269
5270 fi
5271
5272 if test $ac_cv_header_stdc = yes; then
5273   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5274   cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h.  */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h.  */
5280 #include <stdlib.h>
5281
5282 _ACEOF
5283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5284   $EGREP "free" >/dev/null 2>&1; then
5285   :
5286 else
5287   ac_cv_header_stdc=no
5288 fi
5289 rm -f conftest*
5290
5291 fi
5292
5293 if test $ac_cv_header_stdc = yes; then
5294   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5295   if test "$cross_compiling" = yes; then
5296   :
5297 else
5298   cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h.  */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h.  */
5304 #include <ctype.h>
5305 #if ((' ' & 0x0FF) == 0x020)
5306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5308 #else
5309 # define ISLOWER(c) \
5310                    (('a' <= (c) && (c) <= 'i') \
5311                      || ('j' <= (c) && (c) <= 'r') \
5312                      || ('s' <= (c) && (c) <= 'z'))
5313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5314 #endif
5315
5316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5317 int
5318 main ()
5319 {
5320   int i;
5321   for (i = 0; i < 256; i++)
5322     if (XOR (islower (i), ISLOWER (i))
5323         || toupper (i) != TOUPPER (i))
5324       exit(2);
5325   exit (0);
5326 }
5327 _ACEOF
5328 rm -f conftest$ac_exeext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5330   (eval $ac_link) 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335   (eval $ac_try) 2>&5
5336   ac_status=$?
5337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338   (exit $ac_status); }; }; then
5339   :
5340 else
5341   echo "$as_me: program exited with status $ac_status" >&5
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5344
5345 ( exit $ac_status )
5346 ac_cv_header_stdc=no
5347 fi
5348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5349 fi
5350 fi
5351 fi
5352 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5353 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5354 if test $ac_cv_header_stdc = yes; then
5355
5356 cat >>confdefs.h <<\_ACEOF
5357 #define STDC_HEADERS 1
5358 _ACEOF
5359
5360 fi
5361
5362 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5373                   inttypes.h stdint.h unistd.h
5374 do
5375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5376 echo "$as_me:$LINENO: checking for $ac_header" >&5
5377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h.  */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h.  */
5387 $ac_includes_default
5388
5389 #include <$ac_header>
5390 _ACEOF
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393   (eval $ac_compile) 2>conftest.er1
5394   ac_status=$?
5395   grep -v '^ *+' conftest.er1 >conftest.err
5396   rm -f conftest.er1
5397   cat conftest.err >&5
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); } &&
5400          { ac_try='test -z "$ac_c_werror_flag"
5401                          || test ! -s conftest.err'
5402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403   (eval $ac_try) 2>&5
5404   ac_status=$?
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); }; } &&
5407          { ac_try='test -s conftest.$ac_objext'
5408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409   (eval $ac_try) 2>&5
5410   ac_status=$?
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); }; }; then
5413   eval "$as_ac_Header=yes"
5414 else
5415   echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5417
5418 eval "$as_ac_Header=no"
5419 fi
5420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5421 fi
5422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5425   cat >>confdefs.h <<_ACEOF
5426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5427 _ACEOF
5428
5429 fi
5430
5431 done
5432
5433
5434 if test "${ac_cv_header_termcap_h+set}" = set; then
5435   echo "$as_me:$LINENO: checking for termcap.h" >&5
5436 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5437 if test "${ac_cv_header_termcap_h+set}" = set; then
5438   echo $ECHO_N "(cached) $ECHO_C" >&6
5439 fi
5440 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5441 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5442 else
5443   # Is the header compilable?
5444 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5445 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5446 cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h.  */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h.  */
5452 $ac_includes_default
5453 #include <termcap.h>
5454 _ACEOF
5455 rm -f conftest.$ac_objext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457   (eval $ac_compile) 2>conftest.er1
5458   ac_status=$?
5459   grep -v '^ *+' conftest.er1 >conftest.err
5460   rm -f conftest.er1
5461   cat conftest.err >&5
5462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463   (exit $ac_status); } &&
5464          { ac_try='test -z "$ac_c_werror_flag"
5465                          || test ! -s conftest.err'
5466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467   (eval $ac_try) 2>&5
5468   ac_status=$?
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); }; } &&
5471          { ac_try='test -s conftest.$ac_objext'
5472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473   (eval $ac_try) 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); }; }; then
5477   ac_header_compiler=yes
5478 else
5479   echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482 ac_header_compiler=no
5483 fi
5484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5486 echo "${ECHO_T}$ac_header_compiler" >&6
5487
5488 # Is the header present?
5489 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5490 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5491 cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h.  */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h.  */
5497 #include <termcap.h>
5498 _ACEOF
5499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5501   ac_status=$?
5502   grep -v '^ *+' conftest.er1 >conftest.err
5503   rm -f conftest.er1
5504   cat conftest.err >&5
5505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506   (exit $ac_status); } >/dev/null; then
5507   if test -s conftest.err; then
5508     ac_cpp_err=$ac_c_preproc_warn_flag
5509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5510   else
5511     ac_cpp_err=
5512   fi
5513 else
5514   ac_cpp_err=yes
5515 fi
5516 if test -z "$ac_cpp_err"; then
5517   ac_header_preproc=yes
5518 else
5519   echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5521
5522   ac_header_preproc=no
5523 fi
5524 rm -f conftest.err conftest.$ac_ext
5525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5526 echo "${ECHO_T}$ac_header_preproc" >&6
5527
5528 # So?  What about this header?
5529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5530   yes:no: )
5531     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5532 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5533     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5534 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5535     ac_header_preproc=yes
5536     ;;
5537   no:yes:* )
5538     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5539 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5540     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5541 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5542     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5543 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5544     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5545 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5546     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5547 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5548     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5549 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5550     (
5551       cat <<\_ASBOX
5552 ## ------------------------------------------ ##
5553 ## Report this to the AC_PACKAGE_NAME lists.  ##
5554 ## ------------------------------------------ ##
5555 _ASBOX
5556     ) |
5557       sed "s/^/$as_me: WARNING:     /" >&2
5558     ;;
5559 esac
5560 echo "$as_me:$LINENO: checking for termcap.h" >&5
5561 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5562 if test "${ac_cv_header_termcap_h+set}" = set; then
5563   echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565   ac_cv_header_termcap_h=$ac_header_preproc
5566 fi
5567 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5568 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5569
5570 fi
5571 if test $ac_cv_header_termcap_h = yes; then
5572    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5573 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5574 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5575   echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577   ac_check_lib_save_LIBS=$LIBS
5578 LIBS="-ltermcap  $LIBS"
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h.  */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h.  */
5585
5586 /* Override any gcc2 internal prototype to avoid an error.  */
5587 #ifdef __cplusplus
5588 extern "C"
5589 #endif
5590 /* We use char because int might match the return type of a gcc2
5591    builtin and then its argument prototype would still apply.  */
5592 char tgetent ();
5593 int
5594 main ()
5595 {
5596 tgetent ();
5597   ;
5598   return 0;
5599 }
5600 _ACEOF
5601 rm -f conftest.$ac_objext conftest$ac_exeext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5603   (eval $ac_link) 2>conftest.er1
5604   ac_status=$?
5605   grep -v '^ *+' conftest.er1 >conftest.err
5606   rm -f conftest.er1
5607   cat conftest.err >&5
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); } &&
5610          { ac_try='test -z "$ac_c_werror_flag"
5611                          || test ! -s conftest.err'
5612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613   (eval $ac_try) 2>&5
5614   ac_status=$?
5615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616   (exit $ac_status); }; } &&
5617          { ac_try='test -s conftest$ac_exeext'
5618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619   (eval $ac_try) 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); }; }; then
5623   ac_cv_lib_termcap_tgetent=yes
5624 else
5625   echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628 ac_cv_lib_termcap_tgetent=no
5629 fi
5630 rm -f conftest.err conftest.$ac_objext \
5631       conftest$ac_exeext conftest.$ac_ext
5632 LIBS=$ac_check_lib_save_LIBS
5633 fi
5634 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5635 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5636 if test $ac_cv_lib_termcap_tgetent = yes; then
5637    CONS_LIBS="-ltermcap"
5638          CONS_OBJ="conio.o"
5639          CONS_SRC="conio.c"
5640          got_conio="yes"
5641          support_readline=no
5642
5643 cat >>confdefs.h <<\_ACEOF
5644 #define HAVE_CONIO 1
5645 _ACEOF
5646
5647
5648 else
5649    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5650 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5651 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5652   echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654   ac_check_lib_save_LIBS=$LIBS
5655 LIBS="-lncurses  $LIBS"
5656 cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h.  */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h.  */
5662
5663 /* Override any gcc2 internal prototype to avoid an error.  */
5664 #ifdef __cplusplus
5665 extern "C"
5666 #endif
5667 /* We use char because int might match the return type of a gcc2
5668    builtin and then its argument prototype would still apply.  */
5669 char tgetent ();
5670 int
5671 main ()
5672 {
5673 tgetent ();
5674   ;
5675   return 0;
5676 }
5677 _ACEOF
5678 rm -f conftest.$ac_objext conftest$ac_exeext
5679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5680   (eval $ac_link) 2>conftest.er1
5681   ac_status=$?
5682   grep -v '^ *+' conftest.er1 >conftest.err
5683   rm -f conftest.er1
5684   cat conftest.err >&5
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); } &&
5687          { ac_try='test -z "$ac_c_werror_flag"
5688                          || test ! -s conftest.err'
5689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690   (eval $ac_try) 2>&5
5691   ac_status=$?
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); }; } &&
5694          { ac_try='test -s conftest$ac_exeext'
5695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696   (eval $ac_try) 2>&5
5697   ac_status=$?
5698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); }; }; then
5700   ac_cv_lib_ncurses_tgetent=yes
5701 else
5702   echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5704
5705 ac_cv_lib_ncurses_tgetent=no
5706 fi
5707 rm -f conftest.err conftest.$ac_objext \
5708       conftest$ac_exeext conftest.$ac_ext
5709 LIBS=$ac_check_lib_save_LIBS
5710 fi
5711 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5712 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5713 if test $ac_cv_lib_ncurses_tgetent = yes; then
5714    CONS_LIBS="-lncurses"
5715            CONS_OBJ="conio.o"
5716            CONS_SRC="conio.c"
5717            got_conio="yes"
5718            support_readline=no
5719
5720 cat >>confdefs.h <<\_ACEOF
5721 #define HAVE_CONIO 1
5722 _ACEOF
5723
5724
5725 fi
5726
5727
5728 fi
5729
5730
5731 else
5732
5733
5734 for ac_header in curses.h
5735 do
5736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5738   echo "$as_me:$LINENO: checking for $ac_header" >&5
5739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 fi
5743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5745 else
5746   # Is the header compilable?
5747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5749 cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h.  */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h.  */
5755 $ac_includes_default
5756 #include <$ac_header>
5757 _ACEOF
5758 rm -f conftest.$ac_objext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760   (eval $ac_compile) 2>conftest.er1
5761   ac_status=$?
5762   grep -v '^ *+' conftest.er1 >conftest.err
5763   rm -f conftest.er1
5764   cat conftest.err >&5
5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766   (exit $ac_status); } &&
5767          { ac_try='test -z "$ac_c_werror_flag"
5768                          || test ! -s conftest.err'
5769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770   (eval $ac_try) 2>&5
5771   ac_status=$?
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); }; } &&
5774          { ac_try='test -s conftest.$ac_objext'
5775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776   (eval $ac_try) 2>&5
5777   ac_status=$?
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); }; }; then
5780   ac_header_compiler=yes
5781 else
5782   echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5784
5785 ac_header_compiler=no
5786 fi
5787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5789 echo "${ECHO_T}$ac_header_compiler" >&6
5790
5791 # Is the header present?
5792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h.  */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h.  */
5800 #include <$ac_header>
5801 _ACEOF
5802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5803   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5804   ac_status=$?
5805   grep -v '^ *+' conftest.er1 >conftest.err
5806   rm -f conftest.er1
5807   cat conftest.err >&5
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); } >/dev/null; then
5810   if test -s conftest.err; then
5811     ac_cpp_err=$ac_c_preproc_warn_flag
5812     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5813   else
5814     ac_cpp_err=
5815   fi
5816 else
5817   ac_cpp_err=yes
5818 fi
5819 if test -z "$ac_cpp_err"; then
5820   ac_header_preproc=yes
5821 else
5822   echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5824
5825   ac_header_preproc=no
5826 fi
5827 rm -f conftest.err conftest.$ac_ext
5828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5829 echo "${ECHO_T}$ac_header_preproc" >&6
5830
5831 # So?  What about this header?
5832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5833   yes:no: )
5834     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5838     ac_header_preproc=yes
5839     ;;
5840   no:yes:* )
5841     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5843     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5844 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5845     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5847     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5848 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5851     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5853     (
5854       cat <<\_ASBOX
5855 ## ------------------------------------------ ##
5856 ## Report this to the AC_PACKAGE_NAME lists.  ##
5857 ## ------------------------------------------ ##
5858 _ASBOX
5859     ) |
5860       sed "s/^/$as_me: WARNING:     /" >&2
5861     ;;
5862 esac
5863 echo "$as_me:$LINENO: checking for $ac_header" >&5
5864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868   eval "$as_ac_Header=\$ac_header_preproc"
5869 fi
5870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5872
5873 fi
5874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5875   cat >>confdefs.h <<_ACEOF
5876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5877 _ACEOF
5878
5879 fi
5880
5881 done
5882
5883          echo "$as_me:$LINENO: checking for term.h" >&5
5884 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5885 if test "${ac_cv_header_term_h+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h.  */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h.  */
5894 #if HAVE_CURSES_H
5895 #include <curses.h>
5896 #endif
5897
5898
5899 #include <term.h>
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903   (eval $ac_compile) 2>conftest.er1
5904   ac_status=$?
5905   grep -v '^ *+' conftest.er1 >conftest.err
5906   rm -f conftest.er1
5907   cat conftest.err >&5
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); } &&
5910          { ac_try='test -z "$ac_c_werror_flag"
5911                          || test ! -s conftest.err'
5912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913   (eval $ac_try) 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); }; } &&
5917          { ac_try='test -s conftest.$ac_objext'
5918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919   (eval $ac_try) 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); }; }; then
5923   ac_cv_header_term_h=yes
5924 else
5925   echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5927
5928 ac_cv_header_term_h=no
5929 fi
5930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5931 fi
5932 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5933 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5934 if test $ac_cv_header_term_h = yes; then
5935    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5936 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5937 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5938   echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940   ac_check_lib_save_LIBS=$LIBS
5941 LIBS="-lcurses  $LIBS"
5942 cat >conftest.$ac_ext <<_ACEOF
5943 /* confdefs.h.  */
5944 _ACEOF
5945 cat confdefs.h >>conftest.$ac_ext
5946 cat >>conftest.$ac_ext <<_ACEOF
5947 /* end confdefs.h.  */
5948
5949 /* Override any gcc2 internal prototype to avoid an error.  */
5950 #ifdef __cplusplus
5951 extern "C"
5952 #endif
5953 /* We use char because int might match the return type of a gcc2
5954    builtin and then its argument prototype would still apply.  */
5955 char tgetent ();
5956 int
5957 main ()
5958 {
5959 tgetent ();
5960   ;
5961   return 0;
5962 }
5963 _ACEOF
5964 rm -f conftest.$ac_objext conftest$ac_exeext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966   (eval $ac_link) 2>conftest.er1
5967   ac_status=$?
5968   grep -v '^ *+' conftest.er1 >conftest.err
5969   rm -f conftest.er1
5970   cat conftest.err >&5
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); } &&
5973          { ac_try='test -z "$ac_c_werror_flag"
5974                          || test ! -s conftest.err'
5975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976   (eval $ac_try) 2>&5
5977   ac_status=$?
5978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); }; } &&
5980          { ac_try='test -s conftest$ac_exeext'
5981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982   (eval $ac_try) 2>&5
5983   ac_status=$?
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); }; }; then
5986   ac_cv_lib_curses_tgetent=yes
5987 else
5988   echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991 ac_cv_lib_curses_tgetent=no
5992 fi
5993 rm -f conftest.err conftest.$ac_objext \
5994       conftest$ac_exeext conftest.$ac_ext
5995 LIBS=$ac_check_lib_save_LIBS
5996 fi
5997 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5998 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5999 if test $ac_cv_lib_curses_tgetent = yes; then
6000    CONS_LIBS="-lcurses"
6001                    CONS_OBJ="conio.o"
6002                    CONS_SRC="conio.c"
6003                    got_conio="yes"
6004                    support_readline=no
6005
6006 cat >>confdefs.h <<\_ACEOF
6007 #define HAVE_CONIO 1
6008 _ACEOF
6009
6010
6011 fi
6012
6013
6014 else
6015    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6016 fi
6017
6018
6019
6020 fi
6021
6022
6023 fi
6024
6025
6026 # ---------------------------------------------------
6027 # Check for readline support/directory (default off)
6028 # ---------------------------------------------------
6029 # this allows you to turn it completely off
6030 # Check whether --enable-readline or --disable-readline was given.
6031 if test "${enable_readline+set}" = set; then
6032   enableval="$enable_readline"
6033   if test x$enableval = xno; then
6034     support_readline=no
6035   fi
6036 fi;
6037
6038 got_readline="no"
6039 READLINE_SRC=
6040 if test x$support_readline = xyes; then
6041
6042 # Check whether --with-readline or --without-readline was given.
6043 if test "${with_readline+set}" = set; then
6044   withval="$with_readline"
6045
6046         case "$with_readline" in
6047         no) : ;;
6048         yes|*)
6049           if test "$with_readline" != "yes"; then
6050             CONS_INC="-I${with_readline}"
6051             CONS_LDFLAGS="-L$with_readline"
6052           else
6053              with_readline="/usr/include/readline"
6054           fi
6055           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6057   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6058 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6060   echo $ECHO_N "(cached) $ECHO_C" >&6
6061 fi
6062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6064 else
6065   # Is the header compilable?
6066 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6067 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h.  */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h.  */
6074 $ac_includes_default
6075 #include <${with_readline}/readline.h>
6076 _ACEOF
6077 rm -f conftest.$ac_objext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079   (eval $ac_compile) 2>conftest.er1
6080   ac_status=$?
6081   grep -v '^ *+' conftest.er1 >conftest.err
6082   rm -f conftest.er1
6083   cat conftest.err >&5
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); } &&
6086          { ac_try='test -z "$ac_c_werror_flag"
6087                          || test ! -s conftest.err'
6088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089   (eval $ac_try) 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); }; } &&
6093          { ac_try='test -s conftest.$ac_objext'
6094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095   (eval $ac_try) 2>&5
6096   ac_status=$?
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); }; }; then
6099   ac_header_compiler=yes
6100 else
6101   echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6103
6104 ac_header_compiler=no
6105 fi
6106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6108 echo "${ECHO_T}$ac_header_compiler" >&6
6109
6110 # Is the header present?
6111 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6112 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h.  */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h.  */
6119 #include <${with_readline}/readline.h>
6120 _ACEOF
6121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6123   ac_status=$?
6124   grep -v '^ *+' conftest.er1 >conftest.err
6125   rm -f conftest.er1
6126   cat conftest.err >&5
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); } >/dev/null; then
6129   if test -s conftest.err; then
6130     ac_cpp_err=$ac_c_preproc_warn_flag
6131     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6132   else
6133     ac_cpp_err=
6134   fi
6135 else
6136   ac_cpp_err=yes
6137 fi
6138 if test -z "$ac_cpp_err"; then
6139   ac_header_preproc=yes
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144   ac_header_preproc=no
6145 fi
6146 rm -f conftest.err conftest.$ac_ext
6147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6148 echo "${ECHO_T}$ac_header_preproc" >&6
6149
6150 # So?  What about this header?
6151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6152   yes:no: )
6153     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6154 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6155     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6156 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6157     ac_header_preproc=yes
6158     ;;
6159   no:yes:* )
6160     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6161 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6162     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6163 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6164     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6165 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6166     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6167 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6168     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6169 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6170     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6171 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6172     (
6173       cat <<\_ASBOX
6174 ## ------------------------------------------ ##
6175 ## Report this to the AC_PACKAGE_NAME lists.  ##
6176 ## ------------------------------------------ ##
6177 _ASBOX
6178     ) |
6179       sed "s/^/$as_me: WARNING:     /" >&2
6180     ;;
6181 esac
6182 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6183 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6185   echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187   eval "$as_ac_Header=\$ac_header_preproc"
6188 fi
6189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6191
6192 fi
6193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6194    cat >>confdefs.h <<\_ACEOF
6195 #define HAVE_READLINE 1
6196 _ACEOF
6197
6198                CONS_LIBS="-lreadline -ltermcap"
6199                got_readline="yes"
6200
6201 else
6202    echo " "
6203                echo "readline.h not found. readline turned off ..."
6204                echo " "
6205
6206
6207 fi
6208
6209
6210           ;;
6211         esac
6212
6213 else
6214
6215        # check for standard readline library
6216        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6217   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6218 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6219 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6220   echo $ECHO_N "(cached) $ECHO_C" >&6
6221 fi
6222 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6223 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6224 else
6225   # Is the header compilable?
6226 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6227 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h.  */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h.  */
6234 $ac_includes_default
6235 #include </usr/include/readline/readline.h>
6236 _ACEOF
6237 rm -f conftest.$ac_objext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6239   (eval $ac_compile) 2>conftest.er1
6240   ac_status=$?
6241   grep -v '^ *+' conftest.er1 >conftest.err
6242   rm -f conftest.er1
6243   cat conftest.err >&5
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); } &&
6246          { ac_try='test -z "$ac_c_werror_flag"
6247                          || test ! -s conftest.err'
6248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249   (eval $ac_try) 2>&5
6250   ac_status=$?
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); }; } &&
6253          { ac_try='test -s conftest.$ac_objext'
6254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255   (eval $ac_try) 2>&5
6256   ac_status=$?
6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258   (exit $ac_status); }; }; then
6259   ac_header_compiler=yes
6260 else
6261   echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6263
6264 ac_header_compiler=no
6265 fi
6266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6268 echo "${ECHO_T}$ac_header_compiler" >&6
6269
6270 # Is the header present?
6271 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6272 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6273 cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h.  */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h.  */
6279 #include </usr/include/readline/readline.h>
6280 _ACEOF
6281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6282   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6283   ac_status=$?
6284   grep -v '^ *+' conftest.er1 >conftest.err
6285   rm -f conftest.er1
6286   cat conftest.err >&5
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); } >/dev/null; then
6289   if test -s conftest.err; then
6290     ac_cpp_err=$ac_c_preproc_warn_flag
6291     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6292   else
6293     ac_cpp_err=
6294   fi
6295 else
6296   ac_cpp_err=yes
6297 fi
6298 if test -z "$ac_cpp_err"; then
6299   ac_header_preproc=yes
6300 else
6301   echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304   ac_header_preproc=no
6305 fi
6306 rm -f conftest.err conftest.$ac_ext
6307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6308 echo "${ECHO_T}$ac_header_preproc" >&6
6309
6310 # So?  What about this header?
6311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6312   yes:no: )
6313     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6314 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6315     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6316 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6317     ac_header_preproc=yes
6318     ;;
6319   no:yes:* )
6320     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6321 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6322     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6323 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6324     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6325 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6326     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6327 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6328     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6329 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6330     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6331 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6332     (
6333       cat <<\_ASBOX
6334 ## ------------------------------------------ ##
6335 ## Report this to the AC_PACKAGE_NAME lists.  ##
6336 ## ------------------------------------------ ##
6337 _ASBOX
6338     ) |
6339       sed "s/^/$as_me: WARNING:     /" >&2
6340     ;;
6341 esac
6342 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6343 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6344 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6348 fi
6349 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6350 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6351
6352 fi
6353 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6354    cat >>confdefs.h <<\_ACEOF
6355 #define HAVE_READLINE 1
6356 _ACEOF
6357
6358            got_readline="yes"
6359            CONS_INC="-I/usr/include/readline"
6360            CONS_LIBS="-lreadline -ltermcap"
6361
6362 else
6363
6364            # Did not find standard library, so try Bacula's default
6365             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6367   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6368 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6370   echo $ECHO_N "(cached) $ECHO_C" >&6
6371 fi
6372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6374 else
6375   # Is the header compilable?
6376 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6377 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h.  */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h.  */
6384 $ac_includes_default
6385 #include <${TOP_DIR}/depkgs/readline/readline.h>
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389   (eval $ac_compile) 2>conftest.er1
6390   ac_status=$?
6391   grep -v '^ *+' conftest.er1 >conftest.err
6392   rm -f conftest.er1
6393   cat conftest.err >&5
6394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395   (exit $ac_status); } &&
6396          { ac_try='test -z "$ac_c_werror_flag"
6397                          || test ! -s conftest.err'
6398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399   (eval $ac_try) 2>&5
6400   ac_status=$?
6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402   (exit $ac_status); }; } &&
6403          { ac_try='test -s conftest.$ac_objext'
6404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405   (eval $ac_try) 2>&5
6406   ac_status=$?
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); }; }; then
6409   ac_header_compiler=yes
6410 else
6411   echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6413
6414 ac_header_compiler=no
6415 fi
6416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6418 echo "${ECHO_T}$ac_header_compiler" >&6
6419
6420 # Is the header present?
6421 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6422 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h.  */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h.  */
6429 #include <${TOP_DIR}/depkgs/readline/readline.h>
6430 _ACEOF
6431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6433   ac_status=$?
6434   grep -v '^ *+' conftest.er1 >conftest.err
6435   rm -f conftest.er1
6436   cat conftest.err >&5
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); } >/dev/null; then
6439   if test -s conftest.err; then
6440     ac_cpp_err=$ac_c_preproc_warn_flag
6441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6442   else
6443     ac_cpp_err=
6444   fi
6445 else
6446   ac_cpp_err=yes
6447 fi
6448 if test -z "$ac_cpp_err"; then
6449   ac_header_preproc=yes
6450 else
6451   echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6453
6454   ac_header_preproc=no
6455 fi
6456 rm -f conftest.err conftest.$ac_ext
6457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6458 echo "${ECHO_T}$ac_header_preproc" >&6
6459
6460 # So?  What about this header?
6461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6462   yes:no: )
6463     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6464 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6465     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6466 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6467     ac_header_preproc=yes
6468     ;;
6469   no:yes:* )
6470     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6471 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6472     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6473 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6474     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6475 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6476     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6477 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6478     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6479 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6480     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6481 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6482     (
6483       cat <<\_ASBOX
6484 ## ------------------------------------------ ##
6485 ## Report this to the AC_PACKAGE_NAME lists.  ##
6486 ## ------------------------------------------ ##
6487 _ASBOX
6488     ) |
6489       sed "s/^/$as_me: WARNING:     /" >&2
6490     ;;
6491 esac
6492 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6493 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6495   echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497   eval "$as_ac_Header=\$ac_header_preproc"
6498 fi
6499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6501
6502 fi
6503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6504    cat >>confdefs.h <<\_ACEOF
6505 #define HAVE_READLINE 1
6506 _ACEOF
6507
6508                  got_readline="yes"
6509                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6510                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6511                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6512                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6513
6514 else
6515    echo " "
6516                 echo "readline.h not found. readline turned off ..."
6517                 echo " "
6518
6519
6520 fi
6521
6522
6523
6524
6525 fi
6526
6527
6528
6529
6530 fi;
6531 fi
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542 # Minimal stuff for readline Makefile configuration
6543 MAKE_SHELL=/bin/sh
6544
6545 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6546 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6547 if test "${ac_cv_header_stat_broken+set}" = set; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550   cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h.  */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h.  */
6556 #include <sys/types.h>
6557 #include <sys/stat.h>
6558
6559 #if defined(S_ISBLK) && defined(S_IFDIR)
6560 # if S_ISBLK (S_IFDIR)
6561 You lose.
6562 # endif
6563 #endif
6564
6565 #if defined(S_ISBLK) && defined(S_IFCHR)
6566 # if S_ISBLK (S_IFCHR)
6567 You lose.
6568 # endif
6569 #endif
6570
6571 #if defined(S_ISLNK) && defined(S_IFREG)
6572 # if S_ISLNK (S_IFREG)
6573 You lose.
6574 # endif
6575 #endif
6576
6577 #if defined(S_ISSOCK) && defined(S_IFREG)
6578 # if S_ISSOCK (S_IFREG)
6579 You lose.
6580 # endif
6581 #endif
6582
6583 _ACEOF
6584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6585   $EGREP "You lose" >/dev/null 2>&1; then
6586   ac_cv_header_stat_broken=yes
6587 else
6588   ac_cv_header_stat_broken=no
6589 fi
6590 rm -f conftest*
6591
6592 fi
6593 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6594 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6595 if test $ac_cv_header_stat_broken = yes; then
6596
6597 cat >>confdefs.h <<\_ACEOF
6598 #define STAT_MACROS_BROKEN 1
6599 _ACEOF
6600
6601 fi
6602
6603
6604
6605
6606
6607
6608 ac_header_dirent=no
6609 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6610   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6611 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6612 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6614   echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616   cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h.  */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h.  */
6622 #include <sys/types.h>
6623 #include <$ac_hdr>
6624
6625 int
6626 main ()
6627 {
6628 if ((DIR *) 0)
6629 return 0;
6630   ;
6631   return 0;
6632 }
6633 _ACEOF
6634 rm -f conftest.$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636   (eval $ac_compile) 2>conftest.er1
6637   ac_status=$?
6638   grep -v '^ *+' conftest.er1 >conftest.err
6639   rm -f conftest.er1
6640   cat conftest.err >&5
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); } &&
6643          { ac_try='test -z "$ac_c_werror_flag"
6644                          || test ! -s conftest.err'
6645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646   (eval $ac_try) 2>&5
6647   ac_status=$?
6648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); }; } &&
6650          { ac_try='test -s conftest.$ac_objext'
6651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652   (eval $ac_try) 2>&5
6653   ac_status=$?
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); }; }; then
6656   eval "$as_ac_Header=yes"
6657 else
6658   echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 eval "$as_ac_Header=no"
6662 fi
6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6664 fi
6665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6668   cat >>confdefs.h <<_ACEOF
6669 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6670 _ACEOF
6671
6672 ac_header_dirent=$ac_hdr; break
6673 fi
6674
6675 done
6676 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6677 if test $ac_header_dirent = dirent.h; then
6678   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6679 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6680 if test "${ac_cv_search_opendir+set}" = set; then
6681   echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683   ac_func_search_save_LIBS=$LIBS
6684 ac_cv_search_opendir=no
6685 cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h.  */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h.  */
6691
6692 /* Override any gcc2 internal prototype to avoid an error.  */
6693 #ifdef __cplusplus
6694 extern "C"
6695 #endif
6696 /* We use char because int might match the return type of a gcc2
6697    builtin and then its argument prototype would still apply.  */
6698 char opendir ();
6699 int
6700 main ()
6701 {
6702 opendir ();
6703   ;
6704   return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6709   (eval $ac_link) 2>conftest.er1
6710   ac_status=$?
6711   grep -v '^ *+' conftest.er1 >conftest.err
6712   rm -f conftest.er1
6713   cat conftest.err >&5
6714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715   (exit $ac_status); } &&
6716          { ac_try='test -z "$ac_c_werror_flag"
6717                          || test ! -s conftest.err'
6718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719   (eval $ac_try) 2>&5
6720   ac_status=$?
6721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722   (exit $ac_status); }; } &&
6723          { ac_try='test -s conftest$ac_exeext'
6724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725   (eval $ac_try) 2>&5
6726   ac_status=$?
6727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728   (exit $ac_status); }; }; then
6729   ac_cv_search_opendir="none required"
6730 else
6731   echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6733
6734 fi
6735 rm -f conftest.err conftest.$ac_objext \
6736       conftest$ac_exeext conftest.$ac_ext
6737 if test "$ac_cv_search_opendir" = no; then
6738   for ac_lib in dir; do
6739     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6740     cat >conftest.$ac_ext <<_ACEOF
6741 /* confdefs.h.  */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h.  */
6746
6747 /* Override any gcc2 internal prototype to avoid an error.  */
6748 #ifdef __cplusplus
6749 extern "C"
6750 #endif
6751 /* We use char because int might match the return type of a gcc2
6752    builtin and then its argument prototype would still apply.  */
6753 char opendir ();
6754 int
6755 main ()
6756 {
6757 opendir ();
6758   ;
6759   return 0;
6760 }
6761 _ACEOF
6762 rm -f conftest.$ac_objext conftest$ac_exeext
6763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6764   (eval $ac_link) 2>conftest.er1
6765   ac_status=$?
6766   grep -v '^ *+' conftest.er1 >conftest.err
6767   rm -f conftest.er1
6768   cat conftest.err >&5
6769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770   (exit $ac_status); } &&
6771          { ac_try='test -z "$ac_c_werror_flag"
6772                          || test ! -s conftest.err'
6773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774   (eval $ac_try) 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); }; } &&
6778          { ac_try='test -s conftest$ac_exeext'
6779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780   (eval $ac_try) 2>&5
6781   ac_status=$?
6782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783   (exit $ac_status); }; }; then
6784   ac_cv_search_opendir="-l$ac_lib"
6785 break
6786 else
6787   echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6789
6790 fi
6791 rm -f conftest.err conftest.$ac_objext \
6792       conftest$ac_exeext conftest.$ac_ext
6793   done
6794 fi
6795 LIBS=$ac_func_search_save_LIBS
6796 fi
6797 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6798 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6799 if test "$ac_cv_search_opendir" != no; then
6800   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6801
6802 fi
6803
6804 else
6805   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6806 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6807 if test "${ac_cv_search_opendir+set}" = set; then
6808   echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810   ac_func_search_save_LIBS=$LIBS
6811 ac_cv_search_opendir=no
6812 cat >conftest.$ac_ext <<_ACEOF
6813 /* confdefs.h.  */
6814 _ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h.  */
6818
6819 /* Override any gcc2 internal prototype to avoid an error.  */
6820 #ifdef __cplusplus
6821 extern "C"
6822 #endif
6823 /* We use char because int might match the return type of a gcc2
6824    builtin and then its argument prototype would still apply.  */
6825 char opendir ();
6826 int
6827 main ()
6828 {
6829 opendir ();
6830   ;
6831   return 0;
6832 }
6833 _ACEOF
6834 rm -f conftest.$ac_objext conftest$ac_exeext
6835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6836   (eval $ac_link) 2>conftest.er1
6837   ac_status=$?
6838   grep -v '^ *+' conftest.er1 >conftest.err
6839   rm -f conftest.er1
6840   cat conftest.err >&5
6841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842   (exit $ac_status); } &&
6843          { ac_try='test -z "$ac_c_werror_flag"
6844                          || test ! -s conftest.err'
6845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846   (eval $ac_try) 2>&5
6847   ac_status=$?
6848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849   (exit $ac_status); }; } &&
6850          { ac_try='test -s conftest$ac_exeext'
6851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852   (eval $ac_try) 2>&5
6853   ac_status=$?
6854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855   (exit $ac_status); }; }; then
6856   ac_cv_search_opendir="none required"
6857 else
6858   echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6860
6861 fi
6862 rm -f conftest.err conftest.$ac_objext \
6863       conftest$ac_exeext conftest.$ac_ext
6864 if test "$ac_cv_search_opendir" = no; then
6865   for ac_lib in x; do
6866     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6867     cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h.  */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h.  */
6873
6874 /* Override any gcc2 internal prototype to avoid an error.  */
6875 #ifdef __cplusplus
6876 extern "C"
6877 #endif
6878 /* We use char because int might match the return type of a gcc2
6879    builtin and then its argument prototype would still apply.  */
6880 char opendir ();
6881 int
6882 main ()
6883 {
6884 opendir ();
6885   ;
6886   return 0;
6887 }
6888 _ACEOF
6889 rm -f conftest.$ac_objext conftest$ac_exeext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6891   (eval $ac_link) 2>conftest.er1
6892   ac_status=$?
6893   grep -v '^ *+' conftest.er1 >conftest.err
6894   rm -f conftest.er1
6895   cat conftest.err >&5
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); } &&
6898          { ac_try='test -z "$ac_c_werror_flag"
6899                          || test ! -s conftest.err'
6900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901   (eval $ac_try) 2>&5
6902   ac_status=$?
6903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904   (exit $ac_status); }; } &&
6905          { ac_try='test -s conftest$ac_exeext'
6906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907   (eval $ac_try) 2>&5
6908   ac_status=$?
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); }; }; then
6911   ac_cv_search_opendir="-l$ac_lib"
6912 break
6913 else
6914   echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917 fi
6918 rm -f conftest.err conftest.$ac_objext \
6919       conftest$ac_exeext conftest.$ac_ext
6920   done
6921 fi
6922 LIBS=$ac_func_search_save_LIBS
6923 fi
6924 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6925 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6926 if test "$ac_cv_search_opendir" != no; then
6927   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6928
6929 fi
6930
6931 fi
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6942 do
6943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6944 echo "$as_me:$LINENO: checking for $ac_func" >&5
6945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6946 if eval "test \"\${$as_ac_var+set}\" = set"; then
6947   echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949   cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h.  */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h.  */
6955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6957 #define $ac_func innocuous_$ac_func
6958
6959 /* System header to define __stub macros and hopefully few prototypes,
6960     which can conflict with char $ac_func (); below.
6961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6962     <limits.h> exists even on freestanding compilers.  */
6963
6964 #ifdef __STDC__
6965 # include <limits.h>
6966 #else
6967 # include <assert.h>
6968 #endif
6969
6970 #undef $ac_func
6971
6972 /* Override any gcc2 internal prototype to avoid an error.  */
6973 #ifdef __cplusplus
6974 extern "C"
6975 {
6976 #endif
6977 /* We use char because int might match the return type of a gcc2
6978    builtin and then its argument prototype would still apply.  */
6979 char $ac_func ();
6980 /* The GNU C library defines this for functions which it implements
6981     to always fail with ENOSYS.  Some functions are actually named
6982     something starting with __ and the normal name is an alias.  */
6983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6984 choke me
6985 #else
6986 char (*f) () = $ac_func;
6987 #endif
6988 #ifdef __cplusplus
6989 }
6990 #endif
6991
6992 int
6993 main ()
6994 {
6995 return f != $ac_func;
6996   ;
6997   return 0;
6998 }
6999 _ACEOF
7000 rm -f conftest.$ac_objext conftest$ac_exeext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7002   (eval $ac_link) 2>conftest.er1
7003   ac_status=$?
7004   grep -v '^ *+' conftest.er1 >conftest.err
7005   rm -f conftest.er1
7006   cat conftest.err >&5
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); } &&
7009          { ac_try='test -z "$ac_c_werror_flag"
7010                          || test ! -s conftest.err'
7011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012   (eval $ac_try) 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); }; } &&
7016          { ac_try='test -s conftest$ac_exeext'
7017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018   (eval $ac_try) 2>&5
7019   ac_status=$?
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); }; }; then
7022   eval "$as_ac_var=yes"
7023 else
7024   echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7026
7027 eval "$as_ac_var=no"
7028 fi
7029 rm -f conftest.err conftest.$ac_objext \
7030       conftest$ac_exeext conftest.$ac_ext
7031 fi
7032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7034 if test `eval echo '${'$as_ac_var'}'` = yes; then
7035   cat >>confdefs.h <<_ACEOF
7036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7037 _ACEOF
7038
7039 fi
7040 done
7041
7042
7043
7044 for ac_func in nanosleep nl_langinfo
7045 do
7046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7047 echo "$as_me:$LINENO: checking for $ac_func" >&5
7048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7049 if eval "test \"\${$as_ac_var+set}\" = set"; then
7050   echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052   cat >conftest.$ac_ext <<_ACEOF
7053 /* confdefs.h.  */
7054 _ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h.  */
7058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7060 #define $ac_func innocuous_$ac_func
7061
7062 /* System header to define __stub macros and hopefully few prototypes,
7063     which can conflict with char $ac_func (); below.
7064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7065     <limits.h> exists even on freestanding compilers.  */
7066
7067 #ifdef __STDC__
7068 # include <limits.h>
7069 #else
7070 # include <assert.h>
7071 #endif
7072
7073 #undef $ac_func
7074
7075 /* Override any gcc2 internal prototype to avoid an error.  */
7076 #ifdef __cplusplus
7077 extern "C"
7078 {
7079 #endif
7080 /* We use char because int might match the return type of a gcc2
7081    builtin and then its argument prototype would still apply.  */
7082 char $ac_func ();
7083 /* The GNU C library defines this for functions which it implements
7084     to always fail with ENOSYS.  Some functions are actually named
7085     something starting with __ and the normal name is an alias.  */
7086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7087 choke me
7088 #else
7089 char (*f) () = $ac_func;
7090 #endif
7091 #ifdef __cplusplus
7092 }
7093 #endif
7094
7095 int
7096 main ()
7097 {
7098 return f != $ac_func;
7099   ;
7100   return 0;
7101 }
7102 _ACEOF
7103 rm -f conftest.$ac_objext conftest$ac_exeext
7104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7105   (eval $ac_link) 2>conftest.er1
7106   ac_status=$?
7107   grep -v '^ *+' conftest.er1 >conftest.err
7108   rm -f conftest.er1
7109   cat conftest.err >&5
7110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111   (exit $ac_status); } &&
7112          { ac_try='test -z "$ac_c_werror_flag"
7113                          || test ! -s conftest.err'
7114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115   (eval $ac_try) 2>&5
7116   ac_status=$?
7117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118   (exit $ac_status); }; } &&
7119          { ac_try='test -s conftest$ac_exeext'
7120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121   (eval $ac_try) 2>&5
7122   ac_status=$?
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); }; }; then
7125   eval "$as_ac_var=yes"
7126 else
7127   echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 eval "$as_ac_var=no"
7131 fi
7132 rm -f conftest.err conftest.$ac_objext \
7133       conftest$ac_exeext conftest.$ac_ext
7134 fi
7135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7137 if test `eval echo '${'$as_ac_var'}'` = yes; then
7138   cat >>confdefs.h <<_ACEOF
7139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7140 _ACEOF
7141
7142 fi
7143 done
7144
7145
7146 for ac_header in varargs.h
7147 do
7148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7150   echo "$as_me:$LINENO: checking for $ac_header" >&5
7151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7153   echo $ECHO_N "(cached) $ECHO_C" >&6
7154 fi
7155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7157 else
7158   # Is the header compilable?
7159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7161 cat >conftest.$ac_ext <<_ACEOF
7162 /* confdefs.h.  */
7163 _ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h.  */
7167 $ac_includes_default
7168 #include <$ac_header>
7169 _ACEOF
7170 rm -f conftest.$ac_objext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7172   (eval $ac_compile) 2>conftest.er1
7173   ac_status=$?
7174   grep -v '^ *+' conftest.er1 >conftest.err
7175   rm -f conftest.er1
7176   cat conftest.err >&5
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); } &&
7179          { ac_try='test -z "$ac_c_werror_flag"
7180                          || test ! -s conftest.err'
7181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182   (eval $ac_try) 2>&5
7183   ac_status=$?
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); }; } &&
7186          { ac_try='test -s conftest.$ac_objext'
7187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188   (eval $ac_try) 2>&5
7189   ac_status=$?
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); }; }; then
7192   ac_header_compiler=yes
7193 else
7194   echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7196
7197 ac_header_compiler=no
7198 fi
7199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7201 echo "${ECHO_T}$ac_header_compiler" >&6
7202
7203 # Is the header present?
7204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7206 cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h.  */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h.  */
7212 #include <$ac_header>
7213 _ACEOF
7214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7215   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7216   ac_status=$?
7217   grep -v '^ *+' conftest.er1 >conftest.err
7218   rm -f conftest.er1
7219   cat conftest.err >&5
7220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221   (exit $ac_status); } >/dev/null; then
7222   if test -s conftest.err; then
7223     ac_cpp_err=$ac_c_preproc_warn_flag
7224     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7225   else
7226     ac_cpp_err=
7227   fi
7228 else
7229   ac_cpp_err=yes
7230 fi
7231 if test -z "$ac_cpp_err"; then
7232   ac_header_preproc=yes
7233 else
7234   echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7236
7237   ac_header_preproc=no
7238 fi
7239 rm -f conftest.err conftest.$ac_ext
7240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7241 echo "${ECHO_T}$ac_header_preproc" >&6
7242
7243 # So?  What about this header?
7244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7245   yes:no: )
7246     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7250     ac_header_preproc=yes
7251     ;;
7252   no:yes:* )
7253     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7255     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7256 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7257     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7259     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7260 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7263     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7265     (
7266       cat <<\_ASBOX
7267 ## ------------------------------------------ ##
7268 ## Report this to the AC_PACKAGE_NAME lists.  ##
7269 ## ------------------------------------------ ##
7270 _ASBOX
7271     ) |
7272       sed "s/^/$as_me: WARNING:     /" >&2
7273     ;;
7274 esac
7275 echo "$as_me:$LINENO: checking for $ac_header" >&5
7276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7278   echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280   eval "$as_ac_Header=\$ac_header_preproc"
7281 fi
7282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7284
7285 fi
7286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7287   cat >>confdefs.h <<_ACEOF
7288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7289 _ACEOF
7290
7291 fi
7292
7293 done
7294
7295
7296 # End of readline/conio stuff
7297 # -----------------------------------------------------------------------
7298
7299 # -------------------------------------------
7300 # check for cdrecord writer location
7301 # get scsibus,target,lun
7302 # -------------------------------------------
7303 CDSTL="3,0,0"
7304 if test ! x$CDRECORD = x ; then
7305    CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
7306    if test x${CDSTL} = x ; then
7307       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
7308    fi
7309    if test x${CDSTL} = x ; then
7310       CDSTL="3,0,0"
7311    fi
7312 fi
7313
7314
7315
7316 # ---------------------------------------------------
7317 # Check for GMP support/directory
7318 # ---------------------------------------------------
7319 #GMP_SRC=
7320 #local_gmp="no"
7321 #AC_ARG_WITH(gmp,
7322 #  [  --with-gmp[=DIR]   Specify gmp library directory],
7323 #  [
7324 #     case "$with_gmp" in
7325 #     no) : ;;
7326 #     yes|*)
7327 #       if test "$with_gmp" != "yes"; then
7328 #         GMP_INC="-I$with_gmp"
7329 #         GMP_LIBS="-lgmp"
7330 #         GMP_LDFLAGS="-L$with_gmp"
7331 #       else
7332 #          with_gmp="/usr/include"
7333 #       fi
7334 #       AC_CHECK_HEADER($with_gmp/gmp.h,
7335 #          [ AC_MSG_RESULT(yes)
7336 #            AC_DEFINE(HAVE_GMP)
7337 #            GMP_LIBS="-lgmp"
7338 #            got_gmp="yes"
7339 #          ],
7340 #          [ AC_MSG_ERROR([*** gmp library missing])
7341 #          ]
7342 #       )
7343 #       ;;
7344 #     esac
7345 #  ],[
7346 #    # check for standard gmp library
7347 #    AC_CHECK_HEADER(/usr/include/gmp.h,
7348 #    [ AC_MSG_RESULT(yes)
7349 #      AC_DEFINE(HAVE_GMP)
7350 #      got_gmp="yes"
7351 #      GMP_INC=
7352 #      GMP_LIBS="-lgmp"
7353 #    ], [
7354 #      # Did not find standard library, so use our own
7355 #      AC_MSG_RESULT(yes)
7356 #      AC_DEFINE(HAVE_GMP)
7357 #      got_gmp="yes"
7358 #      local_gmp="yes"
7359 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
7360 #      GMP_LIBS="-lgmp"
7361 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
7362 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
7363 #    ])
7364 #  ]
7365 #)
7366 #AC_SUBST(GMP_INC)
7367 #AC_SUBST(GMP_LIBS)
7368 #AC_SUBST(GMP_LDFLAGS)
7369 #AC_SUBST(GMP_SRC)
7370
7371 # End of GMP stuff
7372 # -----------------------------------------------------------------------
7373
7374
7375 # ---------------------------------------------------
7376 # Check for CWEB support/directory
7377 # ---------------------------------------------------
7378 #CWEB_SRC=
7379 #CWEB=/bin
7380 #local_cweb="no"
7381 #AC_ARG_WITH(cweb,
7382 #  [  --with-cweb[=DIR]   Specify cweb library directory],
7383 #  [
7384 #     case "$with_cweb" in
7385 #     no) : ;;
7386 #     yes|*)
7387 #       if test "$with_cweb" != "yes"; then
7388 #         CWEB_INC="-I$with_cweb"
7389 #         CWEB_LIBS="-lcweb"
7390 #         CWEB_LDFLAGS="-L$with_cweb"
7391 #       else
7392 #          with_cweb="/usr/include"
7393 #       fi
7394 #       AC_CHECK_HEADER($with_cweb/cweb.h,
7395 #          [ AC_MSG_RESULT(yes)
7396 #            AC_DEFINE(HAVE_CWEB)
7397 #            CWEB_LIBS="-lcweb"
7398 #            got_cweb="yes"
7399 #          ],
7400 #          [ AC_MSG_ERROR([*** cweb library missing])
7401 #          ]
7402 #       )
7403 #       ;;
7404 #     esac
7405 #  ],[
7406 #    # check for standard cweb library
7407 #    AC_CHECK_HEADER(/usr/include/cweb.h,
7408 #    [ AC_MSG_RESULT(yes)
7409 #      AC_DEFINE(HAVE_CWEB)
7410 #      got_cweb="yes"
7411 #      CWEB_INC=
7412 #      CWEB_LIBS="-lcweb"
7413 #    ], [
7414 #      # Did not find starndard library, so use our own
7415 #      AC_MSG_RESULT(yes)
7416 #      AC_DEFINE(HAVE_CWEB)
7417 #      got_cweb="yes"
7418 #      local_cweb="yes"
7419 #      CWEB=${TOP_DIR}/depkgs/cweb
7420 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7421 #      CWEB_LIBS="-lcweb"
7422 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7423 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7424 #    ])
7425 #  ]
7426 #)
7427 #AC_SUBST(CWEB)
7428 #AC_SUBST(CWEB_INC)
7429 #AC_SUBST(CWEB_LIBS)
7430 #AC_SUBST(CWEB_LDFLAGS)
7431 #AC_SUBST(CWEB_SRC)
7432
7433 # End of CWEB stuff
7434 # -----------------------------------------------------------------------
7435
7436 #
7437 # Find where sockets are (especially for Solaris)
7438 # Do this before the TCP Wrappers test since tcp wrappers
7439 # uses the socket library and some linkers are stupid.
7440 #
7441 echo "$as_me:$LINENO: checking for socket" >&5
7442 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7443 if test "${ac_cv_func_socket+set}" = set; then
7444   echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446   cat >conftest.$ac_ext <<_ACEOF
7447 /* confdefs.h.  */
7448 _ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h.  */
7452 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7454 #define socket innocuous_socket
7455
7456 /* System header to define __stub macros and hopefully few prototypes,
7457     which can conflict with char socket (); below.
7458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7459     <limits.h> exists even on freestanding compilers.  */
7460
7461 #ifdef __STDC__
7462 # include <limits.h>
7463 #else
7464 # include <assert.h>
7465 #endif
7466
7467 #undef socket
7468
7469 /* Override any gcc2 internal prototype to avoid an error.  */
7470 #ifdef __cplusplus
7471 extern "C"
7472 {
7473 #endif
7474 /* We use char because int might match the return type of a gcc2
7475    builtin and then its argument prototype would still apply.  */
7476 char socket ();
7477 /* The GNU C library defines this for functions which it implements
7478     to always fail with ENOSYS.  Some functions are actually named
7479     something starting with __ and the normal name is an alias.  */
7480 #if defined (__stub_socket) || defined (__stub___socket)
7481 choke me
7482 #else
7483 char (*f) () = socket;
7484 #endif
7485 #ifdef __cplusplus
7486 }
7487 #endif
7488
7489 int
7490 main ()
7491 {
7492 return f != socket;
7493   ;
7494   return 0;
7495 }
7496 _ACEOF
7497 rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7499   (eval $ac_link) 2>conftest.er1
7500   ac_status=$?
7501   grep -v '^ *+' conftest.er1 >conftest.err
7502   rm -f conftest.er1
7503   cat conftest.err >&5
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); } &&
7506          { ac_try='test -z "$ac_c_werror_flag"
7507                          || test ! -s conftest.err'
7508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509   (eval $ac_try) 2>&5
7510   ac_status=$?
7511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512   (exit $ac_status); }; } &&
7513          { ac_try='test -s conftest$ac_exeext'
7514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515   (eval $ac_try) 2>&5
7516   ac_status=$?
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); }; }; then
7519   ac_cv_func_socket=yes
7520 else
7521   echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7523
7524 ac_cv_func_socket=no
7525 fi
7526 rm -f conftest.err conftest.$ac_objext \
7527       conftest$ac_exeext conftest.$ac_ext
7528 fi
7529 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7530 echo "${ECHO_T}$ac_cv_func_socket" >&6
7531 if test $ac_cv_func_socket = yes; then
7532   echo "$as_me:$LINENO: result: using libc's socket" >&5
7533 echo "${ECHO_T}using libc's socket" >&6
7534 else
7535
7536 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7537 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7538 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7539   echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541   ac_check_lib_save_LIBS=$LIBS
7542 LIBS="-lxnet  $LIBS"
7543 cat >conftest.$ac_ext <<_ACEOF
7544 /* confdefs.h.  */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h.  */
7549
7550 /* Override any gcc2 internal prototype to avoid an error.  */
7551 #ifdef __cplusplus
7552 extern "C"
7553 #endif
7554 /* We use char because int might match the return type of a gcc2
7555    builtin and then its argument prototype would still apply.  */
7556 char socket ();
7557 int
7558 main ()
7559 {
7560 socket ();
7561   ;
7562   return 0;
7563 }
7564 _ACEOF
7565 rm -f conftest.$ac_objext conftest$ac_exeext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7567   (eval $ac_link) 2>conftest.er1
7568   ac_status=$?
7569   grep -v '^ *+' conftest.er1 >conftest.err
7570   rm -f conftest.er1
7571   cat conftest.err >&5
7572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573   (exit $ac_status); } &&
7574          { ac_try='test -z "$ac_c_werror_flag"
7575                          || test ! -s conftest.err'
7576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577   (eval $ac_try) 2>&5
7578   ac_status=$?
7579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); }; } &&
7581          { ac_try='test -s conftest$ac_exeext'
7582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583   (eval $ac_try) 2>&5
7584   ac_status=$?
7585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586   (exit $ac_status); }; }; then
7587   ac_cv_lib_xnet_socket=yes
7588 else
7589   echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7591
7592 ac_cv_lib_xnet_socket=no
7593 fi
7594 rm -f conftest.err conftest.$ac_objext \
7595       conftest$ac_exeext conftest.$ac_ext
7596 LIBS=$ac_check_lib_save_LIBS
7597 fi
7598 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7599 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7600 if test $ac_cv_lib_xnet_socket = yes; then
7601   cat >>confdefs.h <<_ACEOF
7602 #define HAVE_LIBXNET 1
7603 _ACEOF
7604
7605   LIBS="-lxnet $LIBS"
7606
7607 fi
7608
7609
7610 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7611 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7612 if test "${ac_cv_lib_socket_socket+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   ac_check_lib_save_LIBS=$LIBS
7616 LIBS="-lsocket  $LIBS"
7617 cat >conftest.$ac_ext <<_ACEOF
7618 /* confdefs.h.  */
7619 _ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h.  */
7623
7624 /* Override any gcc2 internal prototype to avoid an error.  */
7625 #ifdef __cplusplus
7626 extern "C"
7627 #endif
7628 /* We use char because int might match the return type of a gcc2
7629    builtin and then its argument prototype would still apply.  */
7630 char socket ();
7631 int
7632 main ()
7633 {
7634 socket ();
7635   ;
7636   return 0;
7637 }
7638 _ACEOF
7639 rm -f conftest.$ac_objext conftest$ac_exeext
7640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7641   (eval $ac_link) 2>conftest.er1
7642   ac_status=$?
7643   grep -v '^ *+' conftest.er1 >conftest.err
7644   rm -f conftest.er1
7645   cat conftest.err >&5
7646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647   (exit $ac_status); } &&
7648          { ac_try='test -z "$ac_c_werror_flag"
7649                          || test ! -s conftest.err'
7650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651   (eval $ac_try) 2>&5
7652   ac_status=$?
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); }; } &&
7655          { ac_try='test -s conftest$ac_exeext'
7656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657   (eval $ac_try) 2>&5
7658   ac_status=$?
7659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660   (exit $ac_status); }; }; then
7661   ac_cv_lib_socket_socket=yes
7662 else
7663   echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7665
7666 ac_cv_lib_socket_socket=no
7667 fi
7668 rm -f conftest.err conftest.$ac_objext \
7669       conftest$ac_exeext conftest.$ac_ext
7670 LIBS=$ac_check_lib_save_LIBS
7671 fi
7672 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7673 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7674 if test $ac_cv_lib_socket_socket = yes; then
7675   cat >>confdefs.h <<_ACEOF
7676 #define HAVE_LIBSOCKET 1
7677 _ACEOF
7678
7679   LIBS="-lsocket $LIBS"
7680
7681 fi
7682
7683
7684 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7685 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7686 if test "${ac_cv_lib_inet_socket+set}" = set; then
7687   echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689   ac_check_lib_save_LIBS=$LIBS
7690 LIBS="-linet  $LIBS"
7691 cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h.  */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h.  */
7697
7698 /* Override any gcc2 internal prototype to avoid an error.  */
7699 #ifdef __cplusplus
7700 extern "C"
7701 #endif
7702 /* We use char because int might match the return type of a gcc2
7703    builtin and then its argument prototype would still apply.  */
7704 char socket ();
7705 int
7706 main ()
7707 {
7708 socket ();
7709   ;
7710   return 0;
7711 }
7712 _ACEOF
7713 rm -f conftest.$ac_objext conftest$ac_exeext
7714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7715   (eval $ac_link) 2>conftest.er1
7716   ac_status=$?
7717   grep -v '^ *+' conftest.er1 >conftest.err
7718   rm -f conftest.er1
7719   cat conftest.err >&5
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); } &&
7722          { ac_try='test -z "$ac_c_werror_flag"
7723                          || test ! -s conftest.err'
7724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725   (eval $ac_try) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); }; } &&
7729          { ac_try='test -s conftest$ac_exeext'
7730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731   (eval $ac_try) 2>&5
7732   ac_status=$?
7733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734   (exit $ac_status); }; }; then
7735   ac_cv_lib_inet_socket=yes
7736 else
7737   echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7739
7740 ac_cv_lib_inet_socket=no
7741 fi
7742 rm -f conftest.err conftest.$ac_objext \
7743       conftest$ac_exeext conftest.$ac_ext
7744 LIBS=$ac_check_lib_save_LIBS
7745 fi
7746 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7747 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7748 if test $ac_cv_lib_inet_socket = yes; then
7749   cat >>confdefs.h <<_ACEOF
7750 #define HAVE_LIBINET 1
7751 _ACEOF
7752
7753   LIBS="-linet $LIBS"
7754
7755 fi
7756
7757 fi
7758
7759
7760
7761 # -----------------------------------------------------------
7762 # Check whether user wants TCP wrappers support (default off)
7763 # -----------------------------------------------------------
7764 TCPW_MSG="no"
7765
7766 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7767 if test "${with_tcp_wrappers+set}" = set; then
7768   withval="$with_tcp_wrappers"
7769
7770     if test "x$withval" != "xno" ; then
7771        saved_LIBS="$LIBS"
7772        LIBS="$saved_LIBS -lwrap"
7773        echo "$as_me:$LINENO: checking for libwrap" >&5
7774 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7775        cat >conftest.$ac_ext <<_ACEOF
7776 /* confdefs.h.  */
7777 _ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h.  */
7781  #include <tcpd.h>
7782              int deny_severity = 0;
7783              int allow_severity = 0;
7784              struct request_info *req;
7785 int
7786 main ()
7787 {
7788  hosts_access(req);
7789   ;
7790   return 0;
7791 }
7792 _ACEOF
7793 rm -f conftest.$ac_objext conftest$ac_exeext
7794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7795   (eval $ac_link) 2>conftest.er1
7796   ac_status=$?
7797   grep -v '^ *+' conftest.er1 >conftest.err
7798   rm -f conftest.er1
7799   cat conftest.err >&5
7800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801   (exit $ac_status); } &&
7802          { ac_try='test -z "$ac_c_werror_flag"
7803                          || test ! -s conftest.err'
7804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805   (eval $ac_try) 2>&5
7806   ac_status=$?
7807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808   (exit $ac_status); }; } &&
7809          { ac_try='test -s conftest$ac_exeext'
7810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811   (eval $ac_try) 2>&5
7812   ac_status=$?
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); }; }; then
7815
7816             echo "$as_me:$LINENO: result: yes" >&5
7817 echo "${ECHO_T}yes" >&6
7818             cat >>confdefs.h <<\_ACEOF
7819 #define HAVE_LIBWRAP 1
7820 _ACEOF
7821
7822             TCPW_MSG="yes"
7823
7824 else
7825   echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7827
7828
7829             LIBS="$saved_LIBS -lwrap -lnsl"
7830             cat >conftest.$ac_ext <<_ACEOF
7831 /* confdefs.h.  */
7832 _ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h.  */
7836  #include <tcpd.h>
7837                  int deny_severity = 0;
7838                  int allow_severity = 0;
7839                  struct request_info *req;
7840 int
7841 main ()
7842 {
7843  hosts_access(req);
7844   ;
7845   return 0;
7846 }
7847 _ACEOF
7848 rm -f conftest.$ac_objext conftest$ac_exeext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7850   (eval $ac_link) 2>conftest.er1
7851   ac_status=$?
7852   grep -v '^ *+' conftest.er1 >conftest.err
7853   rm -f conftest.er1
7854   cat conftest.err >&5
7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); } &&
7857          { ac_try='test -z "$ac_c_werror_flag"
7858                          || test ! -s conftest.err'
7859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860   (eval $ac_try) 2>&5
7861   ac_status=$?
7862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863   (exit $ac_status); }; } &&
7864          { ac_try='test -s conftest$ac_exeext'
7865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866   (eval $ac_try) 2>&5
7867   ac_status=$?
7868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); }; }; then
7870
7871                  echo "$as_me:$LINENO: result: yes" >&5
7872 echo "${ECHO_T}yes" >&6
7873                  cat >>confdefs.h <<\_ACEOF
7874 #define HAVE_LIBWRAP 1
7875 _ACEOF
7876
7877                  TCPW_MSG="yes"
7878
7879 else
7880   echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7882
7883 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7884 echo "$as_me: error: *** libwrap missing" >&2;}
7885    { (exit 1); exit 1; }; }
7886
7887 fi
7888 rm -f conftest.err conftest.$ac_objext \
7889       conftest$ac_exeext conftest.$ac_ext
7890
7891 fi
7892 rm -f conftest.err conftest.$ac_objext \
7893       conftest$ac_exeext conftest.$ac_ext
7894     fi
7895
7896
7897 fi;
7898
7899 # ------------------------------------------
7900 # Where to place working dir
7901 # ------------------------------------------
7902 working_dir=`eval echo ${prefix}/var/bacula/working`
7903
7904 # Check whether --with-working-dir or --without-working-dir was given.
7905 if test "${with_working_dir+set}" = set; then
7906   withval="$with_working_dir"
7907
7908        if test "x$withval" != "xno" ; then
7909               working_dir=$withval
7910        fi
7911
7912
7913 fi;
7914
7915
7916
7917
7918 # ------------------------------------------
7919 # Where to place scriptdir (script files)
7920 # ------------------------------------------
7921 scriptdir=`eval echo ${sysconfdir}`
7922
7923 # Check whether --with-scriptdir or --without-scriptdir was given.
7924 if test "${with_scriptdir+set}" = set; then
7925   withval="$with_scriptdir"
7926
7927        if test "x$withval" != "xno" ; then
7928               scriptdir=$withval
7929        fi
7930
7931
7932 fi;
7933
7934
7935
7936
7937 # ------------------------------------------
7938 # Where to send dump email
7939 # ------------------------------------------
7940 dump_email=root@localhost
7941
7942 # Check whether --with-dump-email or --without-dump-email was given.
7943 if test "${with_dump_email+set}" = set; then
7944   withval="$with_dump_email"
7945
7946        if test "x$withval" != "xno" ; then
7947               dump_email=$withval
7948        fi
7949
7950
7951 fi;
7952
7953
7954
7955 # ------------------------------------------
7956 # Where to send job email
7957 # ------------------------------------------
7958 job_email=root@localhost
7959
7960 # Check whether --with-job-email or --without-job-email was given.
7961 if test "${with_job_email+set}" = set; then
7962   withval="$with_job_email"
7963
7964        if test "x$withval" != "xno" ; then
7965               job_email=$withval
7966        fi
7967
7968
7969 fi;
7970
7971
7972
7973 # ------------------------------------------
7974 # Where to find smtp host
7975 # ------------------------------------------
7976 smtp_host=localhost
7977
7978 # Check whether --with-smtp_host or --without-smtp_host was given.
7979 if test "${with_smtp_host+set}" = set; then
7980   withval="$with_smtp_host"
7981
7982        if test "x$withval" != "xno" ; then
7983               smtp_host=$withval
7984        fi
7985
7986
7987 fi;
7988
7989
7990
7991
7992 # ------------------------------------
7993 # Where to place pid files
7994 # ------------------------------------
7995 piddir=/var/run
7996
7997 # Check whether --with-pid-dir or --without-pid-dir was given.
7998 if test "${with_pid_dir+set}" = set; then
7999   withval="$with_pid_dir"
8000
8001         if test "x$withval" != "xno" ; then
8002             piddir=$withval
8003         fi
8004
8005
8006 fi;
8007
8008 cat >>confdefs.h <<_ACEOF
8009 #define _PATH_BACULA_PIDDIR "$piddir"
8010 _ACEOF
8011
8012
8013
8014
8015 # ------------------------------------
8016 # Where to place subsys "lock file"
8017 # ------------------------------------
8018 subsysdir=/var/run/subsys
8019
8020 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8021 if test "${with_subsys_dir+set}" = set; then
8022   withval="$with_subsys_dir"
8023
8024         if test "x$withval" != "xno" ; then
8025             subsysdir=$withval
8026         fi
8027
8028
8029 fi;
8030
8031
8032
8033
8034
8035 # ------------------------------------
8036 # Where to start assigning ports
8037 # ------------------------------------
8038 baseport=9101
8039
8040 # Check whether --with-baseport or --without-baseport was given.
8041 if test "${with_baseport+set}" = set; then
8042   withval="$with_baseport"
8043
8044         if test "x$withval" != "xno" ; then
8045              baseport=$withval
8046         fi
8047
8048
8049 fi;
8050
8051
8052 dir_port=`expr $baseport`
8053 fd_port=`expr $baseport + 1`
8054 sd_port=`expr $fd_port + 1`
8055
8056
8057
8058
8059
8060
8061 # ------------------------------------------
8062 # Generate passwords
8063 # ------------------------------------------
8064 dir_password=
8065
8066 # Check whether --with-dir-password or --without-dir-password was given.
8067 if test "${with_dir_password+set}" = set; then
8068   withval="$with_dir_password"
8069
8070        if test "x$withval" != "xno" ; then
8071            dir_password=$withval
8072        fi
8073
8074
8075 fi;
8076
8077 if test "x$dir_password" = "x" ; then
8078    if test "x$OPENSSL" = "xnone" ; then
8079 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8080       key=`autoconf/randpass 33`
8081    else
8082       key=`openssl rand -base64 33`
8083    fi
8084    dir_password=$key
8085 fi
8086
8087 fd_password=
8088
8089 # Check whether --with-fd-password or --without-fd-password was given.
8090 if test "${with_fd_password+set}" = set; then
8091   withval="$with_fd_password"
8092
8093        if test "x$withval" != "xno" ; then
8094            fd_password=$withval
8095        fi
8096
8097
8098 fi;
8099
8100 if test "x$fd_password" = "x" ; then
8101    if test "x$OPENSSL" = "xnone" ; then
8102 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8103       key=`autoconf/randpass 37`
8104    else
8105       key=`openssl rand -base64 33`
8106    fi
8107    fd_password=$key
8108 fi
8109
8110 sd_password=
8111
8112 # Check whether --with-sd-password or --without-sd-password was given.
8113 if test "${with_sd_password+set}" = set; then
8114   withval="$with_sd_password"
8115
8116        if test "x$withval" != "xno" ; then
8117            sd_password=$withval
8118        fi
8119
8120
8121 fi;
8122
8123 if test "x$sd_password" = "x" ; then
8124    if test "x$OPENSSL" = "xnone" ; then
8125 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8126       key=`autoconf/randpass 41`
8127    else
8128       key=`openssl rand -base64 33`
8129    fi
8130    sd_password=$key
8131 fi
8132
8133 mon_dir_password=
8134
8135 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8136 if test "${with_mon_dir_password+set}" = set; then
8137   withval="$with_mon_dir_password"
8138
8139        if test "x$withval" != "xno" ; then
8140            mon_dir_password=$withval
8141        fi
8142
8143
8144 fi;
8145
8146 if test "x$mon_dir_password" = "x" ; then
8147    if test "x$OPENSSL" = "xnone" ; then
8148 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8149       key=`autoconf/randpass 33`
8150    else
8151       key=`openssl rand -base64 33`
8152    fi
8153    mon_dir_password=$key
8154 fi
8155
8156 mon_fd_password=
8157
8158 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8159 if test "${with_mon_fd_password+set}" = set; then
8160   withval="$with_mon_fd_password"
8161
8162        if test "x$withval" != "xno" ; then
8163            mon_fd_password=$withval
8164        fi
8165
8166
8167 fi;
8168
8169 if test "x$mon_fd_password" = "x" ; then
8170    if test "x$OPENSSL" = "xnone" ; then
8171 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8172       key=`autoconf/randpass 37`
8173    else
8174       key=`openssl rand -base64 33`
8175    fi
8176    mon_fd_password=$key
8177 fi
8178
8179 mon_sd_password=
8180
8181 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8182 if test "${with_mon_sd_password+set}" = set; then
8183   withval="$with_mon_sd_password"
8184
8185        if test "x$withval" != "xno" ; then
8186            mon_sd_password=$withval
8187        fi
8188
8189
8190 fi;
8191
8192 if test "x$mon_sd_password" = "x" ; then
8193    if test "x$OPENSSL" = "xnone" ; then
8194 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8195       key=`autoconf/randpass 41`
8196    else
8197       key=`openssl rand -base64 33`
8198    fi
8199    mon_sd_password=$key
8200 fi
8201
8202
8203
8204
8205
8206
8207
8208
8209 # -------------------------------------------------------------------------
8210 #  Set variables for bimagemgr installation
8211 # -------------------------------------------------------------------------
8212 bimagemgr_cgidir=/var/www/cgi-bin
8213
8214 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8215 if test "${with_bimagemgr_cgidir+set}" = set; then
8216   withval="$with_bimagemgr_cgidir"
8217
8218        if test "x$withval" != "xno" ; then
8219            bimagemgr_cgidir=$withval
8220        fi
8221
8222
8223 fi;
8224
8225 bimagemgr_docdir=/var/www/html
8226
8227 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8228 if test "${with_bimagemgr_docdir+set}" = set; then
8229   withval="$with_bimagemgr_docdir"
8230
8231        if test "x$withval" != "xno" ; then
8232            bimagemgr_docdir=$withval
8233        fi
8234
8235
8236 fi;
8237
8238 bimagemgr_binowner=root
8239
8240 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8241 if test "${with_bimagemgr_binowner+set}" = set; then
8242   withval="$with_bimagemgr_binowner"
8243
8244        if test "x$withval" != "xno" ; then
8245            bimagemgr_binowner=$withval
8246        fi
8247
8248
8249 fi;
8250
8251 bimagemgr_bingroup=root
8252
8253 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8254 if test "${with_bimagemgr_bingroup+set}" = set; then
8255   withval="$with_bimagemgr_bingroup"
8256
8257        if test "x$withval" != "xno" ; then
8258            bimagemgr_bingroup=$withval
8259        fi
8260
8261
8262 fi;
8263
8264 bimagemgr_dataowner=apache
8265
8266 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8267 if test "${with_bimagemgr_dataowner+set}" = set; then
8268   withval="$with_bimagemgr_dataowner"
8269
8270        if test "x$withval" != "xno" ; then
8271            bimagemgr_dataowner=$withval
8272        fi
8273
8274
8275 fi;
8276
8277 bimagemgr_datagroup=apache
8278
8279 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8280 if test "${with_bimagemgr_datagroup+set}" = set; then
8281   withval="$with_bimagemgr_datagroup"
8282
8283        if test "x$withval" != "xno" ; then
8284            bimagemgr_datagroup=$withval
8285        fi
8286
8287
8288 fi;
8289
8290
8291
8292
8293
8294
8295
8296
8297 #
8298 # Handle users and groups for each daemon
8299 #
8300 dir_user=
8301
8302 # Check whether --with-dir_user or --without-dir_user was given.
8303 if test "${with_dir_user+set}" = set; then
8304   withval="$with_dir_user"
8305
8306         if test "x$withval" != "x" ; then
8307              dir_user=$withval
8308         fi
8309
8310
8311 fi;
8312
8313 dir_group=
8314
8315 # Check whether --with-dir_group or --without-dir_group was given.
8316 if test "${with_dir_group+set}" = set; then
8317   withval="$with_dir_group"
8318
8319         if test "x$withval" != "x" ; then
8320              dir_group=$withval
8321         fi
8322
8323
8324 fi;
8325
8326 sd_user=
8327
8328 # Check whether --with-sd_user or --without-sd_user was given.
8329 if test "${with_sd_user+set}" = set; then
8330   withval="$with_sd_user"
8331
8332         if test "x$withval" != "x" ; then
8333              sd_user=$withval
8334         fi
8335
8336
8337 fi;
8338
8339 sd_group=
8340
8341 # Check whether --with-sd_group or --without-sd_group was given.
8342 if test "${with_sd_group+set}" = set; then
8343   withval="$with_sd_group"
8344
8345         if test "x$withval" != "x" ; then
8346              sd_group=$withval
8347         fi
8348
8349
8350 fi;
8351
8352 fd_user=
8353
8354 # Check whether --with-fd_user or --without-fd_user was given.
8355 if test "${with_fd_user+set}" = set; then
8356   withval="$with_fd_user"
8357
8358         if test "x$withval" != "x" ; then
8359              fd_user=$withval
8360         fi
8361
8362
8363 fi;
8364
8365 fd_group=
8366
8367 # Check whether --with-fd_group or --without-fd_group was given.
8368 if test "${with_fd_group+set}" = set; then
8369   withval="$with_fd_group"
8370
8371         if test "x$withval" != "x" ; then
8372              fd_group=$withval
8373         fi
8374
8375
8376 fi;
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388 #
8389 # allow setting default executable permissions
8390 #
8391 SBINPERM=0754
8392
8393 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8394 if test "${with_sbin_perm+set}" = set; then
8395   withval="$with_sbin_perm"
8396
8397         if test "x$withval" != "x" ; then
8398             SBINPERM=$withval
8399         fi
8400
8401
8402 fi;
8403
8404
8405
8406 # ------------------------------------------------
8407 # Bacula check for various SQL database engines
8408 # ------------------------------------------------
8409
8410 db_found=no
8411 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8412 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8413
8414 # Check whether --with-postgresql or --without-postgresql was given.
8415 if test "${with_postgresql+set}" = set; then
8416   withval="$with_postgresql"
8417
8418   if test "$withval" != "no"; then
8419       if test "$db_found" = "yes"; then
8420           echo "$as_me:$LINENO: result: error" >&5
8421 echo "${ECHO_T}error" >&6
8422           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8423 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8424    { (exit 1); exit 1; }; };
8425       fi
8426       if test "$withval" = "yes"; then
8427           if test -f /usr/local/include/libpq-fe.h; then
8428               POSTGRESQL_INCDIR=/usr/local/include
8429               POSTGRESQL_LIBDIR=/usr/local/lib
8430               POSTGRESQL_BINDIR=/usr/local/bin
8431           elif test -f /usr/include/libpq-fe.h; then
8432               POSTGRESQL_INCDIR=/usr/include
8433               POSTGRESQL_LIBDIR=/usr/lib
8434               POSTGRESQL_BINDIR=/usr/bin
8435           elif test -f /usr/include/pgsql/libpq-fe.h; then
8436               POSTGRESQL_INCDIR=/usr/include/pgsql
8437               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8438               POSTGRESQL_BINDIR=/usr/bin
8439           elif test -f /usr/include/postgresql/libpq-fe.h; then
8440               POSTGRESQL_INCDIR=/usr/include/postgresql
8441               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8442               POSTGRESQL_BINDIR=/usr/bin
8443           else
8444               echo "$as_me:$LINENO: result: no" >&5
8445 echo "${ECHO_T}no" >&6
8446               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8447 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8448    { (exit 1); exit 1; }; }
8449           fi
8450       elif test -f $withval/include/libpq-fe.h; then
8451           POSTGRESQL_INCDIR=$withval/include
8452           POSTGRESQL_LIBDIR=$withval/lib
8453           POSTGRESQL_BINDIR=$withval/bin
8454       elif test -f $withval/include/postgresql/libpq-fe.h; then
8455           POSTGRESQL_INCDIR=$withval/include/postgresql
8456           POSTGRESQL_LIBDIR=$withval/lib
8457           POSTGRESQL_BINDIR=$withval/bin
8458       else
8459           echo "$as_me:$LINENO: result: no" >&5
8460 echo "${ECHO_T}no" >&6
8461           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8462 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8463    { (exit 1); exit 1; }; }
8464       fi
8465       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8466       echo "$as_me:$LINENO: checking for crypt" >&5
8467 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8468 if test "${ac_cv_func_crypt+set}" = set; then
8469   echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471   cat >conftest.$ac_ext <<_ACEOF
8472 /* confdefs.h.  */
8473 _ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h.  */
8477 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8479 #define crypt innocuous_crypt
8480
8481 /* System header to define __stub macros and hopefully few prototypes,
8482     which can conflict with char crypt (); below.
8483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8484     <limits.h> exists even on freestanding compilers.  */
8485
8486 #ifdef __STDC__
8487 # include <limits.h>
8488 #else
8489 # include <assert.h>
8490 #endif
8491
8492 #undef crypt
8493
8494 /* Override any gcc2 internal prototype to avoid an error.  */
8495 #ifdef __cplusplus
8496 extern "C"
8497 {
8498 #endif
8499 /* We use char because int might match the return type of a gcc2
8500    builtin and then its argument prototype would still apply.  */
8501 char crypt ();
8502 /* The GNU C library defines this for functions which it implements
8503     to always fail with ENOSYS.  Some functions are actually named
8504     something starting with __ and the normal name is an alias.  */
8505 #if defined (__stub_crypt) || defined (__stub___crypt)
8506 choke me
8507 #else
8508 char (*f) () = crypt;
8509 #endif
8510 #ifdef __cplusplus
8511 }
8512 #endif
8513
8514 int
8515 main ()
8516 {
8517 return f != crypt;
8518   ;
8519   return 0;
8520 }
8521 _ACEOF
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524   (eval $ac_link) 2>conftest.er1
8525   ac_status=$?
8526   grep -v '^ *+' conftest.er1 >conftest.err
8527   rm -f conftest.er1
8528   cat conftest.err >&5
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); } &&
8531          { ac_try='test -z "$ac_c_werror_flag"
8532                          || test ! -s conftest.err'
8533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534   (eval $ac_try) 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; } &&
8538          { ac_try='test -s conftest$ac_exeext'
8539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540   (eval $ac_try) 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); }; }; then
8544   ac_cv_func_crypt=yes
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 ac_cv_func_crypt=no
8550 fi
8551 rm -f conftest.err conftest.$ac_objext \
8552       conftest$ac_exeext conftest.$ac_ext
8553 fi
8554 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8555 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8556 if test $ac_cv_func_crypt = yes; then
8557   :
8558 else
8559   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8560 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8561 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8562   echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564   ac_check_lib_save_LIBS=$LIBS
8565 LIBS="-lcrypt  $LIBS"
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h.  */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h.  */
8572
8573 /* Override any gcc2 internal prototype to avoid an error.  */
8574 #ifdef __cplusplus
8575 extern "C"
8576 #endif
8577 /* We use char because int might match the return type of a gcc2
8578    builtin and then its argument prototype would still apply.  */
8579 char crypt ();
8580 int
8581 main ()
8582 {
8583 crypt ();
8584   ;
8585   return 0;
8586 }
8587 _ACEOF
8588 rm -f conftest.$ac_objext conftest$ac_exeext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8590   (eval $ac_link) 2>conftest.er1
8591   ac_status=$?
8592   grep -v '^ *+' conftest.er1 >conftest.err
8593   rm -f conftest.er1
8594   cat conftest.err >&5
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); } &&
8597          { ac_try='test -z "$ac_c_werror_flag"
8598                          || test ! -s conftest.err'
8599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600   (eval $ac_try) 2>&5
8601   ac_status=$?
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); }; } &&
8604          { ac_try='test -s conftest$ac_exeext'
8605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606   (eval $ac_try) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); }; }; then
8610   ac_cv_lib_crypt_crypt=yes
8611 else
8612   echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8614
8615 ac_cv_lib_crypt_crypt=no
8616 fi
8617 rm -f conftest.err conftest.$ac_objext \
8618       conftest$ac_exeext conftest.$ac_ext
8619 LIBS=$ac_check_lib_save_LIBS
8620 fi
8621 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8622 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8623 if test $ac_cv_lib_crypt_crypt = yes; then
8624   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8625 fi
8626
8627 fi
8628
8629       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8630       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8631       SQL_BINDIR=$POSTGRESQL_BINDIR
8632       cat >>confdefs.h <<\_ACEOF
8633 #define HAVE_POSTGRESQL 1
8634 _ACEOF
8635
8636       echo "$as_me:$LINENO: result: yes" >&5
8637 echo "${ECHO_T}yes" >&6
8638       db_found=yes
8639       support_postgresql=yes
8640       db_name=PostgreSQL
8641       DB_NAME=postgresql
8642   else
8643       echo "$as_me:$LINENO: result: no" >&5
8644 echo "${ECHO_T}no" >&6
8645   fi
8646
8647 else
8648
8649   echo "$as_me:$LINENO: result: no" >&5
8650 echo "${ECHO_T}no" >&6
8651
8652 fi;
8653
8654
8655
8656
8657
8658
8659
8660 db_found=no
8661 echo "$as_me:$LINENO: checking for MySQL support" >&5
8662 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8663
8664 # Check whether --with-mysql or --without-mysql was given.
8665 if test "${with_mysql+set}" = set; then
8666   withval="$with_mysql"
8667
8668   if test "$withval" != "no"; then
8669         if test "$withval" = "yes"; then
8670                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8671                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8672                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8673                         MYSQL_BINDIR=/usr/local/mysql/bin
8674                 elif test -f /usr/include/mysql/mysql.h; then
8675                         MYSQL_INCDIR=/usr/include/mysql
8676                         MYSQL_LIBDIR=/usr/lib/mysql
8677                         MYSQL_BINDIR=/usr/bin
8678                 elif test -f /usr/include/mysql.h; then
8679                         MYSQL_INCDIR=/usr/include
8680                         MYSQL_LIBDIR=/usr/lib
8681                         MYSQL_BINDIR=/usr/bin
8682                 elif test -f /usr/local/include/mysql/mysql.h; then
8683                         MYSQL_INCDIR=/usr/local/include/mysql
8684                         MYSQL_LIBDIR=/usr/local/lib/mysql
8685                         MYSQL_BINDIR=/usr/local/bin
8686                 elif test -f /usr/local/include/mysql.h; then
8687                         MYSQL_INCDIR=/usr/local/include
8688                         MYSQL_LIBDIR=/usr/local/lib
8689                         MYSQL_BINDIR=/usr/local/bin
8690                 else
8691                    echo "$as_me:$LINENO: result: no" >&5
8692 echo "${ECHO_T}no" >&6
8693                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8694 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8695    { (exit 1); exit 1; }; }
8696                 fi
8697         else
8698                 if test -f $withval/include/mysql/mysql.h; then
8699                         MYSQL_INCDIR=$withval/include/mysql
8700                         MYSQL_LIBDIR=$withval/lib/mysql
8701                         MYSQL_BINDIR=$withval/bin
8702                 elif test -f $withval/include/mysql.h; then
8703                         MYSQL_INCDIR=$withval/include
8704                         MYSQL_LIBDIR=$withval/lib
8705                         MYSQL_BINDIR=$withval/bin
8706                 else
8707                    echo "$as_me:$LINENO: result: no" >&5
8708 echo "${ECHO_T}no" >&6
8709                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8710 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8711    { (exit 1); exit 1; }; }
8712                 fi
8713         fi
8714     SQL_INCLUDE=-I$MYSQL_INCDIR
8715     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8716        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8717        cat >>confdefs.h <<\_ACEOF
8718 #define HAVE_THREAD_SAFE_MYSQL 1
8719 _ACEOF
8720
8721     else
8722        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8723     fi
8724     SQL_BINDIR=$MYSQL_BINDIR
8725
8726     cat >>confdefs.h <<\_ACEOF
8727 #define HAVE_MYSQL 1
8728 _ACEOF
8729
8730     echo "$as_me:$LINENO: result: yes" >&5
8731 echo "${ECHO_T}yes" >&6
8732     db_found=yes
8733     support_mysql=yes
8734     db_name=MySQL
8735     DB_NAME=mysql
8736
8737   else
8738         echo "$as_me:$LINENO: result: no" >&5
8739 echo "${ECHO_T}no" >&6
8740   fi
8741
8742
8743 fi;
8744
8745
8746 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8747 if test "${with_embedded_mysql+set}" = set; then
8748   withval="$with_embedded_mysql"
8749
8750   if test "$withval" != "no"; then
8751         if test "$withval" = "yes"; then
8752                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8753                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8754                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8755                         MYSQL_BINDIR=/usr/local/mysql/bin
8756                 elif test -f /usr/include/mysql/mysql.h; then
8757                         MYSQL_INCDIR=/usr/include/mysql
8758                         MYSQL_LIBDIR=/usr/lib/mysql
8759                         MYSQL_BINDIR=/usr/bin
8760                 elif test -f /usr/include/mysql.h; then
8761                         MYSQL_INCDIR=/usr/include
8762                         MYSQL_LIBDIR=/usr/lib
8763                         MYSQL_BINDIR=/usr/bin
8764                 elif test -f /usr/local/include/mysql/mysql.h; then
8765                         MYSQL_INCDIR=/usr/local/include/mysql
8766                         MYSQL_LIBDIR=/usr/local/lib/mysql
8767                         MYSQL_BINDIR=/usr/local/bin
8768                 elif test -f /usr/local/include/mysql.h; then
8769                         MYSQL_INCDIR=/usr/local/include
8770                         MYSQL_LIBDIR=/usr/local/lib
8771                         MYSQL_BINDIR=/usr/local/bin
8772                 else
8773                    echo "$as_me:$LINENO: result: no" >&5
8774 echo "${ECHO_T}no" >&6
8775                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8776 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8777    { (exit 1); exit 1; }; }
8778                 fi
8779         else
8780                 if test -f $withval/include/mysql/mysql.h; then
8781                         MYSQL_INCDIR=$withval/include/mysql
8782                         MYSQL_LIBDIR=$withval/lib/mysql
8783                         MYSQL_BINDIR=$withval/bin
8784                 elif test -f $withval/include/mysql.h; then
8785                         MYSQL_INCDIR=$withval/include
8786                         MYSQL_LIBDIR=$withval/lib
8787                         MYSQL_BINDIR=$withval/bin
8788                 else
8789                    echo "$as_me:$LINENO: result: no" >&5
8790 echo "${ECHO_T}no" >&6
8791                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8792 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8793    { (exit 1); exit 1; }; }
8794                 fi
8795         fi
8796     SQL_INCLUDE=-I$MYSQL_INCDIR
8797     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8798     SQL_BINDIR=$MYSQL_BINDIR
8799
8800     cat >>confdefs.h <<\_ACEOF
8801 #define HAVE_MYSQL 1
8802 _ACEOF
8803
8804     cat >>confdefs.h <<\_ACEOF
8805 #define HAVE_EMBEDDED_MYSQL 1
8806 _ACEOF
8807
8808     echo "$as_me:$LINENO: result: yes" >&5
8809 echo "${ECHO_T}yes" >&6
8810     db_found=yes
8811     support_mysql=yes
8812     db_name=MySQL
8813     DB_NAME=mysql
8814
8815   else
8816         echo "$as_me:$LINENO: result: no" >&5
8817 echo "${ECHO_T}no" >&6
8818   fi
8819
8820
8821 fi;
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831 db_found=no
8832 echo "$as_me:$LINENO: checking for SQLite support" >&5
8833 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8834
8835 # Check whether --with-sqlite or --without-sqlite was given.
8836 if test "${with_sqlite+set}" = set; then
8837   withval="$with_sqlite"
8838
8839   if test "$withval" != "no"; then
8840      if test "$withval" = "yes"; then
8841         if test -f /usr/local/include/sqlite.h; then
8842            SQLITE_INCDIR=/usr/local/include
8843            SQLITE_LIBDIR=/usr/local/lib
8844            SQLITE_BINDIR=/usr/local/bin
8845         elif test -f /usr/include/sqlite.h; then
8846            SQLITE_INCDIR=/usr/include
8847            SQLITE_LIBDIR=/usr/lib
8848            SQLITE_BINDIR=/usr/bin
8849         elif test -f $prefix/include/sqlite.h; then
8850            SQLITE_INCDIR=$prefix/include
8851            SQLITE_LIBDIR=$prefix/lib
8852            SQLITE_BINDIR=$prefix/bin
8853         else
8854            echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6
8856            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8857 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8858    { (exit 1); exit 1; }; }
8859         fi
8860      else
8861         if test -f $withval/sqlite.h; then
8862            SQLITE_INCDIR=$withval
8863            SQLITE_LIBDIR=$withval
8864            SQLITE_BINDIR=$withval
8865         elif test -f $withval/include/sqlite.h; then
8866            SQLITE_INCDIR=$withval/include
8867            SQLITE_LIBDIR=$withval/lib
8868            SQLITE_BINDIR=$withval/bin
8869         else
8870            echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6
8872            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8873 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8874    { (exit 1); exit 1; }; }
8875         fi
8876      fi
8877      SQL_INCLUDE=-I$SQLITE_INCDIR
8878      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8879      SQL_BINDIR=$SQLITE_BINDIR
8880
8881      cat >>confdefs.h <<\_ACEOF
8882 #define HAVE_SQLITE 1
8883 _ACEOF
8884
8885      echo "$as_me:$LINENO: result: yes" >&5
8886 echo "${ECHO_T}yes" >&6
8887      db_found=yes
8888      support_sqlite=yes
8889      db_name=SQLite
8890      DB_NAME=sqlite
8891
8892   else
8893      echo "$as_me:$LINENO: result: no" >&5
8894 echo "${ECHO_T}no" >&6
8895   fi
8896
8897 else
8898
8899   echo "$as_me:$LINENO: result: no" >&5
8900 echo "${ECHO_T}no" >&6
8901
8902 fi;
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912 cat >>confdefs.h <<\_ACEOF
8913 #define PROTOTYPES 1
8914 _ACEOF
8915
8916
8917 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8918     if test -z "$CCOPTS"; then
8919         CCOPTS='-g -O2 -Wall'
8920     fi
8921     CFLAGS="$CCOPTS"
8922 fi
8923
8924
8925
8926
8927 largefile_support="no"
8928
8929    # Check whether --enable-largefile or --disable-largefile was given.
8930 if test "${enable_largefile+set}" = set; then
8931   enableval="$enable_largefile"
8932
8933 fi;
8934    if test "$enable_largefile" != no; then
8935      if test -n "$ac_tool_prefix"; then
8936   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8937 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8938 echo "$as_me:$LINENO: checking for $ac_word" >&5
8939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8940 if test "${ac_cv_prog_GETCONF+set}" = set; then
8941   echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943   if test -n "$GETCONF"; then
8944   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8945 else
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947 for as_dir in $PATH
8948 do
8949   IFS=$as_save_IFS
8950   test -z "$as_dir" && as_dir=.
8951   for ac_exec_ext in '' $ac_executable_extensions; do
8952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8953     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8955     break 2
8956   fi
8957 done
8958 done
8959
8960 fi
8961 fi
8962 GETCONF=$ac_cv_prog_GETCONF
8963 if test -n "$GETCONF"; then
8964   echo "$as_me:$LINENO: result: $GETCONF" >&5
8965 echo "${ECHO_T}$GETCONF" >&6
8966 else
8967   echo "$as_me:$LINENO: result: no" >&5
8968 echo "${ECHO_T}no" >&6
8969 fi
8970
8971 fi
8972 if test -z "$ac_cv_prog_GETCONF"; then
8973   ac_ct_GETCONF=$GETCONF
8974   # Extract the first word of "getconf", so it can be a program name with args.
8975 set dummy getconf; ac_word=$2
8976 echo "$as_me:$LINENO: checking for $ac_word" >&5
8977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8978 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8979   echo $ECHO_N "(cached) $ECHO_C" >&6
8980 else
8981   if test -n "$ac_ct_GETCONF"; then
8982   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8983 else
8984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8985 for as_dir in $PATH
8986 do
8987   IFS=$as_save_IFS
8988   test -z "$as_dir" && as_dir=.
8989   for ac_exec_ext in '' $ac_executable_extensions; do
8990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8991     ac_cv_prog_ac_ct_GETCONF="getconf"
8992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8993     break 2
8994   fi
8995 done
8996 done
8997
8998 fi
8999 fi
9000 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9001 if test -n "$ac_ct_GETCONF"; then
9002   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9003 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9004 else
9005   echo "$as_me:$LINENO: result: no" >&5
9006 echo "${ECHO_T}no" >&6
9007 fi
9008
9009   GETCONF=$ac_ct_GETCONF
9010 else
9011   GETCONF="$ac_cv_prog_GETCONF"
9012 fi
9013
9014      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9015 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9016 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9017   echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9020         ac_cv_sys_largefile_CFLAGS=no
9021         case "$host_os" in
9022            # IRIX 6.2 and later require cc -n32.
9023            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9024              if test "$GCC" != yes; then
9025                ac_cv_sys_largefile_CFLAGS=-n32
9026              fi
9027              ac_save_CC="$CC"
9028              CC="$CC $ac_cv_sys_largefile_CFLAGS"
9029              cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h.  */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h.  */
9035
9036 int
9037 main ()
9038 {
9039
9040   ;
9041   return 0;
9042 }
9043 _ACEOF
9044 rm -f conftest.$ac_objext conftest$ac_exeext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9046   (eval $ac_link) 2>conftest.er1
9047   ac_status=$?
9048   grep -v '^ *+' conftest.er1 >conftest.err
9049   rm -f conftest.er1
9050   cat conftest.err >&5
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); } &&
9053          { ac_try='test -z "$ac_c_werror_flag"
9054                          || test ! -s conftest.err'
9055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056   (eval $ac_try) 2>&5
9057   ac_status=$?
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); }; } &&
9060          { ac_try='test -s conftest$ac_exeext'
9061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062   (eval $ac_try) 2>&5
9063   ac_status=$?
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); }; }; then
9066   :
9067 else
9068   echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9070
9071 ac_cv_sys_largefile_CFLAGS=no
9072 fi
9073 rm -f conftest.err conftest.$ac_objext \
9074       conftest$ac_exeext conftest.$ac_ext
9075              CC="$ac_save_CC"
9076            esac
9077       }
9078 fi
9079 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9080 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9081      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9082 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9083 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9084   echo $ECHO_N "(cached) $ECHO_C" >&6
9085 else
9086   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9087         ac_cv_sys_largefile_LDFLAGS=no
9088
9089       }
9090 fi
9091 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9092 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9093      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9094 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9095 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9096   echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9099         ac_cv_sys_largefile_LIBS=no
9100
9101       }
9102 fi
9103 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9104 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9105
9106      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9107        case "$ac_flag" in
9108        no) ;;
9109        -D_FILE_OFFSET_BITS=*) ;;
9110        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9111        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9112        -D?* | -I?*)
9113          case "$ac_flag" in
9114    no) ;;
9115    ?*)
9116      case "$CPPFLAGS" in
9117      '') CPPFLAGS="$ac_flag" ;;
9118      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9119      esac ;;
9120    esac ;;
9121        *)
9122          case "$ac_flag" in
9123    no) ;;
9124    ?*)
9125      case "$CFLAGS" in
9126      '') CFLAGS="$ac_flag" ;;
9127      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9128      esac ;;
9129    esac ;;
9130        esac
9131      done
9132      case "$ac_cv_sys_largefile_LDFLAGS" in
9133    no) ;;
9134    ?*)
9135      case "$LDFLAGS" in
9136      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9137      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9138      esac ;;
9139    esac
9140      case "$ac_cv_sys_largefile_LIBS" in
9141    no) ;;
9142    ?*)
9143      case "$LIBS" in
9144      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9145      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9146      esac ;;
9147    esac
9148      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9149 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9150 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9151   echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153   ac_cv_sys_file_offset_bits=no
9154       ac_cv_sys_file_offset_bits=64
9155       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9156         case "$ac_flag" in
9157         -D_FILE_OFFSET_BITS)
9158           ac_cv_sys_file_offset_bits=1 ;;
9159         -D_FILE_OFFSET_BITS=*)
9160           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9161         esac
9162       done
9163
9164 fi
9165 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9166 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9167    if test "$ac_cv_sys_file_offset_bits" != no; then
9168
9169 cat >>confdefs.h <<_ACEOF
9170 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9171 _ACEOF
9172
9173    fi
9174      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9175 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9176 if test "${ac_cv_sys_largefile_source+set}" = set; then
9177   echo $ECHO_N "(cached) $ECHO_C" >&6
9178 else
9179   ac_cv_sys_largefile_source=no
9180       ac_cv_sys_largefile_source=1
9181       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9182         case "$ac_flag" in
9183         -D_LARGEFILE_SOURCE)
9184           ac_cv_sys_largefile_source=1 ;;
9185         -D_LARGEFILE_SOURCE=*)
9186           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9187         esac
9188       done
9189
9190 fi
9191 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9192 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9193    if test "$ac_cv_sys_largefile_source" != no; then
9194
9195 cat >>confdefs.h <<_ACEOF
9196 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9197 _ACEOF
9198
9199    fi
9200      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9201 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9202 if test "${ac_cv_sys_large_files+set}" = set; then
9203   echo $ECHO_N "(cached) $ECHO_C" >&6
9204 else
9205   ac_cv_sys_large_files=no
9206       ac_cv_sys_large_files=1
9207       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9208         case "$ac_flag" in
9209         -D_LARGE_FILES)
9210           ac_cv_sys_large_files=1 ;;
9211         -D_LARGE_FILES=*)
9212           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9213         esac
9214       done
9215
9216 fi
9217 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9218 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9219    if test "$ac_cv_sys_large_files" != no; then
9220
9221 cat >>confdefs.h <<_ACEOF
9222 #define _LARGE_FILES $ac_cv_sys_large_files
9223 _ACEOF
9224
9225    fi
9226    fi
9227
9228
9229
9230 echo "$as_me:$LINENO: checking for X" >&5
9231 echo $ECHO_N "checking for X... $ECHO_C" >&6
9232
9233
9234 # Check whether --with-x or --without-x was given.
9235 if test "${with_x+set}" = set; then
9236   withval="$with_x"
9237
9238 fi;
9239 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9240 if test "x$with_x" = xno; then
9241   # The user explicitly disabled X.
9242   have_x=disabled
9243 else
9244   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9245     # Both variables are already set.
9246     have_x=yes
9247   else
9248     if test "${ac_cv_have_x+set}" = set; then
9249   echo $ECHO_N "(cached) $ECHO_C" >&6
9250 else
9251   # One or both of the vars are not set, and there is no cached value.
9252 ac_x_includes=no ac_x_libraries=no
9253 rm -fr conftest.dir
9254 if mkdir conftest.dir; then
9255   cd conftest.dir
9256   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9257   cat >Imakefile <<'_ACEOF'
9258 acfindx:
9259         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9260 _ACEOF
9261   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9262     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9263     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9264     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9265     for ac_extension in a so sl; do
9266       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9267          test -f $ac_im_libdir/libX11.$ac_extension; then
9268         ac_im_usrlibdir=$ac_im_libdir; break
9269       fi
9270     done
9271     # Screen out bogus values from the imake configuration.  They are
9272     # bogus both because they are the default anyway, and because
9273     # using them would break gcc on systems where it needs fixed includes.
9274     case $ac_im_incroot in
9275         /usr/include) ;;
9276         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9277     esac
9278     case $ac_im_usrlibdir in
9279         /usr/lib | /lib) ;;
9280         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9281     esac
9282   fi
9283   cd ..
9284   rm -fr conftest.dir
9285 fi
9286
9287 # Standard set of common directories for X headers.
9288 # Check X11 before X11Rn because it is often a symlink to the current release.
9289 ac_x_header_dirs='
9290 /usr/X11/include
9291 /usr/X11R6/include
9292 /usr/X11R5/include
9293 /usr/X11R4/include
9294
9295 /usr/include/X11
9296 /usr/include/X11R6
9297 /usr/include/X11R5
9298 /usr/include/X11R4
9299
9300 /usr/local/X11/include
9301 /usr/local/X11R6/include
9302 /usr/local/X11R5/include
9303 /usr/local/X11R4/include
9304
9305 /usr/local/include/X11
9306 /usr/local/include/X11R6
9307 /usr/local/include/X11R5
9308 /usr/local/include/X11R4
9309
9310 /usr/X386/include
9311 /usr/x386/include
9312 /usr/XFree86/include/X11
9313
9314 /usr/include
9315 /usr/local/include
9316 /usr/unsupported/include
9317 /usr/athena/include
9318 /usr/local/x11r5/include
9319 /usr/lpp/Xamples/include
9320
9321 /usr/openwin/include
9322 /usr/openwin/share/include'
9323
9324 if test "$ac_x_includes" = no; then
9325   # Guess where to find include files, by looking for Intrinsic.h.
9326   # First, try using that file with no special directory specified.
9327   cat >conftest.$ac_ext <<_ACEOF
9328 /* confdefs.h.  */
9329 _ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h.  */
9333 #include <X11/Intrinsic.h>
9334 _ACEOF
9335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9336   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9337   ac_status=$?
9338   grep -v '^ *+' conftest.er1 >conftest.err
9339   rm -f conftest.er1
9340   cat conftest.err >&5
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); } >/dev/null; then
9343   if test -s conftest.err; then
9344     ac_cpp_err=$ac_c_preproc_warn_flag
9345     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9346   else
9347     ac_cpp_err=
9348   fi
9349 else
9350   ac_cpp_err=yes
9351 fi
9352 if test -z "$ac_cpp_err"; then
9353   # We can compile using X headers with no special include directory.
9354 ac_x_includes=
9355 else
9356   echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9358
9359   for ac_dir in $ac_x_header_dirs; do
9360   if test -r "$ac_dir/X11/Intrinsic.h"; then
9361     ac_x_includes=$ac_dir
9362     break
9363   fi
9364 done
9365 fi
9366 rm -f conftest.err conftest.$ac_ext
9367 fi # $ac_x_includes = no
9368
9369 if test "$ac_x_libraries" = no; then
9370   # Check for the libraries.
9371   # See if we find them without any special options.
9372   # Don't add to $LIBS permanently.
9373   ac_save_LIBS=$LIBS
9374   LIBS="-lXt $LIBS"
9375   cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h.  */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h.  */
9381 #include <X11/Intrinsic.h>
9382 int
9383 main ()
9384 {
9385 XtMalloc (0)
9386   ;
9387   return 0;
9388 }
9389 _ACEOF
9390 rm -f conftest.$ac_objext conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392   (eval $ac_link) 2>conftest.er1
9393   ac_status=$?
9394   grep -v '^ *+' conftest.er1 >conftest.err
9395   rm -f conftest.er1
9396   cat conftest.err >&5
9397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); } &&
9399          { ac_try='test -z "$ac_c_werror_flag"
9400                          || test ! -s conftest.err'
9401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402   (eval $ac_try) 2>&5
9403   ac_status=$?
9404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); }; } &&
9406          { ac_try='test -s conftest$ac_exeext'
9407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408   (eval $ac_try) 2>&5
9409   ac_status=$?
9410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411   (exit $ac_status); }; }; then
9412   LIBS=$ac_save_LIBS
9413 # We can link X programs with no special library path.
9414 ac_x_libraries=
9415 else
9416   echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 LIBS=$ac_save_LIBS
9420 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9421 do
9422   # Don't even attempt the hair of trying to link an X program!
9423   for ac_extension in a so sl; do
9424     if test -r $ac_dir/libXt.$ac_extension; then
9425       ac_x_libraries=$ac_dir
9426       break 2
9427     fi
9428   done
9429 done
9430 fi
9431 rm -f conftest.err conftest.$ac_objext \
9432       conftest$ac_exeext conftest.$ac_ext
9433 fi # $ac_x_libraries = no
9434
9435 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9436   # Didn't find X anywhere.  Cache the known absence of X.
9437   ac_cv_have_x="have_x=no"
9438 else
9439   # Record where we found X for the cache.
9440   ac_cv_have_x="have_x=yes \
9441                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9442 fi
9443 fi
9444
9445   fi
9446   eval "$ac_cv_have_x"
9447 fi # $with_x != no
9448
9449 if test "$have_x" != yes; then
9450   echo "$as_me:$LINENO: result: $have_x" >&5
9451 echo "${ECHO_T}$have_x" >&6
9452   no_x=yes
9453 else
9454   # If each of the values was on the command line, it overrides each guess.
9455   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9456   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9457   # Update the cache value to reflect the command line values.
9458   ac_cv_have_x="have_x=yes \
9459                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9460   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9461 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9462 fi
9463
9464 if test "$no_x" = yes; then
9465   # Not all programs may use this symbol, but it does not hurt to define it.
9466
9467 cat >>confdefs.h <<\_ACEOF
9468 #define X_DISPLAY_MISSING 1
9469 _ACEOF
9470
9471   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9472 else
9473   if test -n "$x_includes"; then
9474     X_CFLAGS="$X_CFLAGS -I$x_includes"
9475   fi
9476
9477   # It would also be nice to do this for all -L options, not just this one.
9478   if test -n "$x_libraries"; then
9479     X_LIBS="$X_LIBS -L$x_libraries"
9480     # For Solaris; some versions of Sun CC require a space after -R and
9481     # others require no space.  Words are not sufficient . . . .
9482     case `(uname -sr) 2>/dev/null` in
9483     "SunOS 5"*)
9484       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9485 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9486       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9487       cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h.  */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h.  */
9493
9494 int
9495 main ()
9496 {
9497
9498   ;
9499   return 0;
9500 }
9501 _ACEOF
9502 rm -f conftest.$ac_objext conftest$ac_exeext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504   (eval $ac_link) 2>conftest.er1
9505   ac_status=$?
9506   grep -v '^ *+' conftest.er1 >conftest.err
9507   rm -f conftest.er1
9508   cat conftest.err >&5
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); } &&
9511          { ac_try='test -z "$ac_c_werror_flag"
9512                          || test ! -s conftest.err'
9513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514   (eval $ac_try) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); }; } &&
9518          { ac_try='test -s conftest$ac_exeext'
9519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520   (eval $ac_try) 2>&5
9521   ac_status=$?
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); }; }; then
9524   ac_R_nospace=yes
9525 else
9526   echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9528
9529 ac_R_nospace=no
9530 fi
9531 rm -f conftest.err conftest.$ac_objext \
9532       conftest$ac_exeext conftest.$ac_ext
9533       if test $ac_R_nospace = yes; then
9534         echo "$as_me:$LINENO: result: no" >&5
9535 echo "${ECHO_T}no" >&6
9536         X_LIBS="$X_LIBS -R$x_libraries"
9537       else
9538         LIBS="$ac_xsave_LIBS -R $x_libraries"
9539         cat >conftest.$ac_ext <<_ACEOF
9540 /* confdefs.h.  */
9541 _ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h.  */
9545
9546 int
9547 main ()
9548 {
9549
9550   ;
9551   return 0;
9552 }
9553 _ACEOF
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556   (eval $ac_link) 2>conftest.er1
9557   ac_status=$?
9558   grep -v '^ *+' conftest.er1 >conftest.err
9559   rm -f conftest.er1
9560   cat conftest.err >&5
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); } &&
9563          { ac_try='test -z "$ac_c_werror_flag"
9564                          || test ! -s conftest.err'
9565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566   (eval $ac_try) 2>&5
9567   ac_status=$?
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); }; } &&
9570          { ac_try='test -s conftest$ac_exeext'
9571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572   (eval $ac_try) 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); }; }; then
9576   ac_R_space=yes
9577 else
9578   echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581 ac_R_space=no
9582 fi
9583 rm -f conftest.err conftest.$ac_objext \
9584       conftest$ac_exeext conftest.$ac_ext
9585         if test $ac_R_space = yes; then
9586           echo "$as_me:$LINENO: result: yes" >&5
9587 echo "${ECHO_T}yes" >&6
9588           X_LIBS="$X_LIBS -R $x_libraries"
9589         else
9590           echo "$as_me:$LINENO: result: neither works" >&5
9591 echo "${ECHO_T}neither works" >&6
9592         fi
9593       fi
9594       LIBS=$ac_xsave_LIBS
9595     esac
9596   fi
9597
9598   # Check for system-dependent libraries X programs must link with.
9599   # Do this before checking for the system-independent R6 libraries
9600   # (-lICE), since we may need -lsocket or whatever for X linking.
9601
9602   if test "$ISC" = yes; then
9603     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9604   else
9605     # Martyn Johnson says this is needed for Ultrix, if the X
9606     # libraries were built with DECnet support.  And Karl Berry says
9607     # the Alpha needs dnet_stub (dnet does not exist).
9608     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9609     cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h.  */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h.  */
9615
9616 /* Override any gcc2 internal prototype to avoid an error.  */
9617 #ifdef __cplusplus
9618 extern "C"
9619 #endif
9620 /* We use char because int might match the return type of a gcc2
9621    builtin and then its argument prototype would still apply.  */
9622 char XOpenDisplay ();
9623 int
9624 main ()
9625 {
9626 XOpenDisplay ();
9627   ;
9628   return 0;
9629 }
9630 _ACEOF
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633   (eval $ac_link) 2>conftest.er1
9634   ac_status=$?
9635   grep -v '^ *+' conftest.er1 >conftest.err
9636   rm -f conftest.er1
9637   cat conftest.err >&5
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); } &&
9640          { ac_try='test -z "$ac_c_werror_flag"
9641                          || test ! -s conftest.err'
9642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643   (eval $ac_try) 2>&5
9644   ac_status=$?
9645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646   (exit $ac_status); }; } &&
9647          { ac_try='test -s conftest$ac_exeext'
9648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649   (eval $ac_try) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); }; }; then
9653   :
9654 else
9655   echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9657
9658 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9659 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9660 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9661   echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663   ac_check_lib_save_LIBS=$LIBS
9664 LIBS="-ldnet  $LIBS"
9665 cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h.  */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h.  */
9671
9672 /* Override any gcc2 internal prototype to avoid an error.  */
9673 #ifdef __cplusplus
9674 extern "C"
9675 #endif
9676 /* We use char because int might match the return type of a gcc2
9677    builtin and then its argument prototype would still apply.  */
9678 char dnet_ntoa ();
9679 int
9680 main ()
9681 {
9682 dnet_ntoa ();
9683   ;
9684   return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689   (eval $ac_link) 2>conftest.er1
9690   ac_status=$?
9691   grep -v '^ *+' conftest.er1 >conftest.err
9692   rm -f conftest.er1
9693   cat conftest.err >&5
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); } &&
9696          { ac_try='test -z "$ac_c_werror_flag"
9697                          || test ! -s conftest.err'
9698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699   (eval $ac_try) 2>&5
9700   ac_status=$?
9701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); }; } &&
9703          { ac_try='test -s conftest$ac_exeext'
9704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705   (eval $ac_try) 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); }; }; then
9709   ac_cv_lib_dnet_dnet_ntoa=yes
9710 else
9711   echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9713
9714 ac_cv_lib_dnet_dnet_ntoa=no
9715 fi
9716 rm -f conftest.err conftest.$ac_objext \
9717       conftest$ac_exeext conftest.$ac_ext
9718 LIBS=$ac_check_lib_save_LIBS
9719 fi
9720 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9721 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9722 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9723   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9724 fi
9725
9726     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9727       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9728 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9729 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9730   echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732   ac_check_lib_save_LIBS=$LIBS
9733 LIBS="-ldnet_stub  $LIBS"
9734 cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h.  */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h.  */
9740
9741 /* Override any gcc2 internal prototype to avoid an error.  */
9742 #ifdef __cplusplus
9743 extern "C"
9744 #endif
9745 /* We use char because int might match the return type of a gcc2
9746    builtin and then its argument prototype would still apply.  */
9747 char dnet_ntoa ();
9748 int
9749 main ()
9750 {
9751 dnet_ntoa ();
9752   ;
9753   return 0;
9754 }
9755 _ACEOF
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758   (eval $ac_link) 2>conftest.er1
9759   ac_status=$?
9760   grep -v '^ *+' conftest.er1 >conftest.err
9761   rm -f conftest.er1
9762   cat conftest.err >&5
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); } &&
9765          { ac_try='test -z "$ac_c_werror_flag"
9766                          || test ! -s conftest.err'
9767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768   (eval $ac_try) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); }; } &&
9772          { ac_try='test -s conftest$ac_exeext'
9773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774   (eval $ac_try) 2>&5
9775   ac_status=$?
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); }; }; then
9778   ac_cv_lib_dnet_stub_dnet_ntoa=yes
9779 else
9780   echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783 ac_cv_lib_dnet_stub_dnet_ntoa=no
9784 fi
9785 rm -f conftest.err conftest.$ac_objext \
9786       conftest$ac_exeext conftest.$ac_ext
9787 LIBS=$ac_check_lib_save_LIBS
9788 fi
9789 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9790 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9791 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9792   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9793 fi
9794
9795     fi
9796 fi
9797 rm -f conftest.err conftest.$ac_objext \
9798       conftest$ac_exeext conftest.$ac_ext
9799     LIBS="$ac_xsave_LIBS"
9800
9801     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9802     # to get the SysV transport functions.
9803     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9804     # needs -lnsl.
9805     # The nsl library prevents programs from opening the X display
9806     # on Irix 5.2, according to T.E. Dickey.
9807     # The functions gethostbyname, getservbyname, and inet_addr are
9808     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9809     echo "$as_me:$LINENO: checking for gethostbyname" >&5
9810 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9811 if test "${ac_cv_func_gethostbyname+set}" = set; then
9812   echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814   cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h.  */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h.  */
9820 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9822 #define gethostbyname innocuous_gethostbyname
9823
9824 /* System header to define __stub macros and hopefully few prototypes,
9825     which can conflict with char gethostbyname (); below.
9826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9827     <limits.h> exists even on freestanding compilers.  */
9828
9829 #ifdef __STDC__
9830 # include <limits.h>
9831 #else
9832 # include <assert.h>
9833 #endif
9834
9835 #undef gethostbyname
9836
9837 /* Override any gcc2 internal prototype to avoid an error.  */
9838 #ifdef __cplusplus
9839 extern "C"
9840 {
9841 #endif
9842 /* We use char because int might match the return type of a gcc2
9843    builtin and then its argument prototype would still apply.  */
9844 char gethostbyname ();
9845 /* The GNU C library defines this for functions which it implements
9846     to always fail with ENOSYS.  Some functions are actually named
9847     something starting with __ and the normal name is an alias.  */
9848 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9849 choke me
9850 #else
9851 char (*f) () = gethostbyname;
9852 #endif
9853 #ifdef __cplusplus
9854 }
9855 #endif
9856
9857 int
9858 main ()
9859 {
9860 return f != gethostbyname;
9861   ;
9862   return 0;
9863 }
9864 _ACEOF
9865 rm -f conftest.$ac_objext conftest$ac_exeext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9867   (eval $ac_link) 2>conftest.er1
9868   ac_status=$?
9869   grep -v '^ *+' conftest.er1 >conftest.err
9870   rm -f conftest.er1
9871   cat conftest.err >&5
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } &&
9874          { ac_try='test -z "$ac_c_werror_flag"
9875                          || test ! -s conftest.err'
9876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877   (eval $ac_try) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; } &&
9881          { ac_try='test -s conftest$ac_exeext'
9882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883   (eval $ac_try) 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); }; }; then
9887   ac_cv_func_gethostbyname=yes
9888 else
9889   echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9891
9892 ac_cv_func_gethostbyname=no
9893 fi
9894 rm -f conftest.err conftest.$ac_objext \
9895       conftest$ac_exeext conftest.$ac_ext
9896 fi
9897 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9898 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9899
9900     if test $ac_cv_func_gethostbyname = no; then
9901       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9902 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9903 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9904   echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906   ac_check_lib_save_LIBS=$LIBS
9907 LIBS="-lnsl  $LIBS"
9908 cat >conftest.$ac_ext <<_ACEOF
9909 /* confdefs.h.  */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h.  */
9914
9915 /* Override any gcc2 internal prototype to avoid an error.  */
9916 #ifdef __cplusplus
9917 extern "C"
9918 #endif
9919 /* We use char because int might match the return type of a gcc2
9920    builtin and then its argument prototype would still apply.  */
9921 char gethostbyname ();
9922 int
9923 main ()
9924 {
9925 gethostbyname ();
9926   ;
9927   return 0;
9928 }
9929 _ACEOF
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9932   (eval $ac_link) 2>conftest.er1
9933   ac_status=$?
9934   grep -v '^ *+' conftest.er1 >conftest.err
9935   rm -f conftest.er1
9936   cat conftest.err >&5
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); } &&
9939          { ac_try='test -z "$ac_c_werror_flag"
9940                          || test ! -s conftest.err'
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); }; } &&
9946          { ac_try='test -s conftest$ac_exeext'
9947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948   (eval $ac_try) 2>&5
9949   ac_status=$?
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); }; }; then
9952   ac_cv_lib_nsl_gethostbyname=yes
9953 else
9954   echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9956
9957 ac_cv_lib_nsl_gethostbyname=no
9958 fi
9959 rm -f conftest.err conftest.$ac_objext \
9960       conftest$ac_exeext conftest.$ac_ext
9961 LIBS=$ac_check_lib_save_LIBS
9962 fi
9963 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9964 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9965 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9966   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9967 fi
9968
9969       if test $ac_cv_lib_nsl_gethostbyname = no; then
9970         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9971 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9972 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9973   echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975   ac_check_lib_save_LIBS=$LIBS
9976 LIBS="-lbsd  $LIBS"
9977 cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h.  */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h.  */
9983
9984 /* Override any gcc2 internal prototype to avoid an error.  */
9985 #ifdef __cplusplus
9986 extern "C"
9987 #endif
9988 /* We use char because int might match the return type of a gcc2
9989    builtin and then its argument prototype would still apply.  */
9990 char gethostbyname ();
9991 int
9992 main ()
9993 {
9994 gethostbyname ();
9995   ;
9996   return 0;
9997 }
9998 _ACEOF
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001   (eval $ac_link) 2>conftest.er1
10002   ac_status=$?
10003   grep -v '^ *+' conftest.er1 >conftest.err
10004   rm -f conftest.er1
10005   cat conftest.err >&5
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); } &&
10008          { ac_try='test -z "$ac_c_werror_flag"
10009                          || test ! -s conftest.err'
10010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011   (eval $ac_try) 2>&5
10012   ac_status=$?
10013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014   (exit $ac_status); }; } &&
10015          { ac_try='test -s conftest$ac_exeext'
10016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017   (eval $ac_try) 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; }; then
10021   ac_cv_lib_bsd_gethostbyname=yes
10022 else
10023   echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026 ac_cv_lib_bsd_gethostbyname=no
10027 fi
10028 rm -f conftest.err conftest.$ac_objext \
10029       conftest$ac_exeext conftest.$ac_ext
10030 LIBS=$ac_check_lib_save_LIBS
10031 fi
10032 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10033 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10034 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10035   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10036 fi
10037
10038       fi
10039     fi
10040
10041     # lieder@skyler.mavd.honeywell.com says without -lsocket,
10042     # socket/setsockopt and other routines are undefined under SCO ODT
10043     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10044     # on later versions), says Simon Leinen: it contains gethostby*
10045     # variants that don't use the name server (or something).  -lsocket
10046     # must be given before -lnsl if both are needed.  We assume that
10047     # if connect needs -lnsl, so does gethostbyname.
10048     echo "$as_me:$LINENO: checking for connect" >&5
10049 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10050 if test "${ac_cv_func_connect+set}" = set; then
10051   echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053   cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10061 #define connect innocuous_connect
10062
10063 /* System header to define __stub macros and hopefully few prototypes,
10064     which can conflict with char connect (); below.
10065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10066     <limits.h> exists even on freestanding compilers.  */
10067
10068 #ifdef __STDC__
10069 # include <limits.h>
10070 #else
10071 # include <assert.h>
10072 #endif
10073
10074 #undef connect
10075
10076 /* Override any gcc2 internal prototype to avoid an error.  */
10077 #ifdef __cplusplus
10078 extern "C"
10079 {
10080 #endif
10081 /* We use char because int might match the return type of a gcc2
10082    builtin and then its argument prototype would still apply.  */
10083 char connect ();
10084 /* The GNU C library defines this for functions which it implements
10085     to always fail with ENOSYS.  Some functions are actually named
10086     something starting with __ and the normal name is an alias.  */
10087 #if defined (__stub_connect) || defined (__stub___connect)
10088 choke me
10089 #else
10090 char (*f) () = connect;
10091 #endif
10092 #ifdef __cplusplus
10093 }
10094 #endif
10095
10096 int
10097 main ()
10098 {
10099 return f != connect;
10100   ;
10101   return 0;
10102 }
10103 _ACEOF
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10106   (eval $ac_link) 2>conftest.er1
10107   ac_status=$?
10108   grep -v '^ *+' conftest.er1 >conftest.err
10109   rm -f conftest.er1
10110   cat conftest.err >&5
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); } &&
10113          { ac_try='test -z "$ac_c_werror_flag"
10114                          || test ! -s conftest.err'
10115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116   (eval $ac_try) 2>&5
10117   ac_status=$?
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); }; } &&
10120          { ac_try='test -s conftest$ac_exeext'
10121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122   (eval $ac_try) 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); }; }; then
10126   ac_cv_func_connect=yes
10127 else
10128   echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10130
10131 ac_cv_func_connect=no
10132 fi
10133 rm -f conftest.err conftest.$ac_objext \
10134       conftest$ac_exeext conftest.$ac_ext
10135 fi
10136 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10137 echo "${ECHO_T}$ac_cv_func_connect" >&6
10138
10139     if test $ac_cv_func_connect = no; then
10140       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10141 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10142 if test "${ac_cv_lib_socket_connect+set}" = set; then
10143   echo $ECHO_N "(cached) $ECHO_C" >&6
10144 else
10145   ac_check_lib_save_LIBS=$LIBS
10146 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10147 cat >conftest.$ac_ext <<_ACEOF
10148 /* confdefs.h.  */
10149 _ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h.  */
10153
10154 /* Override any gcc2 internal prototype to avoid an error.  */
10155 #ifdef __cplusplus
10156 extern "C"
10157 #endif
10158 /* We use char because int might match the return type of a gcc2
10159    builtin and then its argument prototype would still apply.  */
10160 char connect ();
10161 int
10162 main ()
10163 {
10164 connect ();
10165   ;
10166   return 0;
10167 }
10168 _ACEOF
10169 rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10171   (eval $ac_link) 2>conftest.er1
10172   ac_status=$?
10173   grep -v '^ *+' conftest.er1 >conftest.err
10174   rm -f conftest.er1
10175   cat conftest.err >&5
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); } &&
10178          { ac_try='test -z "$ac_c_werror_flag"
10179                          || test ! -s conftest.err'
10180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181   (eval $ac_try) 2>&5
10182   ac_status=$?
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); }; } &&
10185          { ac_try='test -s conftest$ac_exeext'
10186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187   (eval $ac_try) 2>&5
10188   ac_status=$?
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); }; }; then
10191   ac_cv_lib_socket_connect=yes
10192 else
10193   echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10195
10196 ac_cv_lib_socket_connect=no
10197 fi
10198 rm -f conftest.err conftest.$ac_objext \
10199       conftest$ac_exeext conftest.$ac_ext
10200 LIBS=$ac_check_lib_save_LIBS
10201 fi
10202 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10203 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10204 if test $ac_cv_lib_socket_connect = yes; then
10205   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10206 fi
10207
10208     fi
10209
10210     # Guillermo Gomez says -lposix is necessary on A/UX.
10211     echo "$as_me:$LINENO: checking for remove" >&5
10212 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10213 if test "${ac_cv_func_remove+set}" = set; then
10214   echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216   cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10224 #define remove innocuous_remove
10225
10226 /* System header to define __stub macros and hopefully few prototypes,
10227     which can conflict with char remove (); below.
10228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10229     <limits.h> exists even on freestanding compilers.  */
10230
10231 #ifdef __STDC__
10232 # include <limits.h>
10233 #else
10234 # include <assert.h>
10235 #endif
10236
10237 #undef remove
10238
10239 /* Override any gcc2 internal prototype to avoid an error.  */
10240 #ifdef __cplusplus
10241 extern "C"
10242 {
10243 #endif
10244 /* We use char because int might match the return type of a gcc2
10245    builtin and then its argument prototype would still apply.  */
10246 char remove ();
10247 /* The GNU C library defines this for functions which it implements
10248     to always fail with ENOSYS.  Some functions are actually named
10249     something starting with __ and the normal name is an alias.  */
10250 #if defined (__stub_remove) || defined (__stub___remove)
10251 choke me
10252 #else
10253 char (*f) () = remove;
10254 #endif
10255 #ifdef __cplusplus
10256 }
10257 #endif
10258
10259 int
10260 main ()
10261 {
10262 return f != remove;
10263   ;
10264   return 0;
10265 }
10266 _ACEOF
10267 rm -f conftest.$ac_objext conftest$ac_exeext
10268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10269   (eval $ac_link) 2>conftest.er1
10270   ac_status=$?
10271   grep -v '^ *+' conftest.er1 >conftest.err
10272   rm -f conftest.er1
10273   cat conftest.err >&5
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); } &&
10276          { ac_try='test -z "$ac_c_werror_flag"
10277                          || test ! -s conftest.err'
10278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279   (eval $ac_try) 2>&5
10280   ac_status=$?
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); }; } &&
10283          { ac_try='test -s conftest$ac_exeext'
10284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285   (eval $ac_try) 2>&5
10286   ac_status=$?
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); }; }; then
10289   ac_cv_func_remove=yes
10290 else
10291   echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10293
10294 ac_cv_func_remove=no
10295 fi
10296 rm -f conftest.err conftest.$ac_objext \
10297       conftest$ac_exeext conftest.$ac_ext
10298 fi
10299 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10300 echo "${ECHO_T}$ac_cv_func_remove" >&6
10301
10302     if test $ac_cv_func_remove = no; then
10303       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10304 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10305 if test "${ac_cv_lib_posix_remove+set}" = set; then
10306   echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308   ac_check_lib_save_LIBS=$LIBS
10309 LIBS="-lposix  $LIBS"
10310 cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h.  */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h.  */
10316
10317 /* Override any gcc2 internal prototype to avoid an error.  */
10318 #ifdef __cplusplus
10319 extern "C"
10320 #endif
10321 /* We use char because int might match the return type of a gcc2
10322    builtin and then its argument prototype would still apply.  */
10323 char remove ();
10324 int
10325 main ()
10326 {
10327 remove ();
10328   ;
10329   return 0;
10330 }
10331 _ACEOF
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10334   (eval $ac_link) 2>conftest.er1
10335   ac_status=$?
10336   grep -v '^ *+' conftest.er1 >conftest.err
10337   rm -f conftest.er1
10338   cat conftest.err >&5
10339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340   (exit $ac_status); } &&
10341          { ac_try='test -z "$ac_c_werror_flag"
10342                          || test ! -s conftest.err'
10343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344   (eval $ac_try) 2>&5
10345   ac_status=$?
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); }; } &&
10348          { ac_try='test -s conftest$ac_exeext'
10349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350   (eval $ac_try) 2>&5
10351   ac_status=$?
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); }; }; then
10354   ac_cv_lib_posix_remove=yes
10355 else
10356   echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10358
10359 ac_cv_lib_posix_remove=no
10360 fi
10361 rm -f conftest.err conftest.$ac_objext \
10362       conftest$ac_exeext conftest.$ac_ext
10363 LIBS=$ac_check_lib_save_LIBS
10364 fi
10365 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10366 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10367 if test $ac_cv_lib_posix_remove = yes; then
10368   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10369 fi
10370
10371     fi
10372
10373     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10374     echo "$as_me:$LINENO: checking for shmat" >&5
10375 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10376 if test "${ac_cv_func_shmat+set}" = set; then
10377   echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379   cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h.  */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h.  */
10385 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10387 #define shmat innocuous_shmat
10388
10389 /* System header to define __stub macros and hopefully few prototypes,
10390     which can conflict with char shmat (); below.
10391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10392     <limits.h> exists even on freestanding compilers.  */
10393
10394 #ifdef __STDC__
10395 # include <limits.h>
10396 #else
10397 # include <assert.h>
10398 #endif
10399
10400 #undef shmat
10401
10402 /* Override any gcc2 internal prototype to avoid an error.  */
10403 #ifdef __cplusplus
10404 extern "C"
10405 {
10406 #endif
10407 /* We use char because int might match the return type of a gcc2
10408    builtin and then its argument prototype would still apply.  */
10409 char shmat ();
10410 /* The GNU C library defines this for functions which it implements
10411     to always fail with ENOSYS.  Some functions are actually named
10412     something starting with __ and the normal name is an alias.  */
10413 #if defined (__stub_shmat) || defined (__stub___shmat)
10414 choke me
10415 #else
10416 char (*f) () = shmat;
10417 #endif
10418 #ifdef __cplusplus
10419 }
10420 #endif
10421
10422 int
10423 main ()
10424 {
10425 return f != shmat;
10426   ;
10427   return 0;
10428 }
10429 _ACEOF
10430 rm -f conftest.$ac_objext conftest$ac_exeext
10431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10432   (eval $ac_link) 2>conftest.er1
10433   ac_status=$?
10434   grep -v '^ *+' conftest.er1 >conftest.err
10435   rm -f conftest.er1
10436   cat conftest.err >&5
10437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438   (exit $ac_status); } &&
10439          { ac_try='test -z "$ac_c_werror_flag"
10440                          || test ! -s conftest.err'
10441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442   (eval $ac_try) 2>&5
10443   ac_status=$?
10444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445   (exit $ac_status); }; } &&
10446          { ac_try='test -s conftest$ac_exeext'
10447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448   (eval $ac_try) 2>&5
10449   ac_status=$?
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); }; }; then
10452   ac_cv_func_shmat=yes
10453 else
10454   echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10456
10457 ac_cv_func_shmat=no
10458 fi
10459 rm -f conftest.err conftest.$ac_objext \
10460       conftest$ac_exeext conftest.$ac_ext
10461 fi
10462 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10463 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10464
10465     if test $ac_cv_func_shmat = no; then
10466       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10467 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10468 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10469   echo $ECHO_N "(cached) $ECHO_C" >&6
10470 else
10471   ac_check_lib_save_LIBS=$LIBS
10472 LIBS="-lipc  $LIBS"
10473 cat >conftest.$ac_ext <<_ACEOF
10474 /* confdefs.h.  */
10475 _ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h.  */
10479
10480 /* Override any gcc2 internal prototype to avoid an error.  */
10481 #ifdef __cplusplus
10482 extern "C"
10483 #endif
10484 /* We use char because int might match the return type of a gcc2
10485    builtin and then its argument prototype would still apply.  */
10486 char shmat ();
10487 int
10488 main ()
10489 {
10490 shmat ();
10491   ;
10492   return 0;
10493 }
10494 _ACEOF
10495 rm -f conftest.$ac_objext conftest$ac_exeext
10496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10497   (eval $ac_link) 2>conftest.er1
10498   ac_status=$?
10499   grep -v '^ *+' conftest.er1 >conftest.err
10500   rm -f conftest.er1
10501   cat conftest.err >&5
10502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503   (exit $ac_status); } &&
10504          { ac_try='test -z "$ac_c_werror_flag"
10505                          || test ! -s conftest.err'
10506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507   (eval $ac_try) 2>&5
10508   ac_status=$?
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); }; } &&
10511          { ac_try='test -s conftest$ac_exeext'
10512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513   (eval $ac_try) 2>&5
10514   ac_status=$?
10515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516   (exit $ac_status); }; }; then
10517   ac_cv_lib_ipc_shmat=yes
10518 else
10519   echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10521
10522 ac_cv_lib_ipc_shmat=no
10523 fi
10524 rm -f conftest.err conftest.$ac_objext \
10525       conftest$ac_exeext conftest.$ac_ext
10526 LIBS=$ac_check_lib_save_LIBS
10527 fi
10528 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10529 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10530 if test $ac_cv_lib_ipc_shmat = yes; then
10531   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10532 fi
10533
10534     fi
10535   fi
10536
10537   # Check for libraries that X11R6 Xt/Xaw programs need.
10538   ac_save_LDFLAGS=$LDFLAGS
10539   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10540   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10541   # check for ICE first), but we must link in the order -lSM -lICE or
10542   # we get undefined symbols.  So assume we have SM if we have ICE.
10543   # These have to be linked with before -lX11, unlike the other
10544   # libraries we check for below, so use a different variable.
10545   # John Interrante, Karl Berry
10546   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10547 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10548 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10549   echo $ECHO_N "(cached) $ECHO_C" >&6
10550 else
10551   ac_check_lib_save_LIBS=$LIBS
10552 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10553 cat >conftest.$ac_ext <<_ACEOF
10554 /* confdefs.h.  */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h.  */
10559
10560 /* Override any gcc2 internal prototype to avoid an error.  */
10561 #ifdef __cplusplus
10562 extern "C"
10563 #endif
10564 /* We use char because int might match the return type of a gcc2
10565    builtin and then its argument prototype would still apply.  */
10566 char IceConnectionNumber ();
10567 int
10568 main ()
10569 {
10570 IceConnectionNumber ();
10571   ;
10572   return 0;
10573 }
10574 _ACEOF
10575 rm -f conftest.$ac_objext conftest$ac_exeext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10577   (eval $ac_link) 2>conftest.er1
10578   ac_status=$?
10579   grep -v '^ *+' conftest.er1 >conftest.err
10580   rm -f conftest.er1
10581   cat conftest.err >&5
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); } &&
10584          { ac_try='test -z "$ac_c_werror_flag"
10585                          || test ! -s conftest.err'
10586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587   (eval $ac_try) 2>&5
10588   ac_status=$?
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); }; } &&
10591          { ac_try='test -s conftest$ac_exeext'
10592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593   (eval $ac_try) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); }; }; then
10597   ac_cv_lib_ICE_IceConnectionNumber=yes
10598 else
10599   echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602 ac_cv_lib_ICE_IceConnectionNumber=no
10603 fi
10604 rm -f conftest.err conftest.$ac_objext \
10605       conftest$ac_exeext conftest.$ac_ext
10606 LIBS=$ac_check_lib_save_LIBS
10607 fi
10608 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10609 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10610 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10611   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10612 fi
10613
10614   LDFLAGS=$ac_save_LDFLAGS
10615
10616 fi
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646 for ac_header in \
10647         assert.h \
10648         fcntl.h \
10649         grp.h \
10650         pwd.h \
10651         libc.h \
10652         limits.h \
10653         stdarg.h \
10654         stdlib.h \
10655         stdint.h \
10656         string.h \
10657         termios.h \
10658         termcap.h \
10659         term.h \
10660         unistd.h \
10661         sys/bitypes.h \
10662         sys/byteorder.h \
10663         sys/ioctl.h \
10664         sys/select.h \
10665         sys/sockio.h \
10666         sys/time.h \
10667         sys/socket.h \
10668         arpa/nameser.h \
10669         resolv.h \
10670         mtio.h \
10671         sys/mtio.h \
10672         sys/tape.h \
10673         regex.h \
10674
10675 do
10676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10678   echo "$as_me:$LINENO: checking for $ac_header" >&5
10679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10681   echo $ECHO_N "(cached) $ECHO_C" >&6
10682 fi
10683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10685 else
10686   # Is the header compilable?
10687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h.  */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h.  */
10695 $ac_includes_default
10696 #include <$ac_header>
10697 _ACEOF
10698 rm -f conftest.$ac_objext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10700   (eval $ac_compile) 2>conftest.er1
10701   ac_status=$?
10702   grep -v '^ *+' conftest.er1 >conftest.err
10703   rm -f conftest.er1
10704   cat conftest.err >&5
10705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706   (exit $ac_status); } &&
10707          { ac_try='test -z "$ac_c_werror_flag"
10708                          || test ! -s conftest.err'
10709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710   (eval $ac_try) 2>&5
10711   ac_status=$?
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); }; } &&
10714          { ac_try='test -s conftest.$ac_objext'
10715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716   (eval $ac_try) 2>&5
10717   ac_status=$?
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); }; }; then
10720   ac_header_compiler=yes
10721 else
10722   echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10724
10725 ac_header_compiler=no
10726 fi
10727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10729 echo "${ECHO_T}$ac_header_compiler" >&6
10730
10731 # Is the header present?
10732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h.  */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h.  */
10740 #include <$ac_header>
10741 _ACEOF
10742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10743   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10744   ac_status=$?
10745   grep -v '^ *+' conftest.er1 >conftest.err
10746   rm -f conftest.er1
10747   cat conftest.err >&5
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); } >/dev/null; then
10750   if test -s conftest.err; then
10751     ac_cpp_err=$ac_c_preproc_warn_flag
10752     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10753   else
10754     ac_cpp_err=
10755   fi
10756 else
10757   ac_cpp_err=yes
10758 fi
10759 if test -z "$ac_cpp_err"; then
10760   ac_header_preproc=yes
10761 else
10762   echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10764
10765   ac_header_preproc=no
10766 fi
10767 rm -f conftest.err conftest.$ac_ext
10768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10769 echo "${ECHO_T}$ac_header_preproc" >&6
10770
10771 # So?  What about this header?
10772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10773   yes:no: )
10774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10778     ac_header_preproc=yes
10779     ;;
10780   no:yes:* )
10781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10793     (
10794       cat <<\_ASBOX
10795 ## ------------------------------------------ ##
10796 ## Report this to the AC_PACKAGE_NAME lists.  ##
10797 ## ------------------------------------------ ##
10798 _ASBOX
10799     ) |
10800       sed "s/^/$as_me: WARNING:     /" >&2
10801     ;;
10802 esac
10803 echo "$as_me:$LINENO: checking for $ac_header" >&5
10804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10806   echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808   eval "$as_ac_Header=\$ac_header_preproc"
10809 fi
10810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10812
10813 fi
10814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10815   cat >>confdefs.h <<_ACEOF
10816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10817 _ACEOF
10818
10819 fi
10820
10821 done
10822
10823 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10824 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10825 if test "${ac_cv_header_stdc+set}" = set; then
10826   echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828   cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h.  */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h.  */
10834 #include <stdlib.h>
10835 #include <stdarg.h>
10836 #include <string.h>
10837 #include <float.h>
10838
10839 int
10840 main ()
10841 {
10842
10843   ;
10844   return 0;
10845 }
10846 _ACEOF
10847 rm -f conftest.$ac_objext
10848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849   (eval $ac_compile) 2>conftest.er1
10850   ac_status=$?
10851   grep -v '^ *+' conftest.er1 >conftest.err
10852   rm -f conftest.er1
10853   cat conftest.err >&5
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); } &&
10856          { ac_try='test -z "$ac_c_werror_flag"
10857                          || test ! -s conftest.err'
10858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859   (eval $ac_try) 2>&5
10860   ac_status=$?
10861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862   (exit $ac_status); }; } &&
10863          { ac_try='test -s conftest.$ac_objext'
10864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865   (eval $ac_try) 2>&5
10866   ac_status=$?
10867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868   (exit $ac_status); }; }; then
10869   ac_cv_header_stdc=yes
10870 else
10871   echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10873
10874 ac_cv_header_stdc=no
10875 fi
10876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10877
10878 if test $ac_cv_header_stdc = yes; then
10879   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10880   cat >conftest.$ac_ext <<_ACEOF
10881 /* confdefs.h.  */
10882 _ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h.  */
10886 #include <string.h>
10887
10888 _ACEOF
10889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10890   $EGREP "memchr" >/dev/null 2>&1; then
10891   :
10892 else
10893   ac_cv_header_stdc=no
10894 fi
10895 rm -f conftest*
10896
10897 fi
10898
10899 if test $ac_cv_header_stdc = yes; then
10900   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10901   cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h.  */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h.  */
10907 #include <stdlib.h>
10908
10909 _ACEOF
10910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10911   $EGREP "free" >/dev/null 2>&1; then
10912   :
10913 else
10914   ac_cv_header_stdc=no
10915 fi
10916 rm -f conftest*
10917
10918 fi
10919
10920 if test $ac_cv_header_stdc = yes; then
10921   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10922   if test "$cross_compiling" = yes; then
10923   :
10924 else
10925   cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h.  */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h.  */
10931 #include <ctype.h>
10932 #if ((' ' & 0x0FF) == 0x020)
10933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10935 #else
10936 # define ISLOWER(c) \
10937                    (('a' <= (c) && (c) <= 'i') \
10938                      || ('j' <= (c) && (c) <= 'r') \
10939                      || ('s' <= (c) && (c) <= 'z'))
10940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10941 #endif
10942
10943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10944 int
10945 main ()
10946 {
10947   int i;
10948   for (i = 0; i < 256; i++)
10949     if (XOR (islower (i), ISLOWER (i))
10950         || toupper (i) != TOUPPER (i))
10951       exit(2);
10952   exit (0);
10953 }
10954 _ACEOF
10955 rm -f conftest$ac_exeext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10957   (eval $ac_link) 2>&5
10958   ac_status=$?
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962   (eval $ac_try) 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; }; then
10966   :
10967 else
10968   echo "$as_me: program exited with status $ac_status" >&5
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10971
10972 ( exit $ac_status )
10973 ac_cv_header_stdc=no
10974 fi
10975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10976 fi
10977 fi
10978 fi
10979 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10980 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10981 if test $ac_cv_header_stdc = yes; then
10982
10983 cat >>confdefs.h <<\_ACEOF
10984 #define STDC_HEADERS 1
10985 _ACEOF
10986
10987 fi
10988
10989 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10990 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10991 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10992   echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994   cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h.  */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h.  */
11000 #include <sys/types.h>
11001 int
11002 main ()
11003 {
11004 return makedev(0, 0);
11005   ;
11006   return 0;
11007 }
11008 _ACEOF
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11011   (eval $ac_link) 2>conftest.er1
11012   ac_status=$?
11013   grep -v '^ *+' conftest.er1 >conftest.err
11014   rm -f conftest.er1
11015   cat conftest.err >&5
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); } &&
11018          { ac_try='test -z "$ac_c_werror_flag"
11019                          || test ! -s conftest.err'
11020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021   (eval $ac_try) 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); }; } &&
11025          { ac_try='test -s conftest$ac_exeext'
11026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027   (eval $ac_try) 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); }; }; then
11031   ac_cv_header_sys_types_h_makedev=yes
11032 else
11033   echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11035
11036 ac_cv_header_sys_types_h_makedev=no
11037 fi
11038 rm -f conftest.err conftest.$ac_objext \
11039       conftest$ac_exeext conftest.$ac_ext
11040
11041 fi
11042 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11043 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11044
11045 if test $ac_cv_header_sys_types_h_makedev = no; then
11046 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11047   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11048 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11049 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11050   echo $ECHO_N "(cached) $ECHO_C" >&6
11051 fi
11052 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11053 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11054 else
11055   # Is the header compilable?
11056 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11057 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11058 cat >conftest.$ac_ext <<_ACEOF
11059 /* confdefs.h.  */
11060 _ACEOF
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h.  */
11064 $ac_includes_default
11065 #include <sys/mkdev.h>
11066 _ACEOF
11067 rm -f conftest.$ac_objext
11068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11069   (eval $ac_compile) 2>conftest.er1
11070   ac_status=$?
11071   grep -v '^ *+' conftest.er1 >conftest.err
11072   rm -f conftest.er1
11073   cat conftest.err >&5
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); } &&
11076          { ac_try='test -z "$ac_c_werror_flag"
11077                          || test ! -s conftest.err'
11078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079   (eval $ac_try) 2>&5
11080   ac_status=$?
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); }; } &&
11083          { ac_try='test -s conftest.$ac_objext'
11084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085   (eval $ac_try) 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); }; }; then
11089   ac_header_compiler=yes
11090 else
11091   echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 ac_header_compiler=no
11095 fi
11096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11098 echo "${ECHO_T}$ac_header_compiler" >&6
11099
11100 # Is the header present?
11101 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11102 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11103 cat >conftest.$ac_ext <<_ACEOF
11104 /* confdefs.h.  */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h.  */
11109 #include <sys/mkdev.h>
11110 _ACEOF
11111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11113   ac_status=$?
11114   grep -v '^ *+' conftest.er1 >conftest.err
11115   rm -f conftest.er1
11116   cat conftest.err >&5
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); } >/dev/null; then
11119   if test -s conftest.err; then
11120     ac_cpp_err=$ac_c_preproc_warn_flag
11121     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11122   else
11123     ac_cpp_err=
11124   fi
11125 else
11126   ac_cpp_err=yes
11127 fi
11128 if test -z "$ac_cpp_err"; then
11129   ac_header_preproc=yes
11130 else
11131   echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11133
11134   ac_header_preproc=no
11135 fi
11136 rm -f conftest.err conftest.$ac_ext
11137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11138 echo "${ECHO_T}$ac_header_preproc" >&6
11139
11140 # So?  What about this header?
11141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11142   yes:no: )
11143     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11144 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11145     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11146 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11147     ac_header_preproc=yes
11148     ;;
11149   no:yes:* )
11150     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11151 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11152     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11153 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11154     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11155 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11156     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11157 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11158     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11159 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11160     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11161 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11162     (
11163       cat <<\_ASBOX
11164 ## ------------------------------------------ ##
11165 ## Report this to the AC_PACKAGE_NAME lists.  ##
11166 ## ------------------------------------------ ##
11167 _ASBOX
11168     ) |
11169       sed "s/^/$as_me: WARNING:     /" >&2
11170     ;;
11171 esac
11172 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11173 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11174 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11175   echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11178 fi
11179 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11180 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11181
11182 fi
11183 if test $ac_cv_header_sys_mkdev_h = yes; then
11184
11185 cat >>confdefs.h <<\_ACEOF
11186 #define MAJOR_IN_MKDEV 1
11187 _ACEOF
11188
11189 fi
11190
11191
11192
11193   if test $ac_cv_header_sys_mkdev_h = no; then
11194     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11195   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11196 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11197 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11198   echo $ECHO_N "(cached) $ECHO_C" >&6
11199 fi
11200 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11201 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11202 else
11203   # Is the header compilable?
11204 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11205 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11206 cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h.  */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h.  */
11212 $ac_includes_default
11213 #include <sys/sysmacros.h>
11214 _ACEOF
11215 rm -f conftest.$ac_objext
11216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11217   (eval $ac_compile) 2>conftest.er1
11218   ac_status=$?
11219   grep -v '^ *+' conftest.er1 >conftest.err
11220   rm -f conftest.er1
11221   cat conftest.err >&5
11222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); } &&
11224          { ac_try='test -z "$ac_c_werror_flag"
11225                          || test ! -s conftest.err'
11226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227   (eval $ac_try) 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); }; } &&
11231          { ac_try='test -s conftest.$ac_objext'
11232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233   (eval $ac_try) 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; }; then
11237   ac_header_compiler=yes
11238 else
11239   echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11241
11242 ac_header_compiler=no
11243 fi
11244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11246 echo "${ECHO_T}$ac_header_compiler" >&6
11247
11248 # Is the header present?
11249 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11250 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11251 cat >conftest.$ac_ext <<_ACEOF
11252 /* confdefs.h.  */
11253 _ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h.  */
11257 #include <sys/sysmacros.h>
11258 _ACEOF
11259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11261   ac_status=$?
11262   grep -v '^ *+' conftest.er1 >conftest.err
11263   rm -f conftest.er1
11264   cat conftest.err >&5
11265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266   (exit $ac_status); } >/dev/null; then
11267   if test -s conftest.err; then
11268     ac_cpp_err=$ac_c_preproc_warn_flag
11269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11270   else
11271     ac_cpp_err=
11272   fi
11273 else
11274   ac_cpp_err=yes
11275 fi
11276 if test -z "$ac_cpp_err"; then
11277   ac_header_preproc=yes
11278 else
11279   echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11281
11282   ac_header_preproc=no
11283 fi
11284 rm -f conftest.err conftest.$ac_ext
11285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11286 echo "${ECHO_T}$ac_header_preproc" >&6
11287
11288 # So?  What about this header?
11289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11290   yes:no: )
11291     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11292 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11293     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11294 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11295     ac_header_preproc=yes
11296     ;;
11297   no:yes:* )
11298     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11299 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11300     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11301 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11302     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11303 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11304     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11305 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11306     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11307 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11308     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11309 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11310     (
11311       cat <<\_ASBOX
11312 ## ------------------------------------------ ##
11313 ## Report this to the AC_PACKAGE_NAME lists.  ##
11314 ## ------------------------------------------ ##
11315 _ASBOX
11316     ) |
11317       sed "s/^/$as_me: WARNING:     /" >&2
11318     ;;
11319 esac
11320 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11321 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11322 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11323   echo $ECHO_N "(cached) $ECHO_C" >&6
11324 else
11325   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11326 fi
11327 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11328 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11329
11330 fi
11331 if test $ac_cv_header_sys_sysmacros_h = yes; then
11332
11333 cat >>confdefs.h <<\_ACEOF
11334 #define MAJOR_IN_SYSMACROS 1
11335 _ACEOF
11336
11337 fi
11338
11339
11340   fi
11341 fi
11342
11343
11344
11345
11346
11347
11348 ac_header_dirent=no
11349 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11350   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11351 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11352 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11354   echo $ECHO_N "(cached) $ECHO_C" >&6
11355 else
11356   cat >conftest.$ac_ext <<_ACEOF
11357 /* confdefs.h.  */
11358 _ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h.  */
11362 #include <sys/types.h>
11363 #include <$ac_hdr>
11364
11365 int
11366 main ()
11367 {
11368 if ((DIR *) 0)
11369 return 0;
11370   ;
11371   return 0;
11372 }
11373 _ACEOF
11374 rm -f conftest.$ac_objext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11376   (eval $ac_compile) 2>conftest.er1
11377   ac_status=$?
11378   grep -v '^ *+' conftest.er1 >conftest.err
11379   rm -f conftest.er1
11380   cat conftest.err >&5
11381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382   (exit $ac_status); } &&
11383          { ac_try='test -z "$ac_c_werror_flag"
11384                          || test ! -s conftest.err'
11385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386   (eval $ac_try) 2>&5
11387   ac_status=$?
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); }; } &&
11390          { ac_try='test -s conftest.$ac_objext'
11391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392   (eval $ac_try) 2>&5
11393   ac_status=$?
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); }; }; then
11396   eval "$as_ac_Header=yes"
11397 else
11398   echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11400
11401 eval "$as_ac_Header=no"
11402 fi
11403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11404 fi
11405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11408   cat >>confdefs.h <<_ACEOF
11409 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11410 _ACEOF
11411
11412 ac_header_dirent=$ac_hdr; break
11413 fi
11414
11415 done
11416 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11417 if test $ac_header_dirent = dirent.h; then
11418   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11419 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11420 if test "${ac_cv_search_opendir+set}" = set; then
11421   echo $ECHO_N "(cached) $ECHO_C" >&6
11422 else
11423   ac_func_search_save_LIBS=$LIBS
11424 ac_cv_search_opendir=no
11425 cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h.  */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h.  */
11431
11432 /* Override any gcc2 internal prototype to avoid an error.  */
11433 #ifdef __cplusplus
11434 extern "C"
11435 #endif
11436 /* We use char because int might match the return type of a gcc2
11437    builtin and then its argument prototype would still apply.  */
11438 char opendir ();
11439 int
11440 main ()
11441 {
11442 opendir ();
11443   ;
11444   return 0;
11445 }
11446 _ACEOF
11447 rm -f conftest.$ac_objext conftest$ac_exeext
11448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11449   (eval $ac_link) 2>conftest.er1
11450   ac_status=$?
11451   grep -v '^ *+' conftest.er1 >conftest.err
11452   rm -f conftest.er1
11453   cat conftest.err >&5
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); } &&
11456          { ac_try='test -z "$ac_c_werror_flag"
11457                          || test ! -s conftest.err'
11458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459   (eval $ac_try) 2>&5
11460   ac_status=$?
11461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462   (exit $ac_status); }; } &&
11463          { ac_try='test -s conftest$ac_exeext'
11464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465   (eval $ac_try) 2>&5
11466   ac_status=$?
11467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468   (exit $ac_status); }; }; then
11469   ac_cv_search_opendir="none required"
11470 else
11471   echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11473
11474 fi
11475 rm -f conftest.err conftest.$ac_objext \
11476       conftest$ac_exeext conftest.$ac_ext
11477 if test "$ac_cv_search_opendir" = no; then
11478   for ac_lib in dir; do
11479     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11480     cat >conftest.$ac_ext <<_ACEOF
11481 /* confdefs.h.  */
11482 _ACEOF
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h.  */
11486
11487 /* Override any gcc2 internal prototype to avoid an error.  */
11488 #ifdef __cplusplus
11489 extern "C"
11490 #endif
11491 /* We use char because int might match the return type of a gcc2
11492    builtin and then its argument prototype would still apply.  */
11493 char opendir ();
11494 int
11495 main ()
11496 {
11497 opendir ();
11498   ;
11499   return 0;
11500 }
11501 _ACEOF
11502 rm -f conftest.$ac_objext conftest$ac_exeext
11503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11504   (eval $ac_link) 2>conftest.er1
11505   ac_status=$?
11506   grep -v '^ *+' conftest.er1 >conftest.err
11507   rm -f conftest.er1
11508   cat conftest.err >&5
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); } &&
11511          { ac_try='test -z "$ac_c_werror_flag"
11512                          || test ! -s conftest.err'
11513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514   (eval $ac_try) 2>&5
11515   ac_status=$?
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); }; } &&
11518          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11524   ac_cv_search_opendir="-l$ac_lib"
11525 break
11526 else
11527   echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11529
11530 fi
11531 rm -f conftest.err conftest.$ac_objext \
11532       conftest$ac_exeext conftest.$ac_ext
11533   done
11534 fi
11535 LIBS=$ac_func_search_save_LIBS
11536 fi
11537 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11538 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11539 if test "$ac_cv_search_opendir" != no; then
11540   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11541
11542 fi
11543
11544 else
11545   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11546 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11547 if test "${ac_cv_search_opendir+set}" = set; then
11548   echo $ECHO_N "(cached) $ECHO_C" >&6
11549 else
11550   ac_func_search_save_LIBS=$LIBS
11551 ac_cv_search_opendir=no
11552 cat >conftest.$ac_ext <<_ACEOF
11553 /* confdefs.h.  */
11554 _ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h.  */
11558
11559 /* Override any gcc2 internal prototype to avoid an error.  */
11560 #ifdef __cplusplus
11561 extern "C"
11562 #endif
11563 /* We use char because int might match the return type of a gcc2
11564    builtin and then its argument prototype would still apply.  */
11565 char opendir ();
11566 int
11567 main ()
11568 {
11569 opendir ();
11570   ;
11571   return 0;
11572 }
11573 _ACEOF
11574 rm -f conftest.$ac_objext conftest$ac_exeext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11576   (eval $ac_link) 2>conftest.er1
11577   ac_status=$?
11578   grep -v '^ *+' conftest.er1 >conftest.err
11579   rm -f conftest.er1
11580   cat conftest.err >&5
11581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); } &&
11583          { ac_try='test -z "$ac_c_werror_flag"
11584                          || test ! -s conftest.err'
11585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586   (eval $ac_try) 2>&5
11587   ac_status=$?
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); }; } &&
11590          { ac_try='test -s conftest$ac_exeext'
11591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592   (eval $ac_try) 2>&5
11593   ac_status=$?
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); }; }; then
11596   ac_cv_search_opendir="none required"
11597 else
11598   echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11600
11601 fi
11602 rm -f conftest.err conftest.$ac_objext \
11603       conftest$ac_exeext conftest.$ac_ext
11604 if test "$ac_cv_search_opendir" = no; then
11605   for ac_lib in x; do
11606     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11607     cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h.  */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h.  */
11613
11614 /* Override any gcc2 internal prototype to avoid an error.  */
11615 #ifdef __cplusplus
11616 extern "C"
11617 #endif
11618 /* We use char because int might match the return type of a gcc2
11619    builtin and then its argument prototype would still apply.  */
11620 char opendir ();
11621 int
11622 main ()
11623 {
11624 opendir ();
11625   ;
11626   return 0;
11627 }
11628 _ACEOF
11629 rm -f conftest.$ac_objext conftest$ac_exeext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11631   (eval $ac_link) 2>conftest.er1
11632   ac_status=$?
11633   grep -v '^ *+' conftest.er1 >conftest.err
11634   rm -f conftest.er1
11635   cat conftest.err >&5
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); } &&
11638          { ac_try='test -z "$ac_c_werror_flag"
11639                          || test ! -s conftest.err'
11640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641   (eval $ac_try) 2>&5
11642   ac_status=$?
11643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644   (exit $ac_status); }; } &&
11645          { ac_try='test -s conftest$ac_exeext'
11646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647   (eval $ac_try) 2>&5
11648   ac_status=$?
11649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650   (exit $ac_status); }; }; then
11651   ac_cv_search_opendir="-l$ac_lib"
11652 break
11653 else
11654   echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11656
11657 fi
11658 rm -f conftest.err conftest.$ac_objext \
11659       conftest$ac_exeext conftest.$ac_ext
11660   done
11661 fi
11662 LIBS=$ac_func_search_save_LIBS
11663 fi
11664 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11665 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11666 if test "$ac_cv_search_opendir" != no; then
11667   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11668
11669 fi
11670
11671 fi
11672
11673 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11674 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11675 if test "${ac_cv_header_stat_broken+set}" = set; then
11676   echo $ECHO_N "(cached) $ECHO_C" >&6
11677 else
11678   cat >conftest.$ac_ext <<_ACEOF
11679 /* confdefs.h.  */
11680 _ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h.  */
11684 #include <sys/types.h>
11685 #include <sys/stat.h>
11686
11687 #if defined(S_ISBLK) && defined(S_IFDIR)
11688 # if S_ISBLK (S_IFDIR)
11689 You lose.
11690 # endif
11691 #endif
11692
11693 #if defined(S_ISBLK) && defined(S_IFCHR)
11694 # if S_ISBLK (S_IFCHR)
11695 You lose.
11696 # endif
11697 #endif
11698
11699 #if defined(S_ISLNK) && defined(S_IFREG)
11700 # if S_ISLNK (S_IFREG)
11701 You lose.
11702 # endif
11703 #endif
11704
11705 #if defined(S_ISSOCK) && defined(S_IFREG)
11706 # if S_ISSOCK (S_IFREG)
11707 You lose.
11708 # endif
11709 #endif
11710
11711 _ACEOF
11712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11713   $EGREP "You lose" >/dev/null 2>&1; then
11714   ac_cv_header_stat_broken=yes
11715 else
11716   ac_cv_header_stat_broken=no
11717 fi
11718 rm -f conftest*
11719
11720 fi
11721 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11722 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11723 if test $ac_cv_header_stat_broken = yes; then
11724
11725 cat >>confdefs.h <<\_ACEOF
11726 #define STAT_MACROS_BROKEN 1
11727 _ACEOF
11728
11729 fi
11730
11731 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11732 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11733 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11734   echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736   cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h.  */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h.  */
11742 #include <sys/types.h>
11743 #include <sys/wait.h>
11744 #ifndef WEXITSTATUS
11745 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11746 #endif
11747 #ifndef WIFEXITED
11748 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11749 #endif
11750
11751 int
11752 main ()
11753 {
11754   int s;
11755   wait (&s);
11756   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11757   ;
11758   return 0;
11759 }
11760 _ACEOF
11761 rm -f conftest.$ac_objext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763   (eval $ac_compile) 2>conftest.er1
11764   ac_status=$?
11765   grep -v '^ *+' conftest.er1 >conftest.err
11766   rm -f conftest.er1
11767   cat conftest.err >&5
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); } &&
11770          { ac_try='test -z "$ac_c_werror_flag"
11771                          || test ! -s conftest.err'
11772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773   (eval $ac_try) 2>&5
11774   ac_status=$?
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); }; } &&
11777          { ac_try='test -s conftest.$ac_objext'
11778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779   (eval $ac_try) 2>&5
11780   ac_status=$?
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); }; }; then
11783   ac_cv_header_sys_wait_h=yes
11784 else
11785   echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11787
11788 ac_cv_header_sys_wait_h=no
11789 fi
11790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11791 fi
11792 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11793 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11794 if test $ac_cv_header_sys_wait_h = yes; then
11795
11796 cat >>confdefs.h <<\_ACEOF
11797 #define HAVE_SYS_WAIT_H 1
11798 _ACEOF
11799
11800 fi
11801
11802 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11803 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11804 if test "${ac_cv_header_time+set}" = set; then
11805   echo $ECHO_N "(cached) $ECHO_C" >&6
11806 else
11807   cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h.  */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h.  */
11813 #include <sys/types.h>
11814 #include <sys/time.h>
11815 #include <time.h>
11816
11817 int
11818 main ()
11819 {
11820 if ((struct tm *) 0)
11821 return 0;
11822   ;
11823   return 0;
11824 }
11825 _ACEOF
11826 rm -f conftest.$ac_objext
11827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11828   (eval $ac_compile) 2>conftest.er1
11829   ac_status=$?
11830   grep -v '^ *+' conftest.er1 >conftest.err
11831   rm -f conftest.er1
11832   cat conftest.err >&5
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); } &&
11835          { ac_try='test -z "$ac_c_werror_flag"
11836                          || test ! -s conftest.err'
11837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838   (eval $ac_try) 2>&5
11839   ac_status=$?
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); }; } &&
11842          { ac_try='test -s conftest.$ac_objext'
11843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844   (eval $ac_try) 2>&5
11845   ac_status=$?
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); }; }; then
11848   ac_cv_header_time=yes
11849 else
11850   echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11852
11853 ac_cv_header_time=no
11854 fi
11855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11856 fi
11857 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11858 echo "${ECHO_T}$ac_cv_header_time" >&6
11859 if test $ac_cv_header_time = yes; then
11860
11861 cat >>confdefs.h <<\_ACEOF
11862 #define TIME_WITH_SYS_TIME 1
11863 _ACEOF
11864
11865 fi
11866
11867
11868 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11869 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11870 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11871   echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873   cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h.  */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h.  */
11879 $ac_includes_default
11880 int
11881 main ()
11882 {
11883 static struct stat ac_aggr;
11884 if (ac_aggr.st_blksize)
11885 return 0;
11886   ;
11887   return 0;
11888 }
11889 _ACEOF
11890 rm -f conftest.$ac_objext
11891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11892   (eval $ac_compile) 2>conftest.er1
11893   ac_status=$?
11894   grep -v '^ *+' conftest.er1 >conftest.err
11895   rm -f conftest.er1
11896   cat conftest.err >&5
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); } &&
11899          { ac_try='test -z "$ac_c_werror_flag"
11900                          || test ! -s conftest.err'
11901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902   (eval $ac_try) 2>&5
11903   ac_status=$?
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); }; } &&
11906          { ac_try='test -s conftest.$ac_objext'
11907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908   (eval $ac_try) 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); }; }; then
11912   ac_cv_member_struct_stat_st_blksize=yes
11913 else
11914   echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917 cat >conftest.$ac_ext <<_ACEOF
11918 /* confdefs.h.  */
11919 _ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h.  */
11923 $ac_includes_default
11924 int
11925 main ()
11926 {
11927 static struct stat ac_aggr;
11928 if (sizeof ac_aggr.st_blksize)
11929 return 0;
11930   ;
11931   return 0;
11932 }
11933 _ACEOF
11934 rm -f conftest.$ac_objext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11936   (eval $ac_compile) 2>conftest.er1
11937   ac_status=$?
11938   grep -v '^ *+' conftest.er1 >conftest.err
11939   rm -f conftest.er1
11940   cat conftest.err >&5
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); } &&
11943          { ac_try='test -z "$ac_c_werror_flag"
11944                          || test ! -s conftest.err'
11945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946   (eval $ac_try) 2>&5
11947   ac_status=$?
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); }; } &&
11950          { ac_try='test -s conftest.$ac_objext'
11951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952   (eval $ac_try) 2>&5
11953   ac_status=$?
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); }; }; then
11956   ac_cv_member_struct_stat_st_blksize=yes
11957 else
11958   echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11960
11961 ac_cv_member_struct_stat_st_blksize=no
11962 fi
11963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11964 fi
11965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11966 fi
11967 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11968 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11969 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11970
11971 cat >>confdefs.h <<_ACEOF
11972 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11973 _ACEOF
11974
11975
11976 cat >>confdefs.h <<\_ACEOF
11977 #define HAVE_ST_BLKSIZE 1
11978 _ACEOF
11979
11980 fi
11981
11982
11983 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11984 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11985 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11986   echo $ECHO_N "(cached) $ECHO_C" >&6
11987 else
11988   cat >conftest.$ac_ext <<_ACEOF
11989 /* confdefs.h.  */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h.  */
11994 $ac_includes_default
11995 int
11996 main ()
11997 {
11998 static struct stat ac_aggr;
11999 if (ac_aggr.st_blocks)
12000 return 0;
12001   ;
12002   return 0;
12003 }
12004 _ACEOF
12005 rm -f conftest.$ac_objext
12006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12007   (eval $ac_compile) 2>conftest.er1
12008   ac_status=$?
12009   grep -v '^ *+' conftest.er1 >conftest.err
12010   rm -f conftest.er1
12011   cat conftest.err >&5
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); } &&
12014          { ac_try='test -z "$ac_c_werror_flag"
12015                          || test ! -s conftest.err'
12016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017   (eval $ac_try) 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; } &&
12021          { ac_try='test -s conftest.$ac_objext'
12022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023   (eval $ac_try) 2>&5
12024   ac_status=$?
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); }; }; then
12027   ac_cv_member_struct_stat_st_blocks=yes
12028 else
12029   echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h.  */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h.  */
12038 $ac_includes_default
12039 int
12040 main ()
12041 {
12042 static struct stat ac_aggr;
12043 if (sizeof ac_aggr.st_blocks)
12044 return 0;
12045   ;
12046   return 0;
12047 }
12048 _ACEOF
12049 rm -f conftest.$ac_objext
12050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12051   (eval $ac_compile) 2>conftest.er1
12052   ac_status=$?
12053   grep -v '^ *+' conftest.er1 >conftest.err
12054   rm -f conftest.er1
12055   cat conftest.err >&5
12056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); } &&
12058          { ac_try='test -z "$ac_c_werror_flag"
12059                          || test ! -s conftest.err'
12060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061   (eval $ac_try) 2>&5
12062   ac_status=$?
12063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064   (exit $ac_status); }; } &&
12065          { ac_try='test -s conftest.$ac_objext'
12066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067   (eval $ac_try) 2>&5
12068   ac_status=$?
12069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070   (exit $ac_status); }; }; then
12071   ac_cv_member_struct_stat_st_blocks=yes
12072 else
12073   echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12075
12076 ac_cv_member_struct_stat_st_blocks=no
12077 fi
12078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12079 fi
12080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12081 fi
12082 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12083 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12084 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12085
12086 cat >>confdefs.h <<_ACEOF
12087 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12088 _ACEOF
12089
12090
12091 cat >>confdefs.h <<\_ACEOF
12092 #define HAVE_ST_BLOCKS 1
12093 _ACEOF
12094
12095 else
12096   case $LIBOBJS in
12097     "fileblocks.$ac_objext"   | \
12098   *" fileblocks.$ac_objext"   | \
12099     "fileblocks.$ac_objext "* | \
12100   *" fileblocks.$ac_objext "* ) ;;
12101   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12102 esac
12103
12104 fi
12105
12106
12107 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12108 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12109 if test "${ac_cv_struct_tm+set}" = set; then
12110   echo $ECHO_N "(cached) $ECHO_C" >&6
12111 else
12112   cat >conftest.$ac_ext <<_ACEOF
12113 /* confdefs.h.  */
12114 _ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h.  */
12118 #include <sys/types.h>
12119 #include <time.h>
12120
12121 int
12122 main ()
12123 {
12124 struct tm *tp; tp->tm_sec;
12125   ;
12126   return 0;
12127 }
12128 _ACEOF
12129 rm -f conftest.$ac_objext
12130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12131   (eval $ac_compile) 2>conftest.er1
12132   ac_status=$?
12133   grep -v '^ *+' conftest.er1 >conftest.err
12134   rm -f conftest.er1
12135   cat conftest.err >&5
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); } &&
12138          { ac_try='test -z "$ac_c_werror_flag"
12139                          || test ! -s conftest.err'
12140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141   (eval $ac_try) 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); }; } &&
12145          { ac_try='test -s conftest.$ac_objext'
12146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147   (eval $ac_try) 2>&5
12148   ac_status=$?
12149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150   (exit $ac_status); }; }; then
12151   ac_cv_struct_tm=time.h
12152 else
12153   echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12155
12156 ac_cv_struct_tm=sys/time.h
12157 fi
12158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12159 fi
12160 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12161 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12162 if test $ac_cv_struct_tm = sys/time.h; then
12163
12164 cat >>confdefs.h <<\_ACEOF
12165 #define TM_IN_SYS_TIME 1
12166 _ACEOF
12167
12168 fi
12169
12170 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12171 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12172 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12173   echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175   cat >conftest.$ac_ext <<_ACEOF
12176 /* confdefs.h.  */
12177 _ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h.  */
12181 #include <sys/types.h>
12182 #include <$ac_cv_struct_tm>
12183
12184
12185 int
12186 main ()
12187 {
12188 static struct tm ac_aggr;
12189 if (ac_aggr.tm_zone)
12190 return 0;
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12197   (eval $ac_compile) 2>conftest.er1
12198   ac_status=$?
12199   grep -v '^ *+' conftest.er1 >conftest.err
12200   rm -f conftest.er1
12201   cat conftest.err >&5
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } &&
12204          { ac_try='test -z "$ac_c_werror_flag"
12205                          || test ! -s conftest.err'
12206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207   (eval $ac_try) 2>&5
12208   ac_status=$?
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); }; } &&
12211          { ac_try='test -s conftest.$ac_objext'
12212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213   (eval $ac_try) 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; }; then
12217   ac_cv_member_struct_tm_tm_zone=yes
12218 else
12219   echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12221
12222 cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h.  */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h.  */
12228 #include <sys/types.h>
12229 #include <$ac_cv_struct_tm>
12230
12231
12232 int
12233 main ()
12234 {
12235 static struct tm ac_aggr;
12236 if (sizeof ac_aggr.tm_zone)
12237 return 0;
12238   ;
12239   return 0;
12240 }
12241 _ACEOF
12242 rm -f conftest.$ac_objext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12244   (eval $ac_compile) 2>conftest.er1
12245   ac_status=$?
12246   grep -v '^ *+' conftest.er1 >conftest.err
12247   rm -f conftest.er1
12248   cat conftest.err >&5
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); } &&
12251          { ac_try='test -z "$ac_c_werror_flag"
12252                          || test ! -s conftest.err'
12253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254   (eval $ac_try) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); }; } &&
12258          { ac_try='test -s conftest.$ac_objext'
12259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260   (eval $ac_try) 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); }; }; then
12264   ac_cv_member_struct_tm_tm_zone=yes
12265 else
12266   echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12268
12269 ac_cv_member_struct_tm_tm_zone=no
12270 fi
12271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12272 fi
12273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12274 fi
12275 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12276 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12277 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12278
12279 cat >>confdefs.h <<_ACEOF
12280 #define HAVE_STRUCT_TM_TM_ZONE 1
12281 _ACEOF
12282
12283
12284 fi
12285
12286 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12287
12288 cat >>confdefs.h <<\_ACEOF
12289 #define HAVE_TM_ZONE 1
12290 _ACEOF
12291
12292 else
12293   echo "$as_me:$LINENO: checking for tzname" >&5
12294 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12295 if test "${ac_cv_var_tzname+set}" = set; then
12296   echo $ECHO_N "(cached) $ECHO_C" >&6
12297 else
12298   cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h.  */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h.  */
12304 #include <time.h>
12305 #ifndef tzname /* For SGI.  */
12306 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12307 #endif
12308
12309 int
12310 main ()
12311 {
12312 atoi(*tzname);
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 rm -f conftest.$ac_objext conftest$ac_exeext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12319   (eval $ac_link) 2>conftest.er1
12320   ac_status=$?
12321   grep -v '^ *+' conftest.er1 >conftest.err
12322   rm -f conftest.er1
12323   cat conftest.err >&5
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); } &&
12326          { ac_try='test -z "$ac_c_werror_flag"
12327                          || test ! -s conftest.err'
12328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329   (eval $ac_try) 2>&5
12330   ac_status=$?
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); }; } &&
12333          { ac_try='test -s conftest$ac_exeext'
12334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335   (eval $ac_try) 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); }; }; then
12339   ac_cv_var_tzname=yes
12340 else
12341   echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12343
12344 ac_cv_var_tzname=no
12345 fi
12346 rm -f conftest.err conftest.$ac_objext \
12347       conftest$ac_exeext conftest.$ac_ext
12348 fi
12349 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12350 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12351   if test $ac_cv_var_tzname = yes; then
12352
12353 cat >>confdefs.h <<\_ACEOF
12354 #define HAVE_TZNAME 1
12355 _ACEOF
12356
12357   fi
12358 fi
12359
12360
12361 echo "$as_me:$LINENO: checking for utime.h" >&5
12362 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12363 if test "${ba_cv_header_utime_h+set}" = set; then
12364   echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366   cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h.  */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h.  */
12372
12373 #include <sys/types.h>
12374 #include <utime.h>
12375 int
12376 main ()
12377 {
12378 struct utimbuf foo
12379   ;
12380   return 0;
12381 }
12382 _ACEOF
12383 rm -f conftest.$ac_objext
12384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12385   (eval $ac_compile) 2>conftest.er1
12386   ac_status=$?
12387   grep -v '^ *+' conftest.er1 >conftest.err
12388   rm -f conftest.er1
12389   cat conftest.err >&5
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); } &&
12392          { ac_try='test -z "$ac_c_werror_flag"
12393                          || test ! -s conftest.err'
12394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395   (eval $ac_try) 2>&5
12396   ac_status=$?
12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); }; } &&
12399          { ac_try='test -s conftest.$ac_objext'
12400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401   (eval $ac_try) 2>&5
12402   ac_status=$?
12403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); }; }; then
12405   ba_cv_header_utime_h=yes
12406 else
12407   echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12409
12410 ba_cv_header_utime_h=no
12411 fi
12412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12413 fi
12414 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12415 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12416 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12417 #define HAVE_UTIME_H 1
12418 _ACEOF
12419
12420
12421 echo "$as_me:$LINENO: checking for socklen_t" >&5
12422 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12423 if test "${ba_cv_header_socklen_t+set}" = set; then
12424   echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426   cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h.  */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h.  */
12432
12433 #include <sys/types.h>
12434 #include <sys/socket.h>
12435 int
12436 main ()
12437 {
12438 socklen_t x
12439   ;
12440   return 0;
12441 }
12442 _ACEOF
12443 rm -f conftest.$ac_objext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445   (eval $ac_compile) 2>conftest.er1
12446   ac_status=$?
12447   grep -v '^ *+' conftest.er1 >conftest.err
12448   rm -f conftest.er1
12449   cat conftest.err >&5
12450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451   (exit $ac_status); } &&
12452          { ac_try='test -z "$ac_c_werror_flag"
12453                          || test ! -s conftest.err'
12454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455   (eval $ac_try) 2>&5
12456   ac_status=$?
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); }; } &&
12459          { ac_try='test -s conftest.$ac_objext'
12460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461   (eval $ac_try) 2>&5
12462   ac_status=$?
12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464   (exit $ac_status); }; }; then
12465   ba_cv_header_socklen_t=yes
12466 else
12467   echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12469
12470 ba_cv_header_socklen_t=no
12471 fi
12472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12473 fi
12474 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12475 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12476 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12477 #define HAVE_SOCKLEN_T 1
12478 _ACEOF
12479
12480
12481 echo "$as_me:$LINENO: checking for bigendian" >&5
12482 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12483 if test "${ba_cv_bigendian+set}" = set; then
12484   echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486   if test "$cross_compiling" = yes; then
12487   ba_cv_bigendian=no
12488 else
12489   cat >conftest.$ac_ext <<_ACEOF
12490 /* confdefs.h.  */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h.  */
12495 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12496 _ACEOF
12497 rm -f conftest$ac_exeext
12498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12499   (eval $ac_link) 2>&5
12500   ac_status=$?
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504   (eval $ac_try) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); }; }; then
12508   ba_cv_bigendian=yes
12509 else
12510   echo "$as_me: program exited with status $ac_status" >&5
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12513
12514 ( exit $ac_status )
12515 ba_cv_bigendian=no
12516 fi
12517 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12518 fi
12519 fi
12520 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12521 echo "${ECHO_T}$ba_cv_bigendian" >&6
12522 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12523 #define HAVE_BIGENDIAN 1
12524 _ACEOF
12525
12526
12527
12528 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12529 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12530 if test "${ac_cv_c_const+set}" = set; then
12531   echo $ECHO_N "(cached) $ECHO_C" >&6
12532 else
12533   cat >conftest.$ac_ext <<_ACEOF
12534 /* confdefs.h.  */
12535 _ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h.  */
12539
12540 int
12541 main ()
12542 {
12543 /* FIXME: Include the comments suggested by Paul. */
12544 #ifndef __cplusplus
12545   /* Ultrix mips cc rejects this.  */
12546   typedef int charset[2];
12547   const charset x;
12548   /* SunOS 4.1.1 cc rejects this.  */
12549   char const *const *ccp;
12550   char **p;
12551   /* NEC SVR4.0.2 mips cc rejects this.  */
12552   struct point {int x, y;};
12553   static struct point const zero = {0,0};
12554   /* AIX XL C 1.02.0.0 rejects this.
12555      It does not let you subtract one const X* pointer from another in
12556      an arm of an if-expression whose if-part is not a constant
12557      expression */
12558   const char *g = "string";
12559   ccp = &g + (g ? g-g : 0);
12560   /* HPUX 7.0 cc rejects these. */
12561   ++ccp;
12562   p = (char**) ccp;
12563   ccp = (char const *const *) p;
12564   { /* SCO 3.2v4 cc rejects this.  */
12565     char *t;
12566     char const *s = 0 ? (char *) 0 : (char const *) 0;
12567
12568     *t++ = 0;
12569   }
12570   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12571     int x[] = {25, 17};
12572     const int *foo = &x[0];
12573     ++foo;
12574   }
12575   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12576     typedef const int *iptr;
12577     iptr p = 0;
12578     ++p;
12579   }
12580   { /* AIX XL C 1.02.0.0 rejects this saying
12581        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12582     struct s { int j; const int *ap[3]; };
12583     struct s *b; b->j = 5;
12584   }
12585   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12586     const int foo = 10;
12587   }
12588 #endif
12589
12590   ;
12591   return 0;
12592 }
12593 _ACEOF
12594 rm -f conftest.$ac_objext
12595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12596   (eval $ac_compile) 2>conftest.er1
12597   ac_status=$?
12598   grep -v '^ *+' conftest.er1 >conftest.err
12599   rm -f conftest.er1
12600   cat conftest.err >&5
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); } &&
12603          { ac_try='test -z "$ac_c_werror_flag"
12604                          || test ! -s conftest.err'
12605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606   (eval $ac_try) 2>&5
12607   ac_status=$?
12608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609   (exit $ac_status); }; } &&
12610          { ac_try='test -s conftest.$ac_objext'
12611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612   (eval $ac_try) 2>&5
12613   ac_status=$?
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); }; }; then
12616   ac_cv_c_const=yes
12617 else
12618   echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12620
12621 ac_cv_c_const=no
12622 fi
12623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12624 fi
12625 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12626 echo "${ECHO_T}$ac_cv_c_const" >&6
12627 if test $ac_cv_c_const = no; then
12628
12629 cat >>confdefs.h <<\_ACEOF
12630 #define const
12631 _ACEOF
12632
12633 fi
12634
12635
12636
12637 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12638 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12639 fstype=no
12640 # The order of these tests is important.
12641 cat >conftest.$ac_ext <<_ACEOF
12642 /* confdefs.h.  */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h.  */
12647 #include <sys/statvfs.h>
12648 #include <sys/fstyp.h>
12649 _ACEOF
12650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12652   ac_status=$?
12653   grep -v '^ *+' conftest.er1 >conftest.err
12654   rm -f conftest.er1
12655   cat conftest.err >&5
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); } >/dev/null; then
12658   if test -s conftest.err; then
12659     ac_cpp_err=$ac_c_preproc_warn_flag
12660     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12661   else
12662     ac_cpp_err=
12663   fi
12664 else
12665   ac_cpp_err=yes
12666 fi
12667 if test -z "$ac_cpp_err"; then
12668   cat >>confdefs.h <<\_ACEOF
12669 #define FSTYPE_STATVFS 1
12670 _ACEOF
12671  fstype=SVR4
12672 else
12673   echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12675
12676
12677 fi
12678 rm -f conftest.err conftest.$ac_ext
12679 if test $fstype = no; then
12680 cat >conftest.$ac_ext <<_ACEOF
12681 /* confdefs.h.  */
12682 _ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h.  */
12686 #include <sys/statfs.h>
12687 #include <sys/fstyp.h>
12688 _ACEOF
12689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12691   ac_status=$?
12692   grep -v '^ *+' conftest.er1 >conftest.err
12693   rm -f conftest.er1
12694   cat conftest.err >&5
12695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); } >/dev/null; then
12697   if test -s conftest.err; then
12698     ac_cpp_err=$ac_c_preproc_warn_flag
12699     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12700   else
12701     ac_cpp_err=
12702   fi
12703 else
12704   ac_cpp_err=yes
12705 fi
12706 if test -z "$ac_cpp_err"; then
12707   cat >>confdefs.h <<\_ACEOF
12708 #define FSTYPE_USG_STATFS 1
12709 _ACEOF
12710  fstype=SVR3
12711 else
12712   echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12714
12715
12716 fi
12717 rm -f conftest.err conftest.$ac_ext
12718 fi
12719 if test $fstype = no; then
12720 cat >conftest.$ac_ext <<_ACEOF
12721 /* confdefs.h.  */
12722 _ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h.  */
12726 #include <sys/statfs.h>
12727 #include <sys/vmount.h>
12728 _ACEOF
12729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12730   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12731   ac_status=$?
12732   grep -v '^ *+' conftest.er1 >conftest.err
12733   rm -f conftest.er1
12734   cat conftest.err >&5
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); } >/dev/null; then
12737   if test -s conftest.err; then
12738     ac_cpp_err=$ac_c_preproc_warn_flag
12739     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12740   else
12741     ac_cpp_err=
12742   fi
12743 else
12744   ac_cpp_err=yes
12745 fi
12746 if test -z "$ac_cpp_err"; then
12747   cat >>confdefs.h <<\_ACEOF
12748 #define FSTYPE_AIX_STATFS 1
12749 _ACEOF
12750  fstype=AIX
12751 else
12752   echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755
12756 fi
12757 rm -f conftest.err conftest.$ac_ext
12758 fi
12759 if test $fstype = no; then
12760 cat >conftest.$ac_ext <<_ACEOF
12761 /* confdefs.h.  */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h.  */
12766 #include <mntent.h>
12767 _ACEOF
12768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12769   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12770   ac_status=$?
12771   grep -v '^ *+' conftest.er1 >conftest.err
12772   rm -f conftest.er1
12773   cat conftest.err >&5
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); } >/dev/null; then
12776   if test -s conftest.err; then
12777     ac_cpp_err=$ac_c_preproc_warn_flag
12778     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12779   else
12780     ac_cpp_err=
12781   fi
12782 else
12783   ac_cpp_err=yes
12784 fi
12785 if test -z "$ac_cpp_err"; then
12786   cat >>confdefs.h <<\_ACEOF
12787 #define FSTYPE_MNTENT 1
12788 _ACEOF
12789  fstype=4.3BSD
12790 else
12791   echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12793
12794
12795 fi
12796 rm -f conftest.err conftest.$ac_ext
12797 fi
12798 if test $fstype = no; then
12799 cat >conftest.$ac_ext <<_ACEOF
12800 /* confdefs.h.  */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h.  */
12805 #include <sys/mount.h>
12806
12807 _ACEOF
12808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12809   $EGREP "f_type;" >/dev/null 2>&1; then
12810   cat >>confdefs.h <<\_ACEOF
12811 #define FSTYPE_STATFS 1
12812 _ACEOF
12813  fstype=4.4BSD/OSF1
12814 fi
12815 rm -f conftest*
12816
12817 fi
12818 if test $fstype = no; then
12819 cat >conftest.$ac_ext <<_ACEOF
12820 /* confdefs.h.  */
12821 _ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h.  */
12825 #include <sys/mount.h>
12826 #include <sys/fs_types.h>
12827 _ACEOF
12828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12829   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12830   ac_status=$?
12831   grep -v '^ *+' conftest.er1 >conftest.err
12832   rm -f conftest.er1
12833   cat conftest.err >&5
12834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835   (exit $ac_status); } >/dev/null; then
12836   if test -s conftest.err; then
12837     ac_cpp_err=$ac_c_preproc_warn_flag
12838     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12839   else
12840     ac_cpp_err=
12841   fi
12842 else
12843   ac_cpp_err=yes
12844 fi
12845 if test -z "$ac_cpp_err"; then
12846   cat >>confdefs.h <<\_ACEOF
12847 #define FSTYPE_GETMNT 1
12848 _ACEOF
12849  fstype=Ultrix
12850 else
12851   echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12853
12854
12855 fi
12856 rm -f conftest.err conftest.$ac_ext
12857 fi
12858 echo "$as_me:$LINENO: result: $fstype" >&5
12859 echo "${ECHO_T}$fstype" >&6
12860
12861 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12862 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12863 if test "${ac_cv_type_signal+set}" = set; then
12864   echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866   cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h.  */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h.  */
12872 #include <sys/types.h>
12873 #include <signal.h>
12874 #ifdef signal
12875 # undef signal
12876 #endif
12877 #ifdef __cplusplus
12878 extern "C" void (*signal (int, void (*)(int)))(int);
12879 #else
12880 void (*signal ()) ();
12881 #endif
12882
12883 int
12884 main ()
12885 {
12886 int i;
12887   ;
12888   return 0;
12889 }
12890 _ACEOF
12891 rm -f conftest.$ac_objext
12892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12893   (eval $ac_compile) 2>conftest.er1
12894   ac_status=$?
12895   grep -v '^ *+' conftest.er1 >conftest.err
12896   rm -f conftest.er1
12897   cat conftest.err >&5
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); } &&
12900          { ac_try='test -z "$ac_c_werror_flag"
12901                          || test ! -s conftest.err'
12902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903   (eval $ac_try) 2>&5
12904   ac_status=$?
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); }; } &&
12907          { ac_try='test -s conftest.$ac_objext'
12908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909   (eval $ac_try) 2>&5
12910   ac_status=$?
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); }; }; then
12913   ac_cv_type_signal=void
12914 else
12915   echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12917
12918 ac_cv_type_signal=int
12919 fi
12920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12921 fi
12922 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12923 echo "${ECHO_T}$ac_cv_type_signal" >&6
12924
12925 cat >>confdefs.h <<_ACEOF
12926 #define RETSIGTYPE $ac_cv_type_signal
12927 _ACEOF
12928
12929
12930
12931 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12932 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12933 if test "${bash_cv_signal_vintage+set}" = set; then
12934   echo $ECHO_N "(cached) $ECHO_C" >&6
12935 else
12936
12937   cat >conftest.$ac_ext <<_ACEOF
12938 /* confdefs.h.  */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h.  */
12943 #include <signal.h>
12944 int
12945 main ()
12946 {
12947
12948     sigset_t ss;
12949     struct sigaction sa;
12950     sigemptyset(&ss); sigsuspend(&ss);
12951     sigaction(SIGINT, &sa, (struct sigaction *) 0);
12952     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12953
12954   ;
12955   return 0;
12956 }
12957 _ACEOF
12958 rm -f conftest.$ac_objext conftest$ac_exeext
12959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12960   (eval $ac_link) 2>conftest.er1
12961   ac_status=$?
12962   grep -v '^ *+' conftest.er1 >conftest.err
12963   rm -f conftest.er1
12964   cat conftest.err >&5
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); } &&
12967          { ac_try='test -z "$ac_c_werror_flag"
12968                          || test ! -s conftest.err'
12969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970   (eval $ac_try) 2>&5
12971   ac_status=$?
12972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); }; } &&
12974          { ac_try='test -s conftest$ac_exeext'
12975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976   (eval $ac_try) 2>&5
12977   ac_status=$?
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); }; }; then
12980   bash_cv_signal_vintage=posix
12981 else
12982   echo "$as_me: failed program was:" >&5
12983 sed 's/^/| /' conftest.$ac_ext >&5
12984
12985
12986     cat >conftest.$ac_ext <<_ACEOF
12987 /* confdefs.h.  */
12988 _ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h.  */
12992 #include <signal.h>
12993 int
12994 main ()
12995 {
12996
12997         int mask = sigmask(SIGINT);
12998         sigsetmask(mask); sigblock(mask); sigpause(mask);
12999
13000   ;
13001   return 0;
13002 }
13003 _ACEOF
13004 rm -f conftest.$ac_objext conftest$ac_exeext
13005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13006   (eval $ac_link) 2>conftest.er1
13007   ac_status=$?
13008   grep -v '^ *+' conftest.er1 >conftest.err
13009   rm -f conftest.er1
13010   cat conftest.err >&5
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); } &&
13013          { ac_try='test -z "$ac_c_werror_flag"
13014                          || test ! -s conftest.err'
13015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016   (eval $ac_try) 2>&5
13017   ac_status=$?
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); }; } &&
13020          { ac_try='test -s conftest$ac_exeext'
13021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022   (eval $ac_try) 2>&5
13023   ac_status=$?
13024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); }; }; then
13026   bash_cv_signal_vintage=4.2bsd
13027 else
13028   echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13030
13031
13032       cat >conftest.$ac_ext <<_ACEOF
13033 /* confdefs.h.  */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h.  */
13038
13039         #include <signal.h>
13040         RETSIGTYPE foo() { }
13041 int
13042 main ()
13043 {
13044
13045                 int mask = sigmask(SIGINT);
13046                 sigset(SIGINT, foo); sigrelse(SIGINT);
13047                 sighold(SIGINT); sigpause(SIGINT);
13048
13049   ;
13050   return 0;
13051 }
13052 _ACEOF
13053 rm -f conftest.$ac_objext conftest$ac_exeext
13054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13055   (eval $ac_link) 2>conftest.er1
13056   ac_status=$?
13057   grep -v '^ *+' conftest.er1 >conftest.err
13058   rm -f conftest.er1
13059   cat conftest.err >&5
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); } &&
13062          { ac_try='test -z "$ac_c_werror_flag"
13063                          || test ! -s conftest.err'
13064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065   (eval $ac_try) 2>&5
13066   ac_status=$?
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); }; } &&
13069          { ac_try='test -s conftest$ac_exeext'
13070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071   (eval $ac_try) 2>&5
13072   ac_status=$?
13073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074   (exit $ac_status); }; }; then
13075   bash_cv_signal_vintage=svr3
13076 else
13077   echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13079
13080 bash_cv_signal_vintage=v7
13081
13082 fi
13083 rm -f conftest.err conftest.$ac_objext \
13084       conftest$ac_exeext conftest.$ac_ext
13085
13086 fi
13087 rm -f conftest.err conftest.$ac_objext \
13088       conftest$ac_exeext conftest.$ac_ext
13089
13090 fi
13091 rm -f conftest.err conftest.$ac_objext \
13092       conftest$ac_exeext conftest.$ac_ext
13093
13094 fi
13095
13096 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13097 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13098 if test "$bash_cv_signal_vintage" = posix; then
13099 cat >>confdefs.h <<\_ACEOF
13100 #define HAVE_POSIX_SIGNALS 1
13101 _ACEOF
13102
13103 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13104 cat >>confdefs.h <<\_ACEOF
13105 #define HAVE_BSD_SIGNALS 1
13106 _ACEOF
13107
13108 elif test "$bash_cv_signal_vintage" = svr3; then
13109 cat >>confdefs.h <<\_ACEOF
13110 #define HAVE_USG_SIGHOLD 1
13111 _ACEOF
13112
13113 fi
13114
13115 echo "$as_me:$LINENO: checking for mode_t" >&5
13116 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13117 if test "${ac_cv_type_mode_t+set}" = set; then
13118   echo $ECHO_N "(cached) $ECHO_C" >&6
13119 else
13120   cat >conftest.$ac_ext <<_ACEOF
13121 /* confdefs.h.  */
13122 _ACEOF
13123 cat confdefs.h >>conftest.$ac_ext
13124 cat >>conftest.$ac_ext <<_ACEOF
13125 /* end confdefs.h.  */
13126 $ac_includes_default
13127 int
13128 main ()
13129 {
13130 if ((mode_t *) 0)
13131   return 0;
13132 if (sizeof (mode_t))
13133   return 0;
13134   ;
13135   return 0;
13136 }
13137 _ACEOF
13138 rm -f conftest.$ac_objext
13139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13140   (eval $ac_compile) 2>conftest.er1
13141   ac_status=$?
13142   grep -v '^ *+' conftest.er1 >conftest.err
13143   rm -f conftest.er1
13144   cat conftest.err >&5
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); } &&
13147          { ac_try='test -z "$ac_c_werror_flag"
13148                          || test ! -s conftest.err'
13149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150   (eval $ac_try) 2>&5
13151   ac_status=$?
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); }; } &&
13154          { ac_try='test -s conftest.$ac_objext'
13155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156   (eval $ac_try) 2>&5
13157   ac_status=$?
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); }; }; then
13160   ac_cv_type_mode_t=yes
13161 else
13162   echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165 ac_cv_type_mode_t=no
13166 fi
13167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13168 fi
13169 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13170 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13171 if test $ac_cv_type_mode_t = yes; then
13172   :
13173 else
13174
13175 cat >>confdefs.h <<_ACEOF
13176 #define mode_t int
13177 _ACEOF
13178
13179 fi
13180
13181 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13182 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13183 if test "${ac_cv_type_uid_t+set}" = set; then
13184   echo $ECHO_N "(cached) $ECHO_C" >&6
13185 else
13186   cat >conftest.$ac_ext <<_ACEOF
13187 /* confdefs.h.  */
13188 _ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h.  */
13192 #include <sys/types.h>
13193
13194 _ACEOF
13195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13196   $EGREP "uid_t" >/dev/null 2>&1; then
13197   ac_cv_type_uid_t=yes
13198 else
13199   ac_cv_type_uid_t=no
13200 fi
13201 rm -f conftest*
13202
13203 fi
13204 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13205 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13206 if test $ac_cv_type_uid_t = no; then
13207
13208 cat >>confdefs.h <<\_ACEOF
13209 #define uid_t int
13210 _ACEOF
13211
13212
13213 cat >>confdefs.h <<\_ACEOF
13214 #define gid_t int
13215 _ACEOF
13216
13217 fi
13218
13219 echo "$as_me:$LINENO: checking for size_t" >&5
13220 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13221 if test "${ac_cv_type_size_t+set}" = set; then
13222   echo $ECHO_N "(cached) $ECHO_C" >&6
13223 else
13224   cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h.  */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h.  */
13230 $ac_includes_default
13231 int
13232 main ()
13233 {
13234 if ((size_t *) 0)
13235   return 0;
13236 if (sizeof (size_t))
13237   return 0;
13238   ;
13239   return 0;
13240 }
13241 _ACEOF
13242 rm -f conftest.$ac_objext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13244   (eval $ac_compile) 2>conftest.er1
13245   ac_status=$?
13246   grep -v '^ *+' conftest.er1 >conftest.err
13247   rm -f conftest.er1
13248   cat conftest.err >&5
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); } &&
13251          { ac_try='test -z "$ac_c_werror_flag"
13252                          || test ! -s conftest.err'
13253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254   (eval $ac_try) 2>&5
13255   ac_status=$?
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); }; } &&
13258          { ac_try='test -s conftest.$ac_objext'
13259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260   (eval $ac_try) 2>&5
13261   ac_status=$?
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); }; }; then
13264   ac_cv_type_size_t=yes
13265 else
13266   echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13268
13269 ac_cv_type_size_t=no
13270 fi
13271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13272 fi
13273 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13274 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13275 if test $ac_cv_type_size_t = yes; then
13276   :
13277 else
13278
13279 cat >>confdefs.h <<_ACEOF
13280 #define size_t unsigned
13281 _ACEOF
13282
13283 fi
13284
13285 echo "$as_me:$LINENO: checking for pid_t" >&5
13286 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13287 if test "${ac_cv_type_pid_t+set}" = set; then
13288   echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290   cat >conftest.$ac_ext <<_ACEOF
13291 /* confdefs.h.  */
13292 _ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h.  */
13296 $ac_includes_default
13297 int
13298 main ()
13299 {
13300 if ((pid_t *) 0)
13301   return 0;
13302 if (sizeof (pid_t))
13303   return 0;
13304   ;
13305   return 0;
13306 }
13307 _ACEOF
13308 rm -f conftest.$ac_objext
13309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13310   (eval $ac_compile) 2>conftest.er1
13311   ac_status=$?
13312   grep -v '^ *+' conftest.er1 >conftest.err
13313   rm -f conftest.er1
13314   cat conftest.err >&5
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); } &&
13317          { ac_try='test -z "$ac_c_werror_flag"
13318                          || test ! -s conftest.err'
13319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320   (eval $ac_try) 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); }; } &&
13324          { ac_try='test -s conftest.$ac_objext'
13325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326   (eval $ac_try) 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); }; }; then
13330   ac_cv_type_pid_t=yes
13331 else
13332   echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.$ac_ext >&5
13334
13335 ac_cv_type_pid_t=no
13336 fi
13337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13338 fi
13339 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13340 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13341 if test $ac_cv_type_pid_t = yes; then
13342   :
13343 else
13344
13345 cat >>confdefs.h <<_ACEOF
13346 #define pid_t int
13347 _ACEOF
13348
13349 fi
13350
13351 echo "$as_me:$LINENO: checking for off_t" >&5
13352 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13353 if test "${ac_cv_type_off_t+set}" = set; then
13354   echo $ECHO_N "(cached) $ECHO_C" >&6
13355 else
13356   cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h.  */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h.  */
13362 $ac_includes_default
13363 int
13364 main ()
13365 {
13366 if ((off_t *) 0)
13367   return 0;
13368 if (sizeof (off_t))
13369   return 0;
13370   ;
13371   return 0;
13372 }
13373 _ACEOF
13374 rm -f conftest.$ac_objext
13375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13376   (eval $ac_compile) 2>conftest.er1
13377   ac_status=$?
13378   grep -v '^ *+' conftest.er1 >conftest.err
13379   rm -f conftest.er1
13380   cat conftest.err >&5
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); } &&
13383          { ac_try='test -z "$ac_c_werror_flag"
13384                          || test ! -s conftest.err'
13385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386   (eval $ac_try) 2>&5
13387   ac_status=$?
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); }; } &&
13390          { ac_try='test -s conftest.$ac_objext'
13391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392   (eval $ac_try) 2>&5
13393   ac_status=$?
13394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395   (exit $ac_status); }; }; then
13396   ac_cv_type_off_t=yes
13397 else
13398   echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13400
13401 ac_cv_type_off_t=no
13402 fi
13403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13404 fi
13405 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13406 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13407 if test $ac_cv_type_off_t = yes; then
13408   :
13409 else
13410
13411 cat >>confdefs.h <<_ACEOF
13412 #define off_t long
13413 _ACEOF
13414
13415 fi
13416
13417 echo "$as_me:$LINENO: checking for ino_t" >&5
13418 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13419 if test "${ac_cv_type_ino_t+set}" = set; then
13420   echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422   cat >conftest.$ac_ext <<_ACEOF
13423 /* confdefs.h.  */
13424 _ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h.  */
13428 $ac_includes_default
13429 int
13430 main ()
13431 {
13432 if ((ino_t *) 0)
13433   return 0;
13434 if (sizeof (ino_t))
13435   return 0;
13436   ;
13437   return 0;
13438 }
13439 _ACEOF
13440 rm -f conftest.$ac_objext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13442   (eval $ac_compile) 2>conftest.er1
13443   ac_status=$?
13444   grep -v '^ *+' conftest.er1 >conftest.err
13445   rm -f conftest.er1
13446   cat conftest.err >&5
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); } &&
13449          { ac_try='test -z "$ac_c_werror_flag"
13450                          || test ! -s conftest.err'
13451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452   (eval $ac_try) 2>&5
13453   ac_status=$?
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); }; } &&
13456          { ac_try='test -s conftest.$ac_objext'
13457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458   (eval $ac_try) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; }; then
13462   ac_cv_type_ino_t=yes
13463 else
13464   echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13466
13467 ac_cv_type_ino_t=no
13468 fi
13469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13470 fi
13471 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13472 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13473 if test $ac_cv_type_ino_t = yes; then
13474   :
13475 else
13476
13477 cat >>confdefs.h <<_ACEOF
13478 #define ino_t unsigned long
13479 _ACEOF
13480
13481 fi
13482
13483 echo "$as_me:$LINENO: checking for dev_t" >&5
13484 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13485 if test "${ac_cv_type_dev_t+set}" = set; then
13486   echo $ECHO_N "(cached) $ECHO_C" >&6
13487 else
13488   cat >conftest.$ac_ext <<_ACEOF
13489 /* confdefs.h.  */
13490 _ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h.  */
13494 $ac_includes_default
13495 int
13496 main ()
13497 {
13498 if ((dev_t *) 0)
13499   return 0;
13500 if (sizeof (dev_t))
13501   return 0;
13502   ;
13503   return 0;
13504 }
13505 _ACEOF
13506 rm -f conftest.$ac_objext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508   (eval $ac_compile) 2>conftest.er1
13509   ac_status=$?
13510   grep -v '^ *+' conftest.er1 >conftest.err
13511   rm -f conftest.er1
13512   cat conftest.err >&5
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); } &&
13515          { ac_try='test -z "$ac_c_werror_flag"
13516                          || test ! -s conftest.err'
13517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518   (eval $ac_try) 2>&5
13519   ac_status=$?
13520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521   (exit $ac_status); }; } &&
13522          { ac_try='test -s conftest.$ac_objext'
13523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524   (eval $ac_try) 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); }; }; then
13528   ac_cv_type_dev_t=yes
13529 else
13530   echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13532
13533 ac_cv_type_dev_t=no
13534 fi
13535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13536 fi
13537 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13538 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13539 if test $ac_cv_type_dev_t = yes; then
13540   :
13541 else
13542
13543 cat >>confdefs.h <<_ACEOF
13544 #define dev_t unsigned long
13545 _ACEOF
13546
13547 fi
13548
13549 echo "$as_me:$LINENO: checking for daddr_t" >&5
13550 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13551 if test "${ac_cv_type_daddr_t+set}" = set; then
13552   echo $ECHO_N "(cached) $ECHO_C" >&6
13553 else
13554   cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h.  */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h.  */
13560 $ac_includes_default
13561 int
13562 main ()
13563 {
13564 if ((daddr_t *) 0)
13565   return 0;
13566 if (sizeof (daddr_t))
13567   return 0;
13568   ;
13569   return 0;
13570 }
13571 _ACEOF
13572 rm -f conftest.$ac_objext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574   (eval $ac_compile) 2>conftest.er1
13575   ac_status=$?
13576   grep -v '^ *+' conftest.er1 >conftest.err
13577   rm -f conftest.er1
13578   cat conftest.err >&5
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); } &&
13581          { ac_try='test -z "$ac_c_werror_flag"
13582                          || test ! -s conftest.err'
13583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584   (eval $ac_try) 2>&5
13585   ac_status=$?
13586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); }; } &&
13588          { ac_try='test -s conftest.$ac_objext'
13589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590   (eval $ac_try) 2>&5
13591   ac_status=$?
13592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593   (exit $ac_status); }; }; then
13594   ac_cv_type_daddr_t=yes
13595 else
13596   echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13598
13599 ac_cv_type_daddr_t=no
13600 fi
13601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13602 fi
13603 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13604 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13605 if test $ac_cv_type_daddr_t = yes; then
13606   :
13607 else
13608
13609 cat >>confdefs.h <<_ACEOF
13610 #define daddr_t long
13611 _ACEOF
13612
13613 fi
13614
13615 echo "$as_me:$LINENO: checking for major_t" >&5
13616 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13617 if test "${ac_cv_type_major_t+set}" = set; then
13618   echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620   cat >conftest.$ac_ext <<_ACEOF
13621 /* confdefs.h.  */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h.  */
13626 $ac_includes_default
13627 int
13628 main ()
13629 {
13630 if ((major_t *) 0)
13631   return 0;
13632 if (sizeof (major_t))
13633   return 0;
13634   ;
13635   return 0;
13636 }
13637 _ACEOF
13638 rm -f conftest.$ac_objext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13640   (eval $ac_compile) 2>conftest.er1
13641   ac_status=$?
13642   grep -v '^ *+' conftest.er1 >conftest.err
13643   rm -f conftest.er1
13644   cat conftest.err >&5
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); } &&
13647          { ac_try='test -z "$ac_c_werror_flag"
13648                          || test ! -s conftest.err'
13649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650   (eval $ac_try) 2>&5
13651   ac_status=$?
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); }; } &&
13654          { ac_try='test -s conftest.$ac_objext'
13655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656   (eval $ac_try) 2>&5
13657   ac_status=$?
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); }; }; then
13660   ac_cv_type_major_t=yes
13661 else
13662   echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13664
13665 ac_cv_type_major_t=no
13666 fi
13667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13668 fi
13669 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13670 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13671 if test $ac_cv_type_major_t = yes; then
13672   :
13673 else
13674
13675 cat >>confdefs.h <<_ACEOF
13676 #define major_t int
13677 _ACEOF
13678
13679 fi
13680
13681 echo "$as_me:$LINENO: checking for minor_t" >&5
13682 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13683 if test "${ac_cv_type_minor_t+set}" = set; then
13684   echo $ECHO_N "(cached) $ECHO_C" >&6
13685 else
13686   cat >conftest.$ac_ext <<_ACEOF
13687 /* confdefs.h.  */
13688 _ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h.  */
13692 $ac_includes_default
13693 int
13694 main ()
13695 {
13696 if ((minor_t *) 0)
13697   return 0;
13698 if (sizeof (minor_t))
13699   return 0;
13700   ;
13701   return 0;
13702 }
13703 _ACEOF
13704 rm -f conftest.$ac_objext
13705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13706   (eval $ac_compile) 2>conftest.er1
13707   ac_status=$?
13708   grep -v '^ *+' conftest.er1 >conftest.err
13709   rm -f conftest.er1
13710   cat conftest.err >&5
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); } &&
13713          { ac_try='test -z "$ac_c_werror_flag"
13714                          || test ! -s conftest.err'
13715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716   (eval $ac_try) 2>&5
13717   ac_status=$?
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); }; } &&
13720          { ac_try='test -s conftest.$ac_objext'
13721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722   (eval $ac_try) 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; }; then
13726   ac_cv_type_minor_t=yes
13727 else
13728   echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731 ac_cv_type_minor_t=no
13732 fi
13733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13734 fi
13735 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13736 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13737 if test $ac_cv_type_minor_t = yes; then
13738   :
13739 else
13740
13741 cat >>confdefs.h <<_ACEOF
13742 #define minor_t int
13743 _ACEOF
13744
13745 fi
13746
13747 echo "$as_me:$LINENO: checking for ssize_t" >&5
13748 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13749 if test "${ac_cv_type_ssize_t+set}" = set; then
13750   echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752   cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h.  */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h.  */
13758 $ac_includes_default
13759 int
13760 main ()
13761 {
13762 if ((ssize_t *) 0)
13763   return 0;
13764 if (sizeof (ssize_t))
13765   return 0;
13766   ;
13767   return 0;
13768 }
13769 _ACEOF
13770 rm -f conftest.$ac_objext
13771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13772   (eval $ac_compile) 2>conftest.er1
13773   ac_status=$?
13774   grep -v '^ *+' conftest.er1 >conftest.err
13775   rm -f conftest.er1
13776   cat conftest.err >&5
13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); } &&
13779          { ac_try='test -z "$ac_c_werror_flag"
13780                          || test ! -s conftest.err'
13781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782   (eval $ac_try) 2>&5
13783   ac_status=$?
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); }; } &&
13786          { ac_try='test -s conftest.$ac_objext'
13787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788   (eval $ac_try) 2>&5
13789   ac_status=$?
13790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); }; }; then
13792   ac_cv_type_ssize_t=yes
13793 else
13794   echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13796
13797 ac_cv_type_ssize_t=no
13798 fi
13799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13800 fi
13801 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13802 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13803 if test $ac_cv_type_ssize_t = yes; then
13804   :
13805 else
13806
13807 cat >>confdefs.h <<_ACEOF
13808 #define ssize_t int
13809 _ACEOF
13810
13811 fi
13812
13813 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13814 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13815 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13816   echo $ECHO_N "(cached) $ECHO_C" >&6
13817 else
13818   cat >conftest.$ac_ext <<_ACEOF
13819 /* confdefs.h.  */
13820 _ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h.  */
13824 $ac_includes_default
13825 int
13826 main ()
13827 {
13828 static struct stat ac_aggr;
13829 if (ac_aggr.st_blocks)
13830 return 0;
13831   ;
13832   return 0;
13833 }
13834 _ACEOF
13835 rm -f conftest.$ac_objext
13836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13837   (eval $ac_compile) 2>conftest.er1
13838   ac_status=$?
13839   grep -v '^ *+' conftest.er1 >conftest.err
13840   rm -f conftest.er1
13841   cat conftest.err >&5
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); } &&
13844          { ac_try='test -z "$ac_c_werror_flag"
13845                          || test ! -s conftest.err'
13846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847   (eval $ac_try) 2>&5
13848   ac_status=$?
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); }; } &&
13851          { ac_try='test -s conftest.$ac_objext'
13852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853   (eval $ac_try) 2>&5
13854   ac_status=$?
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); }; }; then
13857   ac_cv_member_struct_stat_st_blocks=yes
13858 else
13859   echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13861
13862 cat >conftest.$ac_ext <<_ACEOF
13863 /* confdefs.h.  */
13864 _ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h.  */
13868 $ac_includes_default
13869 int
13870 main ()
13871 {
13872 static struct stat ac_aggr;
13873 if (sizeof ac_aggr.st_blocks)
13874 return 0;
13875   ;
13876   return 0;
13877 }
13878 _ACEOF
13879 rm -f conftest.$ac_objext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13881   (eval $ac_compile) 2>conftest.er1
13882   ac_status=$?
13883   grep -v '^ *+' conftest.er1 >conftest.err
13884   rm -f conftest.er1
13885   cat conftest.err >&5
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } &&
13888          { ac_try='test -z "$ac_c_werror_flag"
13889                          || test ! -s conftest.err'
13890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891   (eval $ac_try) 2>&5
13892   ac_status=$?
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); }; } &&
13895          { ac_try='test -s conftest.$ac_objext'
13896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897   (eval $ac_try) 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); }; }; then
13901   ac_cv_member_struct_stat_st_blocks=yes
13902 else
13903   echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13905
13906 ac_cv_member_struct_stat_st_blocks=no
13907 fi
13908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13909 fi
13910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13911 fi
13912 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13913 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13914 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13915
13916 cat >>confdefs.h <<_ACEOF
13917 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13918 _ACEOF
13919
13920
13921 cat >>confdefs.h <<\_ACEOF
13922 #define HAVE_ST_BLOCKS 1
13923 _ACEOF
13924
13925 else
13926   case $LIBOBJS in
13927     "fileblocks.$ac_objext"   | \
13928   *" fileblocks.$ac_objext"   | \
13929     "fileblocks.$ac_objext "* | \
13930   *" fileblocks.$ac_objext "* ) ;;
13931   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
13932 esac
13933
13934 fi
13935
13936
13937
13938 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13939 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13940 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13941   echo $ECHO_N "(cached) $ECHO_C" >&6
13942 else
13943   cat >conftest.$ac_ext <<_ACEOF
13944 /* confdefs.h.  */
13945 _ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h.  */
13949 $ac_includes_default
13950 int
13951 main ()
13952 {
13953 static struct stat ac_aggr;
13954 if (ac_aggr.st_rdev)
13955 return 0;
13956   ;
13957   return 0;
13958 }
13959 _ACEOF
13960 rm -f conftest.$ac_objext
13961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13962   (eval $ac_compile) 2>conftest.er1
13963   ac_status=$?
13964   grep -v '^ *+' conftest.er1 >conftest.err
13965   rm -f conftest.er1
13966   cat conftest.err >&5
13967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968   (exit $ac_status); } &&
13969          { ac_try='test -z "$ac_c_werror_flag"
13970                          || test ! -s conftest.err'
13971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972   (eval $ac_try) 2>&5
13973   ac_status=$?
13974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975   (exit $ac_status); }; } &&
13976          { ac_try='test -s conftest.$ac_objext'
13977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978   (eval $ac_try) 2>&5
13979   ac_status=$?
13980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981   (exit $ac_status); }; }; then
13982   ac_cv_member_struct_stat_st_rdev=yes
13983 else
13984   echo "$as_me: failed program was:" >&5
13985 sed 's/^/| /' conftest.$ac_ext >&5
13986
13987 cat >conftest.$ac_ext <<_ACEOF
13988 /* confdefs.h.  */
13989 _ACEOF
13990 cat confdefs.h >>conftest.$ac_ext
13991 cat >>conftest.$ac_ext <<_ACEOF
13992 /* end confdefs.h.  */
13993 $ac_includes_default
13994 int
13995 main ()
13996 {
13997 static struct stat ac_aggr;
13998 if (sizeof ac_aggr.st_rdev)
13999 return 0;
14000   ;
14001   return 0;
14002 }
14003 _ACEOF
14004 rm -f conftest.$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006   (eval $ac_compile) 2>conftest.er1
14007   ac_status=$?
14008   grep -v '^ *+' conftest.er1 >conftest.err
14009   rm -f conftest.er1
14010   cat conftest.err >&5
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); } &&
14013          { ac_try='test -z "$ac_c_werror_flag"
14014                          || test ! -s conftest.err'
14015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016   (eval $ac_try) 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); }; } &&
14020          { ac_try='test -s conftest.$ac_objext'
14021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022   (eval $ac_try) 2>&5
14023   ac_status=$?
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); }; }; then
14026   ac_cv_member_struct_stat_st_rdev=yes
14027 else
14028   echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14030
14031 ac_cv_member_struct_stat_st_rdev=no
14032 fi
14033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14034 fi
14035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14036 fi
14037 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14038 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14039 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14040
14041 cat >>confdefs.h <<_ACEOF
14042 #define HAVE_STRUCT_STAT_ST_RDEV 1
14043 _ACEOF
14044
14045
14046 cat >>confdefs.h <<\_ACEOF
14047 #define HAVE_ST_RDEV 1
14048 _ACEOF
14049
14050 fi
14051
14052
14053 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14054 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14055 if test "${ac_cv_struct_tm+set}" = set; then
14056   echo $ECHO_N "(cached) $ECHO_C" >&6
14057 else
14058   cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h.  */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h.  */
14064 #include <sys/types.h>
14065 #include <time.h>
14066
14067 int
14068 main ()
14069 {
14070 struct tm *tp; tp->tm_sec;
14071   ;
14072   return 0;
14073 }
14074 _ACEOF
14075 rm -f conftest.$ac_objext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14077   (eval $ac_compile) 2>conftest.er1
14078   ac_status=$?
14079   grep -v '^ *+' conftest.er1 >conftest.err
14080   rm -f conftest.er1
14081   cat conftest.err >&5
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); } &&
14084          { ac_try='test -z "$ac_c_werror_flag"
14085                          || test ! -s conftest.err'
14086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087   (eval $ac_try) 2>&5
14088   ac_status=$?
14089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   (exit $ac_status); }; } &&
14091          { ac_try='test -s conftest.$ac_objext'
14092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093   (eval $ac_try) 2>&5
14094   ac_status=$?
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); }; }; then
14097   ac_cv_struct_tm=time.h
14098 else
14099   echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14101
14102 ac_cv_struct_tm=sys/time.h
14103 fi
14104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14105 fi
14106 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14107 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14108 if test $ac_cv_struct_tm = sys/time.h; then
14109
14110 cat >>confdefs.h <<\_ACEOF
14111 #define TM_IN_SYS_TIME 1
14112 _ACEOF
14113
14114 fi
14115
14116 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14117 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14118 if test "${ac_cv_c_const+set}" = set; then
14119   echo $ECHO_N "(cached) $ECHO_C" >&6
14120 else
14121   cat >conftest.$ac_ext <<_ACEOF
14122 /* confdefs.h.  */
14123 _ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h.  */
14127
14128 int
14129 main ()
14130 {
14131 /* FIXME: Include the comments suggested by Paul. */
14132 #ifndef __cplusplus
14133   /* Ultrix mips cc rejects this.  */
14134   typedef int charset[2];
14135   const charset x;
14136   /* SunOS 4.1.1 cc rejects this.  */
14137   char const *const *ccp;
14138   char **p;
14139   /* NEC SVR4.0.2 mips cc rejects this.  */
14140   struct point {int x, y;};
14141   static struct point const zero = {0,0};
14142   /* AIX XL C 1.02.0.0 rejects this.
14143      It does not let you subtract one const X* pointer from another in
14144      an arm of an if-expression whose if-part is not a constant
14145      expression */
14146   const char *g = "string";
14147   ccp = &g + (g ? g-g : 0);
14148   /* HPUX 7.0 cc rejects these. */
14149   ++ccp;
14150   p = (char**) ccp;
14151   ccp = (char const *const *) p;
14152   { /* SCO 3.2v4 cc rejects this.  */
14153     char *t;
14154     char const *s = 0 ? (char *) 0 : (char const *) 0;
14155
14156     *t++ = 0;
14157   }
14158   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14159     int x[] = {25, 17};
14160     const int *foo = &x[0];
14161     ++foo;
14162   }
14163   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14164     typedef const int *iptr;
14165     iptr p = 0;
14166     ++p;
14167   }
14168   { /* AIX XL C 1.02.0.0 rejects this saying
14169        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14170     struct s { int j; const int *ap[3]; };
14171     struct s *b; b->j = 5;
14172   }
14173   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14174     const int foo = 10;
14175   }
14176 #endif
14177
14178   ;
14179   return 0;
14180 }
14181 _ACEOF
14182 rm -f conftest.$ac_objext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14184   (eval $ac_compile) 2>conftest.er1
14185   ac_status=$?
14186   grep -v '^ *+' conftest.er1 >conftest.err
14187   rm -f conftest.er1
14188   cat conftest.err >&5
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); } &&
14191          { ac_try='test -z "$ac_c_werror_flag"
14192                          || test ! -s conftest.err'
14193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194   (eval $ac_try) 2>&5
14195   ac_status=$?
14196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197   (exit $ac_status); }; } &&
14198          { ac_try='test -s conftest.$ac_objext'
14199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200   (eval $ac_try) 2>&5
14201   ac_status=$?
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); }; }; then
14204   ac_cv_c_const=yes
14205 else
14206   echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14208
14209 ac_cv_c_const=no
14210 fi
14211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14212 fi
14213 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14214 echo "${ECHO_T}$ac_cv_c_const" >&6
14215 if test $ac_cv_c_const = no; then
14216
14217 cat >>confdefs.h <<\_ACEOF
14218 #define const
14219 _ACEOF
14220
14221 fi
14222
14223
14224
14225 echo "$as_me:$LINENO: checking for char" >&5
14226 echo $ECHO_N "checking for char... $ECHO_C" >&6
14227 if test "${ac_cv_type_char+set}" = set; then
14228   echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230   cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h.  */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h.  */
14236 $ac_includes_default
14237 int
14238 main ()
14239 {
14240 if ((char *) 0)
14241   return 0;
14242 if (sizeof (char))
14243   return 0;
14244   ;
14245   return 0;
14246 }
14247 _ACEOF
14248 rm -f conftest.$ac_objext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14250   (eval $ac_compile) 2>conftest.er1
14251   ac_status=$?
14252   grep -v '^ *+' conftest.er1 >conftest.err
14253   rm -f conftest.er1
14254   cat conftest.err >&5
14255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256   (exit $ac_status); } &&
14257          { ac_try='test -z "$ac_c_werror_flag"
14258                          || test ! -s conftest.err'
14259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260   (eval $ac_try) 2>&5
14261   ac_status=$?
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); }; } &&
14264          { ac_try='test -s conftest.$ac_objext'
14265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266   (eval $ac_try) 2>&5
14267   ac_status=$?
14268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); }; }; then
14270   ac_cv_type_char=yes
14271 else
14272   echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14274
14275 ac_cv_type_char=no
14276 fi
14277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14278 fi
14279 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14280 echo "${ECHO_T}$ac_cv_type_char" >&6
14281
14282 echo "$as_me:$LINENO: checking size of char" >&5
14283 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14284 if test "${ac_cv_sizeof_char+set}" = set; then
14285   echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287   if test "$ac_cv_type_char" = yes; then
14288   # The cast to unsigned long works around a bug in the HP C Compiler
14289   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14290   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14291   # This bug is HP SR number 8606223364.
14292   if test "$cross_compiling" = yes; then
14293   # Depending upon the size, compute the lo and hi bounds.
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h.  */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h.  */
14300 $ac_includes_default
14301 int
14302 main ()
14303 {
14304 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14305 test_array [0] = 0
14306
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 rm -f conftest.$ac_objext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14313   (eval $ac_compile) 2>conftest.er1
14314   ac_status=$?
14315   grep -v '^ *+' conftest.er1 >conftest.err
14316   rm -f conftest.er1
14317   cat conftest.err >&5
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); } &&
14320          { ac_try='test -z "$ac_c_werror_flag"
14321                          || test ! -s conftest.err'
14322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323   (eval $ac_try) 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; } &&
14327          { ac_try='test -s conftest.$ac_objext'
14328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329   (eval $ac_try) 2>&5
14330   ac_status=$?
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); }; }; then
14333   ac_lo=0 ac_mid=0
14334   while :; do
14335     cat >conftest.$ac_ext <<_ACEOF
14336 /* confdefs.h.  */
14337 _ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h.  */
14341 $ac_includes_default
14342 int
14343 main ()
14344 {
14345 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14346 test_array [0] = 0
14347
14348   ;
14349   return 0;
14350 }
14351 _ACEOF
14352 rm -f conftest.$ac_objext
14353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14354   (eval $ac_compile) 2>conftest.er1
14355   ac_status=$?
14356   grep -v '^ *+' conftest.er1 >conftest.err
14357   rm -f conftest.er1
14358   cat conftest.err >&5
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); } &&
14361          { ac_try='test -z "$ac_c_werror_flag"
14362                          || test ! -s conftest.err'
14363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364   (eval $ac_try) 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); }; } &&
14368          { ac_try='test -s conftest.$ac_objext'
14369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370   (eval $ac_try) 2>&5
14371   ac_status=$?
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   (exit $ac_status); }; }; then
14374   ac_hi=$ac_mid; break
14375 else
14376   echo "$as_me: failed program was:" >&5
14377 sed 's/^/| /' conftest.$ac_ext >&5
14378
14379 ac_lo=`expr $ac_mid + 1`
14380                     if test $ac_lo -le $ac_mid; then
14381                       ac_lo= ac_hi=
14382                       break
14383                     fi
14384                     ac_mid=`expr 2 '*' $ac_mid + 1`
14385 fi
14386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14387   done
14388 else
14389   echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14391
14392 cat >conftest.$ac_ext <<_ACEOF
14393 /* confdefs.h.  */
14394 _ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h.  */
14398 $ac_includes_default
14399 int
14400 main ()
14401 {
14402 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14403 test_array [0] = 0
14404
14405   ;
14406   return 0;
14407 }
14408 _ACEOF
14409 rm -f conftest.$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411   (eval $ac_compile) 2>conftest.er1
14412   ac_status=$?
14413   grep -v '^ *+' conftest.er1 >conftest.err
14414   rm -f conftest.er1
14415   cat conftest.err >&5
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); } &&
14418          { ac_try='test -z "$ac_c_werror_flag"
14419                          || test ! -s conftest.err'
14420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421   (eval $ac_try) 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); }; } &&
14425          { ac_try='test -s conftest.$ac_objext'
14426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427   (eval $ac_try) 2>&5
14428   ac_status=$?
14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); }; }; then
14431   ac_hi=-1 ac_mid=-1
14432   while :; do
14433     cat >conftest.$ac_ext <<_ACEOF
14434 /* confdefs.h.  */
14435 _ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h.  */
14439 $ac_includes_default
14440 int
14441 main ()
14442 {
14443 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14444 test_array [0] = 0
14445
14446   ;
14447   return 0;
14448 }
14449 _ACEOF
14450 rm -f conftest.$ac_objext
14451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14452   (eval $ac_compile) 2>conftest.er1
14453   ac_status=$?
14454   grep -v '^ *+' conftest.er1 >conftest.err
14455   rm -f conftest.er1
14456   cat conftest.err >&5
14457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458   (exit $ac_status); } &&
14459          { ac_try='test -z "$ac_c_werror_flag"
14460                          || test ! -s conftest.err'
14461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462   (eval $ac_try) 2>&5
14463   ac_status=$?
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); }; } &&
14466          { ac_try='test -s conftest.$ac_objext'
14467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468   (eval $ac_try) 2>&5
14469   ac_status=$?
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); }; }; then
14472   ac_lo=$ac_mid; break
14473 else
14474   echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14476
14477 ac_hi=`expr '(' $ac_mid ')' - 1`
14478                        if test $ac_mid -le $ac_hi; then
14479                          ac_lo= ac_hi=
14480                          break
14481                        fi
14482                        ac_mid=`expr 2 '*' $ac_mid`
14483 fi
14484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14485   done
14486 else
14487   echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14489
14490 ac_lo= ac_hi=
14491 fi
14492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14493 fi
14494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14495 # Binary search between lo and hi bounds.
14496 while test "x$ac_lo" != "x$ac_hi"; do
14497   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14498   cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h.  */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h.  */
14504 $ac_includes_default
14505 int
14506 main ()
14507 {
14508 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14509 test_array [0] = 0
14510
14511   ;
14512   return 0;
14513 }
14514 _ACEOF
14515 rm -f conftest.$ac_objext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14517   (eval $ac_compile) 2>conftest.er1
14518   ac_status=$?
14519   grep -v '^ *+' conftest.er1 >conftest.err
14520   rm -f conftest.er1
14521   cat conftest.err >&5
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); } &&
14524          { ac_try='test -z "$ac_c_werror_flag"
14525                          || test ! -s conftest.err'
14526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527   (eval $ac_try) 2>&5
14528   ac_status=$?
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); }; } &&
14531          { ac_try='test -s conftest.$ac_objext'
14532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533   (eval $ac_try) 2>&5
14534   ac_status=$?
14535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536   (exit $ac_status); }; }; then
14537   ac_hi=$ac_mid
14538 else
14539   echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14541
14542 ac_lo=`expr '(' $ac_mid ')' + 1`
14543 fi
14544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14545 done
14546 case $ac_lo in
14547 ?*) ac_cv_sizeof_char=$ac_lo;;
14548 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14549 See \`config.log' for more details." >&5
14550 echo "$as_me: error: cannot compute sizeof (char), 77
14551 See \`config.log' for more details." >&2;}
14552    { (exit 1); exit 1; }; } ;;
14553 esac
14554 else
14555   if test "$cross_compiling" = yes; then
14556   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14557 See \`config.log' for more details." >&5
14558 echo "$as_me: error: cannot run test program while cross compiling
14559 See \`config.log' for more details." >&2;}
14560    { (exit 1); exit 1; }; }
14561 else
14562   cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h.  */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h.  */
14568 $ac_includes_default
14569 long longval () { return (long) (sizeof (char)); }
14570 unsigned long ulongval () { return (long) (sizeof (char)); }
14571 #include <stdio.h>
14572 #include <stdlib.h>
14573 int
14574 main ()
14575 {
14576
14577   FILE *f = fopen ("conftest.val", "w");
14578   if (! f)
14579     exit (1);
14580   if (((long) (sizeof (char))) < 0)
14581     {
14582       long i = longval ();
14583       if (i != ((long) (sizeof (char))))
14584         exit (1);
14585       fprintf (f, "%ld\n", i);
14586     }
14587   else
14588     {
14589       unsigned long i = ulongval ();
14590       if (i != ((long) (sizeof (char))))
14591         exit (1);
14592       fprintf (f, "%lu\n", i);
14593     }
14594   exit (ferror (f) || fclose (f) != 0);
14595
14596   ;
14597   return 0;
14598 }
14599 _ACEOF
14600 rm -f conftest$ac_exeext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14602   (eval $ac_link) 2>&5
14603   ac_status=$?
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607   (eval $ac_try) 2>&5
14608   ac_status=$?
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); }; }; then
14611   ac_cv_sizeof_char=`cat conftest.val`
14612 else
14613   echo "$as_me: program exited with status $ac_status" >&5
14614 echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14616
14617 ( exit $ac_status )
14618 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14619 See \`config.log' for more details." >&5
14620 echo "$as_me: error: cannot compute sizeof (char), 77
14621 See \`config.log' for more details." >&2;}
14622    { (exit 1); exit 1; }; }
14623 fi
14624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14625 fi
14626 fi
14627 rm -f conftest.val
14628 else
14629   ac_cv_sizeof_char=0
14630 fi
14631 fi
14632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14633 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14634 cat >>confdefs.h <<_ACEOF
14635 #define SIZEOF_CHAR $ac_cv_sizeof_char
14636 _ACEOF
14637
14638
14639 echo "$as_me:$LINENO: checking for short int" >&5
14640 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14641 if test "${ac_cv_type_short_int+set}" = set; then
14642   echo $ECHO_N "(cached) $ECHO_C" >&6
14643 else
14644   cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h.  */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h.  */
14650 $ac_includes_default
14651 int
14652 main ()
14653 {
14654 if ((short int *) 0)
14655   return 0;
14656 if (sizeof (short int))
14657   return 0;
14658   ;
14659   return 0;
14660 }
14661 _ACEOF
14662 rm -f conftest.$ac_objext
14663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14664   (eval $ac_compile) 2>conftest.er1
14665   ac_status=$?
14666   grep -v '^ *+' conftest.er1 >conftest.err
14667   rm -f conftest.er1
14668   cat conftest.err >&5
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); } &&
14671          { ac_try='test -z "$ac_c_werror_flag"
14672                          || test ! -s conftest.err'
14673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674   (eval $ac_try) 2>&5
14675   ac_status=$?
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); }; } &&
14678          { ac_try='test -s conftest.$ac_objext'
14679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680   (eval $ac_try) 2>&5
14681   ac_status=$?
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); }; }; then
14684   ac_cv_type_short_int=yes
14685 else
14686   echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14688
14689 ac_cv_type_short_int=no
14690 fi
14691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14692 fi
14693 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14694 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14695
14696 echo "$as_me:$LINENO: checking size of short int" >&5
14697 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14698 if test "${ac_cv_sizeof_short_int+set}" = set; then
14699   echo $ECHO_N "(cached) $ECHO_C" >&6
14700 else
14701   if test "$ac_cv_type_short_int" = yes; then
14702   # The cast to unsigned long works around a bug in the HP C Compiler
14703   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14704   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14705   # This bug is HP SR number 8606223364.
14706   if test "$cross_compiling" = yes; then
14707   # Depending upon the size, compute the lo and hi bounds.
14708 cat >conftest.$ac_ext <<_ACEOF
14709 /* confdefs.h.  */
14710 _ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h.  */
14714 $ac_includes_default
14715 int
14716 main ()
14717 {
14718 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14719 test_array [0] = 0
14720
14721   ;
14722   return 0;
14723 }
14724 _ACEOF
14725 rm -f conftest.$ac_objext
14726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14727   (eval $ac_compile) 2>conftest.er1
14728   ac_status=$?
14729   grep -v '^ *+' conftest.er1 >conftest.err
14730   rm -f conftest.er1
14731   cat conftest.err >&5
14732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733   (exit $ac_status); } &&
14734          { ac_try='test -z "$ac_c_werror_flag"
14735                          || test ! -s conftest.err'
14736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737   (eval $ac_try) 2>&5
14738   ac_status=$?
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); }; } &&
14741          { ac_try='test -s conftest.$ac_objext'
14742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743   (eval $ac_try) 2>&5
14744   ac_status=$?
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); }; }; then
14747   ac_lo=0 ac_mid=0
14748   while :; do
14749     cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h.  */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h.  */
14755 $ac_includes_default
14756 int
14757 main ()
14758 {
14759 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14760 test_array [0] = 0
14761
14762   ;
14763   return 0;
14764 }
14765 _ACEOF
14766 rm -f conftest.$ac_objext
14767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14768   (eval $ac_compile) 2>conftest.er1
14769   ac_status=$?
14770   grep -v '^ *+' conftest.er1 >conftest.err
14771   rm -f conftest.er1
14772   cat conftest.err >&5
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } &&
14775          { ac_try='test -z "$ac_c_werror_flag"
14776                          || test ! -s conftest.err'
14777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778   (eval $ac_try) 2>&5
14779   ac_status=$?
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); }; } &&
14782          { ac_try='test -s conftest.$ac_objext'
14783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784   (eval $ac_try) 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; }; then
14788   ac_hi=$ac_mid; break
14789 else
14790   echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793 ac_lo=`expr $ac_mid + 1`
14794                     if test $ac_lo -le $ac_mid; then
14795                       ac_lo= ac_hi=
14796                       break
14797                     fi
14798                     ac_mid=`expr 2 '*' $ac_mid + 1`
14799 fi
14800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14801   done
14802 else
14803   echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14805
14806 cat >conftest.$ac_ext <<_ACEOF
14807 /* confdefs.h.  */
14808 _ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h.  */
14812 $ac_includes_default
14813 int
14814 main ()
14815 {
14816 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
14817 test_array [0] = 0
14818
14819   ;
14820   return 0;
14821 }
14822 _ACEOF
14823 rm -f conftest.$ac_objext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14825   (eval $ac_compile) 2>conftest.er1
14826   ac_status=$?
14827   grep -v '^ *+' conftest.er1 >conftest.err
14828   rm -f conftest.er1
14829   cat conftest.err >&5
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); } &&
14832          { ac_try='test -z "$ac_c_werror_flag"
14833                          || test ! -s conftest.err'
14834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835   (eval $ac_try) 2>&5
14836   ac_status=$?
14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838   (exit $ac_status); }; } &&
14839          { ac_try='test -s conftest.$ac_objext'
14840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841   (eval $ac_try) 2>&5
14842   ac_status=$?
14843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844   (exit $ac_status); }; }; then
14845   ac_hi=-1 ac_mid=-1
14846   while :; do
14847     cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h.  */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h.  */
14853 $ac_includes_default
14854 int
14855 main ()
14856 {
14857 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
14858 test_array [0] = 0
14859
14860   ;
14861   return 0;
14862 }
14863 _ACEOF
14864 rm -f conftest.$ac_objext
14865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14866   (eval $ac_compile) 2>conftest.er1
14867   ac_status=$?
14868   grep -v '^ *+' conftest.er1 >conftest.err
14869   rm -f conftest.er1
14870   cat conftest.err >&5
14871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872   (exit $ac_status); } &&
14873          { ac_try='test -z "$ac_c_werror_flag"
14874                          || test ! -s conftest.err'
14875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876   (eval $ac_try) 2>&5
14877   ac_status=$?
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); }; } &&
14880          { ac_try='test -s conftest.$ac_objext'
14881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882   (eval $ac_try) 2>&5
14883   ac_status=$?
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); }; }; then
14886   ac_lo=$ac_mid; break
14887 else
14888   echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14890
14891 ac_hi=`expr '(' $ac_mid ')' - 1`
14892                        if test $ac_mid -le $ac_hi; then
14893                          ac_lo= ac_hi=
14894                          break
14895                        fi
14896                        ac_mid=`expr 2 '*' $ac_mid`
14897 fi
14898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14899   done
14900 else
14901   echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14903
14904 ac_lo= ac_hi=
14905 fi
14906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14907 fi
14908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14909 # Binary search between lo and hi bounds.
14910 while test "x$ac_lo" != "x$ac_hi"; do
14911   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14912   cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h.  */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h.  */
14918 $ac_includes_default
14919 int
14920 main ()
14921 {
14922 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14923 test_array [0] = 0
14924
14925   ;
14926   return 0;
14927 }
14928 _ACEOF
14929 rm -f conftest.$ac_objext
14930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14931   (eval $ac_compile) 2>conftest.er1
14932   ac_status=$?
14933   grep -v '^ *+' conftest.er1 >conftest.err
14934   rm -f conftest.er1
14935   cat conftest.err >&5
14936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937   (exit $ac_status); } &&
14938          { ac_try='test -z "$ac_c_werror_flag"
14939                          || test ! -s conftest.err'
14940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941   (eval $ac_try) 2>&5
14942   ac_status=$?
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); }; } &&
14945          { ac_try='test -s conftest.$ac_objext'
14946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947   (eval $ac_try) 2>&5
14948   ac_status=$?
14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950   (exit $ac_status); }; }; then
14951   ac_hi=$ac_mid
14952 else
14953   echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14955
14956 ac_lo=`expr '(' $ac_mid ')' + 1`
14957 fi
14958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14959 done
14960 case $ac_lo in
14961 ?*) ac_cv_sizeof_short_int=$ac_lo;;
14962 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14963 See \`config.log' for more details." >&5
14964 echo "$as_me: error: cannot compute sizeof (short int), 77
14965 See \`config.log' for more details." >&2;}
14966    { (exit 1); exit 1; }; } ;;
14967 esac
14968 else
14969   if test "$cross_compiling" = yes; then
14970   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14971 See \`config.log' for more details." >&5
14972 echo "$as_me: error: cannot run test program while cross compiling
14973 See \`config.log' for more details." >&2;}
14974    { (exit 1); exit 1; }; }
14975 else
14976   cat >conftest.$ac_ext <<_ACEOF
14977 /* confdefs.h.  */
14978 _ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h.  */
14982 $ac_includes_default
14983 long longval () { return (long) (sizeof (short int)); }
14984 unsigned long ulongval () { return (long) (sizeof (short int)); }
14985 #include <stdio.h>
14986 #include <stdlib.h>
14987 int
14988 main ()
14989 {
14990
14991   FILE *f = fopen ("conftest.val", "w");
14992   if (! f)
14993     exit (1);
14994   if (((long) (sizeof (short int))) < 0)
14995     {
14996       long i = longval ();
14997       if (i != ((long) (sizeof (short int))))
14998         exit (1);
14999       fprintf (f, "%ld\n", i);
15000     }
15001   else
15002     {
15003       unsigned long i = ulongval ();
15004       if (i != ((long) (sizeof (short int))))
15005         exit (1);
15006       fprintf (f, "%lu\n", i);
15007     }
15008   exit (ferror (f) || fclose (f) != 0);
15009
15010   ;
15011   return 0;
15012 }
15013 _ACEOF
15014 rm -f conftest$ac_exeext
15015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15016   (eval $ac_link) 2>&5
15017   ac_status=$?
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021   (eval $ac_try) 2>&5
15022   ac_status=$?
15023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024   (exit $ac_status); }; }; then
15025   ac_cv_sizeof_short_int=`cat conftest.val`
15026 else
15027   echo "$as_me: program exited with status $ac_status" >&5
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15030
15031 ( exit $ac_status )
15032 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15033 See \`config.log' for more details." >&5
15034 echo "$as_me: error: cannot compute sizeof (short int), 77
15035 See \`config.log' for more details." >&2;}
15036    { (exit 1); exit 1; }; }
15037 fi
15038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15039 fi
15040 fi
15041 rm -f conftest.val
15042 else
15043   ac_cv_sizeof_short_int=0
15044 fi
15045 fi
15046 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15047 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15048 cat >>confdefs.h <<_ACEOF
15049 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15050 _ACEOF
15051
15052
15053 echo "$as_me:$LINENO: checking for int" >&5
15054 echo $ECHO_N "checking for int... $ECHO_C" >&6
15055 if test "${ac_cv_type_int+set}" = set; then
15056   echo $ECHO_N "(cached) $ECHO_C" >&6
15057 else
15058   cat >conftest.$ac_ext <<_ACEOF
15059 /* confdefs.h.  */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h.  */
15064 $ac_includes_default
15065 int
15066 main ()
15067 {
15068 if ((int *) 0)
15069   return 0;
15070 if (sizeof (int))
15071   return 0;
15072   ;
15073   return 0;
15074 }
15075 _ACEOF
15076 rm -f conftest.$ac_objext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15078   (eval $ac_compile) 2>conftest.er1
15079   ac_status=$?
15080   grep -v '^ *+' conftest.er1 >conftest.err
15081   rm -f conftest.er1
15082   cat conftest.err >&5
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); } &&
15085          { ac_try='test -z "$ac_c_werror_flag"
15086                          || test ! -s conftest.err'
15087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088   (eval $ac_try) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); }; } &&
15092          { ac_try='test -s conftest.$ac_objext'
15093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094   (eval $ac_try) 2>&5
15095   ac_status=$?
15096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097   (exit $ac_status); }; }; then
15098   ac_cv_type_int=yes
15099 else
15100   echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15102
15103 ac_cv_type_int=no
15104 fi
15105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15106 fi
15107 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15108 echo "${ECHO_T}$ac_cv_type_int" >&6
15109
15110 echo "$as_me:$LINENO: checking size of int" >&5
15111 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15112 if test "${ac_cv_sizeof_int+set}" = set; then
15113   echo $ECHO_N "(cached) $ECHO_C" >&6
15114 else
15115   if test "$ac_cv_type_int" = yes; then
15116   # The cast to unsigned long works around a bug in the HP C Compiler
15117   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15118   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15119   # This bug is HP SR number 8606223364.
15120   if test "$cross_compiling" = yes; then
15121   # Depending upon the size, compute the lo and hi bounds.
15122 cat >conftest.$ac_ext <<_ACEOF
15123 /* confdefs.h.  */
15124 _ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h.  */
15128 $ac_includes_default
15129 int
15130 main ()
15131 {
15132 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15133 test_array [0] = 0
15134
15135   ;
15136   return 0;
15137 }
15138 _ACEOF
15139 rm -f conftest.$ac_objext
15140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15141   (eval $ac_compile) 2>conftest.er1
15142   ac_status=$?
15143   grep -v '^ *+' conftest.er1 >conftest.err
15144   rm -f conftest.er1
15145   cat conftest.err >&5
15146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   (exit $ac_status); } &&
15148          { ac_try='test -z "$ac_c_werror_flag"
15149                          || test ! -s conftest.err'
15150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151   (eval $ac_try) 2>&5
15152   ac_status=$?
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); }; } &&
15155          { ac_try='test -s conftest.$ac_objext'
15156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157   (eval $ac_try) 2>&5
15158   ac_status=$?
15159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160   (exit $ac_status); }; }; then
15161   ac_lo=0 ac_mid=0
15162   while :; do
15163     cat >conftest.$ac_ext <<_ACEOF
15164 /* confdefs.h.  */
15165 _ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h.  */
15169 $ac_includes_default
15170 int
15171 main ()
15172 {
15173 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15174 test_array [0] = 0
15175
15176   ;
15177   return 0;
15178 }
15179 _ACEOF
15180 rm -f conftest.$ac_objext
15181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15182   (eval $ac_compile) 2>conftest.er1
15183   ac_status=$?
15184   grep -v '^ *+' conftest.er1 >conftest.err
15185   rm -f conftest.er1
15186   cat conftest.err >&5
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); } &&
15189          { ac_try='test -z "$ac_c_werror_flag"
15190                          || test ! -s conftest.err'
15191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192   (eval $ac_try) 2>&5
15193   ac_status=$?
15194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195   (exit $ac_status); }; } &&
15196          { ac_try='test -s conftest.$ac_objext'
15197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198   (eval $ac_try) 2>&5
15199   ac_status=$?
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); }; }; then
15202   ac_hi=$ac_mid; break
15203 else
15204   echo "$as_me: failed program was:" >&5
15205 sed 's/^/| /' conftest.$ac_ext >&5
15206
15207 ac_lo=`expr $ac_mid + 1`
15208                     if test $ac_lo -le $ac_mid; then
15209                       ac_lo= ac_hi=
15210                       break
15211                     fi
15212                     ac_mid=`expr 2 '*' $ac_mid + 1`
15213 fi
15214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15215   done
15216 else
15217   echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15219
15220 cat >conftest.$ac_ext <<_ACEOF
15221 /* confdefs.h.  */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h.  */
15226 $ac_includes_default
15227 int
15228 main ()
15229 {
15230 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15231 test_array [0] = 0
15232
15233   ;
15234   return 0;
15235 }
15236 _ACEOF
15237 rm -f conftest.$ac_objext
15238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15239   (eval $ac_compile) 2>conftest.er1
15240   ac_status=$?
15241   grep -v '^ *+' conftest.er1 >conftest.err
15242   rm -f conftest.er1
15243   cat conftest.err >&5
15244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245   (exit $ac_status); } &&
15246          { ac_try='test -z "$ac_c_werror_flag"
15247                          || test ! -s conftest.err'
15248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249   (eval $ac_try) 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); }; } &&
15253          { ac_try='test -s conftest.$ac_objext'
15254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255   (eval $ac_try) 2>&5
15256   ac_status=$?
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); }; }; then
15259   ac_hi=-1 ac_mid=-1
15260   while :; do
15261     cat >conftest.$ac_ext <<_ACEOF
15262 /* confdefs.h.  */
15263 _ACEOF
15264 cat confdefs.h >>conftest.$ac_ext
15265 cat >>conftest.$ac_ext <<_ACEOF
15266 /* end confdefs.h.  */
15267 $ac_includes_default
15268 int
15269 main ()
15270 {
15271 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15272 test_array [0] = 0
15273
15274   ;
15275   return 0;
15276 }
15277 _ACEOF
15278 rm -f conftest.$ac_objext
15279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15280   (eval $ac_compile) 2>conftest.er1
15281   ac_status=$?
15282   grep -v '^ *+' conftest.er1 >conftest.err
15283   rm -f conftest.er1
15284   cat conftest.err >&5
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); } &&
15287          { ac_try='test -z "$ac_c_werror_flag"
15288                          || test ! -s conftest.err'
15289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290   (eval $ac_try) 2>&5
15291   ac_status=$?
15292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293   (exit $ac_status); }; } &&
15294          { ac_try='test -s conftest.$ac_objext'
15295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296   (eval $ac_try) 2>&5
15297   ac_status=$?
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); }; }; then
15300   ac_lo=$ac_mid; break
15301 else
15302   echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15304
15305 ac_hi=`expr '(' $ac_mid ')' - 1`
15306                        if test $ac_mid -le $ac_hi; then
15307                          ac_lo= ac_hi=
15308                          break
15309                        fi
15310                        ac_mid=`expr 2 '*' $ac_mid`
15311 fi
15312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15313   done
15314 else
15315   echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317
15318 ac_lo= ac_hi=
15319 fi
15320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15321 fi
15322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15323 # Binary search between lo and hi bounds.
15324 while test "x$ac_lo" != "x$ac_hi"; do
15325   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15326   cat >conftest.$ac_ext <<_ACEOF
15327 /* confdefs.h.  */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h.  */
15332 $ac_includes_default
15333 int
15334 main ()
15335 {
15336 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15337 test_array [0] = 0
15338
15339   ;
15340   return 0;
15341 }
15342 _ACEOF
15343 rm -f conftest.$ac_objext
15344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15345   (eval $ac_compile) 2>conftest.er1
15346   ac_status=$?
15347   grep -v '^ *+' conftest.er1 >conftest.err
15348   rm -f conftest.er1
15349   cat conftest.err >&5
15350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351   (exit $ac_status); } &&
15352          { ac_try='test -z "$ac_c_werror_flag"
15353                          || test ! -s conftest.err'
15354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355   (eval $ac_try) 2>&5
15356   ac_status=$?
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); }; } &&
15359          { ac_try='test -s conftest.$ac_objext'
15360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361   (eval $ac_try) 2>&5
15362   ac_status=$?
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); }; }; then
15365   ac_hi=$ac_mid
15366 else
15367   echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15369
15370 ac_lo=`expr '(' $ac_mid ')' + 1`
15371 fi
15372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15373 done
15374 case $ac_lo in
15375 ?*) ac_cv_sizeof_int=$ac_lo;;
15376 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15377 See \`config.log' for more details." >&5
15378 echo "$as_me: error: cannot compute sizeof (int), 77
15379 See \`config.log' for more details." >&2;}
15380    { (exit 1); exit 1; }; } ;;
15381 esac
15382 else
15383   if test "$cross_compiling" = yes; then
15384   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15385 See \`config.log' for more details." >&5
15386 echo "$as_me: error: cannot run test program while cross compiling
15387 See \`config.log' for more details." >&2;}
15388    { (exit 1); exit 1; }; }
15389 else
15390   cat >conftest.$ac_ext <<_ACEOF
15391 /* confdefs.h.  */
15392 _ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h.  */
15396 $ac_includes_default
15397 long longval () { return (long) (sizeof (int)); }
15398 unsigned long ulongval () { return (long) (sizeof (int)); }
15399 #include <stdio.h>
15400 #include <stdlib.h>
15401 int
15402 main ()
15403 {
15404
15405   FILE *f = fopen ("conftest.val", "w");
15406   if (! f)
15407     exit (1);
15408   if (((long) (sizeof (int))) < 0)
15409     {
15410       long i = longval ();
15411       if (i != ((long) (sizeof (int))))
15412         exit (1);
15413       fprintf (f, "%ld\n", i);
15414     }
15415   else
15416     {
15417       unsigned long i = ulongval ();
15418       if (i != ((long) (sizeof (int))))
15419         exit (1);
15420       fprintf (f, "%lu\n", i);
15421     }
15422   exit (ferror (f) || fclose (f) != 0);
15423
15424   ;
15425   return 0;
15426 }
15427 _ACEOF
15428 rm -f conftest$ac_exeext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430   (eval $ac_link) 2>&5
15431   ac_status=$?
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435   (eval $ac_try) 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }; }; then
15439   ac_cv_sizeof_int=`cat conftest.val`
15440 else
15441   echo "$as_me: program exited with status $ac_status" >&5
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15444
15445 ( exit $ac_status )
15446 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15447 See \`config.log' for more details." >&5
15448 echo "$as_me: error: cannot compute sizeof (int), 77
15449 See \`config.log' for more details." >&2;}
15450    { (exit 1); exit 1; }; }
15451 fi
15452 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15453 fi
15454 fi
15455 rm -f conftest.val
15456 else
15457   ac_cv_sizeof_int=0
15458 fi
15459 fi
15460 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15461 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15462 cat >>confdefs.h <<_ACEOF
15463 #define SIZEOF_INT $ac_cv_sizeof_int
15464 _ACEOF
15465
15466
15467 echo "$as_me:$LINENO: checking for long int" >&5
15468 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15469 if test "${ac_cv_type_long_int+set}" = set; then
15470   echo $ECHO_N "(cached) $ECHO_C" >&6
15471 else
15472   cat >conftest.$ac_ext <<_ACEOF
15473 /* confdefs.h.  */
15474 _ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h.  */
15478 $ac_includes_default
15479 int
15480 main ()
15481 {
15482 if ((long int *) 0)
15483   return 0;
15484 if (sizeof (long int))
15485   return 0;
15486   ;
15487   return 0;
15488 }
15489 _ACEOF
15490 rm -f conftest.$ac_objext
15491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15492   (eval $ac_compile) 2>conftest.er1
15493   ac_status=$?
15494   grep -v '^ *+' conftest.er1 >conftest.err
15495   rm -f conftest.er1
15496   cat conftest.err >&5
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); } &&
15499          { ac_try='test -z "$ac_c_werror_flag"
15500                          || test ! -s conftest.err'
15501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502   (eval $ac_try) 2>&5
15503   ac_status=$?
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); }; } &&
15506          { ac_try='test -s conftest.$ac_objext'
15507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508   (eval $ac_try) 2>&5
15509   ac_status=$?
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); }; }; then
15512   ac_cv_type_long_int=yes
15513 else
15514   echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15516
15517 ac_cv_type_long_int=no
15518 fi
15519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15520 fi
15521 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15522 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15523
15524 echo "$as_me:$LINENO: checking size of long int" >&5
15525 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15526 if test "${ac_cv_sizeof_long_int+set}" = set; then
15527   echo $ECHO_N "(cached) $ECHO_C" >&6
15528 else
15529   if test "$ac_cv_type_long_int" = yes; then
15530   # The cast to unsigned long works around a bug in the HP C Compiler
15531   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15532   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15533   # This bug is HP SR number 8606223364.
15534   if test "$cross_compiling" = yes; then
15535   # Depending upon the size, compute the lo and hi bounds.
15536 cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h.  */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h.  */
15542 $ac_includes_default
15543 int
15544 main ()
15545 {
15546 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15547 test_array [0] = 0
15548
15549   ;
15550   return 0;
15551 }
15552 _ACEOF
15553 rm -f conftest.$ac_objext
15554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15555   (eval $ac_compile) 2>conftest.er1
15556   ac_status=$?
15557   grep -v '^ *+' conftest.er1 >conftest.err
15558   rm -f conftest.er1
15559   cat conftest.err >&5
15560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); } &&
15562          { ac_try='test -z "$ac_c_werror_flag"
15563                          || test ! -s conftest.err'
15564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565   (eval $ac_try) 2>&5
15566   ac_status=$?
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); }; } &&
15569          { ac_try='test -s conftest.$ac_objext'
15570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571   (eval $ac_try) 2>&5
15572   ac_status=$?
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); }; }; then
15575   ac_lo=0 ac_mid=0
15576   while :; do
15577     cat >conftest.$ac_ext <<_ACEOF
15578 /* confdefs.h.  */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h.  */
15583 $ac_includes_default
15584 int
15585 main ()
15586 {
15587 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15588 test_array [0] = 0
15589
15590   ;
15591   return 0;
15592 }
15593 _ACEOF
15594 rm -f conftest.$ac_objext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15596   (eval $ac_compile) 2>conftest.er1
15597   ac_status=$?
15598   grep -v '^ *+' conftest.er1 >conftest.err
15599   rm -f conftest.er1
15600   cat conftest.err >&5
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); } &&
15603          { ac_try='test -z "$ac_c_werror_flag"
15604                          || test ! -s conftest.err'
15605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606   (eval $ac_try) 2>&5
15607   ac_status=$?
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); }; } &&
15610          { ac_try='test -s conftest.$ac_objext'
15611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612   (eval $ac_try) 2>&5
15613   ac_status=$?
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); }; }; then
15616   ac_hi=$ac_mid; break
15617 else
15618   echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15620
15621 ac_lo=`expr $ac_mid + 1`
15622                     if test $ac_lo -le $ac_mid; then
15623                       ac_lo= ac_hi=
15624                       break
15625                     fi
15626                     ac_mid=`expr 2 '*' $ac_mid + 1`
15627 fi
15628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15629   done
15630 else
15631   echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15633
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h.  */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h.  */
15640 $ac_includes_default
15641 int
15642 main ()
15643 {
15644 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15645 test_array [0] = 0
15646
15647   ;
15648   return 0;
15649 }
15650 _ACEOF
15651 rm -f conftest.$ac_objext
15652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15653   (eval $ac_compile) 2>conftest.er1
15654   ac_status=$?
15655   grep -v '^ *+' conftest.er1 >conftest.err
15656   rm -f conftest.er1
15657   cat conftest.err >&5
15658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); } &&
15660          { ac_try='test -z "$ac_c_werror_flag"
15661                          || test ! -s conftest.err'
15662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663   (eval $ac_try) 2>&5
15664   ac_status=$?
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); }; } &&
15667          { ac_try='test -s conftest.$ac_objext'
15668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669   (eval $ac_try) 2>&5
15670   ac_status=$?
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); }; }; then
15673   ac_hi=-1 ac_mid=-1
15674   while :; do
15675     cat >conftest.$ac_ext <<_ACEOF
15676 /* confdefs.h.  */
15677 _ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h.  */
15681 $ac_includes_default
15682 int
15683 main ()
15684 {
15685 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15686 test_array [0] = 0
15687
15688   ;
15689   return 0;
15690 }
15691 _ACEOF
15692 rm -f conftest.$ac_objext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15694   (eval $ac_compile) 2>conftest.er1
15695   ac_status=$?
15696   grep -v '^ *+' conftest.er1 >conftest.err
15697   rm -f conftest.er1
15698   cat conftest.err >&5
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } &&
15701          { ac_try='test -z "$ac_c_werror_flag"
15702                          || test ! -s conftest.err'
15703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704   (eval $ac_try) 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); }; } &&
15708          { ac_try='test -s conftest.$ac_objext'
15709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710   (eval $ac_try) 2>&5
15711   ac_status=$?
15712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); }; }; then
15714   ac_lo=$ac_mid; break
15715 else
15716   echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15718
15719 ac_hi=`expr '(' $ac_mid ')' - 1`
15720                        if test $ac_mid -le $ac_hi; then
15721                          ac_lo= ac_hi=
15722                          break
15723                        fi
15724                        ac_mid=`expr 2 '*' $ac_mid`
15725 fi
15726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15727   done
15728 else
15729   echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15731
15732 ac_lo= ac_hi=
15733 fi
15734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15735 fi
15736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15737 # Binary search between lo and hi bounds.
15738 while test "x$ac_lo" != "x$ac_hi"; do
15739   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15740   cat >conftest.$ac_ext <<_ACEOF
15741 /* confdefs.h.  */
15742 _ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h.  */
15746 $ac_includes_default
15747 int
15748 main ()
15749 {
15750 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15751 test_array [0] = 0
15752
15753   ;
15754   return 0;
15755 }
15756 _ACEOF
15757 rm -f conftest.$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759   (eval $ac_compile) 2>conftest.er1
15760   ac_status=$?
15761   grep -v '^ *+' conftest.er1 >conftest.err
15762   rm -f conftest.er1
15763   cat conftest.err >&5
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); } &&
15766          { ac_try='test -z "$ac_c_werror_flag"
15767                          || test ! -s conftest.err'
15768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769   (eval $ac_try) 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); }; } &&
15773          { ac_try='test -s conftest.$ac_objext'
15774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775   (eval $ac_try) 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); }; }; then
15779   ac_hi=$ac_mid
15780 else
15781   echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15783
15784 ac_lo=`expr '(' $ac_mid ')' + 1`
15785 fi
15786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15787 done
15788 case $ac_lo in
15789 ?*) ac_cv_sizeof_long_int=$ac_lo;;
15790 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15791 See \`config.log' for more details." >&5
15792 echo "$as_me: error: cannot compute sizeof (long int), 77
15793 See \`config.log' for more details." >&2;}
15794    { (exit 1); exit 1; }; } ;;
15795 esac
15796 else
15797   if test "$cross_compiling" = yes; then
15798   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15799 See \`config.log' for more details." >&5
15800 echo "$as_me: error: cannot run test program while cross compiling
15801 See \`config.log' for more details." >&2;}
15802    { (exit 1); exit 1; }; }
15803 else
15804   cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h.  */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h.  */
15810 $ac_includes_default
15811 long longval () { return (long) (sizeof (long int)); }
15812 unsigned long ulongval () { return (long) (sizeof (long int)); }
15813 #include <stdio.h>
15814 #include <stdlib.h>
15815 int
15816 main ()
15817 {
15818
15819   FILE *f = fopen ("conftest.val", "w");
15820   if (! f)
15821     exit (1);
15822   if (((long) (sizeof (long int))) < 0)
15823     {
15824       long i = longval ();
15825       if (i != ((long) (sizeof (long int))))
15826         exit (1);
15827       fprintf (f, "%ld\n", i);
15828     }
15829   else
15830     {
15831       unsigned long i = ulongval ();
15832       if (i != ((long) (sizeof (long int))))
15833         exit (1);
15834       fprintf (f, "%lu\n", i);
15835     }
15836   exit (ferror (f) || fclose (f) != 0);
15837
15838   ;
15839   return 0;
15840 }
15841 _ACEOF
15842 rm -f conftest$ac_exeext
15843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15844   (eval $ac_link) 2>&5
15845   ac_status=$?
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849   (eval $ac_try) 2>&5
15850   ac_status=$?
15851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); }; }; then
15853   ac_cv_sizeof_long_int=`cat conftest.val`
15854 else
15855   echo "$as_me: program exited with status $ac_status" >&5
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15858
15859 ( exit $ac_status )
15860 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15861 See \`config.log' for more details." >&5
15862 echo "$as_me: error: cannot compute sizeof (long int), 77
15863 See \`config.log' for more details." >&2;}
15864    { (exit 1); exit 1; }; }
15865 fi
15866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15867 fi
15868 fi
15869 rm -f conftest.val
15870 else
15871   ac_cv_sizeof_long_int=0
15872 fi
15873 fi
15874 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
15875 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
15876 cat >>confdefs.h <<_ACEOF
15877 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15878 _ACEOF
15879
15880
15881 echo "$as_me:$LINENO: checking for long long int" >&5
15882 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15883 if test "${ac_cv_type_long_long_int+set}" = set; then
15884   echo $ECHO_N "(cached) $ECHO_C" >&6
15885 else
15886   cat >conftest.$ac_ext <<_ACEOF
15887 /* confdefs.h.  */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h.  */
15892 $ac_includes_default
15893 int
15894 main ()
15895 {
15896 if ((long long int *) 0)
15897   return 0;
15898 if (sizeof (long long int))
15899   return 0;
15900   ;
15901   return 0;
15902 }
15903 _ACEOF
15904 rm -f conftest.$ac_objext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15906   (eval $ac_compile) 2>conftest.er1
15907   ac_status=$?
15908   grep -v '^ *+' conftest.er1 >conftest.err
15909   rm -f conftest.er1
15910   cat conftest.err >&5
15911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912   (exit $ac_status); } &&
15913          { ac_try='test -z "$ac_c_werror_flag"
15914                          || test ! -s conftest.err'
15915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916   (eval $ac_try) 2>&5
15917   ac_status=$?
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); }; } &&
15920          { ac_try='test -s conftest.$ac_objext'
15921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922   (eval $ac_try) 2>&5
15923   ac_status=$?
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); }; }; then
15926   ac_cv_type_long_long_int=yes
15927 else
15928   echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15930
15931 ac_cv_type_long_long_int=no
15932 fi
15933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15934 fi
15935 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15936 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15937
15938 echo "$as_me:$LINENO: checking size of long long int" >&5
15939 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
15940 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
15941   echo $ECHO_N "(cached) $ECHO_C" >&6
15942 else
15943   if test "$ac_cv_type_long_long_int" = yes; then
15944   # The cast to unsigned long works around a bug in the HP C Compiler
15945   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15946   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15947   # This bug is HP SR number 8606223364.
15948   if test "$cross_compiling" = yes; then
15949   # Depending upon the size, compute the lo and hi bounds.
15950 cat >conftest.$ac_ext <<_ACEOF
15951 /* confdefs.h.  */
15952 _ACEOF
15953 cat confdefs.h >>conftest.$ac_ext
15954 cat >>conftest.$ac_ext <<_ACEOF
15955 /* end confdefs.h.  */
15956 $ac_includes_default
15957 int
15958 main ()
15959 {
15960 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15961 test_array [0] = 0
15962
15963   ;
15964   return 0;
15965 }
15966 _ACEOF
15967 rm -f conftest.$ac_objext
15968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15969   (eval $ac_compile) 2>conftest.er1
15970   ac_status=$?
15971   grep -v '^ *+' conftest.er1 >conftest.err
15972   rm -f conftest.er1
15973   cat conftest.err >&5
15974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975   (exit $ac_status); } &&
15976          { ac_try='test -z "$ac_c_werror_flag"
15977                          || test ! -s conftest.err'
15978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979   (eval $ac_try) 2>&5
15980   ac_status=$?
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); }; } &&
15983          { ac_try='test -s conftest.$ac_objext'
15984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985   (eval $ac_try) 2>&5
15986   ac_status=$?
15987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988   (exit $ac_status); }; }; then
15989   ac_lo=0 ac_mid=0
15990   while :; do
15991     cat >conftest.$ac_ext <<_ACEOF
15992 /* confdefs.h.  */
15993 _ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h.  */
15997 $ac_includes_default
15998 int
15999 main ()
16000 {
16001 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16002 test_array [0] = 0
16003
16004   ;
16005   return 0;
16006 }
16007 _ACEOF
16008 rm -f conftest.$ac_objext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16010   (eval $ac_compile) 2>conftest.er1
16011   ac_status=$?
16012   grep -v '^ *+' conftest.er1 >conftest.err
16013   rm -f conftest.er1
16014   cat conftest.err >&5
16015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016   (exit $ac_status); } &&
16017          { ac_try='test -z "$ac_c_werror_flag"
16018                          || test ! -s conftest.err'
16019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020   (eval $ac_try) 2>&5
16021   ac_status=$?
16022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023   (exit $ac_status); }; } &&
16024          { ac_try='test -s conftest.$ac_objext'
16025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026   (eval $ac_try) 2>&5
16027   ac_status=$?
16028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029   (exit $ac_status); }; }; then
16030   ac_hi=$ac_mid; break
16031 else
16032   echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16034
16035 ac_lo=`expr $ac_mid + 1`
16036                     if test $ac_lo -le $ac_mid; then
16037                       ac_lo= ac_hi=
16038                       break
16039                     fi
16040                     ac_mid=`expr 2 '*' $ac_mid + 1`
16041 fi
16042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16043   done
16044 else
16045   echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16047
16048 cat >conftest.$ac_ext <<_ACEOF
16049 /* confdefs.h.  */
16050 _ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h.  */
16054 $ac_includes_default
16055 int
16056 main ()
16057 {
16058 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16059 test_array [0] = 0
16060
16061   ;
16062   return 0;
16063 }
16064 _ACEOF
16065 rm -f conftest.$ac_objext
16066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16067   (eval $ac_compile) 2>conftest.er1
16068   ac_status=$?
16069   grep -v '^ *+' conftest.er1 >conftest.err
16070   rm -f conftest.er1
16071   cat conftest.err >&5
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); } &&
16074          { ac_try='test -z "$ac_c_werror_flag"
16075                          || test ! -s conftest.err'
16076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077   (eval $ac_try) 2>&5
16078   ac_status=$?
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); }; } &&
16081          { ac_try='test -s conftest.$ac_objext'
16082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083   (eval $ac_try) 2>&5
16084   ac_status=$?
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); }; }; then
16087   ac_hi=-1 ac_mid=-1
16088   while :; do
16089     cat >conftest.$ac_ext <<_ACEOF
16090 /* confdefs.h.  */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h.  */
16095 $ac_includes_default
16096 int
16097 main ()
16098 {
16099 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16100 test_array [0] = 0
16101
16102   ;
16103   return 0;
16104 }
16105 _ACEOF
16106 rm -f conftest.$ac_objext
16107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16108   (eval $ac_compile) 2>conftest.er1
16109   ac_status=$?
16110   grep -v '^ *+' conftest.er1 >conftest.err
16111   rm -f conftest.er1
16112   cat conftest.err >&5
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); } &&
16115          { ac_try='test -z "$ac_c_werror_flag"
16116                          || test ! -s conftest.err'
16117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118   (eval $ac_try) 2>&5
16119   ac_status=$?
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); }; } &&
16122          { ac_try='test -s conftest.$ac_objext'
16123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124   (eval $ac_try) 2>&5
16125   ac_status=$?
16126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127   (exit $ac_status); }; }; then
16128   ac_lo=$ac_mid; break
16129 else
16130   echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16132
16133 ac_hi=`expr '(' $ac_mid ')' - 1`
16134                        if test $ac_mid -le $ac_hi; then
16135                          ac_lo= ac_hi=
16136                          break
16137                        fi
16138                        ac_mid=`expr 2 '*' $ac_mid`
16139 fi
16140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16141   done
16142 else
16143   echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16145
16146 ac_lo= ac_hi=
16147 fi
16148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16149 fi
16150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16151 # Binary search between lo and hi bounds.
16152 while test "x$ac_lo" != "x$ac_hi"; do
16153   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16154   cat >conftest.$ac_ext <<_ACEOF
16155 /* confdefs.h.  */
16156 _ACEOF
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h.  */
16160 $ac_includes_default
16161 int
16162 main ()
16163 {
16164 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16165 test_array [0] = 0
16166
16167   ;
16168   return 0;
16169 }
16170 _ACEOF
16171 rm -f conftest.$ac_objext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173   (eval $ac_compile) 2>conftest.er1
16174   ac_status=$?
16175   grep -v '^ *+' conftest.er1 >conftest.err
16176   rm -f conftest.er1
16177   cat conftest.err >&5
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); } &&
16180          { ac_try='test -z "$ac_c_werror_flag"
16181                          || test ! -s conftest.err'
16182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183   (eval $ac_try) 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); }; } &&
16187          { ac_try='test -s conftest.$ac_objext'
16188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189   (eval $ac_try) 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); }; }; then
16193   ac_hi=$ac_mid
16194 else
16195   echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16197
16198 ac_lo=`expr '(' $ac_mid ')' + 1`
16199 fi
16200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16201 done
16202 case $ac_lo in
16203 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16204 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16205 See \`config.log' for more details." >&5
16206 echo "$as_me: error: cannot compute sizeof (long long int), 77
16207 See \`config.log' for more details." >&2;}
16208    { (exit 1); exit 1; }; } ;;
16209 esac
16210 else
16211   if test "$cross_compiling" = yes; then
16212   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16213 See \`config.log' for more details." >&5
16214 echo "$as_me: error: cannot run test program while cross compiling
16215 See \`config.log' for more details." >&2;}
16216    { (exit 1); exit 1; }; }
16217 else
16218   cat >conftest.$ac_ext <<_ACEOF
16219 /* confdefs.h.  */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h.  */
16224 $ac_includes_default
16225 long longval () { return (long) (sizeof (long long int)); }
16226 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16227 #include <stdio.h>
16228 #include <stdlib.h>
16229 int
16230 main ()
16231 {
16232
16233   FILE *f = fopen ("conftest.val", "w");
16234   if (! f)
16235     exit (1);
16236   if (((long) (sizeof (long long int))) < 0)
16237     {
16238       long i = longval ();
16239       if (i != ((long) (sizeof (long long int))))
16240         exit (1);
16241       fprintf (f, "%ld\n", i);
16242     }
16243   else
16244     {
16245       unsigned long i = ulongval ();
16246       if (i != ((long) (sizeof (long long int))))
16247         exit (1);
16248       fprintf (f, "%lu\n", i);
16249     }
16250   exit (ferror (f) || fclose (f) != 0);
16251
16252   ;
16253   return 0;
16254 }
16255 _ACEOF
16256 rm -f conftest$ac_exeext
16257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16258   (eval $ac_link) 2>&5
16259   ac_status=$?
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263   (eval $ac_try) 2>&5
16264   ac_status=$?
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); }; }; then
16267   ac_cv_sizeof_long_long_int=`cat conftest.val`
16268 else
16269   echo "$as_me: program exited with status $ac_status" >&5
16270 echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16272
16273 ( exit $ac_status )
16274 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16275 See \`config.log' for more details." >&5
16276 echo "$as_me: error: cannot compute sizeof (long long int), 77
16277 See \`config.log' for more details." >&2;}
16278    { (exit 1); exit 1; }; }
16279 fi
16280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16281 fi
16282 fi
16283 rm -f conftest.val
16284 else
16285   ac_cv_sizeof_long_long_int=0
16286 fi
16287 fi
16288 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16289 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16290 cat >>confdefs.h <<_ACEOF
16291 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16292 _ACEOF
16293
16294
16295 echo "$as_me:$LINENO: checking for int *" >&5
16296 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16297 if test "${ac_cv_type_int_p+set}" = set; then
16298   echo $ECHO_N "(cached) $ECHO_C" >&6
16299 else
16300   cat >conftest.$ac_ext <<_ACEOF
16301 /* confdefs.h.  */
16302 _ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h.  */
16306 $ac_includes_default
16307 int
16308 main ()
16309 {
16310 if ((int * *) 0)
16311   return 0;
16312 if (sizeof (int *))
16313   return 0;
16314   ;
16315   return 0;
16316 }
16317 _ACEOF
16318 rm -f conftest.$ac_objext
16319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16320   (eval $ac_compile) 2>conftest.er1
16321   ac_status=$?
16322   grep -v '^ *+' conftest.er1 >conftest.err
16323   rm -f conftest.er1
16324   cat conftest.err >&5
16325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326   (exit $ac_status); } &&
16327          { ac_try='test -z "$ac_c_werror_flag"
16328                          || test ! -s conftest.err'
16329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330   (eval $ac_try) 2>&5
16331   ac_status=$?
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); }; } &&
16334          { ac_try='test -s conftest.$ac_objext'
16335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336   (eval $ac_try) 2>&5
16337   ac_status=$?
16338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339   (exit $ac_status); }; }; then
16340   ac_cv_type_int_p=yes
16341 else
16342   echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16344
16345 ac_cv_type_int_p=no
16346 fi
16347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16348 fi
16349 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16350 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16351
16352 echo "$as_me:$LINENO: checking size of int *" >&5
16353 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16354 if test "${ac_cv_sizeof_int_p+set}" = set; then
16355   echo $ECHO_N "(cached) $ECHO_C" >&6
16356 else
16357   if test "$ac_cv_type_int_p" = yes; then
16358   # The cast to unsigned long works around a bug in the HP C Compiler
16359   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16360   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16361   # This bug is HP SR number 8606223364.
16362   if test "$cross_compiling" = yes; then
16363   # Depending upon the size, compute the lo and hi bounds.
16364 cat >conftest.$ac_ext <<_ACEOF
16365 /* confdefs.h.  */
16366 _ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h.  */
16370 $ac_includes_default
16371 int
16372 main ()
16373 {
16374 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16375 test_array [0] = 0
16376
16377   ;
16378   return 0;
16379 }
16380 _ACEOF
16381 rm -f conftest.$ac_objext
16382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16383   (eval $ac_compile) 2>conftest.er1
16384   ac_status=$?
16385   grep -v '^ *+' conftest.er1 >conftest.err
16386   rm -f conftest.er1
16387   cat conftest.err >&5
16388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389   (exit $ac_status); } &&
16390          { ac_try='test -z "$ac_c_werror_flag"
16391                          || test ! -s conftest.err'
16392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393   (eval $ac_try) 2>&5
16394   ac_status=$?
16395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396   (exit $ac_status); }; } &&
16397          { ac_try='test -s conftest.$ac_objext'
16398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399   (eval $ac_try) 2>&5
16400   ac_status=$?
16401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); }; }; then
16403   ac_lo=0 ac_mid=0
16404   while :; do
16405     cat >conftest.$ac_ext <<_ACEOF
16406 /* confdefs.h.  */
16407 _ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h.  */
16411 $ac_includes_default
16412 int
16413 main ()
16414 {
16415 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16416 test_array [0] = 0
16417
16418   ;
16419   return 0;
16420 }
16421 _ACEOF
16422 rm -f conftest.$ac_objext
16423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16424   (eval $ac_compile) 2>conftest.er1
16425   ac_status=$?
16426   grep -v '^ *+' conftest.er1 >conftest.err
16427   rm -f conftest.er1
16428   cat conftest.err >&5
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); } &&
16431          { ac_try='test -z "$ac_c_werror_flag"
16432                          || test ! -s conftest.err'
16433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434   (eval $ac_try) 2>&5
16435   ac_status=$?
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); }; } &&
16438          { ac_try='test -s conftest.$ac_objext'
16439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440   (eval $ac_try) 2>&5
16441   ac_status=$?
16442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); }; }; then
16444   ac_hi=$ac_mid; break
16445 else
16446   echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16448
16449 ac_lo=`expr $ac_mid + 1`
16450                     if test $ac_lo -le $ac_mid; then
16451                       ac_lo= ac_hi=
16452                       break
16453                     fi
16454                     ac_mid=`expr 2 '*' $ac_mid + 1`
16455 fi
16456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16457   done
16458 else
16459   echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16461
16462 cat >conftest.$ac_ext <<_ACEOF
16463 /* confdefs.h.  */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h.  */
16468 $ac_includes_default
16469 int
16470 main ()
16471 {
16472 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16473 test_array [0] = 0
16474
16475   ;
16476   return 0;
16477 }
16478 _ACEOF
16479 rm -f conftest.$ac_objext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16481   (eval $ac_compile) 2>conftest.er1
16482   ac_status=$?
16483   grep -v '^ *+' conftest.er1 >conftest.err
16484   rm -f conftest.er1
16485   cat conftest.err >&5
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); } &&
16488          { ac_try='test -z "$ac_c_werror_flag"
16489                          || test ! -s conftest.err'
16490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491   (eval $ac_try) 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; } &&
16495          { ac_try='test -s conftest.$ac_objext'
16496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497   (eval $ac_try) 2>&5
16498   ac_status=$?
16499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500   (exit $ac_status); }; }; then
16501   ac_hi=-1 ac_mid=-1
16502   while :; do
16503     cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h.  */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h.  */
16509 $ac_includes_default
16510 int
16511 main ()
16512 {
16513 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16514 test_array [0] = 0
16515
16516   ;
16517   return 0;
16518 }
16519 _ACEOF
16520 rm -f conftest.$ac_objext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16522   (eval $ac_compile) 2>conftest.er1
16523   ac_status=$?
16524   grep -v '^ *+' conftest.er1 >conftest.err
16525   rm -f conftest.er1
16526   cat conftest.err >&5
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); } &&
16529          { ac_try='test -z "$ac_c_werror_flag"
16530                          || test ! -s conftest.err'
16531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532   (eval $ac_try) 2>&5
16533   ac_status=$?
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); }; } &&
16536          { ac_try='test -s conftest.$ac_objext'
16537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538   (eval $ac_try) 2>&5
16539   ac_status=$?
16540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541   (exit $ac_status); }; }; then
16542   ac_lo=$ac_mid; break
16543 else
16544   echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547 ac_hi=`expr '(' $ac_mid ')' - 1`
16548                        if test $ac_mid -le $ac_hi; then
16549                          ac_lo= ac_hi=
16550                          break
16551                        fi
16552                        ac_mid=`expr 2 '*' $ac_mid`
16553 fi
16554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16555   done
16556 else
16557   echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560 ac_lo= ac_hi=
16561 fi
16562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16563 fi
16564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16565 # Binary search between lo and hi bounds.
16566 while test "x$ac_lo" != "x$ac_hi"; do
16567   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16568   cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574 $ac_includes_default
16575 int
16576 main ()
16577 {
16578 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16579 test_array [0] = 0
16580
16581   ;
16582   return 0;
16583 }
16584 _ACEOF
16585 rm -f conftest.$ac_objext
16586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16587   (eval $ac_compile) 2>conftest.er1
16588   ac_status=$?
16589   grep -v '^ *+' conftest.er1 >conftest.err
16590   rm -f conftest.er1
16591   cat conftest.err >&5
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); } &&
16594          { ac_try='test -z "$ac_c_werror_flag"
16595                          || test ! -s conftest.err'
16596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597   (eval $ac_try) 2>&5
16598   ac_status=$?
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); }; } &&
16601          { ac_try='test -s conftest.$ac_objext'
16602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603   (eval $ac_try) 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; }; then
16607   ac_hi=$ac_mid
16608 else
16609   echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16611
16612 ac_lo=`expr '(' $ac_mid ')' + 1`
16613 fi
16614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16615 done
16616 case $ac_lo in
16617 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16618 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16619 See \`config.log' for more details." >&5
16620 echo "$as_me: error: cannot compute sizeof (int *), 77
16621 See \`config.log' for more details." >&2;}
16622    { (exit 1); exit 1; }; } ;;
16623 esac
16624 else
16625   if test "$cross_compiling" = yes; then
16626   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16627 See \`config.log' for more details." >&5
16628 echo "$as_me: error: cannot run test program while cross compiling
16629 See \`config.log' for more details." >&2;}
16630    { (exit 1); exit 1; }; }
16631 else
16632   cat >conftest.$ac_ext <<_ACEOF
16633 /* confdefs.h.  */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h.  */
16638 $ac_includes_default
16639 long longval () { return (long) (sizeof (int *)); }
16640 unsigned long ulongval () { return (long) (sizeof (int *)); }
16641 #include <stdio.h>
16642 #include <stdlib.h>
16643 int
16644 main ()
16645 {
16646
16647   FILE *f = fopen ("conftest.val", "w");
16648   if (! f)
16649     exit (1);
16650   if (((long) (sizeof (int *))) < 0)
16651     {
16652       long i = longval ();
16653       if (i != ((long) (sizeof (int *))))
16654         exit (1);
16655       fprintf (f, "%ld\n", i);
16656     }
16657   else
16658     {
16659       unsigned long i = ulongval ();
16660       if (i != ((long) (sizeof (int *))))
16661         exit (1);
16662       fprintf (f, "%lu\n", i);
16663     }
16664   exit (ferror (f) || fclose (f) != 0);
16665
16666   ;
16667   return 0;
16668 }
16669 _ACEOF
16670 rm -f conftest$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672   (eval $ac_link) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677   (eval $ac_try) 2>&5
16678   ac_status=$?
16679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680   (exit $ac_status); }; }; then
16681   ac_cv_sizeof_int_p=`cat conftest.val`
16682 else
16683   echo "$as_me: program exited with status $ac_status" >&5
16684 echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16686
16687 ( exit $ac_status )
16688 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16689 See \`config.log' for more details." >&5
16690 echo "$as_me: error: cannot compute sizeof (int *), 77
16691 See \`config.log' for more details." >&2;}
16692    { (exit 1); exit 1; }; }
16693 fi
16694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16695 fi
16696 fi
16697 rm -f conftest.val
16698 else
16699   ac_cv_sizeof_int_p=0
16700 fi
16701 fi
16702 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16703 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16704 cat >>confdefs.h <<_ACEOF
16705 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16706 _ACEOF
16707
16708
16709
16710 # Check for sys/types.h types
16711 echo "$as_me:$LINENO: checking for u_int type" >&5
16712 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16713 if test "${ac_cv_have_u_int+set}" = set; then
16714   echo $ECHO_N "(cached) $ECHO_C" >&6
16715 else
16716
16717     cat >conftest.$ac_ext <<_ACEOF
16718 /* confdefs.h.  */
16719 _ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h.  */
16723  #include <sys/types.h>
16724 int
16725 main ()
16726 {
16727  u_int a; a = 1;
16728   ;
16729   return 0;
16730 }
16731 _ACEOF
16732 rm -f conftest.$ac_objext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16734   (eval $ac_compile) 2>conftest.er1
16735   ac_status=$?
16736   grep -v '^ *+' conftest.er1 >conftest.err
16737   rm -f conftest.er1
16738   cat conftest.err >&5
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); } &&
16741          { ac_try='test -z "$ac_c_werror_flag"
16742                          || test ! -s conftest.err'
16743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744   (eval $ac_try) 2>&5
16745   ac_status=$?
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); }; } &&
16748          { ac_try='test -s conftest.$ac_objext'
16749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750   (eval $ac_try) 2>&5
16751   ac_status=$?
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); }; }; then
16754    ac_cv_have_u_int="yes"
16755 else
16756   echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16758
16759  ac_cv_have_u_int="no"
16760
16761 fi
16762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16763
16764 fi
16765 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
16766 echo "${ECHO_T}$ac_cv_have_u_int" >&6
16767 if test "x$ac_cv_have_u_int" = "xyes" ; then
16768    cat >>confdefs.h <<\_ACEOF
16769 #define HAVE_U_INT 1
16770 _ACEOF
16771
16772    have_u_int=1
16773 fi
16774
16775 echo "$as_me:$LINENO: checking for intmax_t type" >&5
16776 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
16777 if test "${ac_cv_have_intmax_t+set}" = set; then
16778   echo $ECHO_N "(cached) $ECHO_C" >&6
16779 else
16780
16781    cat >conftest.$ac_ext <<_ACEOF
16782 /* confdefs.h.  */
16783 _ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h.  */
16787  #include <sys/types.h>
16788 int
16789 main ()
16790 {
16791  intmax_t a; a = 1;
16792   ;
16793   return 0;
16794 }
16795 _ACEOF
16796 rm -f conftest.$ac_objext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16798   (eval $ac_compile) 2>conftest.er1
16799   ac_status=$?
16800   grep -v '^ *+' conftest.er1 >conftest.err
16801   rm -f conftest.er1
16802   cat conftest.err >&5
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); } &&
16805          { ac_try='test -z "$ac_c_werror_flag"
16806                          || test ! -s conftest.err'
16807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808   (eval $ac_try) 2>&5
16809   ac_status=$?
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); }; } &&
16812          { ac_try='test -s conftest.$ac_objext'
16813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814   (eval $ac_try) 2>&5
16815   ac_status=$?
16816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817   (exit $ac_status); }; }; then
16818    ac_cv_have_intmax_t="yes"
16819 else
16820   echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16822
16823
16824          cat >conftest.$ac_ext <<_ACEOF
16825 /* confdefs.h.  */
16826 _ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h.  */
16830  #include <stdint.h>
16831 int
16832 main ()
16833 {
16834  intmax_t a; a = 1;
16835   ;
16836   return 0;
16837 }
16838 _ACEOF
16839 rm -f conftest.$ac_objext
16840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16841   (eval $ac_compile) 2>conftest.er1
16842   ac_status=$?
16843   grep -v '^ *+' conftest.er1 >conftest.err
16844   rm -f conftest.er1
16845   cat conftest.err >&5
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); } &&
16848          { ac_try='test -z "$ac_c_werror_flag"
16849                          || test ! -s conftest.err'
16850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851   (eval $ac_try) 2>&5
16852   ac_status=$?
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); }; } &&
16855          { ac_try='test -s conftest.$ac_objext'
16856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857   (eval $ac_try) 2>&5
16858   ac_status=$?
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); }; }; then
16861    ac_cv_have_intmax_t="yes"
16862 else
16863   echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16865
16866  ac_cv_have_intmax_t="no"
16867
16868 fi
16869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16870
16871
16872 fi
16873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16874
16875
16876 fi
16877 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
16878 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
16879 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
16880    cat >>confdefs.h <<\_ACEOF
16881 #define HAVE_INTMAX_T 1
16882 _ACEOF
16883
16884    have_intmax_t=1
16885 fi
16886
16887
16888 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
16889 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
16890 if test "${ac_cv_have_u_intmax_t+set}" = set; then
16891   echo $ECHO_N "(cached) $ECHO_C" >&6
16892 else
16893
16894    cat >conftest.$ac_ext <<_ACEOF
16895 /* confdefs.h.  */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h.  */
16900  #include <sys/types.h>
16901 int
16902 main ()
16903 {
16904  u_intmax_t a; a = 1;
16905   ;
16906   return 0;
16907 }
16908 _ACEOF
16909 rm -f conftest.$ac_objext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911   (eval $ac_compile) 2>conftest.er1
16912   ac_status=$?
16913   grep -v '^ *+' conftest.er1 >conftest.err
16914   rm -f conftest.er1
16915   cat conftest.err >&5
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); } &&
16918          { ac_try='test -z "$ac_c_werror_flag"
16919                          || test ! -s conftest.err'
16920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921   (eval $ac_try) 2>&5
16922   ac_status=$?
16923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); }; } &&
16925          { ac_try='test -s conftest.$ac_objext'
16926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927   (eval $ac_try) 2>&5
16928   ac_status=$?
16929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930   (exit $ac_status); }; }; then
16931    ac_cv_have_u_intmax_t="yes"
16932 else
16933   echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16935
16936
16937          cat >conftest.$ac_ext <<_ACEOF
16938 /* confdefs.h.  */
16939 _ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h.  */
16943  #include <stdint.h>
16944 int
16945 main ()
16946 {
16947  u_intmax_t a; a = 1;
16948   ;
16949   return 0;
16950 }
16951 _ACEOF
16952 rm -f conftest.$ac_objext
16953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16954   (eval $ac_compile) 2>conftest.er1
16955   ac_status=$?
16956   grep -v '^ *+' conftest.er1 >conftest.err
16957   rm -f conftest.er1
16958   cat conftest.err >&5
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); } &&
16961          { ac_try='test -z "$ac_c_werror_flag"
16962                          || test ! -s conftest.err'
16963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964   (eval $ac_try) 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); }; } &&
16968          { ac_try='test -s conftest.$ac_objext'
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_have_u_intmax_t="yes"
16975 else
16976   echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16978
16979  ac_cv_have_u_intmax_t="no"
16980
16981 fi
16982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16983
16984
16985 fi
16986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16987
16988 fi
16989 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
16990 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
16991 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
16992    cat >>confdefs.h <<\_ACEOF
16993 #define HAVE_U_INTMAX_T 1
16994 _ACEOF
16995
16996    have_u_intmax_t=1
16997 fi
16998
16999
17000 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17001 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17002 if test "${ac_cv_have_intxx_t+set}" = set; then
17003   echo $ECHO_N "(cached) $ECHO_C" >&6
17004 else
17005
17006    cat >conftest.$ac_ext <<_ACEOF
17007 /* confdefs.h.  */
17008 _ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h.  */
17012  #include <sys/types.h>
17013 int
17014 main ()
17015 {
17016  int8_t a; int16_t b; int32_t c; a = b = c = 1;
17017   ;
17018   return 0;
17019 }
17020 _ACEOF
17021 rm -f conftest.$ac_objext
17022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17023   (eval $ac_compile) 2>conftest.er1
17024   ac_status=$?
17025   grep -v '^ *+' conftest.er1 >conftest.err
17026   rm -f conftest.er1
17027   cat conftest.err >&5
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); } &&
17030          { ac_try='test -z "$ac_c_werror_flag"
17031                          || test ! -s conftest.err'
17032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033   (eval $ac_try) 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); }; } &&
17037          { ac_try='test -s conftest.$ac_objext'
17038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039   (eval $ac_try) 2>&5
17040   ac_status=$?
17041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042   (exit $ac_status); }; }; then
17043    ac_cv_have_intxx_t="yes"
17044 else
17045   echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17047
17048  ac_cv_have_intxx_t="no"
17049
17050 fi
17051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17052
17053 fi
17054 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17055 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17056 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17057    cat >>confdefs.h <<\_ACEOF
17058 #define HAVE_INTXX_T 1
17059 _ACEOF
17060
17061    have_intxx_t=1
17062 fi
17063
17064 echo "$as_me:$LINENO: checking for int64_t type" >&5
17065 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17066 if test "${ac_cv_have_int64_t+set}" = set; then
17067   echo $ECHO_N "(cached) $ECHO_C" >&6
17068 else
17069
17070    cat >conftest.$ac_ext <<_ACEOF
17071 /* confdefs.h.  */
17072 _ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h.  */
17076  #include <sys/types.h>
17077 int
17078 main ()
17079 {
17080  int64_t a; a = 1;
17081   ;
17082   return 0;
17083 }
17084 _ACEOF
17085 rm -f conftest.$ac_objext
17086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17087   (eval $ac_compile) 2>conftest.er1
17088   ac_status=$?
17089   grep -v '^ *+' conftest.er1 >conftest.err
17090   rm -f conftest.er1
17091   cat conftest.err >&5
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); } &&
17094          { ac_try='test -z "$ac_c_werror_flag"
17095                          || test ! -s conftest.err'
17096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097   (eval $ac_try) 2>&5
17098   ac_status=$?
17099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100   (exit $ac_status); }; } &&
17101          { ac_try='test -s conftest.$ac_objext'
17102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103   (eval $ac_try) 2>&5
17104   ac_status=$?
17105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106   (exit $ac_status); }; }; then
17107    ac_cv_have_int64_t="yes"
17108 else
17109   echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17111
17112  ac_cv_have_int64_t="no"
17113
17114 fi
17115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17116
17117 fi
17118 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17119 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17120 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17121    cat >>confdefs.h <<\_ACEOF
17122 #define HAVE_INT64_T 1
17123 _ACEOF
17124
17125    have_int64_t=1
17126 fi
17127
17128 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17129 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17130 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17131   echo $ECHO_N "(cached) $ECHO_C" >&6
17132 else
17133
17134    cat >conftest.$ac_ext <<_ACEOF
17135 /* confdefs.h.  */
17136 _ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h.  */
17140  #include <sys/types.h>
17141 int
17142 main ()
17143 {
17144  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17145   ;
17146   return 0;
17147 }
17148 _ACEOF
17149 rm -f conftest.$ac_objext
17150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17151   (eval $ac_compile) 2>conftest.er1
17152   ac_status=$?
17153   grep -v '^ *+' conftest.er1 >conftest.err
17154   rm -f conftest.er1
17155   cat conftest.err >&5
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); } &&
17158          { ac_try='test -z "$ac_c_werror_flag"
17159                          || test ! -s conftest.err'
17160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161   (eval $ac_try) 2>&5
17162   ac_status=$?
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); }; } &&
17165          { ac_try='test -s conftest.$ac_objext'
17166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167   (eval $ac_try) 2>&5
17168   ac_status=$?
17169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170   (exit $ac_status); }; }; then
17171    ac_cv_have_u_intxx_t="yes"
17172 else
17173   echo "$as_me: failed program was:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17175
17176  ac_cv_have_u_intxx_t="no"
17177
17178 fi
17179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17180
17181 fi
17182 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17183 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17184 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17185    cat >>confdefs.h <<\_ACEOF
17186 #define HAVE_U_INTXX_T 1
17187 _ACEOF
17188
17189    have_u_intxx_t=1
17190 fi
17191
17192 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17193 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17194 if test "${ac_cv_have_u_int64_t+set}" = set; then
17195   echo $ECHO_N "(cached) $ECHO_C" >&6
17196 else
17197
17198    cat >conftest.$ac_ext <<_ACEOF
17199 /* confdefs.h.  */
17200 _ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h.  */
17204  #include <sys/types.h>
17205 int
17206 main ()
17207 {
17208  u_int64_t a; a = 1;
17209   ;
17210   return 0;
17211 }
17212 _ACEOF
17213 rm -f conftest.$ac_objext
17214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17215   (eval $ac_compile) 2>conftest.er1
17216   ac_status=$?
17217   grep -v '^ *+' conftest.er1 >conftest.err
17218   rm -f conftest.er1
17219   cat conftest.err >&5
17220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221   (exit $ac_status); } &&
17222          { ac_try='test -z "$ac_c_werror_flag"
17223                          || test ! -s conftest.err'
17224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225   (eval $ac_try) 2>&5
17226   ac_status=$?
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); }; } &&
17229          { ac_try='test -s conftest.$ac_objext'
17230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231   (eval $ac_try) 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; }; then
17235    ac_cv_have_u_int64_t="yes"
17236 else
17237   echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17239
17240  ac_cv_have_u_int64_t="no"
17241
17242 fi
17243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17244
17245 fi
17246 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17247 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17248 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17249    cat >>confdefs.h <<\_ACEOF
17250 #define HAVE_U_INT64_T 1
17251 _ACEOF
17252
17253    have_u_int64_t=1
17254 fi
17255
17256 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17257            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17258 then
17259    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17260 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17261    cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h.  */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h.  */
17267  #include <sys/bitypes.h>
17268 int
17269 main ()
17270 {
17271  int8_t a; int16_t b; int32_t c;
17272         u_int8_t e; u_int16_t f; u_int32_t g;
17273         a = b = c = e = f = g = 1;
17274   ;
17275   return 0;
17276 }
17277 _ACEOF
17278 rm -f conftest.$ac_objext
17279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17280   (eval $ac_compile) 2>conftest.er1
17281   ac_status=$?
17282   grep -v '^ *+' conftest.er1 >conftest.err
17283   rm -f conftest.er1
17284   cat conftest.err >&5
17285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286   (exit $ac_status); } &&
17287          { ac_try='test -z "$ac_c_werror_flag"
17288                          || test ! -s conftest.err'
17289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290   (eval $ac_try) 2>&5
17291   ac_status=$?
17292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); }; } &&
17294          { ac_try='test -s conftest.$ac_objext'
17295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296   (eval $ac_try) 2>&5
17297   ac_status=$?
17298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299   (exit $ac_status); }; }; then
17300    cat >>confdefs.h <<\_ACEOF
17301 #define HAVE_U_INTXX_T 1
17302 _ACEOF
17303
17304         cat >>confdefs.h <<\_ACEOF
17305 #define HAVE_INTXX_T 1
17306 _ACEOF
17307
17308         cat >>confdefs.h <<\_ACEOF
17309 #define HAVE_SYS_BITYPES_H 1
17310 _ACEOF
17311
17312         echo "$as_me:$LINENO: result: yes" >&5
17313 echo "${ECHO_T}yes" >&6
17314 else
17315   echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17317
17318  echo "$as_me:$LINENO: result: no" >&5
17319 echo "${ECHO_T}no" >&6
17320
17321 fi
17322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17323 fi
17324
17325 if test -z "$have_u_intxx_t" ; then
17326    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17327 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17328 if test "${ac_cv_have_uintxx_t+set}" = set; then
17329   echo $ECHO_N "(cached) $ECHO_C" >&6
17330 else
17331
17332       cat >conftest.$ac_ext <<_ACEOF
17333 /* confdefs.h.  */
17334 _ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h.  */
17338  #include <sys/types.h>
17339 int
17340 main ()
17341 {
17342  uint8_t a; uint16_t b;
17343            uint32_t c; a = b = c = 1;
17344   ;
17345   return 0;
17346 }
17347 _ACEOF
17348 rm -f conftest.$ac_objext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17350   (eval $ac_compile) 2>conftest.er1
17351   ac_status=$?
17352   grep -v '^ *+' conftest.er1 >conftest.err
17353   rm -f conftest.er1
17354   cat conftest.err >&5
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); } &&
17357          { ac_try='test -z "$ac_c_werror_flag"
17358                          || test ! -s conftest.err'
17359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360   (eval $ac_try) 2>&5
17361   ac_status=$?
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); }; } &&
17364          { ac_try='test -s conftest.$ac_objext'
17365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366   (eval $ac_try) 2>&5
17367   ac_status=$?
17368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369   (exit $ac_status); }; }; then
17370    ac_cv_have_uintxx_t="yes"
17371 else
17372   echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17374
17375  ac_cv_have_uintxx_t="no"
17376
17377 fi
17378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17379
17380 fi
17381 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17382 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17383    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17384       cat >>confdefs.h <<\_ACEOF
17385 #define HAVE_UINTXX_T 1
17386 _ACEOF
17387
17388    fi
17389 fi
17390
17391 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17392           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17393 then
17394    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17395 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17396    cat >conftest.$ac_ext <<_ACEOF
17397 /* confdefs.h.  */
17398 _ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h.  */
17402  #include <sys/bitypes.h>
17403 int
17404 main ()
17405 {
17406  int64_t a; u_int64_t b;
17407        a = b = 1;
17408   ;
17409   return 0;
17410 }
17411 _ACEOF
17412 rm -f conftest.$ac_objext
17413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17414   (eval $ac_compile) 2>conftest.er1
17415   ac_status=$?
17416   grep -v '^ *+' conftest.er1 >conftest.err
17417   rm -f conftest.er1
17418   cat conftest.err >&5
17419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420   (exit $ac_status); } &&
17421          { ac_try='test -z "$ac_c_werror_flag"
17422                          || test ! -s conftest.err'
17423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424   (eval $ac_try) 2>&5
17425   ac_status=$?
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); }; } &&
17428          { ac_try='test -s conftest.$ac_objext'
17429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430   (eval $ac_try) 2>&5
17431   ac_status=$?
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); }; }; then
17434    cat >>confdefs.h <<\_ACEOF
17435 #define HAVE_U_INT64_T 1
17436 _ACEOF
17437
17438        cat >>confdefs.h <<\_ACEOF
17439 #define HAVE_INT64_T 1
17440 _ACEOF
17441
17442        echo "$as_me:$LINENO: result: yes" >&5
17443 echo "${ECHO_T}yes" >&6
17444 else
17445   echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17447
17448  echo "$as_me:$LINENO: result: no" >&5
17449 echo "${ECHO_T}no" >&6
17450
17451 fi
17452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17453 fi
17454
17455 if (test -z "$have_uintxx_t" && \
17456           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17457 then
17458    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17459 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17460    cat >conftest.$ac_ext <<_ACEOF
17461 /* confdefs.h.  */
17462 _ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h.  */
17466  #include <sys/bitypes.h>
17467 int
17468 main ()
17469 {
17470  uint8_t a; uint16_t b;
17471           uint32_t c; a = b = c = 1;
17472   ;
17473   return 0;
17474 }
17475 _ACEOF
17476 rm -f conftest.$ac_objext
17477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17478   (eval $ac_compile) 2>conftest.er1
17479   ac_status=$?
17480   grep -v '^ *+' conftest.er1 >conftest.err
17481   rm -f conftest.er1
17482   cat conftest.err >&5
17483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484   (exit $ac_status); } &&
17485          { ac_try='test -z "$ac_c_werror_flag"
17486                          || test ! -s conftest.err'
17487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488   (eval $ac_try) 2>&5
17489   ac_status=$?
17490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491   (exit $ac_status); }; } &&
17492          { ac_try='test -s conftest.$ac_objext'
17493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494   (eval $ac_try) 2>&5
17495   ac_status=$?
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); }; }; then
17498    cat >>confdefs.h <<\_ACEOF
17499 #define HAVE_UINTXX_T 1
17500 _ACEOF
17501
17502        echo "$as_me:$LINENO: result: yes" >&5
17503 echo "${ECHO_T}yes" >&6
17504 else
17505   echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17507
17508  echo "$as_me:$LINENO: result: no" >&5
17509 echo "${ECHO_T}no" >&6
17510
17511 fi
17512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17513
17514 fi
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532 for ac_func in \
17533         fork \
17534         getcwd \
17535         gethostname \
17536         getpid \
17537         gettimeofday \
17538         setpgid \
17539         setpgrp \
17540         setsid \
17541         signal \
17542         strerror \
17543         strncmp \
17544         strncpy \
17545         vfprintf \
17546
17547 do
17548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17549 echo "$as_me:$LINENO: checking for $ac_func" >&5
17550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17551 if eval "test \"\${$as_ac_var+set}\" = set"; then
17552   echo $ECHO_N "(cached) $ECHO_C" >&6
17553 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17562 #define $ac_func innocuous_$ac_func
17563
17564 /* System header to define __stub macros and hopefully few prototypes,
17565     which can conflict with char $ac_func (); below.
17566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17567     <limits.h> exists even on freestanding compilers.  */
17568
17569 #ifdef __STDC__
17570 # include <limits.h>
17571 #else
17572 # include <assert.h>
17573 #endif
17574
17575 #undef $ac_func
17576
17577 /* Override any gcc2 internal prototype to avoid an error.  */
17578 #ifdef __cplusplus
17579 extern "C"
17580 {
17581 #endif
17582 /* We use char because int might match the return type of a gcc2
17583    builtin and then its argument prototype would still apply.  */
17584 char $ac_func ();
17585 /* The GNU C library defines this for functions which it implements
17586     to always fail with ENOSYS.  Some functions are actually named
17587     something starting with __ and the normal name is an alias.  */
17588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17589 choke me
17590 #else
17591 char (*f) () = $ac_func;
17592 #endif
17593 #ifdef __cplusplus
17594 }
17595 #endif
17596
17597 int
17598 main ()
17599 {
17600 return f != $ac_func;
17601   ;
17602   return 0;
17603 }
17604 _ACEOF
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17607   (eval $ac_link) 2>conftest.er1
17608   ac_status=$?
17609   grep -v '^ *+' conftest.er1 >conftest.err
17610   rm -f conftest.er1
17611   cat conftest.err >&5
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); } &&
17614          { ac_try='test -z "$ac_c_werror_flag"
17615                          || test ! -s conftest.err'
17616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617   (eval $ac_try) 2>&5
17618   ac_status=$?
17619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620   (exit $ac_status); }; } &&
17621          { ac_try='test -s conftest$ac_exeext'
17622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623   (eval $ac_try) 2>&5
17624   ac_status=$?
17625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626   (exit $ac_status); }; }; then
17627   eval "$as_ac_var=yes"
17628 else
17629   echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17631
17632 eval "$as_ac_var=no"
17633 fi
17634 rm -f conftest.err conftest.$ac_objext \
17635       conftest$ac_exeext conftest.$ac_ext
17636 fi
17637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17639 if test `eval echo '${'$as_ac_var'}'` = yes; then
17640   cat >>confdefs.h <<_ACEOF
17641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17642 _ACEOF
17643
17644 else
17645   echo 'configure: cannot find needed function.'; exit 1
17646
17647 fi
17648 done
17649
17650
17651
17652 for ac_func in fchdir
17653 do
17654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17655 echo "$as_me:$LINENO: checking for $ac_func" >&5
17656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17657 if eval "test \"\${$as_ac_var+set}\" = set"; then
17658   echo $ECHO_N "(cached) $ECHO_C" >&6
17659 else
17660   cat >conftest.$ac_ext <<_ACEOF
17661 /* confdefs.h.  */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h.  */
17666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17668 #define $ac_func innocuous_$ac_func
17669
17670 /* System header to define __stub macros and hopefully few prototypes,
17671     which can conflict with char $ac_func (); below.
17672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17673     <limits.h> exists even on freestanding compilers.  */
17674
17675 #ifdef __STDC__
17676 # include <limits.h>
17677 #else
17678 # include <assert.h>
17679 #endif
17680
17681 #undef $ac_func
17682
17683 /* Override any gcc2 internal prototype to avoid an error.  */
17684 #ifdef __cplusplus
17685 extern "C"
17686 {
17687 #endif
17688 /* We use char because int might match the return type of a gcc2
17689    builtin and then its argument prototype would still apply.  */
17690 char $ac_func ();
17691 /* The GNU C library defines this for functions which it implements
17692     to always fail with ENOSYS.  Some functions are actually named
17693     something starting with __ and the normal name is an alias.  */
17694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17695 choke me
17696 #else
17697 char (*f) () = $ac_func;
17698 #endif
17699 #ifdef __cplusplus
17700 }
17701 #endif
17702
17703 int
17704 main ()
17705 {
17706 return f != $ac_func;
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext conftest$ac_exeext
17712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17713   (eval $ac_link) 2>conftest.er1
17714   ac_status=$?
17715   grep -v '^ *+' conftest.er1 >conftest.err
17716   rm -f conftest.er1
17717   cat conftest.err >&5
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); } &&
17720          { ac_try='test -z "$ac_c_werror_flag"
17721                          || test ! -s conftest.err'
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); }; } &&
17727          { ac_try='test -s conftest$ac_exeext'
17728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729   (eval $ac_try) 2>&5
17730   ac_status=$?
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); }; }; then
17733   eval "$as_ac_var=yes"
17734 else
17735   echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17737
17738 eval "$as_ac_var=no"
17739 fi
17740 rm -f conftest.err conftest.$ac_objext \
17741       conftest$ac_exeext conftest.$ac_ext
17742 fi
17743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17745 if test `eval echo '${'$as_ac_var'}'` = yes; then
17746   cat >>confdefs.h <<_ACEOF
17747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17748 _ACEOF
17749  cat >>confdefs.h <<\_ACEOF
17750 #define HAVE_FCHDIR 1
17751 _ACEOF
17752
17753 fi
17754 done
17755
17756
17757 for ac_func in strtoll
17758 do
17759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17760 echo "$as_me:$LINENO: checking for $ac_func" >&5
17761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17762 if eval "test \"\${$as_ac_var+set}\" = set"; then
17763   echo $ECHO_N "(cached) $ECHO_C" >&6
17764 else
17765   cat >conftest.$ac_ext <<_ACEOF
17766 /* confdefs.h.  */
17767 _ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h.  */
17771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17773 #define $ac_func innocuous_$ac_func
17774
17775 /* System header to define __stub macros and hopefully few prototypes,
17776     which can conflict with char $ac_func (); below.
17777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17778     <limits.h> exists even on freestanding compilers.  */
17779
17780 #ifdef __STDC__
17781 # include <limits.h>
17782 #else
17783 # include <assert.h>
17784 #endif
17785
17786 #undef $ac_func
17787
17788 /* Override any gcc2 internal prototype to avoid an error.  */
17789 #ifdef __cplusplus
17790 extern "C"
17791 {
17792 #endif
17793 /* We use char because int might match the return type of a gcc2
17794    builtin and then its argument prototype would still apply.  */
17795 char $ac_func ();
17796 /* The GNU C library defines this for functions which it implements
17797     to always fail with ENOSYS.  Some functions are actually named
17798     something starting with __ and the normal name is an alias.  */
17799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17800 choke me
17801 #else
17802 char (*f) () = $ac_func;
17803 #endif
17804 #ifdef __cplusplus
17805 }
17806 #endif
17807
17808 int
17809 main ()
17810 {
17811 return f != $ac_func;
17812   ;
17813   return 0;
17814 }
17815 _ACEOF
17816 rm -f conftest.$ac_objext conftest$ac_exeext
17817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17818   (eval $ac_link) 2>conftest.er1
17819   ac_status=$?
17820   grep -v '^ *+' conftest.er1 >conftest.err
17821   rm -f conftest.er1
17822   cat conftest.err >&5
17823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); } &&
17825          { ac_try='test -z "$ac_c_werror_flag"
17826                          || test ! -s conftest.err'
17827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828   (eval $ac_try) 2>&5
17829   ac_status=$?
17830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831   (exit $ac_status); }; } &&
17832          { ac_try='test -s conftest$ac_exeext'
17833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834   (eval $ac_try) 2>&5
17835   ac_status=$?
17836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837   (exit $ac_status); }; }; then
17838   eval "$as_ac_var=yes"
17839 else
17840   echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17842
17843 eval "$as_ac_var=no"
17844 fi
17845 rm -f conftest.err conftest.$ac_objext \
17846       conftest$ac_exeext conftest.$ac_ext
17847 fi
17848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17850 if test `eval echo '${'$as_ac_var'}'` = yes; then
17851   cat >>confdefs.h <<_ACEOF
17852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17853 _ACEOF
17854  cat >>confdefs.h <<\_ACEOF
17855 #define HAVE_STRTOLL 1
17856 _ACEOF
17857
17858 fi
17859 done
17860
17861
17862
17863 for ac_func in chflags
17864 do
17865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17866 echo "$as_me:$LINENO: checking for $ac_func" >&5
17867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17868 if eval "test \"\${$as_ac_var+set}\" = set"; then
17869   echo $ECHO_N "(cached) $ECHO_C" >&6
17870 else
17871   cat >conftest.$ac_ext <<_ACEOF
17872 /* confdefs.h.  */
17873 _ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h.  */
17877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17879 #define $ac_func innocuous_$ac_func
17880
17881 /* System header to define __stub macros and hopefully few prototypes,
17882     which can conflict with char $ac_func (); below.
17883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17884     <limits.h> exists even on freestanding compilers.  */
17885
17886 #ifdef __STDC__
17887 # include <limits.h>
17888 #else
17889 # include <assert.h>
17890 #endif
17891
17892 #undef $ac_func
17893
17894 /* Override any gcc2 internal prototype to avoid an error.  */
17895 #ifdef __cplusplus
17896 extern "C"
17897 {
17898 #endif
17899 /* We use char because int might match the return type of a gcc2
17900    builtin and then its argument prototype would still apply.  */
17901 char $ac_func ();
17902 /* The GNU C library defines this for functions which it implements
17903     to always fail with ENOSYS.  Some functions are actually named
17904     something starting with __ and the normal name is an alias.  */
17905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17906 choke me
17907 #else
17908 char (*f) () = $ac_func;
17909 #endif
17910 #ifdef __cplusplus
17911 }
17912 #endif
17913
17914 int
17915 main ()
17916 {
17917 return f != $ac_func;
17918   ;
17919   return 0;
17920 }
17921 _ACEOF
17922 rm -f conftest.$ac_objext conftest$ac_exeext
17923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17924   (eval $ac_link) 2>conftest.er1
17925   ac_status=$?
17926   grep -v '^ *+' conftest.er1 >conftest.err
17927   rm -f conftest.er1
17928   cat conftest.err >&5
17929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930   (exit $ac_status); } &&
17931          { ac_try='test -z "$ac_c_werror_flag"
17932                          || test ! -s conftest.err'
17933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934   (eval $ac_try) 2>&5
17935   ac_status=$?
17936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937   (exit $ac_status); }; } &&
17938          { ac_try='test -s conftest$ac_exeext'
17939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940   (eval $ac_try) 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; }; then
17944   eval "$as_ac_var=yes"
17945 else
17946   echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17948
17949 eval "$as_ac_var=no"
17950 fi
17951 rm -f conftest.err conftest.$ac_objext \
17952       conftest$ac_exeext conftest.$ac_ext
17953 fi
17954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17956 if test `eval echo '${'$as_ac_var'}'` = yes; then
17957   cat >>confdefs.h <<_ACEOF
17958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17959 _ACEOF
17960
17961 fi
17962 done
17963
17964
17965
17966
17967
17968
17969 for ac_func in snprintf vsnprintf gethostid getdomainname
17970 do
17971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17972 echo "$as_me:$LINENO: checking for $ac_func" >&5
17973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17974 if eval "test \"\${$as_ac_var+set}\" = set"; then
17975   echo $ECHO_N "(cached) $ECHO_C" >&6
17976 else
17977   cat >conftest.$ac_ext <<_ACEOF
17978 /* confdefs.h.  */
17979 _ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h.  */
17983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17985 #define $ac_func innocuous_$ac_func
17986
17987 /* System header to define __stub macros and hopefully few prototypes,
17988     which can conflict with char $ac_func (); below.
17989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17990     <limits.h> exists even on freestanding compilers.  */
17991
17992 #ifdef __STDC__
17993 # include <limits.h>
17994 #else
17995 # include <assert.h>
17996 #endif
17997
17998 #undef $ac_func
17999
18000 /* Override any gcc2 internal prototype to avoid an error.  */
18001 #ifdef __cplusplus
18002 extern "C"
18003 {
18004 #endif
18005 /* We use char because int might match the return type of a gcc2
18006    builtin and then its argument prototype would still apply.  */
18007 char $ac_func ();
18008 /* The GNU C library defines this for functions which it implements
18009     to always fail with ENOSYS.  Some functions are actually named
18010     something starting with __ and the normal name is an alias.  */
18011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18012 choke me
18013 #else
18014 char (*f) () = $ac_func;
18015 #endif
18016 #ifdef __cplusplus
18017 }
18018 #endif
18019
18020 int
18021 main ()
18022 {
18023 return f != $ac_func;
18024   ;
18025   return 0;
18026 }
18027 _ACEOF
18028 rm -f conftest.$ac_objext conftest$ac_exeext
18029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18030   (eval $ac_link) 2>conftest.er1
18031   ac_status=$?
18032   grep -v '^ *+' conftest.er1 >conftest.err
18033   rm -f conftest.er1
18034   cat conftest.err >&5
18035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036   (exit $ac_status); } &&
18037          { ac_try='test -z "$ac_c_werror_flag"
18038                          || test ! -s conftest.err'
18039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040   (eval $ac_try) 2>&5
18041   ac_status=$?
18042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043   (exit $ac_status); }; } &&
18044          { ac_try='test -s conftest$ac_exeext'
18045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046   (eval $ac_try) 2>&5
18047   ac_status=$?
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); }; }; then
18050   eval "$as_ac_var=yes"
18051 else
18052   echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18054
18055 eval "$as_ac_var=no"
18056 fi
18057 rm -f conftest.err conftest.$ac_objext \
18058       conftest$ac_exeext conftest.$ac_ext
18059 fi
18060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18062 if test `eval echo '${'$as_ac_var'}'` = yes; then
18063   cat >>confdefs.h <<_ACEOF
18064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18065 _ACEOF
18066
18067 fi
18068 done
18069
18070
18071
18072
18073
18074
18075 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18076 do
18077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18078 echo "$as_me:$LINENO: checking for $ac_func" >&5
18079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18080 if eval "test \"\${$as_ac_var+set}\" = set"; then
18081   echo $ECHO_N "(cached) $ECHO_C" >&6
18082 else
18083   cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h.  */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h.  */
18089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18091 #define $ac_func innocuous_$ac_func
18092
18093 /* System header to define __stub macros and hopefully few prototypes,
18094     which can conflict with char $ac_func (); below.
18095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18096     <limits.h> exists even on freestanding compilers.  */
18097
18098 #ifdef __STDC__
18099 # include <limits.h>
18100 #else
18101 # include <assert.h>
18102 #endif
18103
18104 #undef $ac_func
18105
18106 /* Override any gcc2 internal prototype to avoid an error.  */
18107 #ifdef __cplusplus
18108 extern "C"
18109 {
18110 #endif
18111 /* We use char because int might match the return type of a gcc2
18112    builtin and then its argument prototype would still apply.  */
18113 char $ac_func ();
18114 /* The GNU C library defines this for functions which it implements
18115     to always fail with ENOSYS.  Some functions are actually named
18116     something starting with __ and the normal name is an alias.  */
18117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18118 choke me
18119 #else
18120 char (*f) () = $ac_func;
18121 #endif
18122 #ifdef __cplusplus
18123 }
18124 #endif
18125
18126 int
18127 main ()
18128 {
18129 return f != $ac_func;
18130   ;
18131   return 0;
18132 }
18133 _ACEOF
18134 rm -f conftest.$ac_objext conftest$ac_exeext
18135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18136   (eval $ac_link) 2>conftest.er1
18137   ac_status=$?
18138   grep -v '^ *+' conftest.er1 >conftest.err
18139   rm -f conftest.er1
18140   cat conftest.err >&5
18141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142   (exit $ac_status); } &&
18143          { ac_try='test -z "$ac_c_werror_flag"
18144                          || test ! -s conftest.err'
18145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146   (eval $ac_try) 2>&5
18147   ac_status=$?
18148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149   (exit $ac_status); }; } &&
18150          { ac_try='test -s conftest$ac_exeext'
18151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152   (eval $ac_try) 2>&5
18153   ac_status=$?
18154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155   (exit $ac_status); }; }; then
18156   eval "$as_ac_var=yes"
18157 else
18158   echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18160
18161 eval "$as_ac_var=no"
18162 fi
18163 rm -f conftest.err conftest.$ac_objext \
18164       conftest$ac_exeext conftest.$ac_ext
18165 fi
18166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18168 if test `eval echo '${'$as_ac_var'}'` = yes; then
18169   cat >>confdefs.h <<_ACEOF
18170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18171 _ACEOF
18172
18173 fi
18174 done
18175
18176
18177 # If resolver functions are not in libc check for -lnsl or -lresolv.
18178 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18179 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18180 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18181   echo $ECHO_N "(cached) $ECHO_C" >&6
18182 else
18183   cat >conftest.$ac_ext <<_ACEOF
18184 /* confdefs.h.  */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h.  */
18189 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18191 #define gethostbyname_r innocuous_gethostbyname_r
18192
18193 /* System header to define __stub macros and hopefully few prototypes,
18194     which can conflict with char gethostbyname_r (); below.
18195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18196     <limits.h> exists even on freestanding compilers.  */
18197
18198 #ifdef __STDC__
18199 # include <limits.h>
18200 #else
18201 # include <assert.h>
18202 #endif
18203
18204 #undef gethostbyname_r
18205
18206 /* Override any gcc2 internal prototype to avoid an error.  */
18207 #ifdef __cplusplus
18208 extern "C"
18209 {
18210 #endif
18211 /* We use char because int might match the return type of a gcc2
18212    builtin and then its argument prototype would still apply.  */
18213 char gethostbyname_r ();
18214 /* The GNU C library defines this for functions which it implements
18215     to always fail with ENOSYS.  Some functions are actually named
18216     something starting with __ and the normal name is an alias.  */
18217 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18218 choke me
18219 #else
18220 char (*f) () = gethostbyname_r;
18221 #endif
18222 #ifdef __cplusplus
18223 }
18224 #endif
18225
18226 int
18227 main ()
18228 {
18229 return f != gethostbyname_r;
18230   ;
18231   return 0;
18232 }
18233 _ACEOF
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236   (eval $ac_link) 2>conftest.er1
18237   ac_status=$?
18238   grep -v '^ *+' conftest.er1 >conftest.err
18239   rm -f conftest.er1
18240   cat conftest.err >&5
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); } &&
18243          { ac_try='test -z "$ac_c_werror_flag"
18244                          || test ! -s conftest.err'
18245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246   (eval $ac_try) 2>&5
18247   ac_status=$?
18248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249   (exit $ac_status); }; } &&
18250          { ac_try='test -s conftest$ac_exeext'
18251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252   (eval $ac_try) 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); }; }; then
18256   ac_cv_func_gethostbyname_r=yes
18257 else
18258   echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18260
18261 ac_cv_func_gethostbyname_r=no
18262 fi
18263 rm -f conftest.err conftest.$ac_objext \
18264       conftest$ac_exeext conftest.$ac_ext
18265 fi
18266 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18267 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18268 if test $ac_cv_func_gethostbyname_r = yes; then
18269   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18270 echo "${ECHO_T}using libc's resolver" >&6
18271 else
18272
18273 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18274 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18275 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18276   echo $ECHO_N "(cached) $ECHO_C" >&6
18277 else
18278   ac_check_lib_save_LIBS=$LIBS
18279 LIBS="-lnsl  $LIBS"
18280 cat >conftest.$ac_ext <<_ACEOF
18281 /* confdefs.h.  */
18282 _ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h.  */
18286
18287 /* Override any gcc2 internal prototype to avoid an error.  */
18288 #ifdef __cplusplus
18289 extern "C"
18290 #endif
18291 /* We use char because int might match the return type of a gcc2
18292    builtin and then its argument prototype would still apply.  */
18293 char gethostbyname_r ();
18294 int
18295 main ()
18296 {
18297 gethostbyname_r ();
18298   ;
18299   return 0;
18300 }
18301 _ACEOF
18302 rm -f conftest.$ac_objext conftest$ac_exeext
18303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18304   (eval $ac_link) 2>conftest.er1
18305   ac_status=$?
18306   grep -v '^ *+' conftest.er1 >conftest.err
18307   rm -f conftest.er1
18308   cat conftest.err >&5
18309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310   (exit $ac_status); } &&
18311          { ac_try='test -z "$ac_c_werror_flag"
18312                          || test ! -s conftest.err'
18313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314   (eval $ac_try) 2>&5
18315   ac_status=$?
18316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317   (exit $ac_status); }; } &&
18318          { ac_try='test -s conftest$ac_exeext'
18319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320   (eval $ac_try) 2>&5
18321   ac_status=$?
18322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323   (exit $ac_status); }; }; then
18324   ac_cv_lib_nsl_gethostbyname_r=yes
18325 else
18326   echo "$as_me: failed program was:" >&5
18327 sed 's/^/| /' conftest.$ac_ext >&5
18328
18329 ac_cv_lib_nsl_gethostbyname_r=no
18330 fi
18331 rm -f conftest.err conftest.$ac_objext \
18332       conftest$ac_exeext conftest.$ac_ext
18333 LIBS=$ac_check_lib_save_LIBS
18334 fi
18335 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18336 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18337 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18338   cat >>confdefs.h <<_ACEOF
18339 #define HAVE_LIBNSL 1
18340 _ACEOF
18341
18342   LIBS="-lnsl $LIBS"
18343
18344 fi
18345
18346
18347 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18348 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18349 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18350   echo $ECHO_N "(cached) $ECHO_C" >&6
18351 else
18352   ac_check_lib_save_LIBS=$LIBS
18353 LIBS="-lresolv  $LIBS"
18354 cat >conftest.$ac_ext <<_ACEOF
18355 /* confdefs.h.  */
18356 _ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h.  */
18360
18361 /* Override any gcc2 internal prototype to avoid an error.  */
18362 #ifdef __cplusplus
18363 extern "C"
18364 #endif
18365 /* We use char because int might match the return type of a gcc2
18366    builtin and then its argument prototype would still apply.  */
18367 char gethostbyname_r ();
18368 int
18369 main ()
18370 {
18371 gethostbyname_r ();
18372   ;
18373   return 0;
18374 }
18375 _ACEOF
18376 rm -f conftest.$ac_objext conftest$ac_exeext
18377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18378   (eval $ac_link) 2>conftest.er1
18379   ac_status=$?
18380   grep -v '^ *+' conftest.er1 >conftest.err
18381   rm -f conftest.er1
18382   cat conftest.err >&5
18383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384   (exit $ac_status); } &&
18385          { ac_try='test -z "$ac_c_werror_flag"
18386                          || test ! -s conftest.err'
18387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388   (eval $ac_try) 2>&5
18389   ac_status=$?
18390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391   (exit $ac_status); }; } &&
18392          { ac_try='test -s conftest$ac_exeext'
18393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394   (eval $ac_try) 2>&5
18395   ac_status=$?
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); }; }; then
18398   ac_cv_lib_resolv_gethostbyname_r=yes
18399 else
18400   echo "$as_me: failed program was:" >&5
18401 sed 's/^/| /' conftest.$ac_ext >&5
18402
18403 ac_cv_lib_resolv_gethostbyname_r=no
18404 fi
18405 rm -f conftest.err conftest.$ac_objext \
18406       conftest$ac_exeext conftest.$ac_ext
18407 LIBS=$ac_check_lib_save_LIBS
18408 fi
18409 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18410 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18411 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18412   cat >>confdefs.h <<_ACEOF
18413 #define HAVE_LIBRESOLV 1
18414 _ACEOF
18415
18416   LIBS="-lresolv $LIBS"
18417
18418 fi
18419
18420 fi
18421
18422
18423
18424
18425
18426 for ac_func in inet_pton
18427 do
18428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18429 echo "$as_me:$LINENO: checking for $ac_func" >&5
18430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18431 if eval "test \"\${$as_ac_var+set}\" = set"; then
18432   echo $ECHO_N "(cached) $ECHO_C" >&6
18433 else
18434   cat >conftest.$ac_ext <<_ACEOF
18435 /* confdefs.h.  */
18436 _ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h.  */
18440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18442 #define $ac_func innocuous_$ac_func
18443
18444 /* System header to define __stub macros and hopefully few prototypes,
18445     which can conflict with char $ac_func (); below.
18446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18447     <limits.h> exists even on freestanding compilers.  */
18448
18449 #ifdef __STDC__
18450 # include <limits.h>
18451 #else
18452 # include <assert.h>
18453 #endif
18454
18455 #undef $ac_func
18456
18457 /* Override any gcc2 internal prototype to avoid an error.  */
18458 #ifdef __cplusplus
18459 extern "C"
18460 {
18461 #endif
18462 /* We use char because int might match the return type of a gcc2
18463    builtin and then its argument prototype would still apply.  */
18464 char $ac_func ();
18465 /* The GNU C library defines this for functions which it implements
18466     to always fail with ENOSYS.  Some functions are actually named
18467     something starting with __ and the normal name is an alias.  */
18468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18469 choke me
18470 #else
18471 char (*f) () = $ac_func;
18472 #endif
18473 #ifdef __cplusplus
18474 }
18475 #endif
18476
18477 int
18478 main ()
18479 {
18480 return f != $ac_func;
18481   ;
18482   return 0;
18483 }
18484 _ACEOF
18485 rm -f conftest.$ac_objext conftest$ac_exeext
18486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18487   (eval $ac_link) 2>conftest.er1
18488   ac_status=$?
18489   grep -v '^ *+' conftest.er1 >conftest.err
18490   rm -f conftest.er1
18491   cat conftest.err >&5
18492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493   (exit $ac_status); } &&
18494          { ac_try='test -z "$ac_c_werror_flag"
18495                          || test ! -s conftest.err'
18496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497   (eval $ac_try) 2>&5
18498   ac_status=$?
18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500   (exit $ac_status); }; } &&
18501          { ac_try='test -s conftest$ac_exeext'
18502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503   (eval $ac_try) 2>&5
18504   ac_status=$?
18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506   (exit $ac_status); }; }; then
18507   eval "$as_ac_var=yes"
18508 else
18509   echo "$as_me: failed program was:" >&5
18510 sed 's/^/| /' conftest.$ac_ext >&5
18511
18512 eval "$as_ac_var=no"
18513 fi
18514 rm -f conftest.err conftest.$ac_objext \
18515       conftest$ac_exeext conftest.$ac_ext
18516 fi
18517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18519 if test `eval echo '${'$as_ac_var'}'` = yes; then
18520   cat >>confdefs.h <<_ACEOF
18521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18522 _ACEOF
18523  cat >>confdefs.h <<\_ACEOF
18524 #define HAVE_INET_PTON 1
18525 _ACEOF
18526
18527 fi
18528 done
18529
18530
18531 for ac_func in inet_ntop
18532 do
18533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18534 echo "$as_me:$LINENO: checking for $ac_func" >&5
18535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18536 if eval "test \"\${$as_ac_var+set}\" = set"; then
18537   echo $ECHO_N "(cached) $ECHO_C" >&6
18538 else
18539   cat >conftest.$ac_ext <<_ACEOF
18540 /* confdefs.h.  */
18541 _ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h.  */
18545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18547 #define $ac_func innocuous_$ac_func
18548
18549 /* System header to define __stub macros and hopefully few prototypes,
18550     which can conflict with char $ac_func (); below.
18551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18552     <limits.h> exists even on freestanding compilers.  */
18553
18554 #ifdef __STDC__
18555 # include <limits.h>
18556 #else
18557 # include <assert.h>
18558 #endif
18559
18560 #undef $ac_func
18561
18562 /* Override any gcc2 internal prototype to avoid an error.  */
18563 #ifdef __cplusplus
18564 extern "C"
18565 {
18566 #endif
18567 /* We use char because int might match the return type of a gcc2
18568    builtin and then its argument prototype would still apply.  */
18569 char $ac_func ();
18570 /* The GNU C library defines this for functions which it implements
18571     to always fail with ENOSYS.  Some functions are actually named
18572     something starting with __ and the normal name is an alias.  */
18573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18574 choke me
18575 #else
18576 char (*f) () = $ac_func;
18577 #endif
18578 #ifdef __cplusplus
18579 }
18580 #endif
18581
18582 int
18583 main ()
18584 {
18585 return f != $ac_func;
18586   ;
18587   return 0;
18588 }
18589 _ACEOF
18590 rm -f conftest.$ac_objext conftest$ac_exeext
18591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18592   (eval $ac_link) 2>conftest.er1
18593   ac_status=$?
18594   grep -v '^ *+' conftest.er1 >conftest.err
18595   rm -f conftest.er1
18596   cat conftest.err >&5
18597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598   (exit $ac_status); } &&
18599          { ac_try='test -z "$ac_c_werror_flag"
18600                          || test ! -s conftest.err'
18601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602   (eval $ac_try) 2>&5
18603   ac_status=$?
18604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605   (exit $ac_status); }; } &&
18606          { ac_try='test -s conftest$ac_exeext'
18607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608   (eval $ac_try) 2>&5
18609   ac_status=$?
18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); }; }; then
18612   eval "$as_ac_var=yes"
18613 else
18614   echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18616
18617 eval "$as_ac_var=no"
18618 fi
18619 rm -f conftest.err conftest.$ac_objext \
18620       conftest$ac_exeext conftest.$ac_ext
18621 fi
18622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18624 if test `eval echo '${'$as_ac_var'}'` = yes; then
18625   cat >>confdefs.h <<_ACEOF
18626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18627 _ACEOF
18628  cat >>confdefs.h <<\_ACEOF
18629 #define HAVE_INET_NTOP 1
18630 _ACEOF
18631
18632 fi
18633 done
18634
18635
18636 for ac_func in gethostbyname2
18637 do
18638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18639 echo "$as_me:$LINENO: checking for $ac_func" >&5
18640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18641 if eval "test \"\${$as_ac_var+set}\" = set"; then
18642   echo $ECHO_N "(cached) $ECHO_C" >&6
18643 else
18644   cat >conftest.$ac_ext <<_ACEOF
18645 /* confdefs.h.  */
18646 _ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h.  */
18650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18652 #define $ac_func innocuous_$ac_func
18653
18654 /* System header to define __stub macros and hopefully few prototypes,
18655     which can conflict with char $ac_func (); below.
18656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18657     <limits.h> exists even on freestanding compilers.  */
18658
18659 #ifdef __STDC__
18660 # include <limits.h>
18661 #else
18662 # include <assert.h>
18663 #endif
18664
18665 #undef $ac_func
18666
18667 /* Override any gcc2 internal prototype to avoid an error.  */
18668 #ifdef __cplusplus
18669 extern "C"
18670 {
18671 #endif
18672 /* We use char because int might match the return type of a gcc2
18673    builtin and then its argument prototype would still apply.  */
18674 char $ac_func ();
18675 /* The GNU C library defines this for functions which it implements
18676     to always fail with ENOSYS.  Some functions are actually named
18677     something starting with __ and the normal name is an alias.  */
18678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18679 choke me
18680 #else
18681 char (*f) () = $ac_func;
18682 #endif
18683 #ifdef __cplusplus
18684 }
18685 #endif
18686
18687 int
18688 main ()
18689 {
18690 return f != $ac_func;
18691   ;
18692   return 0;
18693 }
18694 _ACEOF
18695 rm -f conftest.$ac_objext conftest$ac_exeext
18696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18697   (eval $ac_link) 2>conftest.er1
18698   ac_status=$?
18699   grep -v '^ *+' conftest.er1 >conftest.err
18700   rm -f conftest.er1
18701   cat conftest.err >&5
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); } &&
18704          { ac_try='test -z "$ac_c_werror_flag"
18705                          || test ! -s conftest.err'
18706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707   (eval $ac_try) 2>&5
18708   ac_status=$?
18709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710   (exit $ac_status); }; } &&
18711          { ac_try='test -s conftest$ac_exeext'
18712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713   (eval $ac_try) 2>&5
18714   ac_status=$?
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); }; }; then
18717   eval "$as_ac_var=yes"
18718 else
18719   echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18721
18722 eval "$as_ac_var=no"
18723 fi
18724 rm -f conftest.err conftest.$ac_objext \
18725       conftest$ac_exeext conftest.$ac_ext
18726 fi
18727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18729 if test `eval echo '${'$as_ac_var'}'` = yes; then
18730   cat >>confdefs.h <<_ACEOF
18731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18732 _ACEOF
18733  cat >>confdefs.h <<\_ACEOF
18734 #define HAVE_GETHOSTBYNAME2 1
18735 _ACEOF
18736
18737 fi
18738 done
18739
18740
18741 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18742 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18743 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18744   echo $ECHO_N "(cached) $ECHO_C" >&6
18745 else
18746   cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h.  */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h.  */
18752 #include <sys/socket.h>
18753 int
18754 main ()
18755 {
18756 struct sockaddr s; s.sa_len;
18757   ;
18758   return 0;
18759 }
18760 _ACEOF
18761 rm -f conftest.$ac_objext
18762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18763   (eval $ac_compile) 2>conftest.er1
18764   ac_status=$?
18765   grep -v '^ *+' conftest.er1 >conftest.err
18766   rm -f conftest.er1
18767   cat conftest.err >&5
18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); } &&
18770          { ac_try='test -z "$ac_c_werror_flag"
18771                          || test ! -s conftest.err'
18772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773   (eval $ac_try) 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); }; } &&
18777          { ac_try='test -s conftest.$ac_objext'
18778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779   (eval $ac_try) 2>&5
18780   ac_status=$?
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); }; }; then
18783   ac_cv_struct_sockaddr_sa_len=yes
18784 else
18785   echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18787
18788 ac_cv_struct_sockaddr_sa_len=no
18789 fi
18790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18791 fi
18792 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18793 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18794
18795  if test $ac_cv_struct_sockaddr_sa_len = yes; then
18796
18797 cat >>confdefs.h <<\_ACEOF
18798 #define HAVE_SA_LEN 1
18799 _ACEOF
18800
18801  fi
18802
18803
18804 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18805 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18806 if test "${ac_cv_ipv6_support+set}" = set; then
18807   echo $ECHO_N "(cached) $ECHO_C" >&6
18808 else
18809   cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h.  */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h.  */
18815  #include <sys/types.h>
18816 #include <sys/socket.h>
18817 #include <netinet/in.h>
18818 int
18819 main ()
18820 {
18821 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18822  0;
18823   ;
18824   return 0;
18825 }
18826 _ACEOF
18827 rm -f conftest.$ac_objext conftest$ac_exeext
18828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18829   (eval $ac_link) 2>conftest.er1
18830   ac_status=$?
18831   grep -v '^ *+' conftest.er1 >conftest.err
18832   rm -f conftest.er1
18833   cat conftest.err >&5
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); } &&
18836          { ac_try='test -z "$ac_c_werror_flag"
18837                          || test ! -s conftest.err'
18838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18839   (eval $ac_try) 2>&5
18840   ac_status=$?
18841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842   (exit $ac_status); }; } &&
18843          { ac_try='test -s conftest$ac_exeext'
18844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845   (eval $ac_try) 2>&5
18846   ac_status=$?
18847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848   (exit $ac_status); }; }; then
18849   ac_cv_ipv6_support=yes
18850 else
18851   echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18853
18854 ac_cv_ipv6_support=no
18855 fi
18856 rm -f conftest.err conftest.$ac_objext \
18857       conftest$ac_exeext conftest.$ac_ext
18858 fi
18859 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
18860 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
18861
18862 if test "$ac_cv_ipv6_support" = yes; then
18863
18864 cat >>confdefs.h <<\_ACEOF
18865 #define HAVE_IPV6 1
18866 _ACEOF
18867
18868 fi
18869
18870
18871
18872
18873 for ac_func in strftime
18874 do
18875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18876 echo "$as_me:$LINENO: checking for $ac_func" >&5
18877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18878 if eval "test \"\${$as_ac_var+set}\" = set"; then
18879   echo $ECHO_N "(cached) $ECHO_C" >&6
18880 else
18881   cat >conftest.$ac_ext <<_ACEOF
18882 /* confdefs.h.  */
18883 _ACEOF
18884 cat confdefs.h >>conftest.$ac_ext
18885 cat >>conftest.$ac_ext <<_ACEOF
18886 /* end confdefs.h.  */
18887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18889 #define $ac_func innocuous_$ac_func
18890
18891 /* System header to define __stub macros and hopefully few prototypes,
18892     which can conflict with char $ac_func (); below.
18893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18894     <limits.h> exists even on freestanding compilers.  */
18895
18896 #ifdef __STDC__
18897 # include <limits.h>
18898 #else
18899 # include <assert.h>
18900 #endif
18901
18902 #undef $ac_func
18903
18904 /* Override any gcc2 internal prototype to avoid an error.  */
18905 #ifdef __cplusplus
18906 extern "C"
18907 {
18908 #endif
18909 /* We use char because int might match the return type of a gcc2
18910    builtin and then its argument prototype would still apply.  */
18911 char $ac_func ();
18912 /* The GNU C library defines this for functions which it implements
18913     to always fail with ENOSYS.  Some functions are actually named
18914     something starting with __ and the normal name is an alias.  */
18915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18916 choke me
18917 #else
18918 char (*f) () = $ac_func;
18919 #endif
18920 #ifdef __cplusplus
18921 }
18922 #endif
18923
18924 int
18925 main ()
18926 {
18927 return f != $ac_func;
18928   ;
18929   return 0;
18930 }
18931 _ACEOF
18932 rm -f conftest.$ac_objext conftest$ac_exeext
18933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18934   (eval $ac_link) 2>conftest.er1
18935   ac_status=$?
18936   grep -v '^ *+' conftest.er1 >conftest.err
18937   rm -f conftest.er1
18938   cat conftest.err >&5
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); } &&
18941          { ac_try='test -z "$ac_c_werror_flag"
18942                          || test ! -s conftest.err'
18943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944   (eval $ac_try) 2>&5
18945   ac_status=$?
18946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947   (exit $ac_status); }; } &&
18948          { ac_try='test -s conftest$ac_exeext'
18949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950   (eval $ac_try) 2>&5
18951   ac_status=$?
18952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953   (exit $ac_status); }; }; then
18954   eval "$as_ac_var=yes"
18955 else
18956   echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18958
18959 eval "$as_ac_var=no"
18960 fi
18961 rm -f conftest.err conftest.$ac_objext \
18962       conftest$ac_exeext conftest.$ac_ext
18963 fi
18964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18966 if test `eval echo '${'$as_ac_var'}'` = yes; then
18967   cat >>confdefs.h <<_ACEOF
18968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18969 _ACEOF
18970
18971 else
18972   # strftime is in -lintl on SCO UNIX.
18973 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18974 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18975 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18976   echo $ECHO_N "(cached) $ECHO_C" >&6
18977 else
18978   ac_check_lib_save_LIBS=$LIBS
18979 LIBS="-lintl  $LIBS"
18980 cat >conftest.$ac_ext <<_ACEOF
18981 /* confdefs.h.  */
18982 _ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h.  */
18986
18987 /* Override any gcc2 internal prototype to avoid an error.  */
18988 #ifdef __cplusplus
18989 extern "C"
18990 #endif
18991 /* We use char because int might match the return type of a gcc2
18992    builtin and then its argument prototype would still apply.  */
18993 char strftime ();
18994 int
18995 main ()
18996 {
18997 strftime ();
18998   ;
18999   return 0;
19000 }
19001 _ACEOF
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19004   (eval $ac_link) 2>conftest.er1
19005   ac_status=$?
19006   grep -v '^ *+' conftest.er1 >conftest.err
19007   rm -f conftest.er1
19008   cat conftest.err >&5
19009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010   (exit $ac_status); } &&
19011          { ac_try='test -z "$ac_c_werror_flag"
19012                          || test ! -s conftest.err'
19013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014   (eval $ac_try) 2>&5
19015   ac_status=$?
19016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017   (exit $ac_status); }; } &&
19018          { ac_try='test -s conftest$ac_exeext'
19019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020   (eval $ac_try) 2>&5
19021   ac_status=$?
19022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023   (exit $ac_status); }; }; then
19024   ac_cv_lib_intl_strftime=yes
19025 else
19026   echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19028
19029 ac_cv_lib_intl_strftime=no
19030 fi
19031 rm -f conftest.err conftest.$ac_objext \
19032       conftest$ac_exeext conftest.$ac_ext
19033 LIBS=$ac_check_lib_save_LIBS
19034 fi
19035 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19036 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19037 if test $ac_cv_lib_intl_strftime = yes; then
19038   cat >>confdefs.h <<\_ACEOF
19039 #define HAVE_STRFTIME 1
19040 _ACEOF
19041
19042 LIBS="-lintl $LIBS"
19043 fi
19044
19045 fi
19046 done
19047
19048
19049 for ac_func in vprintf
19050 do
19051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19052 echo "$as_me:$LINENO: checking for $ac_func" >&5
19053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19054 if eval "test \"\${$as_ac_var+set}\" = set"; then
19055   echo $ECHO_N "(cached) $ECHO_C" >&6
19056 else
19057   cat >conftest.$ac_ext <<_ACEOF
19058 /* confdefs.h.  */
19059 _ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h.  */
19063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19065 #define $ac_func innocuous_$ac_func
19066
19067 /* System header to define __stub macros and hopefully few prototypes,
19068     which can conflict with char $ac_func (); below.
19069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19070     <limits.h> exists even on freestanding compilers.  */
19071
19072 #ifdef __STDC__
19073 # include <limits.h>
19074 #else
19075 # include <assert.h>
19076 #endif
19077
19078 #undef $ac_func
19079
19080 /* Override any gcc2 internal prototype to avoid an error.  */
19081 #ifdef __cplusplus
19082 extern "C"
19083 {
19084 #endif
19085 /* We use char because int might match the return type of a gcc2
19086    builtin and then its argument prototype would still apply.  */
19087 char $ac_func ();
19088 /* The GNU C library defines this for functions which it implements
19089     to always fail with ENOSYS.  Some functions are actually named
19090     something starting with __ and the normal name is an alias.  */
19091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19092 choke me
19093 #else
19094 char (*f) () = $ac_func;
19095 #endif
19096 #ifdef __cplusplus
19097 }
19098 #endif
19099
19100 int
19101 main ()
19102 {
19103 return f != $ac_func;
19104   ;
19105   return 0;
19106 }
19107 _ACEOF
19108 rm -f conftest.$ac_objext conftest$ac_exeext
19109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19110   (eval $ac_link) 2>conftest.er1
19111   ac_status=$?
19112   grep -v '^ *+' conftest.er1 >conftest.err
19113   rm -f conftest.er1
19114   cat conftest.err >&5
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); } &&
19117          { ac_try='test -z "$ac_c_werror_flag"
19118                          || test ! -s conftest.err'
19119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120   (eval $ac_try) 2>&5
19121   ac_status=$?
19122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123   (exit $ac_status); }; } &&
19124          { ac_try='test -s conftest$ac_exeext'
19125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126   (eval $ac_try) 2>&5
19127   ac_status=$?
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); }; }; then
19130   eval "$as_ac_var=yes"
19131 else
19132   echo "$as_me: failed program was:" >&5
19133 sed 's/^/| /' conftest.$ac_ext >&5
19134
19135 eval "$as_ac_var=no"
19136 fi
19137 rm -f conftest.err conftest.$ac_objext \
19138       conftest$ac_exeext conftest.$ac_ext
19139 fi
19140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19142 if test `eval echo '${'$as_ac_var'}'` = yes; then
19143   cat >>confdefs.h <<_ACEOF
19144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19145 _ACEOF
19146
19147 echo "$as_me:$LINENO: checking for _doprnt" >&5
19148 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19149 if test "${ac_cv_func__doprnt+set}" = set; then
19150   echo $ECHO_N "(cached) $ECHO_C" >&6
19151 else
19152   cat >conftest.$ac_ext <<_ACEOF
19153 /* confdefs.h.  */
19154 _ACEOF
19155 cat confdefs.h >>conftest.$ac_ext
19156 cat >>conftest.$ac_ext <<_ACEOF
19157 /* end confdefs.h.  */
19158 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19160 #define _doprnt innocuous__doprnt
19161
19162 /* System header to define __stub macros and hopefully few prototypes,
19163     which can conflict with char _doprnt (); below.
19164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19165     <limits.h> exists even on freestanding compilers.  */
19166
19167 #ifdef __STDC__
19168 # include <limits.h>
19169 #else
19170 # include <assert.h>
19171 #endif
19172
19173 #undef _doprnt
19174
19175 /* Override any gcc2 internal prototype to avoid an error.  */
19176 #ifdef __cplusplus
19177 extern "C"
19178 {
19179 #endif
19180 /* We use char because int might match the return type of a gcc2
19181    builtin and then its argument prototype would still apply.  */
19182 char _doprnt ();
19183 /* The GNU C library defines this for functions which it implements
19184     to always fail with ENOSYS.  Some functions are actually named
19185     something starting with __ and the normal name is an alias.  */
19186 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19187 choke me
19188 #else
19189 char (*f) () = _doprnt;
19190 #endif
19191 #ifdef __cplusplus
19192 }
19193 #endif
19194
19195 int
19196 main ()
19197 {
19198 return f != _doprnt;
19199   ;
19200   return 0;
19201 }
19202 _ACEOF
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19205   (eval $ac_link) 2>conftest.er1
19206   ac_status=$?
19207   grep -v '^ *+' conftest.er1 >conftest.err
19208   rm -f conftest.er1
19209   cat conftest.err >&5
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); } &&
19212          { ac_try='test -z "$ac_c_werror_flag"
19213                          || test ! -s conftest.err'
19214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215   (eval $ac_try) 2>&5
19216   ac_status=$?
19217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218   (exit $ac_status); }; } &&
19219          { ac_try='test -s conftest$ac_exeext'
19220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221   (eval $ac_try) 2>&5
19222   ac_status=$?
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); }; }; then
19225   ac_cv_func__doprnt=yes
19226 else
19227   echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19229
19230 ac_cv_func__doprnt=no
19231 fi
19232 rm -f conftest.err conftest.$ac_objext \
19233       conftest$ac_exeext conftest.$ac_ext
19234 fi
19235 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19236 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19237 if test $ac_cv_func__doprnt = yes; then
19238
19239 cat >>confdefs.h <<\_ACEOF
19240 #define HAVE_DOPRNT 1
19241 _ACEOF
19242
19243 fi
19244
19245 fi
19246 done
19247
19248
19249 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19250 # for constant arguments.  Useless!
19251 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19252 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19253 if test "${ac_cv_working_alloca_h+set}" = set; then
19254   echo $ECHO_N "(cached) $ECHO_C" >&6
19255 else
19256   cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h.  */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h.  */
19262 #include <alloca.h>
19263 int
19264 main ()
19265 {
19266 char *p = (char *) alloca (2 * sizeof (int));
19267   ;
19268   return 0;
19269 }
19270 _ACEOF
19271 rm -f conftest.$ac_objext conftest$ac_exeext
19272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19273   (eval $ac_link) 2>conftest.er1
19274   ac_status=$?
19275   grep -v '^ *+' conftest.er1 >conftest.err
19276   rm -f conftest.er1
19277   cat conftest.err >&5
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); } &&
19280          { ac_try='test -z "$ac_c_werror_flag"
19281                          || test ! -s conftest.err'
19282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283   (eval $ac_try) 2>&5
19284   ac_status=$?
19285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286   (exit $ac_status); }; } &&
19287          { ac_try='test -s conftest$ac_exeext'
19288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289   (eval $ac_try) 2>&5
19290   ac_status=$?
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); }; }; then
19293   ac_cv_working_alloca_h=yes
19294 else
19295   echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19297
19298 ac_cv_working_alloca_h=no
19299 fi
19300 rm -f conftest.err conftest.$ac_objext \
19301       conftest$ac_exeext conftest.$ac_ext
19302 fi
19303 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19304 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19305 if test $ac_cv_working_alloca_h = yes; then
19306
19307 cat >>confdefs.h <<\_ACEOF
19308 #define HAVE_ALLOCA_H 1
19309 _ACEOF
19310
19311 fi
19312
19313 echo "$as_me:$LINENO: checking for alloca" >&5
19314 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19315 if test "${ac_cv_func_alloca_works+set}" = set; then
19316   echo $ECHO_N "(cached) $ECHO_C" >&6
19317 else
19318   cat >conftest.$ac_ext <<_ACEOF
19319 /* confdefs.h.  */
19320 _ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h.  */
19324 #ifdef __GNUC__
19325 # define alloca __builtin_alloca
19326 #else
19327 # ifdef _MSC_VER
19328 #  include <malloc.h>
19329 #  define alloca _alloca
19330 # else
19331 #  if HAVE_ALLOCA_H
19332 #   include <alloca.h>
19333 #  else
19334 #   ifdef _AIX
19335  #pragma alloca
19336 #   else
19337 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19338 char *alloca ();
19339 #    endif
19340 #   endif
19341 #  endif
19342 # endif
19343 #endif
19344
19345 int
19346 main ()
19347 {
19348 char *p = (char *) alloca (1);
19349   ;
19350   return 0;
19351 }
19352 _ACEOF
19353 rm -f conftest.$ac_objext conftest$ac_exeext
19354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19355   (eval $ac_link) 2>conftest.er1
19356   ac_status=$?
19357   grep -v '^ *+' conftest.er1 >conftest.err
19358   rm -f conftest.er1
19359   cat conftest.err >&5
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); } &&
19362          { ac_try='test -z "$ac_c_werror_flag"
19363                          || test ! -s conftest.err'
19364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365   (eval $ac_try) 2>&5
19366   ac_status=$?
19367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368   (exit $ac_status); }; } &&
19369          { ac_try='test -s conftest$ac_exeext'
19370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371   (eval $ac_try) 2>&5
19372   ac_status=$?
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); }; }; then
19375   ac_cv_func_alloca_works=yes
19376 else
19377   echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19379
19380 ac_cv_func_alloca_works=no
19381 fi
19382 rm -f conftest.err conftest.$ac_objext \
19383       conftest$ac_exeext conftest.$ac_ext
19384 fi
19385 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19386 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19387
19388 if test $ac_cv_func_alloca_works = yes; then
19389
19390 cat >>confdefs.h <<\_ACEOF
19391 #define HAVE_ALLOCA 1
19392 _ACEOF
19393
19394 else
19395   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19396 # that cause trouble.  Some versions do not even contain alloca or
19397 # contain a buggy version.  If you still want to use their alloca,
19398 # use ar to extract alloca.o from them instead of compiling alloca.c.
19399
19400 ALLOCA=alloca.$ac_objext
19401
19402 cat >>confdefs.h <<\_ACEOF
19403 #define C_ALLOCA 1
19404 _ACEOF
19405
19406
19407 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19408 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19409 if test "${ac_cv_os_cray+set}" = set; then
19410   echo $ECHO_N "(cached) $ECHO_C" >&6
19411 else
19412   cat >conftest.$ac_ext <<_ACEOF
19413 /* confdefs.h.  */
19414 _ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h.  */
19418 #if defined(CRAY) && ! defined(CRAY2)
19419 webecray
19420 #else
19421 wenotbecray
19422 #endif
19423
19424 _ACEOF
19425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19426   $EGREP "webecray" >/dev/null 2>&1; then
19427   ac_cv_os_cray=yes
19428 else
19429   ac_cv_os_cray=no
19430 fi
19431 rm -f conftest*
19432
19433 fi
19434 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19435 echo "${ECHO_T}$ac_cv_os_cray" >&6
19436 if test $ac_cv_os_cray = yes; then
19437   for ac_func in _getb67 GETB67 getb67; do
19438     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19439 echo "$as_me:$LINENO: checking for $ac_func" >&5
19440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19441 if eval "test \"\${$as_ac_var+set}\" = set"; then
19442   echo $ECHO_N "(cached) $ECHO_C" >&6
19443 else
19444   cat >conftest.$ac_ext <<_ACEOF
19445 /* confdefs.h.  */
19446 _ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h.  */
19450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19452 #define $ac_func innocuous_$ac_func
19453
19454 /* System header to define __stub macros and hopefully few prototypes,
19455     which can conflict with char $ac_func (); below.
19456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19457     <limits.h> exists even on freestanding compilers.  */
19458
19459 #ifdef __STDC__
19460 # include <limits.h>
19461 #else
19462 # include <assert.h>
19463 #endif
19464
19465 #undef $ac_func
19466
19467 /* Override any gcc2 internal prototype to avoid an error.  */
19468 #ifdef __cplusplus
19469 extern "C"
19470 {
19471 #endif
19472 /* We use char because int might match the return type of a gcc2
19473    builtin and then its argument prototype would still apply.  */
19474 char $ac_func ();
19475 /* The GNU C library defines this for functions which it implements
19476     to always fail with ENOSYS.  Some functions are actually named
19477     something starting with __ and the normal name is an alias.  */
19478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19479 choke me
19480 #else
19481 char (*f) () = $ac_func;
19482 #endif
19483 #ifdef __cplusplus
19484 }
19485 #endif
19486
19487 int
19488 main ()
19489 {
19490 return f != $ac_func;
19491   ;
19492   return 0;
19493 }
19494 _ACEOF
19495 rm -f conftest.$ac_objext conftest$ac_exeext
19496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19497   (eval $ac_link) 2>conftest.er1
19498   ac_status=$?
19499   grep -v '^ *+' conftest.er1 >conftest.err
19500   rm -f conftest.er1
19501   cat conftest.err >&5
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); } &&
19504          { ac_try='test -z "$ac_c_werror_flag"
19505                          || test ! -s conftest.err'
19506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507   (eval $ac_try) 2>&5
19508   ac_status=$?
19509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510   (exit $ac_status); }; } &&
19511          { ac_try='test -s conftest$ac_exeext'
19512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513   (eval $ac_try) 2>&5
19514   ac_status=$?
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); }; }; then
19517   eval "$as_ac_var=yes"
19518 else
19519   echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19521
19522 eval "$as_ac_var=no"
19523 fi
19524 rm -f conftest.err conftest.$ac_objext \
19525       conftest$ac_exeext conftest.$ac_ext
19526 fi
19527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19529 if test `eval echo '${'$as_ac_var'}'` = yes; then
19530
19531 cat >>confdefs.h <<_ACEOF
19532 #define CRAY_STACKSEG_END $ac_func
19533 _ACEOF
19534
19535     break
19536 fi
19537
19538   done
19539 fi
19540
19541 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19542 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19543 if test "${ac_cv_c_stack_direction+set}" = set; then
19544   echo $ECHO_N "(cached) $ECHO_C" >&6
19545 else
19546   if test "$cross_compiling" = yes; then
19547   ac_cv_c_stack_direction=0
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 int
19556 find_stack_direction ()
19557 {
19558   static char *addr = 0;
19559   auto char dummy;
19560   if (addr == 0)
19561     {
19562       addr = &dummy;
19563       return find_stack_direction ();
19564     }
19565   else
19566     return (&dummy > addr) ? 1 : -1;
19567 }
19568
19569 int
19570 main ()
19571 {
19572   exit (find_stack_direction () < 0);
19573 }
19574 _ACEOF
19575 rm -f conftest$ac_exeext
19576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19577   (eval $ac_link) 2>&5
19578   ac_status=$?
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); } && { ac_try='./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_c_stack_direction=1
19587 else
19588   echo "$as_me: program exited with status $ac_status" >&5
19589 echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19591
19592 ( exit $ac_status )
19593 ac_cv_c_stack_direction=-1
19594 fi
19595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19596 fi
19597 fi
19598 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19599 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19600
19601 cat >>confdefs.h <<_ACEOF
19602 #define STACK_DIRECTION $ac_cv_c_stack_direction
19603 _ACEOF
19604
19605
19606 fi
19607
19608 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19609 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19610 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19611 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19612   echo $ECHO_N "(cached) $ECHO_C" >&6
19613 else
19614   ac_check_lib_save_LIBS=$LIBS
19615 LIBS="-lsun  $LIBS"
19616 cat >conftest.$ac_ext <<_ACEOF
19617 /* confdefs.h.  */
19618 _ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h.  */
19622
19623 /* Override any gcc2 internal prototype to avoid an error.  */
19624 #ifdef __cplusplus
19625 extern "C"
19626 #endif
19627 /* We use char because int might match the return type of a gcc2
19628    builtin and then its argument prototype would still apply.  */
19629 char getmntent ();
19630 int
19631 main ()
19632 {
19633 getmntent ();
19634   ;
19635   return 0;
19636 }
19637 _ACEOF
19638 rm -f conftest.$ac_objext conftest$ac_exeext
19639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19640   (eval $ac_link) 2>conftest.er1
19641   ac_status=$?
19642   grep -v '^ *+' conftest.er1 >conftest.err
19643   rm -f conftest.er1
19644   cat conftest.err >&5
19645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646   (exit $ac_status); } &&
19647          { ac_try='test -z "$ac_c_werror_flag"
19648                          || test ! -s conftest.err'
19649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650   (eval $ac_try) 2>&5
19651   ac_status=$?
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); }; } &&
19654          { ac_try='test -s conftest$ac_exeext'
19655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656   (eval $ac_try) 2>&5
19657   ac_status=$?
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); }; }; then
19660   ac_cv_lib_sun_getmntent=yes
19661 else
19662   echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665 ac_cv_lib_sun_getmntent=no
19666 fi
19667 rm -f conftest.err conftest.$ac_objext \
19668       conftest$ac_exeext conftest.$ac_ext
19669 LIBS=$ac_check_lib_save_LIBS
19670 fi
19671 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19672 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19673 if test $ac_cv_lib_sun_getmntent = yes; then
19674   LIBS="-lsun $LIBS"
19675 else
19676   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19677 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19678 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19679   echo $ECHO_N "(cached) $ECHO_C" >&6
19680 else
19681   ac_check_lib_save_LIBS=$LIBS
19682 LIBS="-lseq  $LIBS"
19683 cat >conftest.$ac_ext <<_ACEOF
19684 /* confdefs.h.  */
19685 _ACEOF
19686 cat confdefs.h >>conftest.$ac_ext
19687 cat >>conftest.$ac_ext <<_ACEOF
19688 /* end confdefs.h.  */
19689
19690 /* Override any gcc2 internal prototype to avoid an error.  */
19691 #ifdef __cplusplus
19692 extern "C"
19693 #endif
19694 /* We use char because int might match the return type of a gcc2
19695    builtin and then its argument prototype would still apply.  */
19696 char getmntent ();
19697 int
19698 main ()
19699 {
19700 getmntent ();
19701   ;
19702   return 0;
19703 }
19704 _ACEOF
19705 rm -f conftest.$ac_objext conftest$ac_exeext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19707   (eval $ac_link) 2>conftest.er1
19708   ac_status=$?
19709   grep -v '^ *+' conftest.er1 >conftest.err
19710   rm -f conftest.er1
19711   cat conftest.err >&5
19712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713   (exit $ac_status); } &&
19714          { ac_try='test -z "$ac_c_werror_flag"
19715                          || test ! -s conftest.err'
19716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717   (eval $ac_try) 2>&5
19718   ac_status=$?
19719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720   (exit $ac_status); }; } &&
19721          { ac_try='test -s conftest$ac_exeext'
19722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723   (eval $ac_try) 2>&5
19724   ac_status=$?
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); }; }; then
19727   ac_cv_lib_seq_getmntent=yes
19728 else
19729   echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19731
19732 ac_cv_lib_seq_getmntent=no
19733 fi
19734 rm -f conftest.err conftest.$ac_objext \
19735       conftest$ac_exeext conftest.$ac_ext
19736 LIBS=$ac_check_lib_save_LIBS
19737 fi
19738 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19739 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19740 if test $ac_cv_lib_seq_getmntent = yes; then
19741   LIBS="-lseq $LIBS"
19742 else
19743   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19744 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19745 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19746   echo $ECHO_N "(cached) $ECHO_C" >&6
19747 else
19748   ac_check_lib_save_LIBS=$LIBS
19749 LIBS="-lgen  $LIBS"
19750 cat >conftest.$ac_ext <<_ACEOF
19751 /* confdefs.h.  */
19752 _ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h.  */
19756
19757 /* Override any gcc2 internal prototype to avoid an error.  */
19758 #ifdef __cplusplus
19759 extern "C"
19760 #endif
19761 /* We use char because int might match the return type of a gcc2
19762    builtin and then its argument prototype would still apply.  */
19763 char getmntent ();
19764 int
19765 main ()
19766 {
19767 getmntent ();
19768   ;
19769   return 0;
19770 }
19771 _ACEOF
19772 rm -f conftest.$ac_objext conftest$ac_exeext
19773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19774   (eval $ac_link) 2>conftest.er1
19775   ac_status=$?
19776   grep -v '^ *+' conftest.er1 >conftest.err
19777   rm -f conftest.er1
19778   cat conftest.err >&5
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); } &&
19781          { ac_try='test -z "$ac_c_werror_flag"
19782                          || test ! -s conftest.err'
19783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784   (eval $ac_try) 2>&5
19785   ac_status=$?
19786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787   (exit $ac_status); }; } &&
19788          { ac_try='test -s conftest$ac_exeext'
19789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790   (eval $ac_try) 2>&5
19791   ac_status=$?
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); }; }; then
19794   ac_cv_lib_gen_getmntent=yes
19795 else
19796   echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19798
19799 ac_cv_lib_gen_getmntent=no
19800 fi
19801 rm -f conftest.err conftest.$ac_objext \
19802       conftest$ac_exeext conftest.$ac_ext
19803 LIBS=$ac_check_lib_save_LIBS
19804 fi
19805 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19806 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19807 if test $ac_cv_lib_gen_getmntent = yes; then
19808   LIBS="-lgen $LIBS"
19809 fi
19810
19811 fi
19812
19813 fi
19814
19815
19816 for ac_func in getmntent
19817 do
19818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19819 echo "$as_me:$LINENO: checking for $ac_func" >&5
19820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19821 if eval "test \"\${$as_ac_var+set}\" = set"; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824   cat >conftest.$ac_ext <<_ACEOF
19825 /* confdefs.h.  */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h.  */
19830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19832 #define $ac_func innocuous_$ac_func
19833
19834 /* System header to define __stub macros and hopefully few prototypes,
19835     which can conflict with char $ac_func (); below.
19836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19837     <limits.h> exists even on freestanding compilers.  */
19838
19839 #ifdef __STDC__
19840 # include <limits.h>
19841 #else
19842 # include <assert.h>
19843 #endif
19844
19845 #undef $ac_func
19846
19847 /* Override any gcc2 internal prototype to avoid an error.  */
19848 #ifdef __cplusplus
19849 extern "C"
19850 {
19851 #endif
19852 /* We use char because int might match the return type of a gcc2
19853    builtin and then its argument prototype would still apply.  */
19854 char $ac_func ();
19855 /* The GNU C library defines this for functions which it implements
19856     to always fail with ENOSYS.  Some functions are actually named
19857     something starting with __ and the normal name is an alias.  */
19858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19859 choke me
19860 #else
19861 char (*f) () = $ac_func;
19862 #endif
19863 #ifdef __cplusplus
19864 }
19865 #endif
19866
19867 int
19868 main ()
19869 {
19870 return f != $ac_func;
19871   ;
19872   return 0;
19873 }
19874 _ACEOF
19875 rm -f conftest.$ac_objext conftest$ac_exeext
19876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19877   (eval $ac_link) 2>conftest.er1
19878   ac_status=$?
19879   grep -v '^ *+' conftest.er1 >conftest.err
19880   rm -f conftest.er1
19881   cat conftest.err >&5
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); } &&
19884          { ac_try='test -z "$ac_c_werror_flag"
19885                          || test ! -s conftest.err'
19886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887   (eval $ac_try) 2>&5
19888   ac_status=$?
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); }; } &&
19891          { ac_try='test -s conftest$ac_exeext'
19892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893   (eval $ac_try) 2>&5
19894   ac_status=$?
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); }; }; then
19897   eval "$as_ac_var=yes"
19898 else
19899   echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19901
19902 eval "$as_ac_var=no"
19903 fi
19904 rm -f conftest.err conftest.$ac_objext \
19905       conftest$ac_exeext conftest.$ac_ext
19906 fi
19907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19909 if test `eval echo '${'$as_ac_var'}'` = yes; then
19910   cat >>confdefs.h <<_ACEOF
19911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19912 _ACEOF
19913
19914 fi
19915 done
19916
19917
19918 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19919 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19920 if test "${ac_cv_func_closedir_void+set}" = set; then
19921   echo $ECHO_N "(cached) $ECHO_C" >&6
19922 else
19923   if test "$cross_compiling" = yes; then
19924   ac_cv_func_closedir_void=yes
19925 else
19926   cat >conftest.$ac_ext <<_ACEOF
19927 /* confdefs.h.  */
19928 _ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h.  */
19932 $ac_includes_default
19933 #include <$ac_header_dirent>
19934 #ifndef __cplusplus
19935 int closedir ();
19936 #endif
19937
19938 int
19939 main ()
19940 {
19941 exit (closedir (opendir (".")) != 0);
19942   ;
19943   return 0;
19944 }
19945 _ACEOF
19946 rm -f conftest$ac_exeext
19947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19948   (eval $ac_link) 2>&5
19949   ac_status=$?
19950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953   (eval $ac_try) 2>&5
19954   ac_status=$?
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); }; }; then
19957   ac_cv_func_closedir_void=no
19958 else
19959   echo "$as_me: program exited with status $ac_status" >&5
19960 echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19962
19963 ( exit $ac_status )
19964 ac_cv_func_closedir_void=yes
19965 fi
19966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19967 fi
19968 fi
19969 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
19970 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
19971 if test $ac_cv_func_closedir_void = yes; then
19972
19973 cat >>confdefs.h <<\_ACEOF
19974 #define CLOSEDIR_VOID 1
19975 _ACEOF
19976
19977 fi
19978
19979 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19980 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19981 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19982   echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984   if test "$cross_compiling" = yes; then
19985   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19986 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19987    { (exit 1); exit 1; }; }
19988 else
19989   cat >conftest.$ac_ext <<_ACEOF
19990 /* confdefs.h.  */
19991 _ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h.  */
19995 #if HAVE_UNISTD_H
19996 # include <unistd.h>
19997 #endif
19998
19999 int
20000 main ()
20001 {
20002 /* If this system has a BSD-style setpgrp which takes arguments,
20003   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20004   exit successfully. */
20005   exit (setpgrp (1,1) == -1 ? 0 : 1);
20006   ;
20007   return 0;
20008 }
20009 _ACEOF
20010 rm -f conftest$ac_exeext
20011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20012   (eval $ac_link) 2>&5
20013   ac_status=$?
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017   (eval $ac_try) 2>&5
20018   ac_status=$?
20019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020   (exit $ac_status); }; }; then
20021   ac_cv_func_setpgrp_void=no
20022 else
20023   echo "$as_me: program exited with status $ac_status" >&5
20024 echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20026
20027 ( exit $ac_status )
20028 ac_cv_func_setpgrp_void=yes
20029 fi
20030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20031 fi
20032 fi
20033 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20034 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20035 if test $ac_cv_func_setpgrp_void = yes; then
20036
20037 cat >>confdefs.h <<\_ACEOF
20038 #define SETPGRP_VOID 1
20039 _ACEOF
20040
20041 fi
20042                       # AC_FUNC_FNMATCH    dnl use local version
20043
20044
20045 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20046 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20047 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20048   echo $ECHO_N "(cached) $ECHO_C" >&6
20049 else
20050   ac_check_lib_save_LIBS=$LIBS
20051 LIBS="-lxpg4  $LIBS"
20052 cat >conftest.$ac_ext <<_ACEOF
20053 /* confdefs.h.  */
20054 _ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h.  */
20058
20059 /* Override any gcc2 internal prototype to avoid an error.  */
20060 #ifdef __cplusplus
20061 extern "C"
20062 #endif
20063 /* We use char because int might match the return type of a gcc2
20064    builtin and then its argument prototype would still apply.  */
20065 char setlocale ();
20066 int
20067 main ()
20068 {
20069 setlocale ();
20070   ;
20071   return 0;
20072 }
20073 _ACEOF
20074 rm -f conftest.$ac_objext conftest$ac_exeext
20075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20076   (eval $ac_link) 2>conftest.er1
20077   ac_status=$?
20078   grep -v '^ *+' conftest.er1 >conftest.err
20079   rm -f conftest.er1
20080   cat conftest.err >&5
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); } &&
20083          { ac_try='test -z "$ac_c_werror_flag"
20084                          || test ! -s conftest.err'
20085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086   (eval $ac_try) 2>&5
20087   ac_status=$?
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); }; } &&
20090          { ac_try='test -s conftest$ac_exeext'
20091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092   (eval $ac_try) 2>&5
20093   ac_status=$?
20094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095   (exit $ac_status); }; }; then
20096   ac_cv_lib_xpg4_setlocale=yes
20097 else
20098   echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20100
20101 ac_cv_lib_xpg4_setlocale=no
20102 fi
20103 rm -f conftest.err conftest.$ac_objext \
20104       conftest$ac_exeext conftest.$ac_ext
20105 LIBS=$ac_check_lib_save_LIBS
20106 fi
20107 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20108 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20109 if test $ac_cv_lib_xpg4_setlocale = yes; then
20110   LIBS="$LIBS -lxpg4"
20111 fi
20112
20113
20114
20115
20116 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20117 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20118 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20119   echo $ECHO_N "(cached) $ECHO_C" >&6
20120 else
20121   ac_check_lib_save_LIBS=$LIBS
20122 LIBS="-lsun  $LIBS"
20123 cat >conftest.$ac_ext <<_ACEOF
20124 /* confdefs.h.  */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h.  */
20129
20130 /* Override any gcc2 internal prototype to avoid an error.  */
20131 #ifdef __cplusplus
20132 extern "C"
20133 #endif
20134 /* We use char because int might match the return type of a gcc2
20135    builtin and then its argument prototype would still apply.  */
20136 char getpwnam ();
20137 int
20138 main ()
20139 {
20140 getpwnam ();
20141   ;
20142   return 0;
20143 }
20144 _ACEOF
20145 rm -f conftest.$ac_objext conftest$ac_exeext
20146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20147   (eval $ac_link) 2>conftest.er1
20148   ac_status=$?
20149   grep -v '^ *+' conftest.er1 >conftest.err
20150   rm -f conftest.er1
20151   cat conftest.err >&5
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); } &&
20154          { ac_try='test -z "$ac_c_werror_flag"
20155                          || test ! -s conftest.err'
20156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157   (eval $ac_try) 2>&5
20158   ac_status=$?
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); }; } &&
20161          { ac_try='test -s conftest$ac_exeext'
20162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163   (eval $ac_try) 2>&5
20164   ac_status=$?
20165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166   (exit $ac_status); }; }; then
20167   ac_cv_lib_sun_getpwnam=yes
20168 else
20169   echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20171
20172 ac_cv_lib_sun_getpwnam=no
20173 fi
20174 rm -f conftest.err conftest.$ac_objext \
20175       conftest$ac_exeext conftest.$ac_ext
20176 LIBS=$ac_check_lib_save_LIBS
20177 fi
20178 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20179 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20180 if test $ac_cv_lib_sun_getpwnam = yes; then
20181   cat >>confdefs.h <<_ACEOF
20182 #define HAVE_LIBSUN 1
20183 _ACEOF
20184
20185   LIBS="-lsun $LIBS"
20186
20187 fi
20188
20189
20190
20191 for ac_header in zlib.h
20192 do
20193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20195   echo "$as_me:$LINENO: checking for $ac_header" >&5
20196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20198   echo $ECHO_N "(cached) $ECHO_C" >&6
20199 fi
20200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20202 else
20203   # Is the header compilable?
20204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20206 cat >conftest.$ac_ext <<_ACEOF
20207 /* confdefs.h.  */
20208 _ACEOF
20209 cat confdefs.h >>conftest.$ac_ext
20210 cat >>conftest.$ac_ext <<_ACEOF
20211 /* end confdefs.h.  */
20212 $ac_includes_default
20213 #include <$ac_header>
20214 _ACEOF
20215 rm -f conftest.$ac_objext
20216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20217   (eval $ac_compile) 2>conftest.er1
20218   ac_status=$?
20219   grep -v '^ *+' conftest.er1 >conftest.err
20220   rm -f conftest.er1
20221   cat conftest.err >&5
20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); } &&
20224          { ac_try='test -z "$ac_c_werror_flag"
20225                          || test ! -s conftest.err'
20226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227   (eval $ac_try) 2>&5
20228   ac_status=$?
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); }; } &&
20231          { ac_try='test -s conftest.$ac_objext'
20232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233   (eval $ac_try) 2>&5
20234   ac_status=$?
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); }; }; then
20237   ac_header_compiler=yes
20238 else
20239   echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20241
20242 ac_header_compiler=no
20243 fi
20244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20246 echo "${ECHO_T}$ac_header_compiler" >&6
20247
20248 # Is the header present?
20249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20251 cat >conftest.$ac_ext <<_ACEOF
20252 /* confdefs.h.  */
20253 _ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h.  */
20257 #include <$ac_header>
20258 _ACEOF
20259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20261   ac_status=$?
20262   grep -v '^ *+' conftest.er1 >conftest.err
20263   rm -f conftest.er1
20264   cat conftest.err >&5
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); } >/dev/null; then
20267   if test -s conftest.err; then
20268     ac_cpp_err=$ac_c_preproc_warn_flag
20269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20270   else
20271     ac_cpp_err=
20272   fi
20273 else
20274   ac_cpp_err=yes
20275 fi
20276 if test -z "$ac_cpp_err"; then
20277   ac_header_preproc=yes
20278 else
20279   echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20281
20282   ac_header_preproc=no
20283 fi
20284 rm -f conftest.err conftest.$ac_ext
20285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20286 echo "${ECHO_T}$ac_header_preproc" >&6
20287
20288 # So?  What about this header?
20289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20290   yes:no: )
20291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20295     ac_header_preproc=yes
20296     ;;
20297   no:yes:* )
20298     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20300     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20301 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20302     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20304     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20305 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20308     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20310     (
20311       cat <<\_ASBOX
20312 ## ------------------------------------------ ##
20313 ## Report this to the AC_PACKAGE_NAME lists.  ##
20314 ## ------------------------------------------ ##
20315 _ASBOX
20316     ) |
20317       sed "s/^/$as_me: WARNING:     /" >&2
20318     ;;
20319 esac
20320 echo "$as_me:$LINENO: checking for $ac_header" >&5
20321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20323   echo $ECHO_N "(cached) $ECHO_C" >&6
20324 else
20325   eval "$as_ac_Header=\$ac_header_preproc"
20326 fi
20327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20329
20330 fi
20331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20332   cat >>confdefs.h <<_ACEOF
20333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20334 _ACEOF
20335
20336 fi
20337
20338 done
20339
20340 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20341 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20342 if test "${ac_cv_lib_z_deflate+set}" = set; then
20343   echo $ECHO_N "(cached) $ECHO_C" >&6
20344 else
20345   ac_check_lib_save_LIBS=$LIBS
20346 LIBS="-lz  $LIBS"
20347 cat >conftest.$ac_ext <<_ACEOF
20348 /* confdefs.h.  */
20349 _ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h.  */
20353
20354 /* Override any gcc2 internal prototype to avoid an error.  */
20355 #ifdef __cplusplus
20356 extern "C"
20357 #endif
20358 /* We use char because int might match the return type of a gcc2
20359    builtin and then its argument prototype would still apply.  */
20360 char deflate ();
20361 int
20362 main ()
20363 {
20364 deflate ();
20365   ;
20366   return 0;
20367 }
20368 _ACEOF
20369 rm -f conftest.$ac_objext conftest$ac_exeext
20370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20371   (eval $ac_link) 2>conftest.er1
20372   ac_status=$?
20373   grep -v '^ *+' conftest.er1 >conftest.err
20374   rm -f conftest.er1
20375   cat conftest.err >&5
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); } &&
20378          { ac_try='test -z "$ac_c_werror_flag"
20379                          || test ! -s conftest.err'
20380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381   (eval $ac_try) 2>&5
20382   ac_status=$?
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); }; } &&
20385          { ac_try='test -s conftest$ac_exeext'
20386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387   (eval $ac_try) 2>&5
20388   ac_status=$?
20389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390   (exit $ac_status); }; }; then
20391   ac_cv_lib_z_deflate=yes
20392 else
20393   echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20395
20396 ac_cv_lib_z_deflate=no
20397 fi
20398 rm -f conftest.err conftest.$ac_objext \
20399       conftest$ac_exeext conftest.$ac_ext
20400 LIBS=$ac_check_lib_save_LIBS
20401 fi
20402 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20403 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20404 if test $ac_cv_lib_z_deflate = yes; then
20405   FDLIBS="-lz"
20406 fi
20407
20408 have_zlib=no
20409 if test x$FDLIBS = x-lz; then
20410   cat >>confdefs.h <<\_ACEOF
20411 #define HAVE_LIBZ 1
20412 _ACEOF
20413
20414   have_zlib=yes
20415 fi
20416
20417 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20418   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20419 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20420 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20421   echo $ECHO_N "(cached) $ECHO_C" >&6
20422 fi
20423 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20424 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20425 else
20426   # Is the header compilable?
20427 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20428 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20429 cat >conftest.$ac_ext <<_ACEOF
20430 /* confdefs.h.  */
20431 _ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h.  */
20435 $ac_includes_default
20436 #include <sys/acl.h>
20437 _ACEOF
20438 rm -f conftest.$ac_objext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20440   (eval $ac_compile) 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_objext'
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_header_compiler=yes
20461 else
20462   echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20464
20465 ac_header_compiler=no
20466 fi
20467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20469 echo "${ECHO_T}$ac_header_compiler" >&6
20470
20471 # Is the header present?
20472 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20473 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20474 cat >conftest.$ac_ext <<_ACEOF
20475 /* confdefs.h.  */
20476 _ACEOF
20477 cat confdefs.h >>conftest.$ac_ext
20478 cat >>conftest.$ac_ext <<_ACEOF
20479 /* end confdefs.h.  */
20480 #include <sys/acl.h>
20481 _ACEOF
20482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20484   ac_status=$?
20485   grep -v '^ *+' conftest.er1 >conftest.err
20486   rm -f conftest.er1
20487   cat conftest.err >&5
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); } >/dev/null; then
20490   if test -s conftest.err; then
20491     ac_cpp_err=$ac_c_preproc_warn_flag
20492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20493   else
20494     ac_cpp_err=
20495   fi
20496 else
20497   ac_cpp_err=yes
20498 fi
20499 if test -z "$ac_cpp_err"; then
20500   ac_header_preproc=yes
20501 else
20502   echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20504
20505   ac_header_preproc=no
20506 fi
20507 rm -f conftest.err conftest.$ac_ext
20508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20509 echo "${ECHO_T}$ac_header_preproc" >&6
20510
20511 # So?  What about this header?
20512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20513   yes:no: )
20514     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20515 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20516     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20517 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20518     ac_header_preproc=yes
20519     ;;
20520   no:yes:* )
20521     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20522 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20523     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20524 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20525     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20526 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20527     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20528 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20529     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20530 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20531     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20532 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20533     (
20534       cat <<\_ASBOX
20535 ## ------------------------------------------ ##
20536 ## Report this to the AC_PACKAGE_NAME lists.  ##
20537 ## ------------------------------------------ ##
20538 _ASBOX
20539     ) |
20540       sed "s/^/$as_me: WARNING:     /" >&2
20541     ;;
20542 esac
20543 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20544 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20545 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20546   echo $ECHO_N "(cached) $ECHO_C" >&6
20547 else
20548   ac_cv_header_sys_acl_h=$ac_header_preproc
20549 fi
20550 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20551 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20552
20553 fi
20554
20555
20556 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20557 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20558 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20559   echo $ECHO_N "(cached) $ECHO_C" >&6
20560 else
20561   ac_check_lib_save_LIBS=$LIBS
20562 LIBS="-lacl  $LIBS"
20563 cat >conftest.$ac_ext <<_ACEOF
20564 /* confdefs.h.  */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h.  */
20569
20570 /* Override any gcc2 internal prototype to avoid an error.  */
20571 #ifdef __cplusplus
20572 extern "C"
20573 #endif
20574 /* We use char because int might match the return type of a gcc2
20575    builtin and then its argument prototype would still apply.  */
20576 char acl_get_file ();
20577 int
20578 main ()
20579 {
20580 acl_get_file ();
20581   ;
20582   return 0;
20583 }
20584 _ACEOF
20585 rm -f conftest.$ac_objext conftest$ac_exeext
20586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20587   (eval $ac_link) 2>conftest.er1
20588   ac_status=$?
20589   grep -v '^ *+' conftest.er1 >conftest.err
20590   rm -f conftest.er1
20591   cat conftest.err >&5
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); } &&
20594          { ac_try='test -z "$ac_c_werror_flag"
20595                          || test ! -s conftest.err'
20596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597   (eval $ac_try) 2>&5
20598   ac_status=$?
20599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600   (exit $ac_status); }; } &&
20601          { ac_try='test -s conftest$ac_exeext'
20602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603   (eval $ac_try) 2>&5
20604   ac_status=$?
20605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606   (exit $ac_status); }; }; then
20607   ac_cv_lib_acl_acl_get_file=yes
20608 else
20609   echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20611
20612 ac_cv_lib_acl_acl_get_file=no
20613 fi
20614 rm -f conftest.err conftest.$ac_objext \
20615       conftest$ac_exeext conftest.$ac_ext
20616 LIBS=$ac_check_lib_save_LIBS
20617 fi
20618 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20619 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20620 if test $ac_cv_lib_acl_acl_get_file = yes; then
20621   FDLIBS="-lacl $FDLIBS"
20622 fi
20623
20624 have_acl=no
20625 if test $ac_cv_lib_acl_acl_get_file = yes; then
20626    cat >>confdefs.h <<\_ACEOF
20627 #define HAVE_ACL 1
20628 _ACEOF
20629
20630    have_acl=yes
20631 fi
20632
20633 PTHREAD_LIB=""
20634 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20635 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20636 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20637   echo $ECHO_N "(cached) $ECHO_C" >&6
20638 else
20639   ac_check_lib_save_LIBS=$LIBS
20640 LIBS="-lpthread  $LIBS"
20641 cat >conftest.$ac_ext <<_ACEOF
20642 /* confdefs.h.  */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h.  */
20647
20648 /* Override any gcc2 internal prototype to avoid an error.  */
20649 #ifdef __cplusplus
20650 extern "C"
20651 #endif
20652 /* We use char because int might match the return type of a gcc2
20653    builtin and then its argument prototype would still apply.  */
20654 char pthread_create ();
20655 int
20656 main ()
20657 {
20658 pthread_create ();
20659   ;
20660   return 0;
20661 }
20662 _ACEOF
20663 rm -f conftest.$ac_objext conftest$ac_exeext
20664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20665   (eval $ac_link) 2>conftest.er1
20666   ac_status=$?
20667   grep -v '^ *+' conftest.er1 >conftest.err
20668   rm -f conftest.er1
20669   cat conftest.err >&5
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); } &&
20672          { ac_try='test -z "$ac_c_werror_flag"
20673                          || test ! -s conftest.err'
20674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675   (eval $ac_try) 2>&5
20676   ac_status=$?
20677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678   (exit $ac_status); }; } &&
20679          { ac_try='test -s conftest$ac_exeext'
20680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681   (eval $ac_try) 2>&5
20682   ac_status=$?
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); }; }; then
20685   ac_cv_lib_pthread_pthread_create=yes
20686 else
20687   echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20689
20690 ac_cv_lib_pthread_pthread_create=no
20691 fi
20692 rm -f conftest.err conftest.$ac_objext \
20693       conftest$ac_exeext conftest.$ac_ext
20694 LIBS=$ac_check_lib_save_LIBS
20695 fi
20696 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20697 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20698 if test $ac_cv_lib_pthread_pthread_create = yes; then
20699   PTHREAD_LIB="-lpthread"
20700 else
20701   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20702 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20703 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20704   echo $ECHO_N "(cached) $ECHO_C" >&6
20705 else
20706   ac_check_lib_save_LIBS=$LIBS
20707 LIBS="-lpthreads  $LIBS"
20708 cat >conftest.$ac_ext <<_ACEOF
20709 /* confdefs.h.  */
20710 _ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h.  */
20714
20715 /* Override any gcc2 internal prototype to avoid an error.  */
20716 #ifdef __cplusplus
20717 extern "C"
20718 #endif
20719 /* We use char because int might match the return type of a gcc2
20720    builtin and then its argument prototype would still apply.  */
20721 char pthread_create ();
20722 int
20723 main ()
20724 {
20725 pthread_create ();
20726   ;
20727   return 0;
20728 }
20729 _ACEOF
20730 rm -f conftest.$ac_objext conftest$ac_exeext
20731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20732   (eval $ac_link) 2>conftest.er1
20733   ac_status=$?
20734   grep -v '^ *+' conftest.er1 >conftest.err
20735   rm -f conftest.er1
20736   cat conftest.err >&5
20737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738   (exit $ac_status); } &&
20739          { ac_try='test -z "$ac_c_werror_flag"
20740                          || test ! -s conftest.err'
20741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742   (eval $ac_try) 2>&5
20743   ac_status=$?
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); }; } &&
20746          { ac_try='test -s conftest$ac_exeext'
20747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748   (eval $ac_try) 2>&5
20749   ac_status=$?
20750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751   (exit $ac_status); }; }; then
20752   ac_cv_lib_pthreads_pthread_create=yes
20753 else
20754   echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20756
20757 ac_cv_lib_pthreads_pthread_create=no
20758 fi
20759 rm -f conftest.err conftest.$ac_objext \
20760       conftest$ac_exeext conftest.$ac_ext
20761 LIBS=$ac_check_lib_save_LIBS
20762 fi
20763 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20764 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20765 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20766   PTHREAD_LIB="-lpthreads"
20767 else
20768   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20769 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20770 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20771   echo $ECHO_N "(cached) $ECHO_C" >&6
20772 else
20773   ac_check_lib_save_LIBS=$LIBS
20774 LIBS="-lc_r  $LIBS"
20775 cat >conftest.$ac_ext <<_ACEOF
20776 /* confdefs.h.  */
20777 _ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h.  */
20781
20782 /* Override any gcc2 internal prototype to avoid an error.  */
20783 #ifdef __cplusplus
20784 extern "C"
20785 #endif
20786 /* We use char because int might match the return type of a gcc2
20787    builtin and then its argument prototype would still apply.  */
20788 char pthread_create ();
20789 int
20790 main ()
20791 {
20792 pthread_create ();
20793   ;
20794   return 0;
20795 }
20796 _ACEOF
20797 rm -f conftest.$ac_objext conftest$ac_exeext
20798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20799   (eval $ac_link) 2>conftest.er1
20800   ac_status=$?
20801   grep -v '^ *+' conftest.er1 >conftest.err
20802   rm -f conftest.er1
20803   cat conftest.err >&5
20804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805   (exit $ac_status); } &&
20806          { ac_try='test -z "$ac_c_werror_flag"
20807                          || test ! -s conftest.err'
20808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809   (eval $ac_try) 2>&5
20810   ac_status=$?
20811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812   (exit $ac_status); }; } &&
20813          { ac_try='test -s conftest$ac_exeext'
20814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815   (eval $ac_try) 2>&5
20816   ac_status=$?
20817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818   (exit $ac_status); }; }; then
20819   ac_cv_lib_c_r_pthread_create=yes
20820 else
20821   echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20823
20824 ac_cv_lib_c_r_pthread_create=no
20825 fi
20826 rm -f conftest.err conftest.$ac_objext \
20827       conftest$ac_exeext conftest.$ac_ext
20828 LIBS=$ac_check_lib_save_LIBS
20829 fi
20830 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20831 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20832 if test $ac_cv_lib_c_r_pthread_create = yes; then
20833   PTHREAD_LIB="-lc_r"
20834 else
20835   echo "$as_me:$LINENO: checking for pthread_create" >&5
20836 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
20837 if test "${ac_cv_func_pthread_create+set}" = set; then
20838   echo $ECHO_N "(cached) $ECHO_C" >&6
20839 else
20840   cat >conftest.$ac_ext <<_ACEOF
20841 /* confdefs.h.  */
20842 _ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h.  */
20846 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
20847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20848 #define pthread_create innocuous_pthread_create
20849
20850 /* System header to define __stub macros and hopefully few prototypes,
20851     which can conflict with char pthread_create (); below.
20852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20853     <limits.h> exists even on freestanding compilers.  */
20854
20855 #ifdef __STDC__
20856 # include <limits.h>
20857 #else
20858 # include <assert.h>
20859 #endif
20860
20861 #undef pthread_create
20862
20863 /* Override any gcc2 internal prototype to avoid an error.  */
20864 #ifdef __cplusplus
20865 extern "C"
20866 {
20867 #endif
20868 /* We use char because int might match the return type of a gcc2
20869    builtin and then its argument prototype would still apply.  */
20870 char pthread_create ();
20871 /* The GNU C library defines this for functions which it implements
20872     to always fail with ENOSYS.  Some functions are actually named
20873     something starting with __ and the normal name is an alias.  */
20874 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
20875 choke me
20876 #else
20877 char (*f) () = pthread_create;
20878 #endif
20879 #ifdef __cplusplus
20880 }
20881 #endif
20882
20883 int
20884 main ()
20885 {
20886 return f != pthread_create;
20887   ;
20888   return 0;
20889 }
20890 _ACEOF
20891 rm -f conftest.$ac_objext conftest$ac_exeext
20892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20893   (eval $ac_link) 2>conftest.er1
20894   ac_status=$?
20895   grep -v '^ *+' conftest.er1 >conftest.err
20896   rm -f conftest.er1
20897   cat conftest.err >&5
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); } &&
20900          { ac_try='test -z "$ac_c_werror_flag"
20901                          || test ! -s conftest.err'
20902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903   (eval $ac_try) 2>&5
20904   ac_status=$?
20905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); }; } &&
20907          { ac_try='test -s conftest$ac_exeext'
20908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909   (eval $ac_try) 2>&5
20910   ac_status=$?
20911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912   (exit $ac_status); }; }; then
20913   ac_cv_func_pthread_create=yes
20914 else
20915   echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20917
20918 ac_cv_func_pthread_create=no
20919 fi
20920 rm -f conftest.err conftest.$ac_objext \
20921       conftest$ac_exeext conftest.$ac_ext
20922 fi
20923 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
20924 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
20925
20926
20927 fi
20928
20929
20930 fi
20931
20932
20933 fi
20934
20935
20936
20937 cat >>confdefs.h <<\_ACEOF
20938 #define FDLIBS 1
20939 _ACEOF
20940
20941
20942
20943 CFLAGS=${CFLAGS--O}
20944 LDFLAGS=${LDFLAGS--O}
20945 DB_LIBS="${SQL_LFLAGS}"
20946
20947 CPPFLAGS="$CPPFLAGS"
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962 OBJLIST=
20963
20964
20965 lld="lld"
20966 llu="llu"
20967
20968 WCFLAGS=
20969 WLDFLAGS=
20970
20971 #
20972 # Finally we set appropriate distribution specific
20973 #  variables and defaults
20974 #
20975 # PFILES are platform specific files
20976 PFILES="platforms/Makefile"
20977 PSCMD="ps -e"
20978 WIN32=
20979 MACOSX=
20980 hostname=`uname -n | cut -d '.' -f 1`
20981 case "$DISTNAME" in
20982 aix)
20983         DISTVER=`uname -r`
20984         PSCMD="ps -e -o pid,comm"
20985         PFILES="${PFILES} \
20986            platforms/aix/Makefile"
20987         TAPEDRIVE="/dev/rmt0.1"
20988   ;;
20989 alpha)
20990         DISTVER=`uname -r`
20991         PTHREAD_LIB="-lpthread -lexc"
20992         if test "${CC}" = "gcc" ; then
20993            lld="lld"
20994            llu="llu"
20995         else
20996            lld="ld"
20997            llu="lu"
20998         fi
20999         TAPEDRIVE="/dev/nrmt0"
21000   ;;
21001 bsdi)
21002         DISTVER=`uname -a |awk '{print $3}'`
21003         TAPEDRIVE="/dev/nrmt0"
21004         PTHREAD_LIB="-pthread"
21005         CFLAGS="${CFLAGS} -pthread"
21006         PSCMD="ps -x -o pid,command"
21007         lld="qd"
21008         llu="qu"
21009         PFILES="${PFILES} \
21010             platforms/bsdi/Makefile \
21011             platforms/bsdi/bacula-fd \
21012             platforms/bsdi/bacula-sd \
21013             platforms/bsdi/bacula-dir"
21014         largefile_support="yes"
21015   ;;
21016 cygwin)
21017         DISTVER=`uname -a |awk '{print $3}'`
21018         TAPEDRIVE="/dev/nrst0"
21019         WIN32=win32
21020         WCFLAGS="-mwindows"
21021         WLDFLAGS="-mwindows"
21022   ;;
21023 darwin)
21024         DISTVER=`uname -r`
21025         TAPEDRIVE="/dev/nst0"
21026         PSCMD="ps -e -o pid,command"
21027         MACOSX=macosx
21028         PFILES="${PFILES} \
21029            platforms/darwin/Makefile"
21030   ;;
21031 debian)
21032         DISTVER=`cat /etc/debian_version`
21033         TAPEDRIVE="/dev/nrst0"
21034         PSCMD="ps -e -o pid,command"
21035   ;;
21036 freebsd)
21037         DISTVER=`uname -a |awk '{print $3}'`
21038         VER=`echo $DISTVER | cut -c 1`
21039         if test x$VER = x4 ; then
21040            PTHREAD_LIB="-pthread"
21041            CFLAGS="${CFLAGS} -pthread"
21042         fi
21043         lld="qd"
21044         llu="qu"
21045         TAPEDRIVE="/dev/nrsa0"
21046         PSCMD="ps -x -o pid,command"
21047         PFILES="${PFILES} \
21048             platforms/freebsd/Makefile \
21049             platforms/freebsd/bacula-fd \
21050             platforms/freebsd/bacula-sd \
21051             platforms/freebsd/bacula-dir"
21052         largefile_support="yes"
21053   ;;
21054 hpux)
21055         PSCMD="UNIX95=1 ps -e -o pid,comm"
21056         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21057         DISTVER=`uname -r`
21058         TAPEDRIVE="/dev/rmt/0hnb"
21059   ;;
21060 irix)
21061         DISTVER=`uname -r`
21062         TAPEDRIVE="/dev/rmt/0cbn"
21063         PSCMD="ps -e -o pid,comm"
21064         PFILES="${PFILES} \
21065             platforms/irix/Makefile \
21066             platforms/irix/bacula-fd \
21067             platforms/irix/bacula-sd \
21068             platforms/irix/bacula-dir"
21069   ;;
21070 netbsd)
21071         DISTVER=`uname -a |awk '{print $3}'`
21072         lld="qd"
21073         llu="qu"
21074         TAPEDRIVE="/dev/nrst0"
21075         PSCMD="ps -a -o pid,command"
21076         PTHREAD_LIB="-pthread"
21077         CFLAGS="${CFLAGS} -pthread"
21078   ;;
21079 openbsd)
21080         DISTVER=`uname -a |awk '{print $3}'`
21081         lld="qd"
21082         llu="qu"
21083         TAPEDRIVE="/dev/nrst0"
21084         PSCMD="ps -ax -o pid,command"
21085         PTHREAD_LIB="-pthread"
21086         CFLAGS="${CFLAGS} -pthread"
21087         PFILES="${PFILES} \
21088             platforms/openbsd/Makefile \
21089             platforms/openbsd/bacula-fd \
21090             platforms/openbsd/bacula-sd \
21091             platforms/openbsd/bacula-dir"
21092   ;;
21093 redhat)
21094         if test -f /etc/whitebox-release ; then
21095            f=/etc/whitebox-release
21096         else
21097            f=/etc/redhat-release
21098         fi
21099         if test `cat $f | grep release |\
21100                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21101            DISTVER="Enterprise "`cat $f | grep release |\
21102                     cut -f 6 -d ' '`
21103         else
21104             DISTVER=`cat /etc/redhat-release | grep release |\
21105                      cut -f 5 -d ' '`
21106         fi
21107         TAPEDRIVE="/dev/nst0"
21108         PSCMD="ps -e -o pid,command"
21109         PFILES="${PFILES} \
21110             platforms/redhat/Makefile \
21111             platforms/redhat/bacula-fd \
21112             platforms/redhat/bacula-sd \
21113             platforms/redhat/bacula-dir \
21114             platforms/redhat/bacula.spec \
21115             "
21116         hostname=`hostname -s`
21117   ;;
21118 mandrake)
21119         DISTVER=`cat /etc/mandrake-release | grep release |\
21120            cut -f 5 -d ' '`
21121         TAPEDRIVE="/dev/nst0"
21122         PSCMD="ps -e -o pid,command"
21123         PFILES="${PFILES} \
21124             platforms/mandrake/Makefile \
21125             platforms/mandrake/bacula-fd \
21126             platforms/mandrake/bacula-sd \
21127             platforms/mandrake/bacula-dir \
21128             platforms/mandrake/bacula.spec \
21129             "
21130   ;;
21131 gentoo)
21132         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21133         TAPEDRIVE="/dev/nst0"
21134         PSCMD="ps -e -o pid,command"
21135         PFILES="${PFILES} \
21136             platforms/gentoo/Makefile \
21137          platforms/gentoo/bacula-init \
21138             platforms/gentoo/bacula-fd \
21139             platforms/gentoo/bacula-sd \
21140             platforms/gentoo/bacula-dir"
21141   ;;
21142 slackware)
21143         DISTVER=`cat /etc/slackware-version`
21144         TAPEDRIVE="/dev/nst0"
21145         PSCMD="ps -e -o pid,command"
21146         PFILES="${PFILES} \
21147             platforms/slackware/Makefile \
21148             platforms/slackware/rc.bacula-fd \
21149             platforms/slackware/rc.bacula-sd \
21150             platforms/slackware/rc.bacula-dir\
21151             platforms/slackware/functions.bacula"
21152   ;;
21153 solaris)
21154         DISTVER=`uname -r`
21155         TAPEDRIVE="/dev/rmt/0cbn"
21156         PSCMD="ps -e -o pid,comm"
21157         PFILES="${PFILES} \
21158             platforms/solaris/Makefile \
21159             platforms/solaris/bacula-fd \
21160             platforms/solaris/bacula-sd \
21161             platforms/solaris/bacula-dir"
21162         if test x$DISTVER = x5.6 ; then
21163             cat >>confdefs.h <<\_ACEOF
21164 #define HAVE_OLD_SOCKOPT 1
21165 _ACEOF
21166
21167         fi
21168   ;;
21169 suse)
21170         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21171             cut -f 3 -d ' '`
21172         TAPEDRIVE="/dev/nst0"
21173         PSCMD="ps -e -o pid,command"
21174         PFILES="${PFILES} \
21175             platforms/suse/Makefile \
21176             platforms/suse/bacula-fd \
21177             platforms/suse/bacula-sd \
21178             platforms/suse/bacula-dir \
21179             platforms/suse/bacula \
21180             platforms/suse/bacula.spec"
21181   ;;
21182 suse5)
21183         DISTNAME=suse
21184         DISTVER=5.x
21185         TAPEDRIVE="/dev/nst0"
21186         PSCMD="ps -e -o pid,command"
21187         PFILES="${PFILES} \
21188             platforms/suse/Makefile \
21189             platforms/suse/bacula-fd \
21190             platforms/suse/bacula-sd \
21191             platforms/suse/bacula-dir"
21192   ;;
21193 unknown)
21194         DISTVER=unknown
21195         TAPEDRIVE="/dev/nst0"
21196   ;;
21197 *)
21198   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21199   ;;
21200 esac
21201
21202
21203
21204 LIBS="$PTHREAD_LIB $LIBS"
21205
21206 cat >>confdefs.h <<_ACEOF
21207 #define lld "$lld"
21208 _ACEOF
21209
21210 cat >>confdefs.h <<_ACEOF
21211 #define llu "$llu"
21212 _ACEOF
21213
21214
21215
21216
21217
21218
21219
21220
21221 MCOMMON=./autoconf/Make.common
21222
21223
21224 if test "x${subsysdir}" = "x${sbindir}" ; then
21225    echo " "
21226    echo " "
21227    echo "You have set both --sbindir and --with-subsys-dir"
21228    echo "  equal to: ${subsysdir} "
21229    echo "This is not permitted. Please reconfigure."
21230    echo " "
21231    echo "Aborting configuration ..."
21232    echo " "
21233    echo " "
21234    exit 1
21235 fi
21236
21237                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
21238           ac_config_commands="$ac_config_commands default"
21239 cat >confcache <<\_ACEOF
21240 # This file is a shell script that caches the results of configure
21241 # tests run on this system so they can be shared between configure
21242 # scripts and configure runs, see configure's option --config-cache.
21243 # It is not useful on other systems.  If it contains results you don't
21244 # want to keep, you may remove or edit it.
21245 #
21246 # config.status only pays attention to the cache file if you give it
21247 # the --recheck option to rerun configure.
21248 #
21249 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21250 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21251 # following values.
21252
21253 _ACEOF
21254
21255 # The following way of writing the cache mishandles newlines in values,
21256 # but we know of no workaround that is simple, portable, and efficient.
21257 # So, don't put newlines in cache variables' values.
21258 # Ultrix sh set writes to stderr and can't be redirected directly,
21259 # and sets the high bit in the cache file unless we assign to the vars.
21260 {
21261   (set) 2>&1 |
21262     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21263     *ac_space=\ *)
21264       # `set' does not quote correctly, so add quotes (double-quote
21265       # substitution turns \\\\ into \\, and sed turns \\ into \).
21266       sed -n \
21267         "s/'/'\\\\''/g;
21268           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21269       ;;
21270     *)
21271       # `set' quotes correctly as required by POSIX, so do not add quotes.
21272       sed -n \
21273         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21274       ;;
21275     esac;
21276 } |
21277   sed '
21278      t clear
21279      : clear
21280      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21281      t end
21282      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21283      : end' >>confcache
21284 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21285   if test -w $cache_file; then
21286     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21287     cat confcache >$cache_file
21288   else
21289     echo "not updating unwritable cache $cache_file"
21290   fi
21291 fi
21292 rm -f confcache
21293
21294 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21295 # Let make expand exec_prefix.
21296 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21297
21298 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21299 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21300 # trailing colons and then remove the whole line if VPATH becomes empty
21301 # (actually we leave an empty line to preserve line numbers).
21302 if test "x$srcdir" = x.; then
21303   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21304 s/:*\$(srcdir):*/:/;
21305 s/:*\${srcdir}:*/:/;
21306 s/:*@srcdir@:*/:/;
21307 s/^\([^=]*=[     ]*\):*/\1/;
21308 s/:*$//;
21309 s/^[^=]*=[       ]*$//;
21310 }'
21311 fi
21312
21313 DEFS=-DHAVE_CONFIG_H
21314
21315 ac_libobjs=
21316 ac_ltlibobjs=
21317 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21318   # 1. Remove the extension, and $U if already installed.
21319   ac_i=`echo "$ac_i" |
21320          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21321   # 2. Add them.
21322   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21323   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21324 done
21325 LIBOBJS=$ac_libobjs
21326
21327 LTLIBOBJS=$ac_ltlibobjs
21328
21329
21330
21331 : ${CONFIG_STATUS=./config.status}
21332 ac_clean_files_save=$ac_clean_files
21333 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21334 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21335 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21336 cat >$CONFIG_STATUS <<_ACEOF
21337 #! $SHELL
21338 # Generated by $as_me.
21339 # Run this file to recreate the current configuration.
21340 # Compiler output produced by configure, useful for debugging
21341 # configure, is in config.log if it exists.
21342
21343 debug=false
21344 ac_cs_recheck=false
21345 ac_cs_silent=false
21346 SHELL=\${CONFIG_SHELL-$SHELL}
21347 _ACEOF
21348
21349 cat >>$CONFIG_STATUS <<\_ACEOF
21350 ## --------------------- ##
21351 ## M4sh Initialization.  ##
21352 ## --------------------- ##
21353
21354 # Be Bourne compatible
21355 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21356   emulate sh
21357   NULLCMD=:
21358   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21359   # is contrary to our usage.  Disable this feature.
21360   alias -g '${1+"$@"}'='"$@"'
21361 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21362   set -o posix
21363 fi
21364 DUALCASE=1; export DUALCASE # for MKS sh
21365
21366 # Support unset when possible.
21367 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21368   as_unset=unset
21369 else
21370   as_unset=false
21371 fi
21372
21373
21374 # Work around bugs in pre-3.0 UWIN ksh.
21375 $as_unset ENV MAIL MAILPATH
21376 PS1='$ '
21377 PS2='> '
21378 PS4='+ '
21379
21380 # NLS nuisances.
21381 for as_var in \
21382   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21383   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21384   LC_TELEPHONE LC_TIME
21385 do
21386   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21387     eval $as_var=C; export $as_var
21388   else
21389     $as_unset $as_var
21390   fi
21391 done
21392
21393 # Required to use basename.
21394 if expr a : '\(a\)' >/dev/null 2>&1; then
21395   as_expr=expr
21396 else
21397   as_expr=false
21398 fi
21399
21400 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21401   as_basename=basename
21402 else
21403   as_basename=false
21404 fi
21405
21406
21407 # Name of the executable.
21408 as_me=`$as_basename "$0" ||
21409 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21410          X"$0" : 'X\(//\)$' \| \
21411          X"$0" : 'X\(/\)$' \| \
21412          .     : '\(.\)' 2>/dev/null ||
21413 echo X/"$0" |
21414     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21415           /^X\/\(\/\/\)$/{ s//\1/; q; }
21416           /^X\/\(\/\).*/{ s//\1/; q; }
21417           s/.*/./; q'`
21418
21419
21420 # PATH needs CR, and LINENO needs CR and PATH.
21421 # Avoid depending upon Character Ranges.
21422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21425 as_cr_digits='0123456789'
21426 as_cr_alnum=$as_cr_Letters$as_cr_digits
21427
21428 # The user is always right.
21429 if test "${PATH_SEPARATOR+set}" != set; then
21430   echo "#! /bin/sh" >conf$$.sh
21431   echo  "exit 0"   >>conf$$.sh
21432   chmod +x conf$$.sh
21433   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21434     PATH_SEPARATOR=';'
21435   else
21436     PATH_SEPARATOR=:
21437   fi
21438   rm -f conf$$.sh
21439 fi
21440
21441
21442   as_lineno_1=$LINENO
21443   as_lineno_2=$LINENO
21444   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21445   test "x$as_lineno_1" != "x$as_lineno_2" &&
21446   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21447   # Find who we are.  Look in the path if we contain no path at all
21448   # relative or not.
21449   case $0 in
21450     *[\\/]* ) as_myself=$0 ;;
21451     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21452 for as_dir in $PATH
21453 do
21454   IFS=$as_save_IFS
21455   test -z "$as_dir" && as_dir=.
21456   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21457 done
21458
21459        ;;
21460   esac
21461   # We did not find ourselves, most probably we were run as `sh COMMAND'
21462   # in which case we are not to be found in the path.
21463   if test "x$as_myself" = x; then
21464     as_myself=$0
21465   fi
21466   if test ! -f "$as_myself"; then
21467     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21468 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21469    { (exit 1); exit 1; }; }
21470   fi
21471   case $CONFIG_SHELL in
21472   '')
21473     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21474 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21475 do
21476   IFS=$as_save_IFS
21477   test -z "$as_dir" && as_dir=.
21478   for as_base in sh bash ksh sh5; do
21479          case $as_dir in
21480          /*)
21481            if ("$as_dir/$as_base" -c '
21482   as_lineno_1=$LINENO
21483   as_lineno_2=$LINENO
21484   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21485   test "x$as_lineno_1" != "x$as_lineno_2" &&
21486   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21487              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21488              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21489              CONFIG_SHELL=$as_dir/$as_base
21490              export CONFIG_SHELL
21491              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21492            fi;;
21493          esac
21494        done
21495 done
21496 ;;
21497   esac
21498
21499   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21500   # uniformly replaced by the line number.  The first 'sed' inserts a
21501   # line-number line before each line; the second 'sed' does the real
21502   # work.  The second script uses 'N' to pair each line-number line
21503   # with the numbered line, and appends trailing '-' during
21504   # substitution so that $LINENO is not a special case at line end.
21505   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21506   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21507   sed '=' <$as_myself |
21508     sed '
21509       N
21510       s,$,-,
21511       : loop
21512       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21513       t loop
21514       s,-$,,
21515       s,^['$as_cr_digits']*\n,,
21516     ' >$as_me.lineno &&
21517   chmod +x $as_me.lineno ||
21518     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21519 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21520    { (exit 1); exit 1; }; }
21521
21522   # Don't try to exec as it changes $[0], causing all sort of problems
21523   # (the dirname of $[0] is not the place where we might find the
21524   # original and so on.  Autoconf is especially sensible to this).
21525   . ./$as_me.lineno
21526   # Exit status is that of the last command.
21527   exit
21528 }
21529
21530
21531 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21532   *c*,-n*) ECHO_N= ECHO_C='
21533 ' ECHO_T='      ' ;;
21534   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21535   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21536 esac
21537
21538 if expr a : '\(a\)' >/dev/null 2>&1; then
21539   as_expr=expr
21540 else
21541   as_expr=false
21542 fi
21543
21544 rm -f conf$$ conf$$.exe conf$$.file
21545 echo >conf$$.file
21546 if ln -s conf$$.file conf$$ 2>/dev/null; then
21547   # We could just check for DJGPP; but this test a) works b) is more generic
21548   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21549   if test -f conf$$.exe; then
21550     # Don't use ln at all; we don't have any links
21551     as_ln_s='cp -p'
21552   else
21553     as_ln_s='ln -s'
21554   fi
21555 elif ln conf$$.file conf$$ 2>/dev/null; then
21556   as_ln_s=ln
21557 else
21558   as_ln_s='cp -p'
21559 fi
21560 rm -f conf$$ conf$$.exe conf$$.file
21561
21562 if mkdir -p . 2>/dev/null; then
21563   as_mkdir_p=:
21564 else
21565   test -d ./-p && rmdir ./-p
21566   as_mkdir_p=false
21567 fi
21568
21569 as_executable_p="test -f"
21570
21571 # Sed expression to map a string onto a valid CPP name.
21572 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21573
21574 # Sed expression to map a string onto a valid variable name.
21575 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21576
21577
21578 # IFS
21579 # We need space, tab and new line, in precisely that order.
21580 as_nl='
21581 '
21582 IFS="   $as_nl"
21583
21584 # CDPATH.
21585 $as_unset CDPATH
21586
21587 exec 6>&1
21588
21589 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21590 # report actual input values of CONFIG_FILES etc. instead of their
21591 # values after options handling.  Logging --version etc. is OK.
21592 exec 5>>config.log
21593 {
21594   echo
21595   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21596 ## Running $as_me. ##
21597 _ASBOX
21598 } >&5
21599 cat >&5 <<_CSEOF
21600
21601 This file was extended by $as_me, which was
21602 generated by GNU Autoconf 2.59.  Invocation command line was
21603
21604   CONFIG_FILES    = $CONFIG_FILES
21605   CONFIG_HEADERS  = $CONFIG_HEADERS
21606   CONFIG_LINKS    = $CONFIG_LINKS
21607   CONFIG_COMMANDS = $CONFIG_COMMANDS
21608   $ $0 $@
21609
21610 _CSEOF
21611 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21612 echo >&5
21613 _ACEOF
21614
21615 # Files that config.status was made for.
21616 if test -n "$ac_config_files"; then
21617   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21618 fi
21619
21620 if test -n "$ac_config_headers"; then
21621   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21622 fi
21623
21624 if test -n "$ac_config_links"; then
21625   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21626 fi
21627
21628 if test -n "$ac_config_commands"; then
21629   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21630 fi
21631
21632 cat >>$CONFIG_STATUS <<\_ACEOF
21633
21634 ac_cs_usage="\
21635 \`$as_me' instantiates files from templates according to the
21636 current configuration.
21637
21638 Usage: $0 [OPTIONS] [FILE]...
21639
21640   -h, --help       print this help, then exit
21641   -V, --version    print version number, then exit
21642   -q, --quiet      do not print progress messages
21643   -d, --debug      don't remove temporary files
21644       --recheck    update $as_me by reconfiguring in the same conditions
21645   --file=FILE[:TEMPLATE]
21646                    instantiate the configuration file FILE
21647   --header=FILE[:TEMPLATE]
21648                    instantiate the configuration header FILE
21649
21650 Configuration files:
21651 $config_files
21652
21653 Configuration headers:
21654 $config_headers
21655
21656 Configuration commands:
21657 $config_commands
21658
21659 Report bugs to <bug-autoconf@gnu.org>."
21660 _ACEOF
21661
21662 cat >>$CONFIG_STATUS <<_ACEOF
21663 ac_cs_version="\\
21664 config.status
21665 configured by $0, generated by GNU Autoconf 2.59,
21666   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21667
21668 Copyright (C) 2003 Free Software Foundation, Inc.
21669 This config.status script is free software; the Free Software Foundation
21670 gives unlimited permission to copy, distribute and modify it."
21671 srcdir=$srcdir
21672 INSTALL="$INSTALL"
21673 _ACEOF
21674
21675 cat >>$CONFIG_STATUS <<\_ACEOF
21676 # If no file are specified by the user, then we need to provide default
21677 # value.  By we need to know if files were specified by the user.
21678 ac_need_defaults=:
21679 while test $# != 0
21680 do
21681   case $1 in
21682   --*=*)
21683     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21684     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21685     ac_shift=:
21686     ;;
21687   -*)
21688     ac_option=$1
21689     ac_optarg=$2
21690     ac_shift=shift
21691     ;;
21692   *) # This is not an option, so the user has probably given explicit
21693      # arguments.
21694      ac_option=$1
21695      ac_need_defaults=false;;
21696   esac
21697
21698   case $ac_option in
21699   # Handling of the options.
21700 _ACEOF
21701 cat >>$CONFIG_STATUS <<\_ACEOF
21702   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21703     ac_cs_recheck=: ;;
21704   --version | --vers* | -V )
21705     echo "$ac_cs_version"; exit 0 ;;
21706   --he | --h)
21707     # Conflict between --help and --header
21708     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21709 Try \`$0 --help' for more information." >&5
21710 echo "$as_me: error: ambiguous option: $1
21711 Try \`$0 --help' for more information." >&2;}
21712    { (exit 1); exit 1; }; };;
21713   --help | --hel | -h )
21714     echo "$ac_cs_usage"; exit 0 ;;
21715   --debug | --d* | -d )
21716     debug=: ;;
21717   --file | --fil | --fi | --f )
21718     $ac_shift
21719     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21720     ac_need_defaults=false;;
21721   --header | --heade | --head | --hea )
21722     $ac_shift
21723     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21724     ac_need_defaults=false;;
21725   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21726   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21727     ac_cs_silent=: ;;
21728
21729   # This is an error.
21730   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21731 Try \`$0 --help' for more information." >&5
21732 echo "$as_me: error: unrecognized option: $1
21733 Try \`$0 --help' for more information." >&2;}
21734    { (exit 1); exit 1; }; } ;;
21735
21736   *) ac_config_targets="$ac_config_targets $1" ;;
21737
21738   esac
21739   shift
21740 done
21741
21742 ac_configure_extra_args=
21743
21744 if $ac_cs_silent; then
21745   exec 6>/dev/null
21746   ac_configure_extra_args="$ac_configure_extra_args --silent"
21747 fi
21748
21749 _ACEOF
21750 cat >>$CONFIG_STATUS <<_ACEOF
21751 if \$ac_cs_recheck; then
21752   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21753   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21754 fi
21755
21756 _ACEOF
21757
21758
21759
21760
21761
21762 cat >>$CONFIG_STATUS <<\_ACEOF
21763 for ac_config_target in $ac_config_targets
21764 do
21765   case "$ac_config_target" in
21766   # Handling of arguments.
21767   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21768   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21769   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
21770   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
21771   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
21772   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
21773   "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
21774   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
21775   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
21776   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21777   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21778   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21779   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21780   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21781   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21782   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21783   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21784   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21785   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21786   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21787   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21788   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21789   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21790   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21791   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21792   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21793   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21794   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21795   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
21796   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
21797   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
21798   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21799   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21800   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21801   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21802   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21803   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
21804   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
21805   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21806   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21807   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21808   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21809   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
21810   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
21811   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21812   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21813   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21814   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21815   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21816   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21817   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21818   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21819   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21820   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
21821   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
21822   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
21823   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
21824   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
21825   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
21826   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
21827   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
21828   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
21829   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
21830   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
21831   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
21832   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
21833   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
21834   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
21835   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
21836   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
21837   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
21838   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
21839   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
21840   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
21841   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
21842   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
21843   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
21844   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
21845   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
21846   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
21847   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
21848   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
21849   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
21850   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
21851   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
21852   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
21853   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
21854   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
21855   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21856   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
21857   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
21858   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
21859   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
21860   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
21861   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
21862   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
21863   "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
21864   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
21865   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21866   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
21867   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21868 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21869    { (exit 1); exit 1; }; };;
21870   esac
21871 done
21872
21873 # If the user did not use the arguments to specify the items to instantiate,
21874 # then the envvar interface is used.  Set only those that are not.
21875 # We use the long form for the default assignment because of an extremely
21876 # bizarre bug on SunOS 4.1.3.
21877 if $ac_need_defaults; then
21878   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21879   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21880   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21881 fi
21882
21883 # Have a temporary directory for convenience.  Make it in the build tree
21884 # simply because there is no reason to put it here, and in addition,
21885 # creating and moving files from /tmp can sometimes cause problems.
21886 # Create a temporary directory, and hook for its removal unless debugging.
21887 $debug ||
21888 {
21889   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21890   trap '{ (exit 1); exit 1; }' 1 2 13 15
21891 }
21892
21893 # Create a (secure) tmp directory for tmp files.
21894
21895 {
21896   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21897   test -n "$tmp" && test -d "$tmp"
21898 }  ||
21899 {
21900   tmp=./confstat$$-$RANDOM
21901   (umask 077 && mkdir $tmp)
21902 } ||
21903 {
21904    echo "$me: cannot create a temporary directory in ." >&2
21905    { (exit 1); exit 1; }
21906 }
21907
21908 _ACEOF
21909
21910 cat >>$CONFIG_STATUS <<_ACEOF
21911
21912 #
21913 # CONFIG_FILES section.
21914 #
21915
21916 # No need to generate the scripts if there are no CONFIG_FILES.
21917 # This happens for instance when ./config.status config.h
21918 if test -n "\$CONFIG_FILES"; then
21919   # Protect against being on the right side of a sed subst in config.status.
21920   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21921    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21922 s,@SHELL@,$SHELL,;t t
21923 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21924 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21925 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21926 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21927 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21928 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21929 s,@exec_prefix@,$exec_prefix,;t t
21930 s,@prefix@,$prefix,;t t
21931 s,@program_transform_name@,$program_transform_name,;t t
21932 s,@bindir@,$bindir,;t t
21933 s,@sbindir@,$sbindir,;t t
21934 s,@libexecdir@,$libexecdir,;t t
21935 s,@datadir@,$datadir,;t t
21936 s,@sysconfdir@,$sysconfdir,;t t
21937 s,@sharedstatedir@,$sharedstatedir,;t t
21938 s,@localstatedir@,$localstatedir,;t t
21939 s,@libdir@,$libdir,;t t
21940 s,@includedir@,$includedir,;t t
21941 s,@oldincludedir@,$oldincludedir,;t t
21942 s,@infodir@,$infodir,;t t
21943 s,@mandir@,$mandir,;t t
21944 s,@build_alias@,$build_alias,;t t
21945 s,@host_alias@,$host_alias,;t t
21946 s,@target_alias@,$target_alias,;t t
21947 s,@DEFS@,$DEFS,;t t
21948 s,@ECHO_C@,$ECHO_C,;t t
21949 s,@ECHO_N@,$ECHO_N,;t t
21950 s,@ECHO_T@,$ECHO_T,;t t
21951 s,@LIBS@,$LIBS,;t t
21952 s,@BUILD_DIR@,$BUILD_DIR,;t t
21953 s,@TRUEPRG@,$TRUEPRG,;t t
21954 s,@FALSEPRG@,$FALSEPRG,;t t
21955 s,@VERSION@,$VERSION,;t t
21956 s,@DATE@,$DATE,;t t
21957 s,@LSMDATE@,$LSMDATE,;t t
21958 s,@CC@,$CC,;t t
21959 s,@CFLAGS@,$CFLAGS,;t t
21960 s,@LDFLAGS@,$LDFLAGS,;t t
21961 s,@CPPFLAGS@,$CPPFLAGS,;t t
21962 s,@ac_ct_CC@,$ac_ct_CC,;t t
21963 s,@EXEEXT@,$EXEEXT,;t t
21964 s,@OBJEXT@,$OBJEXT,;t t
21965 s,@CXX@,$CXX,;t t
21966 s,@CXXFLAGS@,$CXXFLAGS,;t t
21967 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21968 s,@CPP@,$CPP,;t t
21969 s,@EGREP@,$EGREP,;t t
21970 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21971 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21972 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21973 s,@RANLIB@,$RANLIB,;t t
21974 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21975 s,@MV@,$MV,;t t
21976 s,@RM@,$RM,;t t
21977 s,@CP@,$CP,;t t
21978 s,@SED@,$SED,;t t
21979 s,@ECHO@,$ECHO,;t t
21980 s,@CMP@,$CMP,;t t
21981 s,@TBL@,$TBL,;t t
21982 s,@AR@,$AR,;t t
21983 s,@OPENSSL@,$OPENSSL,;t t
21984 s,@MTX@,$MTX,;t t
21985 s,@PKGCONFIG@,$PKGCONFIG,;t t
21986 s,@WXCONFIG@,$WXCONFIG,;t t
21987 s,@CDRECORD@,$CDRECORD,;t t
21988 s,@PIDOF@,$PIDOF,;t t
21989 s,@AWK@,$AWK,;t t
21990 s,@ARFLAGS@,$ARFLAGS,;t t
21991 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
21992 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
21993 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
21994 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21995 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
21996 s,@build@,$build,;t t
21997 s,@build_cpu@,$build_cpu,;t t
21998 s,@build_vendor@,$build_vendor,;t t
21999 s,@build_os@,$build_os,;t t
22000 s,@host@,$host,;t t
22001 s,@host_cpu@,$host_cpu,;t t
22002 s,@host_vendor@,$host_vendor,;t t
22003 s,@host_os@,$host_os,;t t
22004 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22005 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22006 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22007 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22008 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22009 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22010 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22011 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22012 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22013 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22014 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22015 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22016 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22017 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22018 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22019 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22020 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22021 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22022 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22023 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22024 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22025 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22026 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22027 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22028 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22029 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22030 s,@MSGFMT@,$MSGFMT,;t t
22031 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22032 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22033 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22034 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22035 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22036 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22037 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22038 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22039 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22040 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22041 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22042 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22043 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22044 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22045 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22046 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22047 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22048 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22049 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22050 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22051 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22052 s,@GNOME_DIR@,$GNOME_DIR,;t t
22053 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22054 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22055 s,@WX_DIR@,$WX_DIR,;t t
22056 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22057 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22058 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22059 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22060 s,@STATIC_FD@,$STATIC_FD,;t t
22061 s,@STATIC_SD@,$STATIC_SD,;t t
22062 s,@STATIC_DIR@,$STATIC_DIR,;t t
22063 s,@STATIC_CONS@,$STATIC_CONS,;t t
22064 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22065 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22066 s,@ALL_DIRS@,$ALL_DIRS,;t t
22067 s,@CONS_INC@,$CONS_INC,;t t
22068 s,@CONS_OBJ@,$CONS_OBJ,;t t
22069 s,@CONS_SRC@,$CONS_SRC,;t t
22070 s,@CONS_LIBS@,$CONS_LIBS,;t t
22071 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22072 s,@READLINE_SRC@,$READLINE_SRC,;t t
22073 s,@CDSTL@,$CDSTL,;t t
22074 s,@working_dir@,$working_dir,;t t
22075 s,@scriptdir@,$scriptdir,;t t
22076 s,@dump_email@,$dump_email,;t t
22077 s,@job_email@,$job_email,;t t
22078 s,@smtp_host@,$smtp_host,;t t
22079 s,@piddir@,$piddir,;t t
22080 s,@subsysdir@,$subsysdir,;t t
22081 s,@baseport@,$baseport,;t t
22082 s,@dir_port@,$dir_port,;t t
22083 s,@fd_port@,$fd_port,;t t
22084 s,@sd_port@,$sd_port,;t t
22085 s,@dir_password@,$dir_password,;t t
22086 s,@fd_password@,$fd_password,;t t
22087 s,@sd_password@,$sd_password,;t t
22088 s,@mon_dir_password@,$mon_dir_password,;t t
22089 s,@mon_fd_password@,$mon_fd_password,;t t
22090 s,@mon_sd_password@,$mon_sd_password,;t t
22091 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22092 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22093 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22094 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22095 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22096 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22097 s,@dir_user@,$dir_user,;t t
22098 s,@dir_group@,$dir_group,;t t
22099 s,@sd_user@,$sd_user,;t t
22100 s,@sd_group@,$sd_group,;t t
22101 s,@fd_user@,$fd_user,;t t
22102 s,@fd_group@,$fd_group,;t t
22103 s,@SBINPERM@,$SBINPERM,;t t
22104 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22105 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22106 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22107 s,@cats@,$cats,;t t
22108 s,@DB_NAME@,$DB_NAME,;t t
22109 s,@GETCONF@,$GETCONF,;t t
22110 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22111 s,@X_CFLAGS@,$X_CFLAGS,;t t
22112 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22113 s,@X_LIBS@,$X_LIBS,;t t
22114 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22115 s,@LIBOBJS@,$LIBOBJS,;t t
22116 s,@ALLOCA@,$ALLOCA,;t t
22117 s,@FDLIBS@,$FDLIBS,;t t
22118 s,@DEBUG@,$DEBUG,;t t
22119 s,@DINCLUDE@,$DINCLUDE,;t t
22120 s,@DLIB@,$DLIB,;t t
22121 s,@DB_LIBS@,$DB_LIBS,;t t
22122 s,@WCFLAGS@,$WCFLAGS,;t t
22123 s,@WLDFLAGS@,$WLDFLAGS,;t t
22124 s,@OBJLIST@,$OBJLIST,;t t
22125 s,@hostname@,$hostname,;t t
22126 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22127 s,@PSCMD@,$PSCMD,;t t
22128 s,@WIN32@,$WIN32,;t t
22129 s,@MACOSX@,$MACOSX,;t t
22130 s,@DISTNAME@,$DISTNAME,;t t
22131 s,@DISTVER@,$DISTVER,;t t
22132 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22133 /@MCOMMON@/r $MCOMMON
22134 s,@MCOMMON@,,;t t
22135 CEOF
22136
22137 _ACEOF
22138
22139   cat >>$CONFIG_STATUS <<\_ACEOF
22140   # Split the substitutions into bite-sized pieces for seds with
22141   # small command number limits, like on Digital OSF/1 and HP-UX.
22142   ac_max_sed_lines=48
22143   ac_sed_frag=1 # Number of current file.
22144   ac_beg=1 # First line for current file.
22145   ac_end=$ac_max_sed_lines # Line after last line for current file.
22146   ac_more_lines=:
22147   ac_sed_cmds=
22148   while $ac_more_lines; do
22149     if test $ac_beg -gt 1; then
22150       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22151     else
22152       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22153     fi
22154     if test ! -s $tmp/subs.frag; then
22155       ac_more_lines=false
22156     else
22157       # The purpose of the label and of the branching condition is to
22158       # speed up the sed processing (if there are no `@' at all, there
22159       # is no need to browse any of the substitutions).
22160       # These are the two extra sed commands mentioned above.
22161       (echo ':t
22162   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22163       if test -z "$ac_sed_cmds"; then
22164         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22165       else
22166         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22167       fi
22168       ac_sed_frag=`expr $ac_sed_frag + 1`
22169       ac_beg=$ac_end
22170       ac_end=`expr $ac_end + $ac_max_sed_lines`
22171     fi
22172   done
22173   if test -z "$ac_sed_cmds"; then
22174     ac_sed_cmds=cat
22175   fi
22176 fi # test -n "$CONFIG_FILES"
22177
22178 _ACEOF
22179 cat >>$CONFIG_STATUS <<\_ACEOF
22180 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22181   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22182   case $ac_file in
22183   - | *:- | *:-:* ) # input from stdin
22184         cat >$tmp/stdin
22185         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22186         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22187   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22188         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22189   * )   ac_file_in=$ac_file.in ;;
22190   esac
22191
22192   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22193   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22194 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22195          X"$ac_file" : 'X\(//\)[^/]' \| \
22196          X"$ac_file" : 'X\(//\)$' \| \
22197          X"$ac_file" : 'X\(/\)' \| \
22198          .     : '\(.\)' 2>/dev/null ||
22199 echo X"$ac_file" |
22200     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22201           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22202           /^X\(\/\/\)$/{ s//\1/; q; }
22203           /^X\(\/\).*/{ s//\1/; q; }
22204           s/.*/./; q'`
22205   { if $as_mkdir_p; then
22206     mkdir -p "$ac_dir"
22207   else
22208     as_dir="$ac_dir"
22209     as_dirs=
22210     while test ! -d "$as_dir"; do
22211       as_dirs="$as_dir $as_dirs"
22212       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22214          X"$as_dir" : 'X\(//\)[^/]' \| \
22215          X"$as_dir" : 'X\(//\)$' \| \
22216          X"$as_dir" : 'X\(/\)' \| \
22217          .     : '\(.\)' 2>/dev/null ||
22218 echo X"$as_dir" |
22219     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22220           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22221           /^X\(\/\/\)$/{ s//\1/; q; }
22222           /^X\(\/\).*/{ s//\1/; q; }
22223           s/.*/./; q'`
22224     done
22225     test ! -n "$as_dirs" || mkdir $as_dirs
22226   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22227 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22228    { (exit 1); exit 1; }; }; }
22229
22230   ac_builddir=.
22231
22232 if test "$ac_dir" != .; then
22233   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22234   # A "../" for each directory in $ac_dir_suffix.
22235   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22236 else
22237   ac_dir_suffix= ac_top_builddir=
22238 fi
22239
22240 case $srcdir in
22241   .)  # No --srcdir option.  We are building in place.
22242     ac_srcdir=.
22243     if test -z "$ac_top_builddir"; then
22244        ac_top_srcdir=.
22245     else
22246        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22247     fi ;;
22248   [\\/]* | ?:[\\/]* )  # Absolute path.
22249     ac_srcdir=$srcdir$ac_dir_suffix;
22250     ac_top_srcdir=$srcdir ;;
22251   *) # Relative path.
22252     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22253     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22254 esac
22255
22256 # Do not use `cd foo && pwd` to compute absolute paths, because
22257 # the directories may not exist.
22258 case `pwd` in
22259 .) ac_abs_builddir="$ac_dir";;
22260 *)
22261   case "$ac_dir" in
22262   .) ac_abs_builddir=`pwd`;;
22263   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22264   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22265   esac;;
22266 esac
22267 case $ac_abs_builddir in
22268 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22269 *)
22270   case ${ac_top_builddir}. in
22271   .) ac_abs_top_builddir=$ac_abs_builddir;;
22272   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22273   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22274   esac;;
22275 esac
22276 case $ac_abs_builddir in
22277 .) ac_abs_srcdir=$ac_srcdir;;
22278 *)
22279   case $ac_srcdir in
22280   .) ac_abs_srcdir=$ac_abs_builddir;;
22281   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22282   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22283   esac;;
22284 esac
22285 case $ac_abs_builddir in
22286 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22287 *)
22288   case $ac_top_srcdir in
22289   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22290   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22291   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22292   esac;;
22293 esac
22294
22295
22296   case $INSTALL in
22297   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22298   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22299   esac
22300
22301   if test x"$ac_file" != x-; then
22302     { echo "$as_me:$LINENO: creating $ac_file" >&5
22303 echo "$as_me: creating $ac_file" >&6;}
22304     rm -f "$ac_file"
22305   fi
22306   # Let's still pretend it is `configure' which instantiates (i.e., don't
22307   # use $as_me), people would be surprised to read:
22308   #    /* config.h.  Generated by config.status.  */
22309   if test x"$ac_file" = x-; then
22310     configure_input=
22311   else
22312     configure_input="$ac_file.  "
22313   fi
22314   configure_input=$configure_input"Generated from `echo $ac_file_in |
22315                                      sed 's,.*/,,'` by configure."
22316
22317   # First look for the input files in the build tree, otherwise in the
22318   # src tree.
22319   ac_file_inputs=`IFS=:
22320     for f in $ac_file_in; do
22321       case $f in
22322       -) echo $tmp/stdin ;;
22323       [\\/$]*)
22324          # Absolute (can't be DOS-style, as IFS=:)
22325          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22326 echo "$as_me: error: cannot find input file: $f" >&2;}
22327    { (exit 1); exit 1; }; }
22328          echo "$f";;
22329       *) # Relative
22330          if test -f "$f"; then
22331            # Build tree
22332            echo "$f"
22333          elif test -f "$srcdir/$f"; then
22334            # Source tree
22335            echo "$srcdir/$f"
22336          else
22337            # /dev/null tree
22338            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22339 echo "$as_me: error: cannot find input file: $f" >&2;}
22340    { (exit 1); exit 1; }; }
22341          fi;;
22342       esac
22343     done` || { (exit 1); exit 1; }
22344 _ACEOF
22345 cat >>$CONFIG_STATUS <<_ACEOF
22346   sed "$ac_vpsub
22347 $extrasub
22348 _ACEOF
22349 cat >>$CONFIG_STATUS <<\_ACEOF
22350 :t
22351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22352 s,@configure_input@,$configure_input,;t t
22353 s,@srcdir@,$ac_srcdir,;t t
22354 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22355 s,@top_srcdir@,$ac_top_srcdir,;t t
22356 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22357 s,@builddir@,$ac_builddir,;t t
22358 s,@abs_builddir@,$ac_abs_builddir,;t t
22359 s,@top_builddir@,$ac_top_builddir,;t t
22360 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22361 s,@INSTALL@,$ac_INSTALL,;t t
22362 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22363   rm -f $tmp/stdin
22364   if test x"$ac_file" != x-; then
22365     mv $tmp/out $ac_file
22366   else
22367     cat $tmp/out
22368     rm -f $tmp/out
22369   fi
22370
22371 done
22372 _ACEOF
22373 cat >>$CONFIG_STATUS <<\_ACEOF
22374
22375 #
22376 # CONFIG_HEADER section.
22377 #
22378
22379 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22380 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22381 #
22382 # ac_d sets the value in "#define NAME VALUE" lines.
22383 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22384 ac_dB='[         ].*$,\1#\2'
22385 ac_dC=' '
22386 ac_dD=',;t'
22387 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22388 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22389 ac_uB='$,\1#\2define\3'
22390 ac_uC=' '
22391 ac_uD=',;t'
22392
22393 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22394   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22395   case $ac_file in
22396   - | *:- | *:-:* ) # input from stdin
22397         cat >$tmp/stdin
22398         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22399         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22400   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22401         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22402   * )   ac_file_in=$ac_file.in ;;
22403   esac
22404
22405   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22406 echo "$as_me: creating $ac_file" >&6;}
22407
22408   # First look for the input files in the build tree, otherwise in the
22409   # src tree.
22410   ac_file_inputs=`IFS=:
22411     for f in $ac_file_in; do
22412       case $f in
22413       -) echo $tmp/stdin ;;
22414       [\\/$]*)
22415          # Absolute (can't be DOS-style, as IFS=:)
22416          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22417 echo "$as_me: error: cannot find input file: $f" >&2;}
22418    { (exit 1); exit 1; }; }
22419          # Do quote $f, to prevent DOS paths from being IFS'd.
22420          echo "$f";;
22421       *) # Relative
22422          if test -f "$f"; then
22423            # Build tree
22424            echo "$f"
22425          elif test -f "$srcdir/$f"; then
22426            # Source tree
22427            echo "$srcdir/$f"
22428          else
22429            # /dev/null tree
22430            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22431 echo "$as_me: error: cannot find input file: $f" >&2;}
22432    { (exit 1); exit 1; }; }
22433          fi;;
22434       esac
22435     done` || { (exit 1); exit 1; }
22436   # Remove the trailing spaces.
22437   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22438
22439 _ACEOF
22440
22441 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22442 # `conftest.undefs', that substitutes the proper values into
22443 # config.h.in to produce config.h.  The first handles `#define'
22444 # templates, and the second `#undef' templates.
22445 # And first: Protect against being on the right side of a sed subst in
22446 # config.status.  Protect against being in an unquoted here document
22447 # in config.status.
22448 rm -f conftest.defines conftest.undefs
22449 # Using a here document instead of a string reduces the quoting nightmare.
22450 # Putting comments in sed scripts is not portable.
22451 #
22452 # `end' is used to avoid that the second main sed command (meant for
22453 # 0-ary CPP macros) applies to n-ary macro definitions.
22454 # See the Autoconf documentation for `clear'.
22455 cat >confdef2sed.sed <<\_ACEOF
22456 s/[\\&,]/\\&/g
22457 s,[\\$`],\\&,g
22458 t clear
22459 : clear
22460 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22461 t end
22462 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22463 : end
22464 _ACEOF
22465 # If some macros were called several times there might be several times
22466 # the same #defines, which is useless.  Nevertheless, we may not want to
22467 # sort them, since we want the *last* AC-DEFINE to be honored.
22468 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22469 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22470 rm -f confdef2sed.sed
22471
22472 # This sed command replaces #undef with comments.  This is necessary, for
22473 # example, in the case of _POSIX_SOURCE, which is predefined and required
22474 # on some systems where configure will not decide to define it.
22475 cat >>conftest.undefs <<\_ACEOF
22476 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22477 _ACEOF
22478
22479 # Break up conftest.defines because some shells have a limit on the size
22480 # of here documents, and old seds have small limits too (100 cmds).
22481 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22482 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22483 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22484 echo '  :' >>$CONFIG_STATUS
22485 rm -f conftest.tail
22486 while grep . conftest.defines >/dev/null
22487 do
22488   # Write a limited-size here document to $tmp/defines.sed.
22489   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22490   # Speed up: don't consider the non `#define' lines.
22491   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22492   # Work around the forget-to-reset-the-flag bug.
22493   echo 't clr' >>$CONFIG_STATUS
22494   echo ': clr' >>$CONFIG_STATUS
22495   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22496   echo 'CEOF
22497   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22498   rm -f $tmp/in
22499   mv $tmp/out $tmp/in
22500 ' >>$CONFIG_STATUS
22501   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22502   rm -f conftest.defines
22503   mv conftest.tail conftest.defines
22504 done
22505 rm -f conftest.defines
22506 echo '  fi # grep' >>$CONFIG_STATUS
22507 echo >>$CONFIG_STATUS
22508
22509 # Break up conftest.undefs because some shells have a limit on the size
22510 # of here documents, and old seds have small limits too (100 cmds).
22511 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22512 rm -f conftest.tail
22513 while grep . conftest.undefs >/dev/null
22514 do
22515   # Write a limited-size here document to $tmp/undefs.sed.
22516   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22517   # Speed up: don't consider the non `#undef'
22518   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22519   # Work around the forget-to-reset-the-flag bug.
22520   echo 't clr' >>$CONFIG_STATUS
22521   echo ': clr' >>$CONFIG_STATUS
22522   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22523   echo 'CEOF
22524   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22525   rm -f $tmp/in
22526   mv $tmp/out $tmp/in
22527 ' >>$CONFIG_STATUS
22528   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22529   rm -f conftest.undefs
22530   mv conftest.tail conftest.undefs
22531 done
22532 rm -f conftest.undefs
22533
22534 cat >>$CONFIG_STATUS <<\_ACEOF
22535   # Let's still pretend it is `configure' which instantiates (i.e., don't
22536   # use $as_me), people would be surprised to read:
22537   #    /* config.h.  Generated by config.status.  */
22538   if test x"$ac_file" = x-; then
22539     echo "/* Generated by configure.  */" >$tmp/config.h
22540   else
22541     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22542   fi
22543   cat $tmp/in >>$tmp/config.h
22544   rm -f $tmp/in
22545   if test x"$ac_file" != x-; then
22546     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22547       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22548 echo "$as_me: $ac_file is unchanged" >&6;}
22549     else
22550       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22551 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22552          X"$ac_file" : 'X\(//\)[^/]' \| \
22553          X"$ac_file" : 'X\(//\)$' \| \
22554          X"$ac_file" : 'X\(/\)' \| \
22555          .     : '\(.\)' 2>/dev/null ||
22556 echo X"$ac_file" |
22557     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22558           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22559           /^X\(\/\/\)$/{ s//\1/; q; }
22560           /^X\(\/\).*/{ s//\1/; q; }
22561           s/.*/./; q'`
22562       { if $as_mkdir_p; then
22563     mkdir -p "$ac_dir"
22564   else
22565     as_dir="$ac_dir"
22566     as_dirs=
22567     while test ! -d "$as_dir"; do
22568       as_dirs="$as_dir $as_dirs"
22569       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22571          X"$as_dir" : 'X\(//\)[^/]' \| \
22572          X"$as_dir" : 'X\(//\)$' \| \
22573          X"$as_dir" : 'X\(/\)' \| \
22574          .     : '\(.\)' 2>/dev/null ||
22575 echo X"$as_dir" |
22576     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22577           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22578           /^X\(\/\/\)$/{ s//\1/; q; }
22579           /^X\(\/\).*/{ s//\1/; q; }
22580           s/.*/./; q'`
22581     done
22582     test ! -n "$as_dirs" || mkdir $as_dirs
22583   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22584 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22585    { (exit 1); exit 1; }; }; }
22586
22587       rm -f $ac_file
22588       mv $tmp/config.h $ac_file
22589     fi
22590   else
22591     cat $tmp/config.h
22592     rm -f $tmp/config.h
22593   fi
22594 done
22595 _ACEOF
22596 cat >>$CONFIG_STATUS <<\_ACEOF
22597
22598 #
22599 # CONFIG_COMMANDS section.
22600 #
22601 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22602   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22603   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22604   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22605 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22606          X"$ac_dest" : 'X\(//\)[^/]' \| \
22607          X"$ac_dest" : 'X\(//\)$' \| \
22608          X"$ac_dest" : 'X\(/\)' \| \
22609          .     : '\(.\)' 2>/dev/null ||
22610 echo X"$ac_dest" |
22611     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22612           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22613           /^X\(\/\/\)$/{ s//\1/; q; }
22614           /^X\(\/\).*/{ s//\1/; q; }
22615           s/.*/./; q'`
22616   { if $as_mkdir_p; then
22617     mkdir -p "$ac_dir"
22618   else
22619     as_dir="$ac_dir"
22620     as_dirs=
22621     while test ! -d "$as_dir"; do
22622       as_dirs="$as_dir $as_dirs"
22623       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22625          X"$as_dir" : 'X\(//\)[^/]' \| \
22626          X"$as_dir" : 'X\(//\)$' \| \
22627          X"$as_dir" : 'X\(/\)' \| \
22628          .     : '\(.\)' 2>/dev/null ||
22629 echo X"$as_dir" |
22630     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22631           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22632           /^X\(\/\/\)$/{ s//\1/; q; }
22633           /^X\(\/\).*/{ s//\1/; q; }
22634           s/.*/./; q'`
22635     done
22636     test ! -n "$as_dirs" || mkdir $as_dirs
22637   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22638 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22639    { (exit 1); exit 1; }; }; }
22640
22641   ac_builddir=.
22642
22643 if test "$ac_dir" != .; then
22644   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22645   # A "../" for each directory in $ac_dir_suffix.
22646   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22647 else
22648   ac_dir_suffix= ac_top_builddir=
22649 fi
22650
22651 case $srcdir in
22652   .)  # No --srcdir option.  We are building in place.
22653     ac_srcdir=.
22654     if test -z "$ac_top_builddir"; then
22655        ac_top_srcdir=.
22656     else
22657        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22658     fi ;;
22659   [\\/]* | ?:[\\/]* )  # Absolute path.
22660     ac_srcdir=$srcdir$ac_dir_suffix;
22661     ac_top_srcdir=$srcdir ;;
22662   *) # Relative path.
22663     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22664     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22665 esac
22666
22667 # Do not use `cd foo && pwd` to compute absolute paths, because
22668 # the directories may not exist.
22669 case `pwd` in
22670 .) ac_abs_builddir="$ac_dir";;
22671 *)
22672   case "$ac_dir" in
22673   .) ac_abs_builddir=`pwd`;;
22674   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22675   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22676   esac;;
22677 esac
22678 case $ac_abs_builddir in
22679 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22680 *)
22681   case ${ac_top_builddir}. in
22682   .) ac_abs_top_builddir=$ac_abs_builddir;;
22683   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22684   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22685   esac;;
22686 esac
22687 case $ac_abs_builddir in
22688 .) ac_abs_srcdir=$ac_srcdir;;
22689 *)
22690   case $ac_srcdir in
22691   .) ac_abs_srcdir=$ac_abs_builddir;;
22692   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22693   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22694   esac;;
22695 esac
22696 case $ac_abs_builddir in
22697 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22698 *)
22699   case $ac_top_srcdir in
22700   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22701   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22702   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22703   esac;;
22704 esac
22705
22706
22707   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22708 echo "$as_me: executing $ac_dest commands" >&6;}
22709   case $ac_dest in
22710     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22711  ;;
22712   esac
22713 done
22714 _ACEOF
22715
22716 cat >>$CONFIG_STATUS <<\_ACEOF
22717
22718 { (exit 0); exit 0; }
22719 _ACEOF
22720 chmod +x $CONFIG_STATUS
22721 ac_clean_files=$ac_clean_files_save
22722
22723
22724 # configure is writing to config.log, and then calls config.status.
22725 # config.status does its own redirection, appending to config.log.
22726 # Unfortunately, on DOS this fails, as config.log is still kept open
22727 # by configure, so config.status won't be able to write to it; its
22728 # output is simply discarded.  So we exec the FD to /dev/null,
22729 # effectively closing config.log, so it can be properly (re)opened and
22730 # appended to by config.status.  When coming back to configure, we
22731 # need to make the FD available again.
22732 if test "$no_create" != yes; then
22733   ac_cs_success=:
22734   ac_config_status_args=
22735   test "$silent" = yes &&
22736     ac_config_status_args="$ac_config_status_args --quiet"
22737   exec 5>/dev/null
22738   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22739   exec 5>>config.log
22740   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22741   # would make configure fail if this is the last instruction.
22742   $ac_cs_success || { (exit 1); exit 1; }
22743 fi
22744
22745
22746 cd scripts
22747 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22748 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22749 cd ..
22750
22751 c=src/cats
22752
22753 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
22754 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
22755
22756 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
22757 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
22758
22759 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
22760 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
22761
22762 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
22763 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
22764
22765 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
22766 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
22767
22768 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22769 chmod 755 $c/sqlite
22770 chmod 755 $c/mysql
22771
22772 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22773    largefile_support="yes"
22774 fi
22775
22776 #
22777 # A whole lot of hand springs to get the compiler version.
22778 #  This is because gcc changed the output in version 3.0
22779 #
22780 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22781 if test "x${CCVERSION}" = "x" ; then
22782   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22783 fi
22784 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22785 if test x"${CXXVERSION}" = x ; then
22786   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22787 fi
22788
22789 if test "x${subsysdir}" = "x${sbindir}" ; then
22790    echo " "
22791    echo " "
22792    echo "You have set --sbindir and --with-subsys-dir"
22793    echo "  both equal to: ${subsysdir} "
22794    echo "  This is not permitted. Please reconfigure."
22795    echo " "
22796    echo "Aborting configuration ..."
22797    echo " "
22798    echo " "
22799    exit 1
22800 fi
22801
22802 if test "x${db_name}" = "xInternal" ; then
22803    echo " "
22804    echo " "
22805    echo "You have not specified either --enable-client-only or one of the"
22806    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
22807    echo "  This is not permitted. Please reconfigure."
22808    echo " "
22809    echo "Aborting the configuration ..."
22810    echo " "
22811    echo " "
22812    exit 1
22813 fi
22814
22815 echo "
22816 Configuration on `date`:
22817
22818   Host:                       $host -- ${DISTNAME} ${DISTVER}
22819   Bacula version:             ${VERSION} (${DATE})
22820   Source code location:       ${srcdir}
22821   Install binaries:           ${sbindir}
22822   Install config files:       ${sysconfdir}
22823   Scripts directory:          ${scriptdir}
22824   Working directory:          ${working_dir}
22825   PID directory:              ${piddir}
22826   Subsys directory:           ${subsysdir}
22827   C Compiler:                 ${CC} ${CCVERSION}
22828   C++ Compiler:               ${CXX} ${CXXVERSION}
22829   Compiler flags:             ${WCFLAGS} ${CFLAGS}
22830   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
22831   Libraries:                  ${LIBS}
22832   Statically Linked Tools:    ${support_static_tools}
22833   Statically Linked FD:       ${support_static_fd}
22834   Statically Linked SD:       ${support_static_sd}
22835   Statically Linked DIR:      ${support_static_dir}
22836   Statically Linked CONS:     ${support_static_cons}
22837   Database type:              ${db_name}
22838   Database lib:               ${DB_LIBS}
22839
22840   Job Output Email:           ${job_email}
22841   Traceback Email:            ${dump_email}
22842   SMTP Host Address:          ${smtp_host}
22843
22844   Director Port:              ${dir_port}
22845   File daemon Port:           ${fd_port}
22846   Storage daemon Port:        ${sd_port}
22847
22848   Director User:              ${dir_user}
22849   Director Group:             ${dir_group}
22850   Storage Daemon User:        ${sd_user}
22851   Storage DaemonGroup:        ${sd_group}
22852   File Daemon User:           ${fd_user}
22853   File Daemon Group:          ${fd_group}
22854
22855   SQL binaries Directory      ${SQL_BINDIR}
22856
22857   Large file support:         $largefile_support
22858   Bacula conio support:       ${got_conio} ${CONS_LIBS}
22859   readline support:           ${got_readline} ${PRTREADLINE_SRC}
22860   TCP Wrappers support:       ${TCPW_MSG}
22861   ZLIB support:               ${have_zlib}
22862   enable-smartalloc:          ${support_smartalloc}
22863   enable-gnome:               ${support_gnome} ${gnome_version}
22864   enable-wx-console:          ${support_wx_console}
22865   enable-tray-monitor:        ${support_tray_monitor}
22866   client-only:                ${build_client_only}
22867   ACL support:                ${have_acl}
22868
22869   " > config.out
22870
22871 cat config.out
22872
22873 # old stuff
22874 # cweb support:               ${got_cweb} ${CWEB_SRC}
22875 # gmp support:                ${got_gmp} ${GMP_SRC}