]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
29Jul05
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DF MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures this package to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --enable-gnome          enable build of gnome-console GUI disabled
868   --enable-wx-console     enable build of wxWidgets console disabled
869   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
870   --enable-smartalloc     enable smartalloc debugging support disabled
871   --enable-static-tools   enable static tape tools disabled
872   --enable-static-fd      enable static File daemon disabled
873   --enable-static-sd      enable static Storage daemon disabled
874   --enable-static-dir     enable static Director disabled
875   --enable-static-cons    enable static Console disabled
876   --enable-client-only    build client (File daemon) only disabled
877   --disable-conio            disable conio support enabled
878
879   --disable-readline      disable readline support disable
880
881   --disable-largefile     omit support for large files
882
883 Optional Packages:
884   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
885   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
886  --with-readline=DIR             specify readline library directory
887
888   --with-python=DIR       Include Python support.  DIR is the Python base
889                           install directory, default is to search through
890                           a number of common places for the Python files.
891   --with-tcp-wrappers=DIR        enable tcpwrappers support
892   --with-openssl[=DIR]
893                           Include OpenSSL support. DIR is the OpenSSL base
894   --with-working-dir=PATH        specify path of Bacula working directory
895   --with-scriptdir=PATH    specify path of Bacula scripts directory
896   --with-dump-email=EMAIL        dump email address
897   --with-job-email=EMAIL         job output email address
898   --with-smtp-host=HOST          SMTP mail host address
899   --with-pid-dir=PATH            specify location of Bacula pid files
900   --with-subsys-dir=PATH         specify location of Bacula subsys file
901   --with-baseport=PORT           specify base port address for daemons
902   --with-dir-password=PASSWORD   specify Director's password
903   --with-fd-password=PASSWORD    specify Client's password
904   --with-sd-password=PASSWORD    specify Storage daemon's password
905   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
906   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
907   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
908   --with-dir-user=USER           specify user for Director daemon
909   --with-dir-group=GROUP                 specify group for Director daemon
910   --with-sd-user=USER            specify user for Storage daemon
911   --with-sd-group=GROUP          specify group for Storage daemon
912   --with-fd-user=USER            specify user for File daemon
913   --with-fd-group=GROUP          specify group for File daemon
914   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
915   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
916                           base install directory, defaults to /usr/local/pgsql
917
918   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
919                           install directory, default is to search through
920                           a number of common places for the MySQL files.
921
922   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
923                           install directory, default is to search through
924                           a number of common places for the MySQL files.
925
926   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
927                           install directory, default is to search through
928                           a number of common places for the SQLite3 files.
929
930   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
931                           install directory, default is to search through
932                           a number of common places for the SQLite files.
933   --with-x                use the X Window System
934
935 Some influential environment variables:
936   CC          C compiler command
937   CFLAGS      C compiler flags
938   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
939               nonstandard directory <lib dir>
940   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
941               headers in a nonstandard directory <include dir>
942   CXX         C++ compiler command
943   CXXFLAGS    C++ compiler flags
944   CPP         C preprocessor
945   WXCONFIG    wx-config command. On some systems, you must set it to
946               wx-config-2.6 to use wxWidgets 2.6.
947   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
948
949 Use these variables to override the choices made by `configure' or to help
950 it to find libraries and programs with nonstandard names/locations.
951
952 _ACEOF
953 fi
954
955 if test "$ac_init_help" = "recursive"; then
956   # If there are subdirs, report their specific --help.
957   ac_popdir=`pwd`
958   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
959     test -d $ac_dir || continue
960     ac_builddir=.
961
962 if test "$ac_dir" != .; then
963   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
964   # A "../" for each directory in $ac_dir_suffix.
965   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
966 else
967   ac_dir_suffix= ac_top_builddir=
968 fi
969
970 case $srcdir in
971   .)  # No --srcdir option.  We are building in place.
972     ac_srcdir=.
973     if test -z "$ac_top_builddir"; then
974        ac_top_srcdir=.
975     else
976        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
977     fi ;;
978   [\\/]* | ?:[\\/]* )  # Absolute path.
979     ac_srcdir=$srcdir$ac_dir_suffix;
980     ac_top_srcdir=$srcdir ;;
981   *) # Relative path.
982     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
983     ac_top_srcdir=$ac_top_builddir$srcdir ;;
984 esac
985
986 # Do not use `cd foo && pwd` to compute absolute paths, because
987 # the directories may not exist.
988 case `pwd` in
989 .) ac_abs_builddir="$ac_dir";;
990 *)
991   case "$ac_dir" in
992   .) ac_abs_builddir=`pwd`;;
993   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
994   *) ac_abs_builddir=`pwd`/"$ac_dir";;
995   esac;;
996 esac
997 case $ac_abs_builddir in
998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
999 *)
1000   case ${ac_top_builddir}. in
1001   .) ac_abs_top_builddir=$ac_abs_builddir;;
1002   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1003   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1004   esac;;
1005 esac
1006 case $ac_abs_builddir in
1007 .) ac_abs_srcdir=$ac_srcdir;;
1008 *)
1009   case $ac_srcdir in
1010   .) ac_abs_srcdir=$ac_abs_builddir;;
1011   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1012   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1013   esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1017 *)
1018   case $ac_top_srcdir in
1019   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1020   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1021   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1022   esac;;
1023 esac
1024
1025     cd $ac_dir
1026     # Check for guested configure; otherwise get Cygnus style configure.
1027     if test -f $ac_srcdir/configure.gnu; then
1028       echo
1029       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1030     elif test -f $ac_srcdir/configure; then
1031       echo
1032       $SHELL $ac_srcdir/configure  --help=recursive
1033     elif test -f $ac_srcdir/configure.ac ||
1034            test -f $ac_srcdir/configure.in; then
1035       echo
1036       $ac_configure --help
1037     else
1038       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1039     fi
1040     cd $ac_popdir
1041   done
1042 fi
1043
1044 test -n "$ac_init_help" && exit 0
1045 if $ac_init_version; then
1046   cat <<\_ACEOF
1047
1048 Copyright (C) 2003 Free Software Foundation, Inc.
1049 This configure script is free software; the Free Software Foundation
1050 gives unlimited permission to copy, distribute and modify it.
1051 _ACEOF
1052   exit 0
1053 fi
1054 exec 5>config.log
1055 cat >&5 <<_ACEOF
1056 This file contains any messages produced by compilers while
1057 running configure, to aid debugging if configure makes a mistake.
1058
1059 It was created by $as_me, which was
1060 generated by GNU Autoconf 2.59.  Invocation command line was
1061
1062   $ $0 $@
1063
1064 _ACEOF
1065 {
1066 cat <<_ASUNAME
1067 ## --------- ##
1068 ## Platform. ##
1069 ## --------- ##
1070
1071 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1072 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1073 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1074 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1075 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1076
1077 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1078 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1079
1080 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1081 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1082 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1083 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1084 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1085 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1086 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1087
1088 _ASUNAME
1089
1090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1091 for as_dir in $PATH
1092 do
1093   IFS=$as_save_IFS
1094   test -z "$as_dir" && as_dir=.
1095   echo "PATH: $as_dir"
1096 done
1097
1098 } >&5
1099
1100 cat >&5 <<_ACEOF
1101
1102
1103 ## ----------- ##
1104 ## Core tests. ##
1105 ## ----------- ##
1106
1107 _ACEOF
1108
1109
1110 # Keep a trace of the command line.
1111 # Strip out --no-create and --no-recursion so they do not pile up.
1112 # Strip out --silent because we don't want to record it for future runs.
1113 # Also quote any args containing shell meta-characters.
1114 # Make two passes to allow for proper duplicate-argument suppression.
1115 ac_configure_args=
1116 ac_configure_args0=
1117 ac_configure_args1=
1118 ac_sep=
1119 ac_must_keep_next=false
1120 for ac_pass in 1 2
1121 do
1122   for ac_arg
1123   do
1124     case $ac_arg in
1125     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1126     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127     | -silent | --silent | --silen | --sile | --sil)
1128       continue ;;
1129     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1130       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1131     esac
1132     case $ac_pass in
1133     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1134     2)
1135       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1136       if test $ac_must_keep_next = true; then
1137         ac_must_keep_next=false # Got value, back to normal.
1138       else
1139         case $ac_arg in
1140           *=* | --config-cache | -C | -disable-* | --disable-* \
1141           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1142           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1143           | -with-* | --with-* | -without-* | --without-* | --x)
1144             case "$ac_configure_args0 " in
1145               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1146             esac
1147             ;;
1148           -* ) ac_must_keep_next=true ;;
1149         esac
1150       fi
1151       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1152       # Get rid of the leading space.
1153       ac_sep=" "
1154       ;;
1155     esac
1156   done
1157 done
1158 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1159 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1160
1161 # When interrupted or exit'd, cleanup temporary files, and complete
1162 # config.log.  We remove comments because anyway the quotes in there
1163 # would cause problems or look ugly.
1164 # WARNING: Be sure not to use single quotes in there, as some shells,
1165 # such as our DU 5.0 friend, will then `close' the trap.
1166 trap 'exit_status=$?
1167   # Save into config.log some information that might help in debugging.
1168   {
1169     echo
1170
1171     cat <<\_ASBOX
1172 ## ---------------- ##
1173 ## Cache variables. ##
1174 ## ---------------- ##
1175 _ASBOX
1176     echo
1177     # The following way of writing the cache mishandles newlines in values,
1178 {
1179   (set) 2>&1 |
1180     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1181     *ac_space=\ *)
1182       sed -n \
1183         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1184           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1185       ;;
1186     *)
1187       sed -n \
1188         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1189       ;;
1190     esac;
1191 }
1192     echo
1193
1194     cat <<\_ASBOX
1195 ## ----------------- ##
1196 ## Output variables. ##
1197 ## ----------------- ##
1198 _ASBOX
1199     echo
1200     for ac_var in $ac_subst_vars
1201     do
1202       eval ac_val=$`echo $ac_var`
1203       echo "$ac_var='"'"'$ac_val'"'"'"
1204     done | sort
1205     echo
1206
1207     if test -n "$ac_subst_files"; then
1208       cat <<\_ASBOX
1209 ## ------------- ##
1210 ## Output files. ##
1211 ## ------------- ##
1212 _ASBOX
1213       echo
1214       for ac_var in $ac_subst_files
1215       do
1216         eval ac_val=$`echo $ac_var`
1217         echo "$ac_var='"'"'$ac_val'"'"'"
1218       done | sort
1219       echo
1220     fi
1221
1222     if test -s confdefs.h; then
1223       cat <<\_ASBOX
1224 ## ----------- ##
1225 ## confdefs.h. ##
1226 ## ----------- ##
1227 _ASBOX
1228       echo
1229       sed "/^$/d" confdefs.h | sort
1230       echo
1231     fi
1232     test "$ac_signal" != 0 &&
1233       echo "$as_me: caught signal $ac_signal"
1234     echo "$as_me: exit $exit_status"
1235   } >&5
1236   rm -f core *.core &&
1237   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1238     exit $exit_status
1239      ' 0
1240 for ac_signal in 1 2 13 15; do
1241   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1242 done
1243 ac_signal=0
1244
1245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1246 rm -rf conftest* confdefs.h
1247 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1248 echo >confdefs.h
1249
1250 # Predefined preprocessor variables.
1251
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_NAME "$PACKAGE_NAME"
1254 _ACEOF
1255
1256
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1259 _ACEOF
1260
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1264 _ACEOF
1265
1266
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_STRING "$PACKAGE_STRING"
1269 _ACEOF
1270
1271
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1274 _ACEOF
1275
1276
1277 # Let the site file select an alternate cache file if it wants to.
1278 # Prefer explicitly selected file to automatically selected ones.
1279 if test -z "$CONFIG_SITE"; then
1280   if test "x$prefix" != xNONE; then
1281     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1282   else
1283     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1284   fi
1285 fi
1286 for ac_site_file in $CONFIG_SITE; do
1287   if test -r "$ac_site_file"; then
1288     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1289 echo "$as_me: loading site script $ac_site_file" >&6;}
1290     sed 's/^/| /' "$ac_site_file" >&5
1291     . "$ac_site_file"
1292   fi
1293 done
1294
1295 if test -r "$cache_file"; then
1296   # Some versions of bash will fail to source /dev/null (special
1297   # files actually), so we avoid doing that.
1298   if test -f "$cache_file"; then
1299     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1300 echo "$as_me: loading cache $cache_file" >&6;}
1301     case $cache_file in
1302       [\\/]* | ?:[\\/]* ) . $cache_file;;
1303       *)                      . ./$cache_file;;
1304     esac
1305   fi
1306 else
1307   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1308 echo "$as_me: creating cache $cache_file" >&6;}
1309   >$cache_file
1310 fi
1311
1312 # Check that the precious variables saved in the cache have kept the same
1313 # value.
1314 ac_cache_corrupted=false
1315 for ac_var in `(set) 2>&1 |
1316                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1317   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1318   eval ac_new_set=\$ac_env_${ac_var}_set
1319   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1320   eval ac_new_val="\$ac_env_${ac_var}_value"
1321   case $ac_old_set,$ac_new_set in
1322     set,)
1323       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1325       ac_cache_corrupted=: ;;
1326     ,set)
1327       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1328 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1329       ac_cache_corrupted=: ;;
1330     ,);;
1331     *)
1332       if test "x$ac_old_val" != "x$ac_new_val"; then
1333         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1334 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1335         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1336 echo "$as_me:   former value:  $ac_old_val" >&2;}
1337         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1338 echo "$as_me:   current value: $ac_new_val" >&2;}
1339         ac_cache_corrupted=:
1340       fi;;
1341   esac
1342   # Pass precious variables to config.status.
1343   if test "$ac_new_set" = set; then
1344     case $ac_new_val in
1345     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1346       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1347     *) ac_arg=$ac_var=$ac_new_val ;;
1348     esac
1349     case " $ac_configure_args " in
1350       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1351       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1352     esac
1353   fi
1354 done
1355 if $ac_cache_corrupted; then
1356   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1357 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1358   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1359 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1360    { (exit 1); exit 1; }; }
1361 fi
1362
1363 ac_ext=c
1364 ac_cpp='$CPP $CPPFLAGS'
1365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387 BUILD_DIR=`pwd`
1388 cd ..
1389 TOP_DIR=`pwd`
1390 cd ${BUILD_DIR}
1391
1392 ac_aux_dir=
1393 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1394   if test -f $ac_dir/install-sh; then
1395     ac_aux_dir=$ac_dir
1396     ac_install_sh="$ac_aux_dir/install-sh -c"
1397     break
1398   elif test -f $ac_dir/install.sh; then
1399     ac_aux_dir=$ac_dir
1400     ac_install_sh="$ac_aux_dir/install.sh -c"
1401     break
1402   elif test -f $ac_dir/shtool; then
1403     ac_aux_dir=$ac_dir
1404     ac_install_sh="$ac_aux_dir/shtool install -c"
1405     break
1406   fi
1407 done
1408 if test -z "$ac_aux_dir"; then
1409   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1410 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1411    { (exit 1); exit 1; }; }
1412 fi
1413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1416
1417           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1418
1419
1420
1421
1422
1423 for ac_prog in true
1424 do
1425   # Extract the first word of "$ac_prog", so it can be a program name with args.
1426 set dummy $ac_prog; ac_word=$2
1427 echo "$as_me:$LINENO: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1430   echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432   case $TRUEPRG in
1433   [\\/]* | ?:[\\/]*)
1434   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1435   ;;
1436   *)
1437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438 for as_dir in $PATH
1439 do
1440   IFS=$as_save_IFS
1441   test -z "$as_dir" && as_dir=.
1442   for ac_exec_ext in '' $ac_executable_extensions; do
1443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446     break 2
1447   fi
1448 done
1449 done
1450
1451   ;;
1452 esac
1453 fi
1454 TRUEPRG=$ac_cv_path_TRUEPRG
1455
1456 if test -n "$TRUEPRG"; then
1457   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1458 echo "${ECHO_T}$TRUEPRG" >&6
1459 else
1460   echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1462 fi
1463
1464   test -n "$TRUEPRG" && break
1465 done
1466 test -n "$TRUEPRG" || TRUEPRG=":"
1467
1468 for ac_prog in false
1469 do
1470   # Extract the first word of "$ac_prog", so it can be a program name with args.
1471 set dummy $ac_prog; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1475   echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477   case $FALSEPRG in
1478   [\\/]* | ?:[\\/]*)
1479   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1480   ;;
1481   *)
1482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1484 do
1485   IFS=$as_save_IFS
1486   test -z "$as_dir" && as_dir=.
1487   for ac_exec_ext in '' $ac_executable_extensions; do
1488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491     break 2
1492   fi
1493 done
1494 done
1495
1496   ;;
1497 esac
1498 fi
1499 FALSEPRG=$ac_cv_path_FALSEPRG
1500
1501 if test -n "$FALSEPRG"; then
1502   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1503 echo "${ECHO_T}$FALSEPRG" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509   test -n "$FALSEPRG" && break
1510 done
1511 test -n "$FALSEPRG" || FALSEPRG=":"
1512
1513
1514 #AC_CANONICAL_HOST
1515
1516 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1518 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1519 echo "configuring for bacula $VERSION ($DATE)"
1520
1521
1522
1523 ac_ext=c
1524 ac_cpp='$CPP $CPPFLAGS'
1525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 if test -n "$ac_tool_prefix"; then
1529   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_CC+set}" = set; then
1534   echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536   if test -n "$CC"; then
1537   ac_cv_prog_CC="$CC" # Let the user override the test.
1538 else
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 for as_dir in $PATH
1541 do
1542   IFS=$as_save_IFS
1543   test -z "$as_dir" && as_dir=.
1544   for ac_exec_ext in '' $ac_executable_extensions; do
1545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548     break 2
1549   fi
1550 done
1551 done
1552
1553 fi
1554 fi
1555 CC=$ac_cv_prog_CC
1556 if test -n "$CC"; then
1557   echo "$as_me:$LINENO: result: $CC" >&5
1558 echo "${ECHO_T}$CC" >&6
1559 else
1560   echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1562 fi
1563
1564 fi
1565 if test -z "$ac_cv_prog_CC"; then
1566   ac_ct_CC=$CC
1567   # Extract the first word of "gcc", so it can be a program name with args.
1568 set dummy gcc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572   echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574   if test -n "$ac_ct_CC"; then
1575   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1576 else
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1579 do
1580   IFS=$as_save_IFS
1581   test -z "$as_dir" && as_dir=.
1582   for ac_exec_ext in '' $ac_executable_extensions; do
1583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584     ac_cv_prog_ac_ct_CC="gcc"
1585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586     break 2
1587   fi
1588 done
1589 done
1590
1591 fi
1592 fi
1593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594 if test -n "$ac_ct_CC"; then
1595   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596 echo "${ECHO_T}$ac_ct_CC" >&6
1597 else
1598   echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1600 fi
1601
1602   CC=$ac_ct_CC
1603 else
1604   CC="$ac_cv_prog_CC"
1605 fi
1606
1607 if test -z "$CC"; then
1608   if test -n "$ac_tool_prefix"; then
1609   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}cc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   if test -n "$CC"; then
1617   ac_cv_prog_CC="$CC" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1621 do
1622   IFS=$as_save_IFS
1623   test -z "$as_dir" && as_dir=.
1624   for ac_exec_ext in '' $ac_executable_extensions; do
1625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626     ac_cv_prog_CC="${ac_tool_prefix}cc"
1627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628     break 2
1629   fi
1630 done
1631 done
1632
1633 fi
1634 fi
1635 CC=$ac_cv_prog_CC
1636 if test -n "$CC"; then
1637   echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1639 else
1640   echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1642 fi
1643
1644 fi
1645 if test -z "$ac_cv_prog_CC"; then
1646   ac_ct_CC=$CC
1647   # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   if test -n "$ac_ct_CC"; then
1655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
1660   IFS=$as_save_IFS
1661   test -z "$as_dir" && as_dir=.
1662   for ac_exec_ext in '' $ac_executable_extensions; do
1663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664     ac_cv_prog_ac_ct_CC="cc"
1665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666     break 2
1667   fi
1668 done
1669 done
1670
1671 fi
1672 fi
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1677 else
1678   echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1680 fi
1681
1682   CC=$ac_ct_CC
1683 else
1684   CC="$ac_cv_prog_CC"
1685 fi
1686
1687 fi
1688 if test -z "$CC"; then
1689   # Extract the first word of "cc", so it can be a program name with args.
1690 set dummy cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   if test -n "$CC"; then
1697   ac_cv_prog_CC="$CC" # Let the user override the test.
1698 else
1699   ac_prog_rejected=no
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   for ac_exec_ext in '' $ac_executable_extensions; do
1706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1708        ac_prog_rejected=yes
1709        continue
1710      fi
1711     ac_cv_prog_CC="cc"
1712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718 if test $ac_prog_rejected = yes; then
1719   # We found a bogon in the path, so make sure we never use it.
1720   set dummy $ac_cv_prog_CC
1721   shift
1722   if test $# != 0; then
1723     # We chose a different compiler from the bogus one.
1724     # However, it has the same basename, so the bogon will be chosen
1725     # first if we set CC to just the basename; use the full file name.
1726     shift
1727     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1728   fi
1729 fi
1730 fi
1731 fi
1732 CC=$ac_cv_prog_CC
1733 if test -n "$CC"; then
1734   echo "$as_me:$LINENO: result: $CC" >&5
1735 echo "${ECHO_T}$CC" >&6
1736 else
1737   echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1739 fi
1740
1741 fi
1742 if test -z "$CC"; then
1743   if test -n "$ac_tool_prefix"; then
1744   for ac_prog in cl
1745   do
1746     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   if test -n "$CC"; then
1754   ac_cv_prog_CC="$CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759   IFS=$as_save_IFS
1760   test -z "$as_dir" && as_dir=.
1761   for ac_exec_ext in '' $ac_executable_extensions; do
1762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765     break 2
1766   fi
1767 done
1768 done
1769
1770 fi
1771 fi
1772 CC=$ac_cv_prog_CC
1773 if test -n "$CC"; then
1774   echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1776 else
1777   echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1780
1781     test -n "$CC" && break
1782   done
1783 fi
1784 if test -z "$CC"; then
1785   ac_ct_CC=$CC
1786   for ac_prog in cl
1787 do
1788   # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy $ac_prog; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   if test -n "$ac_ct_CC"; then
1796   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801   IFS=$as_save_IFS
1802   test -z "$as_dir" && as_dir=.
1803   for ac_exec_ext in '' $ac_executable_extensions; do
1804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805     ac_cv_prog_ac_ct_CC="$ac_prog"
1806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807     break 2
1808   fi
1809 done
1810 done
1811
1812 fi
1813 fi
1814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815 if test -n "$ac_ct_CC"; then
1816   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817 echo "${ECHO_T}$ac_ct_CC" >&6
1818 else
1819   echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1821 fi
1822
1823   test -n "$ac_ct_CC" && break
1824 done
1825
1826   CC=$ac_ct_CC
1827 fi
1828
1829 fi
1830
1831
1832 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: no acceptable C compiler found in \$PATH
1835 See \`config.log' for more details." >&2;}
1836    { (exit 1); exit 1; }; }
1837
1838 # Provide some information about the compiler.
1839 echo "$as_me:$LINENO:" \
1840      "checking for C compiler version" >&5
1841 ac_compiler=`set X $ac_compile; echo $2`
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1843   (eval $ac_compiler --version </dev/null >&5) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1848   (eval $ac_compiler -v </dev/null >&5) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1853   (eval $ac_compiler -V </dev/null >&5) 2>&5
1854   ac_status=$?
1855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856   (exit $ac_status); }
1857
1858 cat >conftest.$ac_ext <<_ACEOF
1859 /* confdefs.h.  */
1860 _ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h.  */
1864
1865 int
1866 main ()
1867 {
1868
1869   ;
1870   return 0;
1871 }
1872 _ACEOF
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1877 # of exeext.
1878 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1879 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882   (eval $ac_link_default) 2>&5
1883   ac_status=$?
1884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885   (exit $ac_status); }; then
1886   # Find the output, starting from the most likely.  This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888 # resort.
1889
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1892 ac_cv_exeext=
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1895 do
1896   test -f "$ac_file" || continue
1897   case $ac_file in
1898     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1899         ;;
1900     conftest.$ac_ext )
1901         # This is the source file.
1902         ;;
1903     [ab].out )
1904         # We found the default executable, but exeext='' is most
1905         # certainly right.
1906         break;;
1907     *.* )
1908         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909         # FIXME: I believe we export ac_cv_exeext for Libtool,
1910         # but it would be cool to find out if it's true.  Does anybody
1911         # maintain Libtool? --akim.
1912         export ac_cv_exeext
1913         break;;
1914     * )
1915         break;;
1916   esac
1917 done
1918 else
1919   echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926    { (exit 77); exit 77; }; }
1927 fi
1928
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1932
1933 # Check the compiler produces executables we can run.  If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940   if { ac_try='./$ac_file'
1941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942   (eval $ac_try) 2>&5
1943   ac_status=$?
1944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945   (exit $ac_status); }; }; then
1946     cross_compiling=no
1947   else
1948     if test "$cross_compiling" = maybe; then
1949         cross_compiling=yes
1950     else
1951         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957    { (exit 1); exit 1; }; }
1958     fi
1959   fi
1960 fi
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1963
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run.  If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1972
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976   (eval $ac_link) 2>&5
1977   ac_status=$?
1978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979   (exit $ac_status); }; then
1980   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1983 # `rm'.
1984 for ac_file in conftest.exe conftest conftest.*; do
1985   test -f "$ac_file" || continue
1986   case $ac_file in
1987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989           export ac_cv_exeext
1990           break;;
1991     * ) break;;
1992   esac
1993 done
1994 else
1995   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999    { (exit 1); exit 1; }; }
2000 fi
2001
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2005
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2008 ac_exeext=$EXEEXT
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   cat >conftest.$ac_ext <<_ACEOF
2015 /* confdefs.h.  */
2016 _ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h.  */
2020
2021 int
2022 main ()
2023 {
2024
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 rm -f conftest.o conftest.obj
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031   (eval $ac_compile) 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); }; then
2035   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2036   case $ac_file in
2037     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2038     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2039        break;;
2040   esac
2041 done
2042 else
2043   echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2045
2046 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049 See \`config.log' for more details." >&2;}
2050    { (exit 1); exit 1; }; }
2051 fi
2052
2053 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2054 fi
2055 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056 echo "${ECHO_T}$ac_cv_objext" >&6
2057 OBJEXT=$ac_cv_objext
2058 ac_objext=$OBJEXT
2059 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   cat >conftest.$ac_ext <<_ACEOF
2065 /* confdefs.h.  */
2066 _ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h.  */
2070
2071 int
2072 main ()
2073 {
2074 #ifndef __GNUC__
2075        choke me
2076 #endif
2077
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084   (eval $ac_compile) 2>conftest.er1
2085   ac_status=$?
2086   grep -v '^ *+' conftest.er1 >conftest.err
2087   rm -f conftest.er1
2088   cat conftest.err >&5
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); } &&
2091          { ac_try='test -z "$ac_c_werror_flag"
2092                          || test ! -s conftest.err'
2093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094   (eval $ac_try) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }; } &&
2098          { ac_try='test -s conftest.$ac_objext'
2099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100   (eval $ac_try) 2>&5
2101   ac_status=$?
2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103   (exit $ac_status); }; }; then
2104   ac_compiler_gnu=yes
2105 else
2106   echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2108
2109 ac_compiler_gnu=no
2110 fi
2111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2113
2114 fi
2115 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2116 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2117 GCC=`test $ac_compiler_gnu = yes && echo yes`
2118 ac_test_CFLAGS=${CFLAGS+set}
2119 ac_save_CFLAGS=$CFLAGS
2120 CFLAGS="-g"
2121 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2122 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2123 if test "${ac_cv_prog_cc_g+set}" = set; then
2124   echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126   cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132
2133 int
2134 main ()
2135 {
2136
2137   ;
2138   return 0;
2139 }
2140 _ACEOF
2141 rm -f conftest.$ac_objext
2142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143   (eval $ac_compile) 2>conftest.er1
2144   ac_status=$?
2145   grep -v '^ *+' conftest.er1 >conftest.err
2146   rm -f conftest.er1
2147   cat conftest.err >&5
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); } &&
2150          { ac_try='test -z "$ac_c_werror_flag"
2151                          || test ! -s conftest.err'
2152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153   (eval $ac_try) 2>&5
2154   ac_status=$?
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); }; } &&
2157          { ac_try='test -s conftest.$ac_objext'
2158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159   (eval $ac_try) 2>&5
2160   ac_status=$?
2161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162   (exit $ac_status); }; }; then
2163   ac_cv_prog_cc_g=yes
2164 else
2165   echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 ac_cv_prog_cc_g=no
2169 fi
2170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2171 fi
2172 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2173 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2174 if test "$ac_test_CFLAGS" = set; then
2175   CFLAGS=$ac_save_CFLAGS
2176 elif test $ac_cv_prog_cc_g = yes; then
2177   if test "$GCC" = yes; then
2178     CFLAGS="-g -O2"
2179   else
2180     CFLAGS="-g"
2181   fi
2182 else
2183   if test "$GCC" = yes; then
2184     CFLAGS="-O2"
2185   else
2186     CFLAGS=
2187   fi
2188 fi
2189 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2190 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2191 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   ac_cv_prog_cc_stdc=no
2195 ac_save_CC=$CC
2196 cat >conftest.$ac_ext <<_ACEOF
2197 /* confdefs.h.  */
2198 _ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h.  */
2202 #include <stdarg.h>
2203 #include <stdio.h>
2204 #include <sys/types.h>
2205 #include <sys/stat.h>
2206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2207 struct buf { int x; };
2208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2209 static char *e (p, i)
2210      char **p;
2211      int i;
2212 {
2213   return p[i];
2214 }
2215 static char *f (char * (*g) (char **, int), char **p, ...)
2216 {
2217   char *s;
2218   va_list v;
2219   va_start (v,p);
2220   s = g (p, va_arg (v,int));
2221   va_end (v);
2222   return s;
2223 }
2224
2225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2226    function prototypes and stuff, but not '\xHH' hex character constants.
2227    These don't provoke an error unfortunately, instead are silently treated
2228    as 'x'.  The following induces an error, until -std1 is added to get
2229    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2230    array size at least.  It's necessary to write '\x00'==0 to get something
2231    that's true only with -std1.  */
2232 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2233
2234 int test (int i, double x);
2235 struct s1 {int (*f) (int a);};
2236 struct s2 {int (*f) (double a);};
2237 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2238 int argc;
2239 char **argv;
2240 int
2241 main ()
2242 {
2243 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 # Don't try gcc -ansi; that turns off useful extensions and
2249 # breaks some systems' header files.
2250 # AIX                   -qlanglvl=ansi
2251 # Ultrix and OSF/1      -std1
2252 # HP-UX 10.20 and later -Ae
2253 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2254 # SVR4                  -Xc -D__EXTENSIONS__
2255 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2256 do
2257   CC="$ac_save_CC $ac_arg"
2258   rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260   (eval $ac_compile) 2>conftest.er1
2261   ac_status=$?
2262   grep -v '^ *+' conftest.er1 >conftest.err
2263   rm -f conftest.er1
2264   cat conftest.err >&5
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); } &&
2267          { ac_try='test -z "$ac_c_werror_flag"
2268                          || test ! -s conftest.err'
2269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270   (eval $ac_try) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; } &&
2274          { ac_try='test -s conftest.$ac_objext'
2275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276   (eval $ac_try) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); }; }; then
2280   ac_cv_prog_cc_stdc=$ac_arg
2281 break
2282 else
2283   echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286 fi
2287 rm -f conftest.err conftest.$ac_objext
2288 done
2289 rm -f conftest.$ac_ext conftest.$ac_objext
2290 CC=$ac_save_CC
2291
2292 fi
2293
2294 case "x$ac_cv_prog_cc_stdc" in
2295   x|xno)
2296     echo "$as_me:$LINENO: result: none needed" >&5
2297 echo "${ECHO_T}none needed" >&6 ;;
2298   *)
2299     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2300 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2301     CC="$CC $ac_cv_prog_cc_stdc" ;;
2302 esac
2303
2304 # Some people use a C++ compiler to compile C.  Since we use `exit',
2305 # in C++ we need to declare it.  In case someone uses the same compiler
2306 # for both compiling C and C++ we need to have the C++ compiler decide
2307 # the declaration of exit, since it's the most demanding environment.
2308 cat >conftest.$ac_ext <<_ACEOF
2309 #ifndef __cplusplus
2310   choke me
2311 #endif
2312 _ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315   (eval $ac_compile) 2>conftest.er1
2316   ac_status=$?
2317   grep -v '^ *+' conftest.er1 >conftest.err
2318   rm -f conftest.er1
2319   cat conftest.err >&5
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); } &&
2322          { ac_try='test -z "$ac_c_werror_flag"
2323                          || test ! -s conftest.err'
2324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325   (eval $ac_try) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }; } &&
2329          { ac_try='test -s conftest.$ac_objext'
2330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331   (eval $ac_try) 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); }; }; then
2335   for ac_declaration in \
2336    '' \
2337    'extern "C" void std::exit (int) throw (); using std::exit;' \
2338    'extern "C" void std::exit (int); using std::exit;' \
2339    'extern "C" void exit (int) throw ();' \
2340    'extern "C" void exit (int);' \
2341    'void exit (int);'
2342 do
2343   cat >conftest.$ac_ext <<_ACEOF
2344 /* confdefs.h.  */
2345 _ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h.  */
2349 $ac_declaration
2350 #include <stdlib.h>
2351 int
2352 main ()
2353 {
2354 exit (42);
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361   (eval $ac_compile) 2>conftest.er1
2362   ac_status=$?
2363   grep -v '^ *+' conftest.er1 >conftest.err
2364   rm -f conftest.er1
2365   cat conftest.err >&5
2366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367   (exit $ac_status); } &&
2368          { ac_try='test -z "$ac_c_werror_flag"
2369                          || test ! -s conftest.err'
2370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371   (eval $ac_try) 2>&5
2372   ac_status=$?
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); }; } &&
2375          { ac_try='test -s conftest.$ac_objext'
2376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377   (eval $ac_try) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }; }; then
2381   :
2382 else
2383   echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2385
2386 continue
2387 fi
2388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389   cat >conftest.$ac_ext <<_ACEOF
2390 /* confdefs.h.  */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h.  */
2395 $ac_declaration
2396 int
2397 main ()
2398 {
2399 exit (42);
2400   ;
2401   return 0;
2402 }
2403 _ACEOF
2404 rm -f conftest.$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406   (eval $ac_compile) 2>conftest.er1
2407   ac_status=$?
2408   grep -v '^ *+' conftest.er1 >conftest.err
2409   rm -f conftest.er1
2410   cat conftest.err >&5
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); } &&
2413          { ac_try='test -z "$ac_c_werror_flag"
2414                          || test ! -s conftest.err'
2415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416   (eval $ac_try) 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; } &&
2420          { ac_try='test -s conftest.$ac_objext'
2421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422   (eval $ac_try) 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }; }; then
2426   break
2427 else
2428   echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2430
2431 fi
2432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2433 done
2434 rm -f conftest*
2435 if test -n "$ac_declaration"; then
2436   echo '#ifdef __cplusplus' >>confdefs.h
2437   echo $ac_declaration      >>confdefs.h
2438   echo '#endif'             >>confdefs.h
2439 fi
2440
2441 else
2442   echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2444
2445 fi
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447 ac_ext=c
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452
2453 ac_ext=cc
2454 ac_cpp='$CXXCPP $CPPFLAGS'
2455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2458 if test -n "$ac_tool_prefix"; then
2459   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2460   do
2461     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463 echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2465 if test "${ac_cv_prog_CXX+set}" = set; then
2466   echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468   if test -n "$CXX"; then
2469   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474   IFS=$as_save_IFS
2475   test -z "$as_dir" && as_dir=.
2476   for ac_exec_ext in '' $ac_executable_extensions; do
2477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2478     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480     break 2
2481   fi
2482 done
2483 done
2484
2485 fi
2486 fi
2487 CXX=$ac_cv_prog_CXX
2488 if test -n "$CXX"; then
2489   echo "$as_me:$LINENO: result: $CXX" >&5
2490 echo "${ECHO_T}$CXX" >&6
2491 else
2492   echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6
2494 fi
2495
2496     test -n "$CXX" && break
2497   done
2498 fi
2499 if test -z "$CXX"; then
2500   ac_ct_CXX=$CXX
2501   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2502 do
2503   # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   if test -n "$ac_ct_CXX"; then
2511   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516   IFS=$as_save_IFS
2517   test -z "$as_dir" && as_dir=.
2518   for ac_exec_ext in '' $ac_executable_extensions; do
2519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520     ac_cv_prog_ac_ct_CXX="$ac_prog"
2521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523   fi
2524 done
2525 done
2526
2527 fi
2528 fi
2529 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2530 if test -n "$ac_ct_CXX"; then
2531   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2532 echo "${ECHO_T}$ac_ct_CXX" >&6
2533 else
2534   echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6
2536 fi
2537
2538   test -n "$ac_ct_CXX" && break
2539 done
2540 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2541
2542   CXX=$ac_ct_CXX
2543 fi
2544
2545
2546 # Provide some information about the compiler.
2547 echo "$as_me:$LINENO:" \
2548      "checking for C++ compiler version" >&5
2549 ac_compiler=`set X $ac_compile; echo $2`
2550 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2551   (eval $ac_compiler --version </dev/null >&5) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }
2555 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2556   (eval $ac_compiler -v </dev/null >&5) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }
2560 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2561   (eval $ac_compiler -V </dev/null >&5) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }
2565
2566 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2567 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2568 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2569   echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571   cat >conftest.$ac_ext <<_ACEOF
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577
2578 int
2579 main ()
2580 {
2581 #ifndef __GNUC__
2582        choke me
2583 #endif
2584
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591   (eval $ac_compile) 2>conftest.er1
2592   ac_status=$?
2593   grep -v '^ *+' conftest.er1 >conftest.err
2594   rm -f conftest.er1
2595   cat conftest.err >&5
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); } &&
2598          { ac_try='test -z "$ac_cxx_werror_flag"
2599                          || test ! -s conftest.err'
2600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601   (eval $ac_try) 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; } &&
2605          { ac_try='test -s conftest.$ac_objext'
2606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607   (eval $ac_try) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; }; then
2611   ac_compiler_gnu=yes
2612 else
2613   echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616 ac_compiler_gnu=no
2617 fi
2618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2619 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2620
2621 fi
2622 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2623 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2624 GXX=`test $ac_compiler_gnu = yes && echo yes`
2625 ac_test_CXXFLAGS=${CXXFLAGS+set}
2626 ac_save_CXXFLAGS=$CXXFLAGS
2627 CXXFLAGS="-g"
2628 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2629 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2630 if test "${ac_cv_prog_cxx_g+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   cat >conftest.$ac_ext <<_ACEOF
2634 /* confdefs.h.  */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h.  */
2639
2640 int
2641 main ()
2642 {
2643
2644   ;
2645   return 0;
2646 }
2647 _ACEOF
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650   (eval $ac_compile) 2>conftest.er1
2651   ac_status=$?
2652   grep -v '^ *+' conftest.er1 >conftest.err
2653   rm -f conftest.er1
2654   cat conftest.err >&5
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); } &&
2657          { ac_try='test -z "$ac_cxx_werror_flag"
2658                          || test ! -s conftest.err'
2659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660   (eval $ac_try) 2>&5
2661   ac_status=$?
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); }; } &&
2664          { ac_try='test -s conftest.$ac_objext'
2665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666   (eval $ac_try) 2>&5
2667   ac_status=$?
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); }; }; then
2670   ac_cv_prog_cxx_g=yes
2671 else
2672   echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2674
2675 ac_cv_prog_cxx_g=no
2676 fi
2677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2678 fi
2679 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2680 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2681 if test "$ac_test_CXXFLAGS" = set; then
2682   CXXFLAGS=$ac_save_CXXFLAGS
2683 elif test $ac_cv_prog_cxx_g = yes; then
2684   if test "$GXX" = yes; then
2685     CXXFLAGS="-g -O2"
2686   else
2687     CXXFLAGS="-g"
2688   fi
2689 else
2690   if test "$GXX" = yes; then
2691     CXXFLAGS="-O2"
2692   else
2693     CXXFLAGS=
2694   fi
2695 fi
2696 for ac_declaration in \
2697    '' \
2698    'extern "C" void std::exit (int) throw (); using std::exit;' \
2699    'extern "C" void std::exit (int); using std::exit;' \
2700    'extern "C" void exit (int) throw ();' \
2701    'extern "C" void exit (int);' \
2702    'void exit (int);'
2703 do
2704   cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h.  */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h.  */
2710 $ac_declaration
2711 #include <stdlib.h>
2712 int
2713 main ()
2714 {
2715 exit (42);
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722   (eval $ac_compile) 2>conftest.er1
2723   ac_status=$?
2724   grep -v '^ *+' conftest.er1 >conftest.err
2725   rm -f conftest.er1
2726   cat conftest.err >&5
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } &&
2729          { ac_try='test -z "$ac_cxx_werror_flag"
2730                          || test ! -s conftest.err'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; } &&
2736          { ac_try='test -s conftest.$ac_objext'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   :
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747 continue
2748 fi
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750   cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h.  */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h.  */
2756 $ac_declaration
2757 int
2758 main ()
2759 {
2760 exit (42);
2761   ;
2762   return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767   (eval $ac_compile) 2>conftest.er1
2768   ac_status=$?
2769   grep -v '^ *+' conftest.er1 >conftest.err
2770   rm -f conftest.er1
2771   cat conftest.err >&5
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); } &&
2774          { ac_try='test -z "$ac_cxx_werror_flag"
2775                          || test ! -s conftest.err'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; } &&
2781          { ac_try='test -s conftest.$ac_objext'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; }; then
2787   break
2788 else
2789   echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792 fi
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 done
2795 rm -f conftest*
2796 if test -n "$ac_declaration"; then
2797   echo '#ifdef __cplusplus' >>confdefs.h
2798   echo $ac_declaration      >>confdefs.h
2799   echo '#endif'             >>confdefs.h
2800 fi
2801
2802 ac_ext=c
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807
2808 if test "x$CC" != xcc; then
2809   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2810 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2811 else
2812   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2813 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2814 fi
2815 set dummy $CC; ac_cc=`echo $2 |
2816                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2817 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2818   echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820   cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h.  */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h.  */
2826
2827 int
2828 main ()
2829 {
2830
2831   ;
2832   return 0;
2833 }
2834 _ACEOF
2835 # Make sure it works both with $CC and with simple cc.
2836 # We do the test twice because some compilers refuse to overwrite an
2837 # existing .o file with -o, though they will create one.
2838 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2839 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840   (eval $ac_try) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } &&
2844    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); };
2849 then
2850   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2851   if test "x$CC" != xcc; then
2852     # Test first that cc exists at all.
2853     if { ac_try='cc -c conftest.$ac_ext >&5'
2854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855   (eval $ac_try) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; }; then
2859       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2860       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861   (eval $ac_try) 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); } &&
2865          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866   (eval $ac_try) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); };
2870       then
2871         # cc works too.
2872         :
2873       else
2874         # cc exists but doesn't like -o.
2875         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2876       fi
2877     fi
2878   fi
2879 else
2880   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2881 fi
2882 rm -f conftest*
2883
2884 fi
2885 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2886   echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6
2888 else
2889   echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6
2891
2892 cat >>confdefs.h <<\_ACEOF
2893 #define NO_MINUS_C_MINUS_O 1
2894 _ACEOF
2895
2896 fi
2897
2898 ac_ext=c
2899 ac_cpp='$CPP $CPPFLAGS'
2900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2904 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2905 # On Suns, sometimes $CPP names a directory.
2906 if test -n "$CPP" && test -d "$CPP"; then
2907   CPP=
2908 fi
2909 if test -z "$CPP"; then
2910   if test "${ac_cv_prog_CPP+set}" = set; then
2911   echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913       # Double quotes because CPP needs to be expanded
2914     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2915     do
2916       ac_preproc_ok=false
2917 for ac_c_preproc_warn_flag in '' yes
2918 do
2919   # Use a header file that comes with gcc, so configuring glibc
2920   # with a fresh cross-compiler works.
2921   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922   # <limits.h> exists even on freestanding compilers.
2923   # On the NeXT, cc -E runs the code through the compiler's parser,
2924   # not just through cpp. "Syntax error" is here to catch this case.
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #ifdef __STDC__
2932 # include <limits.h>
2933 #else
2934 # include <assert.h>
2935 #endif
2936                      Syntax error
2937 _ACEOF
2938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2940   ac_status=$?
2941   grep -v '^ *+' conftest.er1 >conftest.err
2942   rm -f conftest.er1
2943   cat conftest.err >&5
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); } >/dev/null; then
2946   if test -s conftest.err; then
2947     ac_cpp_err=$ac_c_preproc_warn_flag
2948     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2949   else
2950     ac_cpp_err=
2951   fi
2952 else
2953   ac_cpp_err=yes
2954 fi
2955 if test -z "$ac_cpp_err"; then
2956   :
2957 else
2958   echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2960
2961   # Broken: fails on valid input.
2962 continue
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966   # OK, works on sane cases.  Now check whether non-existent headers
2967   # can be detected and how.
2968   cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974 #include <ac_nonexistent.h>
2975 _ACEOF
2976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2978   ac_status=$?
2979   grep -v '^ *+' conftest.er1 >conftest.err
2980   rm -f conftest.er1
2981   cat conftest.err >&5
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); } >/dev/null; then
2984   if test -s conftest.err; then
2985     ac_cpp_err=$ac_c_preproc_warn_flag
2986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2987   else
2988     ac_cpp_err=
2989   fi
2990 else
2991   ac_cpp_err=yes
2992 fi
2993 if test -z "$ac_cpp_err"; then
2994   # Broken: success on invalid input.
2995 continue
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000   # Passes both tests.
3001 ac_preproc_ok=:
3002 break
3003 fi
3004 rm -f conftest.err conftest.$ac_ext
3005
3006 done
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3010   break
3011 fi
3012
3013     done
3014     ac_cv_prog_CPP=$CPP
3015
3016 fi
3017   CPP=$ac_cv_prog_CPP
3018 else
3019   ac_cv_prog_CPP=$CPP
3020 fi
3021 echo "$as_me:$LINENO: result: $CPP" >&5
3022 echo "${ECHO_T}$CPP" >&6
3023 ac_preproc_ok=false
3024 for ac_c_preproc_warn_flag in '' yes
3025 do
3026   # Use a header file that comes with gcc, so configuring glibc
3027   # with a fresh cross-compiler works.
3028   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3029   # <limits.h> exists even on freestanding compilers.
3030   # On the NeXT, cc -E runs the code through the compiler's parser,
3031   # not just through cpp. "Syntax error" is here to catch this case.
3032   cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h.  */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h.  */
3038 #ifdef __STDC__
3039 # include <limits.h>
3040 #else
3041 # include <assert.h>
3042 #endif
3043                      Syntax error
3044 _ACEOF
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } >/dev/null; then
3053   if test -s conftest.err; then
3054     ac_cpp_err=$ac_c_preproc_warn_flag
3055     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3056   else
3057     ac_cpp_err=
3058   fi
3059 else
3060   ac_cpp_err=yes
3061 fi
3062 if test -z "$ac_cpp_err"; then
3063   :
3064 else
3065   echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068   # Broken: fails on valid input.
3069 continue
3070 fi
3071 rm -f conftest.err conftest.$ac_ext
3072
3073   # OK, works on sane cases.  Now check whether non-existent headers
3074   # can be detected and how.
3075   cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081 #include <ac_nonexistent.h>
3082 _ACEOF
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3085   ac_status=$?
3086   grep -v '^ *+' conftest.er1 >conftest.err
3087   rm -f conftest.er1
3088   cat conftest.err >&5
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); } >/dev/null; then
3091   if test -s conftest.err; then
3092     ac_cpp_err=$ac_c_preproc_warn_flag
3093     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3094   else
3095     ac_cpp_err=
3096   fi
3097 else
3098   ac_cpp_err=yes
3099 fi
3100 if test -z "$ac_cpp_err"; then
3101   # Broken: success on invalid input.
3102 continue
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107   # Passes both tests.
3108 ac_preproc_ok=:
3109 break
3110 fi
3111 rm -f conftest.err conftest.$ac_ext
3112
3113 done
3114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3115 rm -f conftest.err conftest.$ac_ext
3116 if $ac_preproc_ok; then
3117   :
3118 else
3119   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3122 See \`config.log' for more details." >&2;}
3123    { (exit 1); exit 1; }; }
3124 fi
3125
3126 ac_ext=c
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131
3132
3133 echo "$as_me:$LINENO: checking for egrep" >&5
3134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3135 if test "${ac_cv_prog_egrep+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3139     then ac_cv_prog_egrep='grep -E'
3140     else ac_cv_prog_egrep='egrep'
3141     fi
3142 fi
3143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3145  EGREP=$ac_cv_prog_egrep
3146
3147
3148 if test $ac_cv_c_compiler_gnu = yes; then
3149     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3150 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3151 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3152   echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154     ac_pattern="Autoconf.*'x'"
3155   cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161 #include <sgtty.h>
3162 Autoconf TIOCGETP
3163 _ACEOF
3164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3165   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3166   ac_cv_prog_gcc_traditional=yes
3167 else
3168   ac_cv_prog_gcc_traditional=no
3169 fi
3170 rm -f conftest*
3171
3172
3173   if test $ac_cv_prog_gcc_traditional = no; then
3174     cat >conftest.$ac_ext <<_ACEOF
3175 /* confdefs.h.  */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h.  */
3180 #include <termio.h>
3181 Autoconf TCGETA
3182 _ACEOF
3183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3184   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3185   ac_cv_prog_gcc_traditional=yes
3186 fi
3187 rm -f conftest*
3188
3189   fi
3190 fi
3191 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3192 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3193   if test $ac_cv_prog_gcc_traditional = yes; then
3194     CC="$CC -traditional"
3195   fi
3196 fi
3197
3198 if test "x$CC" = xgcc; then
3199    cat >>confdefs.h <<\_ACEOF
3200 #define HAVE_GCC 1
3201 _ACEOF
3202
3203 fi
3204 # Extract the first word of "$CXX", so it can be a program name with args.
3205 set dummy $CXX; ac_word=$2
3206 echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_path_CXX+set}" = set; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211   case $CXX in
3212   [\\/]* | ?:[\\/]*)
3213   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3214   ;;
3215   *)
3216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219   IFS=$as_save_IFS
3220   test -z "$as_dir" && as_dir=.
3221   for ac_exec_ext in '' $ac_executable_extensions; do
3222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225     break 2
3226   fi
3227 done
3228 done
3229
3230   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3231   ;;
3232 esac
3233 fi
3234 CXX=$ac_cv_path_CXX
3235
3236 if test -n "$CXX"; then
3237   echo "$as_me:$LINENO: result: $CXX" >&5
3238 echo "${ECHO_T}$CXX" >&6
3239 else
3240   echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6
3242 fi
3243
3244 if test ! -e $CXX; then
3245    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3246 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3247    { (exit 1); exit 1; }; }
3248 fi
3249
3250 # Find a good install program.  We prefer a C program (faster),
3251 # so one script is as good as another.  But avoid the broken or
3252 # incompatible versions:
3253 # SysV /etc/install, /usr/sbin/install
3254 # SunOS /usr/etc/install
3255 # IRIX /sbin/install
3256 # AIX /bin/install
3257 # AmigaOS /C/install, which installs bootblocks on floppy discs
3258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3261 # OS/2's system install, which has a completely different semantic
3262 # ./install, which can be erroneously created by make from ./install.sh.
3263 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3265 if test -z "$INSTALL"; then
3266 if test "${ac_cv_path_install+set}" = set; then
3267   echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272   IFS=$as_save_IFS
3273   test -z "$as_dir" && as_dir=.
3274   # Account for people who put trailing slashes in PATH elements.
3275 case $as_dir/ in
3276   ./ | .// | /cC/* | \
3277   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3278   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3279   /usr/ucb/* ) ;;
3280   *)
3281     # OSF1 and SCO ODT 3.0 have their own names for install.
3282     # Don't use installbsd from OSF since it installs stuff as root
3283     # by default.
3284     for ac_prog in ginstall scoinst install; do
3285       for ac_exec_ext in '' $ac_executable_extensions; do
3286         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3287           if test $ac_prog = install &&
3288             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3289             # AIX install.  It has an incompatible calling convention.
3290             :
3291           elif test $ac_prog = install &&
3292             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3293             # program-specific install script used by HP pwplus--don't use.
3294             :
3295           else
3296             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3297             break 3
3298           fi
3299         fi
3300       done
3301     done
3302     ;;
3303 esac
3304 done
3305
3306
3307 fi
3308   if test "${ac_cv_path_install+set}" = set; then
3309     INSTALL=$ac_cv_path_install
3310   else
3311     # As a last resort, use the slow shell script.  We don't cache a
3312     # path for INSTALL within a source directory, because that will
3313     # break other packages using the cache if that directory is
3314     # removed, or if the path is relative.
3315     INSTALL=$ac_install_sh
3316   fi
3317 fi
3318 echo "$as_me:$LINENO: result: $INSTALL" >&5
3319 echo "${ECHO_T}$INSTALL" >&6
3320
3321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3322 # It thinks the first close brace ends the variable substitution.
3323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3324
3325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3326
3327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3328
3329 if test -n "$ac_tool_prefix"; then
3330   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3331 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_RANLIB+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   if test -n "$RANLIB"; then
3338   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3342 do
3343   IFS=$as_save_IFS
3344   test -z "$as_dir" && as_dir=.
3345   for ac_exec_ext in '' $ac_executable_extensions; do
3346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349     break 2
3350   fi
3351 done
3352 done
3353
3354 fi
3355 fi
3356 RANLIB=$ac_cv_prog_RANLIB
3357 if test -n "$RANLIB"; then
3358   echo "$as_me:$LINENO: result: $RANLIB" >&5
3359 echo "${ECHO_T}$RANLIB" >&6
3360 else
3361   echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3363 fi
3364
3365 fi
3366 if test -z "$ac_cv_prog_RANLIB"; then
3367   ac_ct_RANLIB=$RANLIB
3368   # Extract the first word of "ranlib", so it can be a program name with args.
3369 set dummy ranlib; ac_word=$2
3370 echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375   if test -n "$ac_ct_RANLIB"; then
3376   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381   IFS=$as_save_IFS
3382   test -z "$as_dir" && as_dir=.
3383   for ac_exec_ext in '' $ac_executable_extensions; do
3384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385     ac_cv_prog_ac_ct_RANLIB="ranlib"
3386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387     break 2
3388   fi
3389 done
3390 done
3391
3392   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3393 fi
3394 fi
3395 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3396 if test -n "$ac_ct_RANLIB"; then
3397   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3398 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3399 else
3400   echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3402 fi
3403
3404   RANLIB=$ac_ct_RANLIB
3405 else
3406   RANLIB="$ac_cv_prog_RANLIB"
3407 fi
3408
3409 # Extract the first word of "mv", so it can be a program name with args.
3410 set dummy mv; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_path_MV+set}" = set; then
3414   echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416   case $MV in
3417   [\\/]* | ?:[\\/]*)
3418   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3419   ;;
3420   *)
3421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424   IFS=$as_save_IFS
3425   test -z "$as_dir" && as_dir=.
3426   for ac_exec_ext in '' $ac_executable_extensions; do
3427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430     break 2
3431   fi
3432 done
3433 done
3434
3435   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3436   ;;
3437 esac
3438 fi
3439 MV=$ac_cv_path_MV
3440
3441 if test -n "$MV"; then
3442   echo "$as_me:$LINENO: result: $MV" >&5
3443 echo "${ECHO_T}$MV" >&6
3444 else
3445   echo "$as_me:$LINENO: result: no" >&5
3446 echo "${ECHO_T}no" >&6
3447 fi
3448
3449 # Extract the first word of "rm", so it can be a program name with args.
3450 set dummy rm; ac_word=$2
3451 echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3453 if test "${ac_cv_path_RM+set}" = set; then
3454   echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456   case $RM in
3457   [\\/]* | ?:[\\/]*)
3458   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3459   ;;
3460   *)
3461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464   IFS=$as_save_IFS
3465   test -z "$as_dir" && as_dir=.
3466   for ac_exec_ext in '' $ac_executable_extensions; do
3467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470     break 2
3471   fi
3472 done
3473 done
3474
3475   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3476   ;;
3477 esac
3478 fi
3479 RM=$ac_cv_path_RM
3480
3481 if test -n "$RM"; then
3482   echo "$as_me:$LINENO: result: $RM" >&5
3483 echo "${ECHO_T}$RM" >&6
3484 else
3485   echo "$as_me:$LINENO: result: no" >&5
3486 echo "${ECHO_T}no" >&6
3487 fi
3488
3489 # Extract the first word of "cp", so it can be a program name with args.
3490 set dummy cp; ac_word=$2
3491 echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493 if test "${ac_cv_path_CP+set}" = set; then
3494   echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496   case $CP in
3497   [\\/]* | ?:[\\/]*)
3498   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3499   ;;
3500   *)
3501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504   IFS=$as_save_IFS
3505   test -z "$as_dir" && as_dir=.
3506   for ac_exec_ext in '' $ac_executable_extensions; do
3507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510     break 2
3511   fi
3512 done
3513 done
3514
3515   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3516   ;;
3517 esac
3518 fi
3519 CP=$ac_cv_path_CP
3520
3521 if test -n "$CP"; then
3522   echo "$as_me:$LINENO: result: $CP" >&5
3523 echo "${ECHO_T}$CP" >&6
3524 else
3525   echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3527 fi
3528
3529 # Extract the first word of "sed", so it can be a program name with args.
3530 set dummy sed; ac_word=$2
3531 echo "$as_me:$LINENO: checking for $ac_word" >&5
3532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533 if test "${ac_cv_path_SED+set}" = set; then
3534   echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536   case $SED in
3537   [\\/]* | ?:[\\/]*)
3538   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3539   ;;
3540   *)
3541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544   IFS=$as_save_IFS
3545   test -z "$as_dir" && as_dir=.
3546   for ac_exec_ext in '' $ac_executable_extensions; do
3547   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550     break 2
3551   fi
3552 done
3553 done
3554
3555   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3556   ;;
3557 esac
3558 fi
3559 SED=$ac_cv_path_SED
3560
3561 if test -n "$SED"; then
3562   echo "$as_me:$LINENO: result: $SED" >&5
3563 echo "${ECHO_T}$SED" >&6
3564 else
3565   echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3567 fi
3568
3569 # Extract the first word of "echo", so it can be a program name with args.
3570 set dummy echo; ac_word=$2
3571 echo "$as_me:$LINENO: checking for $ac_word" >&5
3572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3573 if test "${ac_cv_path_ECHO+set}" = set; then
3574   echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576   case $ECHO in
3577   [\\/]* | ?:[\\/]*)
3578   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3579   ;;
3580   *)
3581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584   IFS=$as_save_IFS
3585   test -z "$as_dir" && as_dir=.
3586   for ac_exec_ext in '' $ac_executable_extensions; do
3587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3590     break 2
3591   fi
3592 done
3593 done
3594
3595   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3596   ;;
3597 esac
3598 fi
3599 ECHO=$ac_cv_path_ECHO
3600
3601 if test -n "$ECHO"; then
3602   echo "$as_me:$LINENO: result: $ECHO" >&5
3603 echo "${ECHO_T}$ECHO" >&6
3604 else
3605   echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6
3607 fi
3608
3609 # Extract the first word of "cmp", so it can be a program name with args.
3610 set dummy cmp; ac_word=$2
3611 echo "$as_me:$LINENO: checking for $ac_word" >&5
3612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613 if test "${ac_cv_path_CMP+set}" = set; then
3614   echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616   case $CMP in
3617   [\\/]* | ?:[\\/]*)
3618   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3619   ;;
3620   *)
3621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624   IFS=$as_save_IFS
3625   test -z "$as_dir" && as_dir=.
3626   for ac_exec_ext in '' $ac_executable_extensions; do
3627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3630     break 2
3631   fi
3632 done
3633 done
3634
3635   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3636   ;;
3637 esac
3638 fi
3639 CMP=$ac_cv_path_CMP
3640
3641 if test -n "$CMP"; then
3642   echo "$as_me:$LINENO: result: $CMP" >&5
3643 echo "${ECHO_T}$CMP" >&6
3644 else
3645   echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6
3647 fi
3648
3649 # Extract the first word of "tbl", so it can be a program name with args.
3650 set dummy tbl; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_path_TBL+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   case $TBL in
3657   [\\/]* | ?:[\\/]*)
3658   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3659   ;;
3660   *)
3661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   test -z "$as_dir" && as_dir=.
3666   for ac_exec_ext in '' $ac_executable_extensions; do
3667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670     break 2
3671   fi
3672 done
3673 done
3674
3675   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3676   ;;
3677 esac
3678 fi
3679 TBL=$ac_cv_path_TBL
3680
3681 if test -n "$TBL"; then
3682   echo "$as_me:$LINENO: result: $TBL" >&5
3683 echo "${ECHO_T}$TBL" >&6
3684 else
3685   echo "$as_me:$LINENO: result: no" >&5
3686 echo "${ECHO_T}no" >&6
3687 fi
3688
3689 # Extract the first word of "ar", so it can be a program name with args.
3690 set dummy ar; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_path_AR+set}" = set; then
3694   echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696   case $AR in
3697   [\\/]* | ?:[\\/]*)
3698   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3699   ;;
3700   *)
3701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704   IFS=$as_save_IFS
3705   test -z "$as_dir" && as_dir=.
3706   for ac_exec_ext in '' $ac_executable_extensions; do
3707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710     break 2
3711   fi
3712 done
3713 done
3714
3715   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3716   ;;
3717 esac
3718 fi
3719 AR=$ac_cv_path_AR
3720
3721 if test -n "$AR"; then
3722   echo "$as_me:$LINENO: result: $AR" >&5
3723 echo "${ECHO_T}$AR" >&6
3724 else
3725   echo "$as_me:$LINENO: result: no" >&5
3726 echo "${ECHO_T}no" >&6
3727 fi
3728
3729 # Extract the first word of "openssl", so it can be a program name with args.
3730 set dummy openssl; ac_word=$2
3731 echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733 if test "${ac_cv_path_OPENSSL+set}" = set; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   case $OPENSSL in
3737   [\\/]* | ?:[\\/]*)
3738   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3739   ;;
3740   *)
3741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_exec_ext in '' $ac_executable_extensions; do
3747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753 done
3754
3755   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3756   ;;
3757 esac
3758 fi
3759 OPENSSL=$ac_cv_path_OPENSSL
3760
3761 if test -n "$OPENSSL"; then
3762   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3763 echo "${ECHO_T}$OPENSSL" >&6
3764 else
3765   echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3767 fi
3768
3769 # Extract the first word of "mtx", so it can be a program name with args.
3770 set dummy mtx; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_path_MTX+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   case $MTX in
3777   [\\/]* | ?:[\\/]*)
3778   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3779   ;;
3780   *)
3781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784   IFS=$as_save_IFS
3785   test -z "$as_dir" && as_dir=.
3786   for ac_exec_ext in '' $ac_executable_extensions; do
3787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790     break 2
3791   fi
3792 done
3793 done
3794
3795   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3796   ;;
3797 esac
3798 fi
3799 MTX=$ac_cv_path_MTX
3800
3801 if test -n "$MTX"; then
3802   echo "$as_me:$LINENO: result: $MTX" >&5
3803 echo "${ECHO_T}$MTX" >&6
3804 else
3805   echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6
3807 fi
3808
3809 # Extract the first word of "df", so it can be a program name with args.
3810 set dummy df; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_path_DF+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   case $DF in
3817   [\\/]* | ?:[\\/]*)
3818   ac_cv_path_DF="$DF" # Let the user override the test with a path.
3819   ;;
3820   *)
3821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824   IFS=$as_save_IFS
3825   test -z "$as_dir" && as_dir=.
3826   for ac_exec_ext in '' $ac_executable_extensions; do
3827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830     break 2
3831   fi
3832 done
3833 done
3834
3835   test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3836   ;;
3837 esac
3838 fi
3839 DF=$ac_cv_path_DF
3840
3841 if test -n "$DF"; then
3842   echo "$as_me:$LINENO: result: $DF" >&5
3843 echo "${ECHO_T}$DF" >&6
3844 else
3845   echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6
3847 fi
3848
3849 # Extract the first word of "mkisofs", so it can be a program name with args.
3850 set dummy mkisofs; ac_word=$2
3851 echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853 if test "${ac_cv_path_MKISOFS+set}" = set; then
3854   echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856   case $MKISOFS in
3857   [\\/]* | ?:[\\/]*)
3858   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3859   ;;
3860   *)
3861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866   for ac_exec_ext in '' $ac_executable_extensions; do
3867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870     break 2
3871   fi
3872 done
3873 done
3874
3875   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3876   ;;
3877 esac
3878 fi
3879 MKISOFS=$ac_cv_path_MKISOFS
3880
3881 if test -n "$MKISOFS"; then
3882   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3883 echo "${ECHO_T}$MKISOFS" >&6
3884 else
3885   echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6
3887 fi
3888
3889 # Extract the first word of "python", so it can be a program name with args.
3890 set dummy python; ac_word=$2
3891 echo "$as_me:$LINENO: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3893 if test "${ac_cv_path_PYTHON+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   case $PYTHON in
3897   [\\/]* | ?:[\\/]*)
3898   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3899   ;;
3900   *)
3901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904   IFS=$as_save_IFS
3905   test -z "$as_dir" && as_dir=.
3906   for ac_exec_ext in '' $ac_executable_extensions; do
3907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910     break 2
3911   fi
3912 done
3913 done
3914
3915   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3916   ;;
3917 esac
3918 fi
3919 PYTHON=$ac_cv_path_PYTHON
3920
3921 if test -n "$PYTHON"; then
3922   echo "$as_me:$LINENO: result: $PYTHON" >&5
3923 echo "${ECHO_T}$PYTHON" >&6
3924 else
3925   echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3927 fi
3928
3929 # Extract the first word of "growisofs", so it can be a program name with args.
3930 set dummy growisofs; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   case $GROWISOFS in
3937   [\\/]* | ?:[\\/]*)
3938   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3939   ;;
3940   *)
3941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944   IFS=$as_save_IFS
3945   test -z "$as_dir" && as_dir=.
3946   for ac_exec_ext in '' $ac_executable_extensions; do
3947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3948     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3950     break 2
3951   fi
3952 done
3953 done
3954
3955   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3956   ;;
3957 esac
3958 fi
3959 GROWISOFS=$ac_cv_path_GROWISOFS
3960
3961 if test -n "$GROWISOFS"; then
3962   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3963 echo "${ECHO_T}$GROWISOFS" >&6
3964 else
3965   echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3967 fi
3968
3969 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3970 set dummy dvd+rw-mediainfo; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   case $DVDRWMEDIAINFO in
3977   [\\/]* | ?:[\\/]*)
3978   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3979   ;;
3980   *)
3981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3983 do
3984   IFS=$as_save_IFS
3985   test -z "$as_dir" && as_dir=.
3986   for ac_exec_ext in '' $ac_executable_extensions; do
3987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990     break 2
3991   fi
3992 done
3993 done
3994
3995   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3996   ;;
3997 esac
3998 fi
3999 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4000
4001 if test -n "$DVDRWMEDIAINFO"; then
4002   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4003 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4004 else
4005   echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4007 fi
4008
4009 # Extract the first word of "pkg-config", so it can be a program name with args.
4010 set dummy pkg-config; ac_word=$2
4011 echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   case $PKGCONFIG in
4017   [\\/]* | ?:[\\/]*)
4018   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4019   ;;
4020   *)
4021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024   IFS=$as_save_IFS
4025   test -z "$as_dir" && as_dir=.
4026   for ac_exec_ext in '' $ac_executable_extensions; do
4027   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030     break 2
4031   fi
4032 done
4033 done
4034
4035   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4036   ;;
4037 esac
4038 fi
4039 PKGCONFIG=$ac_cv_path_PKGCONFIG
4040
4041 if test -n "$PKGCONFIG"; then
4042   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4043 echo "${ECHO_T}$PKGCONFIG" >&6
4044 else
4045   echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4047 fi
4048
4049
4050 if test "x$WXCONFIG" = x; then
4051   WXCONFIG=wx-config
4052 fi
4053 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4054 set dummy ${WXCONFIG}; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   case $WXCONFIG in
4061   [\\/]* | ?:[\\/]*)
4062   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4063   ;;
4064   *)
4065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068   IFS=$as_save_IFS
4069   test -z "$as_dir" && as_dir=.
4070   for ac_exec_ext in '' $ac_executable_extensions; do
4071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4074     break 2
4075   fi
4076 done
4077 done
4078
4079   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4080   ;;
4081 esac
4082 fi
4083 WXCONFIG=$ac_cv_path_WXCONFIG
4084
4085 if test -n "$WXCONFIG"; then
4086   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4087 echo "${ECHO_T}$WXCONFIG" >&6
4088 else
4089   echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4091 fi
4092
4093
4094 # Extract the first word of "cdrecord", so it can be a program name with args.
4095 set dummy cdrecord; ac_word=$2
4096 echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098 if test "${ac_cv_path_CDRECORD+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   case $CDRECORD in
4102   [\\/]* | ?:[\\/]*)
4103   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4104   ;;
4105   *)
4106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109   IFS=$as_save_IFS
4110   test -z "$as_dir" && as_dir=.
4111   for ac_exec_ext in '' $ac_executable_extensions; do
4112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4115     break 2
4116   fi
4117 done
4118 done
4119
4120   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4121   ;;
4122 esac
4123 fi
4124 CDRECORD=$ac_cv_path_CDRECORD
4125
4126 if test -n "$CDRECORD"; then
4127   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4128 echo "${ECHO_T}$CDRECORD" >&6
4129 else
4130   echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4132 fi
4133
4134 # Extract the first word of "pidof", so it can be a program name with args.
4135 set dummy pidof; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_PIDOF+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   case $PIDOF in
4142   [\\/]* | ?:[\\/]*)
4143   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4144   ;;
4145   *)
4146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149   IFS=$as_save_IFS
4150   test -z "$as_dir" && as_dir=.
4151   for ac_exec_ext in '' $ac_executable_extensions; do
4152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155     break 2
4156   fi
4157 done
4158 done
4159
4160   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4161   ;;
4162 esac
4163 fi
4164 PIDOF=$ac_cv_path_PIDOF
4165
4166 if test -n "$PIDOF"; then
4167   echo "$as_me:$LINENO: result: $PIDOF" >&5
4168 echo "${ECHO_T}$PIDOF" >&6
4169 else
4170   echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4172 fi
4173
4174 for ac_prog in gawk mawk nawk awk
4175 do
4176   # Extract the first word of "$ac_prog", so it can be a program name with args.
4177 set dummy $ac_prog; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_AWK+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   if test -n "$AWK"; then
4184   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191   for ac_exec_ext in '' $ac_executable_extensions; do
4192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193     ac_cv_prog_AWK="$ac_prog"
4194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195     break 2
4196   fi
4197 done
4198 done
4199
4200 fi
4201 fi
4202 AWK=$ac_cv_prog_AWK
4203 if test -n "$AWK"; then
4204   echo "$as_me:$LINENO: result: $AWK" >&5
4205 echo "${ECHO_T}$AWK" >&6
4206 else
4207   echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4209 fi
4210
4211   test -n "$AWK" && break
4212 done
4213
4214 # Some AWK programs fail, so test it and warn the user
4215 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4216       { if ((prog == $2) || (("(" prog ")") == $2) ||
4217            (("" prog "") == $2) ||
4218            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4219 else
4220   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4221    The regex engine of $AWK is too broken to be used you
4222    might want to install GNU AWK.
4223    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4224 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4225    The regex engine of $AWK is too broken to be used you
4226    might want to install GNU AWK.
4227    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4228    { (exit 1); exit 1; }; }
4229 fi
4230 THE_AWK=$AWK
4231 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4232 set dummy $THE_AWK; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_path_AWK+set}" = set; then
4236   echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238   case $AWK in
4239   [\\/]* | ?:[\\/]*)
4240   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4241   ;;
4242   *)
4243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248   for ac_exec_ext in '' $ac_executable_extensions; do
4249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252     break 2
4253   fi
4254 done
4255 done
4256
4257   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4258   ;;
4259 esac
4260 fi
4261 AWK=$ac_cv_path_AWK
4262
4263 if test -n "$AWK"; then
4264   echo "$as_me:$LINENO: result: $AWK" >&5
4265 echo "${ECHO_T}$AWK" >&6
4266 else
4267   echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4269 fi
4270
4271
4272 test -n "$ARFLAG" || ARFLAGS="cr"
4273
4274
4275 MAKE_SHELL=/bin/sh
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285 # Make sure we can run config.sub.
4286 $ac_config_sub sun4 >/dev/null 2>&1 ||
4287   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4288 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4289    { (exit 1); exit 1; }; }
4290
4291 echo "$as_me:$LINENO: checking build system type" >&5
4292 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4293 if test "${ac_cv_build+set}" = set; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   ac_cv_build_alias=$build_alias
4297 test -z "$ac_cv_build_alias" &&
4298   ac_cv_build_alias=`$ac_config_guess`
4299 test -z "$ac_cv_build_alias" &&
4300   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4301 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4302    { (exit 1); exit 1; }; }
4303 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4304   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4305 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4306    { (exit 1); exit 1; }; }
4307
4308 fi
4309 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4310 echo "${ECHO_T}$ac_cv_build" >&6
4311 build=$ac_cv_build
4312 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4313 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4314 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4315
4316
4317
4318 echo "$as_me:$LINENO: checking host system type" >&5
4319 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4320 if test "${ac_cv_host+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   ac_cv_host_alias=$host_alias
4324 test -z "$ac_cv_host_alias" &&
4325   ac_cv_host_alias=$ac_cv_build_alias
4326 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4327   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4328 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4329    { (exit 1); exit 1; }; }
4330
4331 fi
4332 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4333 echo "${ECHO_T}$ac_cv_host" >&6
4334 host=$ac_cv_host
4335 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4336 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4337 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4338
4339
4340 case $host_os in
4341   *cygwin* ) CYGWIN=yes;;
4342          * ) CYGWIN=no;;
4343 esac
4344
4345 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4346 then
4347
4348
4349 if $TRUEPRG; then
4350   HAVE_SUN_OS_TRUE=
4351   HAVE_SUN_OS_FALSE='#'
4352 else
4353   HAVE_SUN_OS_TRUE='#'
4354   HAVE_SUN_OS_FALSE=
4355 fi
4356         cat >>confdefs.h <<\_ACEOF
4357 #define HAVE_SUN_OS 1
4358 _ACEOF
4359
4360 else
4361
4362
4363 if $FALSEPRG; then
4364   HAVE_SUN_OS_TRUE=
4365   HAVE_SUN_OS_FALSE='#'
4366 else
4367   HAVE_SUN_OS_TRUE='#'
4368   HAVE_SUN_OS_FALSE=
4369 fi
4370 fi
4371
4372 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4373 then
4374
4375
4376 if $TRUEPRG; then
4377   HAVE_OSF1_OS_TRUE=
4378   HAVE_OSF1_OS_FALSE='#'
4379 else
4380   HAVE_OSF1_OS_TRUE='#'
4381   HAVE_OSF1_OS_FALSE=
4382 fi
4383         cat >>confdefs.h <<\_ACEOF
4384 #define HAVE_OSF1_OS 1
4385 _ACEOF
4386
4387 else
4388
4389
4390 if $FALSEPRG; then
4391   HAVE_OSF1_OS_TRUE=
4392   HAVE_OSF1_OS_FALSE='#'
4393 else
4394   HAVE_OSF1_OS_TRUE='#'
4395   HAVE_OSF1_OS_FALSE=
4396 fi
4397 fi
4398
4399 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4400 then
4401
4402
4403 if $TRUEPRG; then
4404   HAVE_AIX_OS_TRUE=
4405   HAVE_AIX_OS_FALSE='#'
4406 else
4407   HAVE_AIX_OS_TRUE='#'
4408   HAVE_AIX_OS_FALSE=
4409 fi
4410         cat >>confdefs.h <<\_ACEOF
4411 #define HAVE_AIX_OS 1
4412 _ACEOF
4413
4414 else
4415
4416
4417 if $FALSEPRG; then
4418   HAVE_AIX_OS_TRUE=
4419   HAVE_AIX_OS_FALSE='#'
4420 else
4421   HAVE_AIX_OS_TRUE='#'
4422   HAVE_AIX_OS_FALSE=
4423 fi
4424 fi
4425
4426 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4427 then
4428
4429
4430 if $TRUEPRG; then
4431   HAVE_HPUX_OS_TRUE=
4432   HAVE_HPUX_OS_FALSE='#'
4433 else
4434   HAVE_HPUX_OS_TRUE='#'
4435   HAVE_HPUX_OS_FALSE=
4436 fi
4437         cat >>confdefs.h <<\_ACEOF
4438 #define HAVE_HPUX_OS 1
4439 _ACEOF
4440
4441 else
4442
4443
4444 if $FALSEPRG; then
4445   HAVE_HPUX_OS_TRUE=
4446   HAVE_HPUX_OS_FALSE='#'
4447 else
4448   HAVE_HPUX_OS_TRUE='#'
4449   HAVE_HPUX_OS_FALSE=
4450 fi
4451 fi
4452
4453 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4454 then
4455
4456
4457 if $TRUEPRG; then
4458   HAVE_LINUX_OS_TRUE=
4459   HAVE_LINUX_OS_FALSE='#'
4460 else
4461   HAVE_LINUX_OS_TRUE='#'
4462   HAVE_LINUX_OS_FALSE=
4463 fi
4464         cat >>confdefs.h <<\_ACEOF
4465 #define HAVE_LINUX_OS 1
4466 _ACEOF
4467
4468 else
4469
4470
4471 if $FALSEPRG; then
4472   HAVE_LINUX_OS_TRUE=
4473   HAVE_LINUX_OS_FALSE='#'
4474 else
4475   HAVE_LINUX_OS_TRUE='#'
4476   HAVE_LINUX_OS_FALSE=
4477 fi
4478 fi
4479
4480 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4481 then
4482
4483
4484 if $TRUEPRG; then
4485   HAVE_FREEBSD_OS_TRUE=
4486   HAVE_FREEBSD_OS_FALSE='#'
4487 else
4488   HAVE_FREEBSD_OS_TRUE='#'
4489   HAVE_FREEBSD_OS_FALSE=
4490 fi
4491         cat >>confdefs.h <<\_ACEOF
4492 #define HAVE_FREEBSD_OS 1
4493 _ACEOF
4494
4495 else
4496
4497
4498 if $FALSEPRG; then
4499   HAVE_FREEBSD_OS_TRUE=
4500   HAVE_FREEBSD_OS_FALSE='#'
4501 else
4502   HAVE_FREEBSD_OS_TRUE='#'
4503   HAVE_FREEBSD_OS_FALSE=
4504 fi
4505 fi
4506
4507 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4508 then
4509
4510
4511 if $TRUEPRG; then
4512   HAVE_NETBSD_OS_TRUE=
4513   HAVE_NETBSD_OS_FALSE='#'
4514 else
4515   HAVE_NETBSD_OS_TRUE='#'
4516   HAVE_NETBSD_OS_FALSE=
4517 fi
4518         cat >>confdefs.h <<\_ACEOF
4519 #define HAVE_NETBSD_OS 1
4520 _ACEOF
4521
4522 else
4523
4524
4525 if $FALSEPRG; then
4526   HAVE_NETBSD_OS_TRUE=
4527   HAVE_NETBSD_OS_FALSE='#'
4528 else
4529   HAVE_NETBSD_OS_TRUE='#'
4530   HAVE_NETBSD_OS_FALSE=
4531 fi
4532 fi
4533
4534 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4535 then
4536
4537
4538 if $TRUEPRG; then
4539   HAVE_OPENBSD_OS_TRUE=
4540   HAVE_OPENBSD_OS_FALSE='#'
4541 else
4542   HAVE_OPENBSD_OS_TRUE='#'
4543   HAVE_OPENBSD_OS_FALSE=
4544 fi
4545         cat >>confdefs.h <<\_ACEOF
4546 #define HAVE_OPENBSD_OS 1
4547 _ACEOF
4548
4549 else
4550
4551
4552 if $FALSEPRG; then
4553   HAVE_OPENBSD_OS_TRUE=
4554   HAVE_OPENBSD_OS_FALSE='#'
4555 else
4556   HAVE_OPENBSD_OS_TRUE='#'
4557   HAVE_OPENBSD_OS_FALSE=
4558 fi
4559 fi
4560
4561 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4562 then
4563
4564
4565 if $TRUEPRG; then
4566   HAVE_BSDI_OS_TRUE=
4567   HAVE_BSDI_OS_FALSE='#'
4568 else
4569   HAVE_BSDI_OS_TRUE='#'
4570   HAVE_BSDI_OS_FALSE=
4571 fi
4572         cat >>confdefs.h <<\_ACEOF
4573 #define HAVE_BSDI_OS 1
4574 _ACEOF
4575
4576 else
4577
4578
4579 if $FALSEPRG; then
4580   HAVE_BSDI_OS_TRUE=
4581   HAVE_BSDI_OS_FALSE='#'
4582 else
4583   HAVE_BSDI_OS_TRUE='#'
4584   HAVE_BSDI_OS_FALSE=
4585 fi
4586 fi
4587
4588 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4589 then
4590
4591
4592 if $TRUEPRG; then
4593   HAVE_SGI_OS_TRUE=
4594   HAVE_SGI_OS_FALSE='#'
4595 else
4596   HAVE_SGI_OS_TRUE='#'
4597   HAVE_SGI_OS_FALSE=
4598 fi
4599         cat >>confdefs.h <<\_ACEOF
4600 #define HAVE_SGI_OS 1
4601 _ACEOF
4602
4603 else
4604
4605
4606 if $FALSEPRG; then
4607   HAVE_SGI_OS_TRUE=
4608   HAVE_SGI_OS_FALSE='#'
4609 else
4610   HAVE_SGI_OS_TRUE='#'
4611   HAVE_SGI_OS_FALSE=
4612 fi
4613 fi
4614
4615 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4616 then
4617
4618
4619 if $TRUEPRG; then
4620   HAVE_IRIX_OS_TRUE=
4621   HAVE_IRIX_OS_FALSE='#'
4622 else
4623   HAVE_IRIX_OS_TRUE='#'
4624   HAVE_IRIX_OS_FALSE=
4625 fi
4626         cat >>confdefs.h <<\_ACEOF
4627 #define HAVE_IRIX_OS 1
4628 _ACEOF
4629
4630 else
4631
4632
4633 if $FALSEPRG; then
4634   HAVE_IRIX_OS_TRUE=
4635   HAVE_IRIX_OS_FALSE='#'
4636 else
4637   HAVE_IRIX_OS_TRUE='#'
4638   HAVE_IRIX_OS_FALSE=
4639 fi
4640 fi
4641
4642 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4643 then
4644
4645
4646 if $TRUEPRG; then
4647   HAVE_DARWIN_OS_TRUE=
4648   HAVE_DARWIN_OS_FALSE='#'
4649 else
4650   HAVE_DARWIN_OS_TRUE='#'
4651   HAVE_DARWIN_OS_FALSE=
4652 fi
4653     cat >>confdefs.h <<\_ACEOF
4654 #define HAVE_DARWIN_OS 1
4655 _ACEOF
4656
4657 else
4658
4659
4660 if $FALSEPRG; then
4661   HAVE_DARWIN_OS_TRUE=
4662   HAVE_DARWIN_OS_FALSE='#'
4663 else
4664   HAVE_DARWIN_OS_TRUE='#'
4665   HAVE_DARWIN_OS_FALSE=
4666 fi
4667 fi
4668
4669
4670 # -----------------------------------------------------------
4671 # ----------------------------------------------------------
4672 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4673 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4674 if test "x$DISTNAME" != "x"
4675 then
4676         echo "distname set to $DISTNAME"
4677 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4678 then
4679         DISTNAME=alpha
4680 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4681 then
4682         DISTNAME=aix
4683 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4684 then
4685         DISTNAME=hpux
4686 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4687 then
4688         DISTNAME=solaris
4689 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4690 then
4691         DISTNAME=freebsd
4692 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4693 then
4694         DISTNAME=netbsd
4695 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4696 then
4697         DISTNAME=openbsd
4698 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4699 then
4700         DISTNAME=irix
4701 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4702 then
4703         DISTNAME=bsdi
4704 elif test -f /etc/SuSE-release
4705 then
4706         DISTNAME=suse
4707 elif test -d /etc/SuSEconfig
4708 then
4709         DISTNAME=suse5
4710 elif test -f /etc/mandrake-release
4711 then
4712         DISTNAME=mandrake
4713 elif test -f /etc/whitebox-release
4714 then
4715        DISTNAME=redhat
4716 elif test -f /etc/redhat-release
4717 then
4718         DISTNAME=redhat
4719 elif test -f /etc/gentoo-release
4720 then
4721         DISTNAME=gentoo
4722 elif test -f /etc/debian_version
4723 then
4724         DISTNAME=debian
4725 elif test -f /etc/slackware-version
4726 then
4727         DISTNAME=slackware
4728 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4729 then
4730     DISTNAME=darwin
4731 elif test -f /etc/engarde-version
4732 then
4733         DISTNAME=engarde
4734 elif test "$CYGWIN" = yes
4735 then
4736         DISTNAME=cygwin
4737         cat >>confdefs.h <<\_ACEOF
4738 #define HAVE_CYGWIN 1
4739 _ACEOF
4740
4741 else
4742         DISTNAME=unknown
4743 fi
4744 echo "$as_me:$LINENO: result: done" >&5
4745 echo "${ECHO_T}done" >&6
4746
4747
4748 # -----------------------------------------------------------
4749 # ----------------------------------------------------------
4750
4751
4752
4753 if false; then
4754   INSIDE_GNOME_COMMON_TRUE=
4755   INSIDE_GNOME_COMMON_FALSE='#'
4756 else
4757   INSIDE_GNOME_COMMON_TRUE='#'
4758   INSIDE_GNOME_COMMON_FALSE=
4759 fi
4760
4761         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4762
4763         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4764
4765
4766 # ------------------------------------------------------------------
4767 #  If the user has not set --prefix, we set our default to nothing.
4768 #  In this case, if the user has not set --sysconfdir, we set it
4769 #  to the package default of /etc/bacula.  If either --prefix or
4770 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4771 # ------------------------------------------------------------------
4772 if test x${prefix} = xNONE ; then
4773     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4774         sysconfdir=/etc/bacula
4775     fi
4776     prefix=
4777 fi
4778 sysconfdir=`eval echo ${sysconfdir}`
4779
4780 # -------------------------------------------------------------------------
4781 #  If the user has not set --exec-prefix, we default to ${prefix}
4782 # -------------------------------------------------------------------------
4783 if test x${exec_prefix} = xNONE ; then
4784     exec_prefix=${prefix}
4785 fi
4786
4787 # ------------------------------------------------------------------
4788 # If the user has not set --sbindir, we set our default as /sbin
4789 # ------------------------------------------------------------------
4790 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4791     sbindir=${exec_prefix}/sbin
4792 fi
4793 sbindir=`eval echo ${sbindir}`
4794
4795 # -------------------------------------------------------------------------
4796 #  If the user has not set --mandir, we default to /usr/share/man
4797 # -------------------------------------------------------------------------
4798 if test x$mandir = x'${prefix}/man' ; then
4799    mandir=/usr/share/man
4800 fi
4801
4802
4803 # ------------------------------------------------------------------
4804 # All list of languages for which a translation exist. Each
4805 #  language is separated by a space.
4806 # ------------------------------------------------------------------
4807 ALL_LINGUAS=""
4808
4809 for ac_prog in msgfmt
4810 do
4811   # Extract the first word of "$ac_prog", so it can be a program name with args.
4812 set dummy $ac_prog; ac_word=$2
4813 echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815 if test "${ac_cv_path_MSGFMT+set}" = set; then
4816   echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818   case $MSGFMT in
4819   [\\/]* | ?:[\\/]*)
4820   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4821   ;;
4822   *)
4823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828   for ac_exec_ext in '' $ac_executable_extensions; do
4829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4832     break 2
4833   fi
4834 done
4835 done
4836
4837   ;;
4838 esac
4839 fi
4840 MSGFMT=$ac_cv_path_MSGFMT
4841
4842 if test -n "$MSGFMT"; then
4843   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4844 echo "${ECHO_T}$MSGFMT" >&6
4845 else
4846   echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4848 fi
4849
4850   test -n "$MSGFMT" && break
4851 done
4852 test -n "$MSGFMT" || MSGFMT="no"
4853
4854 if test "$MSGFMT" = "no"
4855 then
4856    echo 'msgfmt program not found, disabling NLS !'
4857    USE_NLS=no
4858    USE_INCLUDED_LIBINTL=no
4859 #else
4860 #   AM_GNU_GETTEXT
4861 fi
4862
4863
4864 support_mysql=no
4865 support_sqlite=no
4866 support_sqlite3=no
4867 support_postgresql=no
4868 support_smartalloc=yes
4869 support_readline=yes
4870 support_conio=yes
4871 support_gnome=no
4872 support_wx_console=no
4873 support_tls=no
4874 gnome_version=
4875 wx_version=
4876 support_static_tools=no
4877 support_static_fd=no
4878 support_static_sd=no
4879 support_static_dir=no
4880 support_static_cons=no
4881 support_python=no
4882 build_client_only=no
4883 cats=
4884 db_name=Internal
4885 DB_NAME=bdb
4886
4887
4888 # -------------------------------------------
4889 # gnome (default off)
4890 # -------------------------------------------
4891 # Check whether --enable-gnome or --disable-gnome was given.
4892 if test "${enable_gnome+set}" = set; then
4893   enableval="$enable_gnome"
4894   if test x$enableval = xyes; then
4895     support_gnome=yes
4896   fi
4897 fi;
4898
4899 GNOME_DIR=
4900 if test x$support_gnome = xyes; then
4901   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4902   pkg=$?
4903   if test $pkg = 0; then
4904      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4905      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4906      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4907      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4908
4909
4910
4911
4912      GNOME_DIR=src/gnome2-console
4913      gnome_version="Version 2.x"
4914   else
4915      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
4916 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
4917    { (exit 1); exit 1; }; }
4918   fi
4919 fi
4920
4921
4922
4923 # -------------------------------------------
4924 # wx-console (default off)
4925 # -------------------------------------------
4926 # Check whether --enable-wx-console or --disable-wx-console was given.
4927 if test "${enable_wx_console+set}" = set; then
4928   enableval="$enable_wx_console"
4929   if test x$enableval = xyes; then
4930     support_wx_console=yes
4931   fi
4932 fi;
4933
4934 WX_DIR=
4935 if test x$support_wx_console = xyes; then
4936   abc=`$WXCONFIG $WXFLAGS --cppflags`
4937   pkg=$?
4938   if test $pkg = 0; then
4939      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
4940      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
4941      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
4942
4943
4944
4945      WX_DIR=src/wx-console
4946   else
4947      echo " "
4948      echo "wx-config program not found. wx-console disabled."
4949      echo " "
4950      support_wx_console=no
4951   fi
4952 fi
4953
4954
4955
4956 # -------------------------------------------
4957 # tray-monitor (default off)
4958 # -------------------------------------------
4959 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4960 if test "${enable_tray_monitor+set}" = set; then
4961   enableval="$enable_tray_monitor"
4962   if test x$enableval = xyes; then
4963     support_tray_monitor=yes
4964   fi
4965 fi;
4966
4967 TRAY_MONITOR_DIR=
4968 if test x$support_tray_monitor = xyes; then
4969   abc=`$PKGCONFIG --exists gtk+-2.0`
4970   pkg=$?
4971   if test $pkg = 0; then
4972      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4973      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4974
4975
4976      TRAY_MONITOR_DIR=src/tray-monitor
4977      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4978      pkg=$?
4979      if test $pkg = 0; then
4980         cat >>confdefs.h <<\_ACEOF
4981 #define HAVE_GTK_2_4 1
4982 _ACEOF
4983
4984      fi
4985   fi
4986 fi
4987
4988
4989 # -------------------------------------------
4990 # smartalloc (default off)
4991 # -------------------------------------------
4992 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4993 if test "${enable_smartalloc+set}" = set; then
4994   enableval="$enable_smartalloc"
4995   if test x$enableval = xno; then
4996     support_smartalloc=no
4997   fi
4998 fi;
4999
5000 if test x$support_smartalloc = xyes; then
5001    cat >>confdefs.h <<\_ACEOF
5002 #define SMARTALLOC 1
5003 _ACEOF
5004
5005 fi
5006
5007 # -------------------------------------------
5008 # static-tools (default off)
5009 # -------------------------------------------
5010 # Check whether --enable-static-tools or --disable-static-tools was given.
5011 if test "${enable_static_tools+set}" = set; then
5012   enableval="$enable_static_tools"
5013   if test x$enableval = xyes; then
5014      support_static_tools=yes
5015    fi
5016 fi;
5017
5018 TTOOL_LDFLAGS=
5019 if test x$support_static_tools = xyes; then
5020    TTOOL_LDFLAGS="-static"
5021 fi
5022
5023
5024 # -------------------------------------------
5025 # static-fd    (default off)
5026 # -------------------------------------------
5027 # Check whether --enable-static-fd or --disable-static-fd was given.
5028 if test "${enable_static_fd+set}" = set; then
5029   enableval="$enable_static_fd"
5030   if test x$enableval = xyes; then
5031      support_static_fd=yes
5032    fi
5033 fi;
5034
5035 STATIC_FD=
5036 if test x$support_static_fd = xyes; then
5037    STATIC_FD="static-bacula-fd"
5038 fi
5039
5040
5041 # -------------------------------------------
5042 # static-sd    (default off)
5043 # -------------------------------------------
5044 # Check whether --enable-static-sd or --disable-static-sd was given.
5045 if test "${enable_static_sd+set}" = set; then
5046   enableval="$enable_static_sd"
5047   if test x$enableval = xyes; then
5048      support_static_sd=yes
5049    fi
5050 fi;
5051
5052 STATIC_SD=
5053 if test x$support_static_sd = xyes; then
5054    STATIC_SD="static-bacula-sd"
5055 fi
5056
5057
5058 # -------------------------------------------
5059 # static-dir   (default off)
5060 # -------------------------------------------
5061 # Check whether --enable-static-dir or --disable-static-dir was given.
5062 if test "${enable_static_dir+set}" = set; then
5063   enableval="$enable_static_dir"
5064   if test x$enableval = xyes; then
5065      support_static_dir=yes
5066    fi
5067 fi;
5068
5069 STATIC_DIR=
5070 if test x$support_static_dir = xyes; then
5071    STATIC_DIR="static-bacula-dir"
5072 fi
5073
5074
5075 # -------------------------------------------
5076 # static-cons  (default off)
5077 # -------------------------------------------
5078 # Check whether --enable-static-cons or --disable-static-cons was given.
5079 if test "${enable_static_cons+set}" = set; then
5080   enableval="$enable_static_cons"
5081   if test x$enableval = xyes; then
5082      support_static_cons=yes
5083    fi
5084 fi;
5085
5086 STATIC_CONS=
5087 STATIC_GNOME_CONS=
5088 STATIC_WX_CONS=
5089 if test x$support_static_cons = xyes; then
5090    STATIC_CONS="static-bconsole"
5091    STATIC_GNOME_CONS="static-gnome-console"
5092    STATIC_WX_CONS="static-wx-console"
5093 fi
5094
5095
5096
5097
5098 # -------------------------------------------
5099 # client_only  (default off)
5100 # -------------------------------------------
5101 # Check whether --enable-client-only or --disable-client-only was given.
5102 if test "${enable_client_only+set}" = set; then
5103   enableval="$enable_client_only"
5104   if test x$enableval = xyes; then
5105      build_client_only=yes
5106     db_name=None
5107     DB_NAME=none
5108    fi
5109 fi;
5110 if test x$build_client_only = xno; then
5111    ALL_DIRS="subdirs"
5112 else
5113    ALL_DIRS=""
5114 fi
5115
5116
5117 # ---------------------------------------------------
5118 # Check for conio (Bacula readline substitute)(
5119 # ---------------------------------------------------
5120 # this allows you to turn it completely off
5121 # Check whether --enable-conio or --disable-conio was given.
5122 if test "${enable_conio+set}" = set; then
5123   enableval="$enable_conio"
5124   if test x$enableval = xno; then
5125     support_conio=no
5126   fi
5127 fi;
5128
5129 got_conio="no"
5130 if test x$support_conio = xyes; then
5131    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5133 if test "${ac_cv_header_stdc+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h.  */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h.  */
5142 #include <stdlib.h>
5143 #include <stdarg.h>
5144 #include <string.h>
5145 #include <float.h>
5146
5147 int
5148 main ()
5149 {
5150
5151   ;
5152   return 0;
5153 }
5154 _ACEOF
5155 rm -f conftest.$ac_objext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157   (eval $ac_compile) 2>conftest.er1
5158   ac_status=$?
5159   grep -v '^ *+' conftest.er1 >conftest.err
5160   rm -f conftest.er1
5161   cat conftest.err >&5
5162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163   (exit $ac_status); } &&
5164          { ac_try='test -z "$ac_c_werror_flag"
5165                          || test ! -s conftest.err'
5166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167   (eval $ac_try) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); }; } &&
5171          { ac_try='test -s conftest.$ac_objext'
5172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173   (eval $ac_try) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; }; then
5177   ac_cv_header_stdc=yes
5178 else
5179   echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5181
5182 ac_cv_header_stdc=no
5183 fi
5184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5185
5186 if test $ac_cv_header_stdc = yes; then
5187   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5188   cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h.  */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h.  */
5194 #include <string.h>
5195
5196 _ACEOF
5197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5198   $EGREP "memchr" >/dev/null 2>&1; then
5199   :
5200 else
5201   ac_cv_header_stdc=no
5202 fi
5203 rm -f conftest*
5204
5205 fi
5206
5207 if test $ac_cv_header_stdc = yes; then
5208   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5209   cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h.  */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h.  */
5215 #include <stdlib.h>
5216
5217 _ACEOF
5218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5219   $EGREP "free" >/dev/null 2>&1; then
5220   :
5221 else
5222   ac_cv_header_stdc=no
5223 fi
5224 rm -f conftest*
5225
5226 fi
5227
5228 if test $ac_cv_header_stdc = yes; then
5229   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5230   if test "$cross_compiling" = yes; then
5231   :
5232 else
5233   cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h.  */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h.  */
5239 #include <ctype.h>
5240 #if ((' ' & 0x0FF) == 0x020)
5241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5243 #else
5244 # define ISLOWER(c) \
5245                    (('a' <= (c) && (c) <= 'i') \
5246                      || ('j' <= (c) && (c) <= 'r') \
5247                      || ('s' <= (c) && (c) <= 'z'))
5248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5249 #endif
5250
5251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5252 int
5253 main ()
5254 {
5255   int i;
5256   for (i = 0; i < 256; i++)
5257     if (XOR (islower (i), ISLOWER (i))
5258         || toupper (i) != TOUPPER (i))
5259       exit(2);
5260   exit (0);
5261 }
5262 _ACEOF
5263 rm -f conftest$ac_exeext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5265   (eval $ac_link) 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270   (eval $ac_try) 2>&5
5271   ac_status=$?
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); }; }; then
5274   :
5275 else
5276   echo "$as_me: program exited with status $ac_status" >&5
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280 ( exit $ac_status )
5281 ac_cv_header_stdc=no
5282 fi
5283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5284 fi
5285 fi
5286 fi
5287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5289 if test $ac_cv_header_stdc = yes; then
5290
5291 cat >>confdefs.h <<\_ACEOF
5292 #define STDC_HEADERS 1
5293 _ACEOF
5294
5295 fi
5296
5297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5308                   inttypes.h stdint.h unistd.h
5309 do
5310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311 echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h.  */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h.  */
5322 $ac_includes_default
5323
5324 #include <$ac_header>
5325 _ACEOF
5326 rm -f conftest.$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328   (eval $ac_compile) 2>conftest.er1
5329   ac_status=$?
5330   grep -v '^ *+' conftest.er1 >conftest.err
5331   rm -f conftest.er1
5332   cat conftest.err >&5
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); } &&
5335          { ac_try='test -z "$ac_c_werror_flag"
5336                          || test ! -s conftest.err'
5337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338   (eval $ac_try) 2>&5
5339   ac_status=$?
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); }; } &&
5342          { ac_try='test -s conftest.$ac_objext'
5343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344   (eval $ac_try) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; }; then
5348   eval "$as_ac_Header=yes"
5349 else
5350   echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 eval "$as_ac_Header=no"
5354 fi
5355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5356 fi
5357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5360   cat >>confdefs.h <<_ACEOF
5361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5362 _ACEOF
5363
5364 fi
5365
5366 done
5367
5368
5369 if test "${ac_cv_header_termcap_h+set}" = set; then
5370   echo "$as_me:$LINENO: checking for termcap.h" >&5
5371 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5372 if test "${ac_cv_header_termcap_h+set}" = set; then
5373   echo $ECHO_N "(cached) $ECHO_C" >&6
5374 fi
5375 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5376 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5377 else
5378   # Is the header compilable?
5379 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5380 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5381 cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h.  */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h.  */
5387 $ac_includes_default
5388 #include <termcap.h>
5389 _ACEOF
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392   (eval $ac_compile) 2>conftest.er1
5393   ac_status=$?
5394   grep -v '^ *+' conftest.er1 >conftest.err
5395   rm -f conftest.er1
5396   cat conftest.err >&5
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); } &&
5399          { ac_try='test -z "$ac_c_werror_flag"
5400                          || test ! -s conftest.err'
5401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402   (eval $ac_try) 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); }; } &&
5406          { ac_try='test -s conftest.$ac_objext'
5407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408   (eval $ac_try) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; }; then
5412   ac_header_compiler=yes
5413 else
5414   echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417 ac_header_compiler=no
5418 fi
5419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5421 echo "${ECHO_T}$ac_header_compiler" >&6
5422
5423 # Is the header present?
5424 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5425 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5426 cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h.  */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h.  */
5432 #include <termcap.h>
5433 _ACEOF
5434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5436   ac_status=$?
5437   grep -v '^ *+' conftest.er1 >conftest.err
5438   rm -f conftest.er1
5439   cat conftest.err >&5
5440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441   (exit $ac_status); } >/dev/null; then
5442   if test -s conftest.err; then
5443     ac_cpp_err=$ac_c_preproc_warn_flag
5444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5445   else
5446     ac_cpp_err=
5447   fi
5448 else
5449   ac_cpp_err=yes
5450 fi
5451 if test -z "$ac_cpp_err"; then
5452   ac_header_preproc=yes
5453 else
5454   echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457   ac_header_preproc=no
5458 fi
5459 rm -f conftest.err conftest.$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5461 echo "${ECHO_T}$ac_header_preproc" >&6
5462
5463 # So?  What about this header?
5464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5465   yes:no: )
5466     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5467 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5468     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5469 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5470     ac_header_preproc=yes
5471     ;;
5472   no:yes:* )
5473     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5474 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5475     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5476 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5477     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5478 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5479     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5480 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5481     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5482 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5483     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5484 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5485     (
5486       cat <<\_ASBOX
5487 ## ------------------------------------------ ##
5488 ## Report this to the AC_PACKAGE_NAME lists.  ##
5489 ## ------------------------------------------ ##
5490 _ASBOX
5491     ) |
5492       sed "s/^/$as_me: WARNING:     /" >&2
5493     ;;
5494 esac
5495 echo "$as_me:$LINENO: checking for termcap.h" >&5
5496 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5497 if test "${ac_cv_header_termcap_h+set}" = set; then
5498   echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500   ac_cv_header_termcap_h=$ac_header_preproc
5501 fi
5502 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5503 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5504
5505 fi
5506 if test $ac_cv_header_termcap_h = yes; then
5507    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5508 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5509 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512   ac_check_lib_save_LIBS=$LIBS
5513 LIBS="-ltermcap  $LIBS"
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h.  */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h.  */
5520
5521 /* Override any gcc2 internal prototype to avoid an error.  */
5522 #ifdef __cplusplus
5523 extern "C"
5524 #endif
5525 /* We use char because int might match the return type of a gcc2
5526    builtin and then its argument prototype would still apply.  */
5527 char tgetent ();
5528 int
5529 main ()
5530 {
5531 tgetent ();
5532   ;
5533   return 0;
5534 }
5535 _ACEOF
5536 rm -f conftest.$ac_objext conftest$ac_exeext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538   (eval $ac_link) 2>conftest.er1
5539   ac_status=$?
5540   grep -v '^ *+' conftest.er1 >conftest.err
5541   rm -f conftest.er1
5542   cat conftest.err >&5
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); } &&
5545          { ac_try='test -z "$ac_c_werror_flag"
5546                          || test ! -s conftest.err'
5547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548   (eval $ac_try) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; } &&
5552          { ac_try='test -s conftest$ac_exeext'
5553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554   (eval $ac_try) 2>&5
5555   ac_status=$?
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); }; }; then
5558   ac_cv_lib_termcap_tgetent=yes
5559 else
5560   echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563 ac_cv_lib_termcap_tgetent=no
5564 fi
5565 rm -f conftest.err conftest.$ac_objext \
5566       conftest$ac_exeext conftest.$ac_ext
5567 LIBS=$ac_check_lib_save_LIBS
5568 fi
5569 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5570 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5571 if test $ac_cv_lib_termcap_tgetent = yes; then
5572    CONS_LIBS="-ltermcap"
5573          CONS_OBJ="conio.o"
5574          CONS_SRC="conio.c"
5575          got_conio="yes"
5576          support_readline=no
5577
5578 cat >>confdefs.h <<\_ACEOF
5579 #define HAVE_CONIO 1
5580 _ACEOF
5581
5582
5583 else
5584    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5585 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5586 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5587   echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589   ac_check_lib_save_LIBS=$LIBS
5590 LIBS="-lncurses  $LIBS"
5591 cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h.  */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h.  */
5597
5598 /* Override any gcc2 internal prototype to avoid an error.  */
5599 #ifdef __cplusplus
5600 extern "C"
5601 #endif
5602 /* We use char because int might match the return type of a gcc2
5603    builtin and then its argument prototype would still apply.  */
5604 char tgetent ();
5605 int
5606 main ()
5607 {
5608 tgetent ();
5609   ;
5610   return 0;
5611 }
5612 _ACEOF
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615   (eval $ac_link) 2>conftest.er1
5616   ac_status=$?
5617   grep -v '^ *+' conftest.er1 >conftest.err
5618   rm -f conftest.er1
5619   cat conftest.err >&5
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); } &&
5622          { ac_try='test -z "$ac_c_werror_flag"
5623                          || test ! -s conftest.err'
5624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625   (eval $ac_try) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); }; } &&
5629          { ac_try='test -s conftest$ac_exeext'
5630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631   (eval $ac_try) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); }; }; then
5635   ac_cv_lib_ncurses_tgetent=yes
5636 else
5637   echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 ac_cv_lib_ncurses_tgetent=no
5641 fi
5642 rm -f conftest.err conftest.$ac_objext \
5643       conftest$ac_exeext conftest.$ac_ext
5644 LIBS=$ac_check_lib_save_LIBS
5645 fi
5646 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5647 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5648 if test $ac_cv_lib_ncurses_tgetent = yes; then
5649    CONS_LIBS="-lncurses"
5650            CONS_OBJ="conio.o"
5651            CONS_SRC="conio.c"
5652            got_conio="yes"
5653            support_readline=no
5654
5655 cat >>confdefs.h <<\_ACEOF
5656 #define HAVE_CONIO 1
5657 _ACEOF
5658
5659
5660 fi
5661
5662
5663 fi
5664
5665
5666 else
5667
5668
5669 for ac_header in curses.h
5670 do
5671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5673   echo "$as_me:$LINENO: checking for $ac_header" >&5
5674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 fi
5678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5680 else
5681   # Is the header compilable?
5682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h.  */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h.  */
5690 $ac_includes_default
5691 #include <$ac_header>
5692 _ACEOF
5693 rm -f conftest.$ac_objext
5694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695   (eval $ac_compile) 2>conftest.er1
5696   ac_status=$?
5697   grep -v '^ *+' conftest.er1 >conftest.err
5698   rm -f conftest.er1
5699   cat conftest.err >&5
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); } &&
5702          { ac_try='test -z "$ac_c_werror_flag"
5703                          || test ! -s conftest.err'
5704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705   (eval $ac_try) 2>&5
5706   ac_status=$?
5707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708   (exit $ac_status); }; } &&
5709          { ac_try='test -s conftest.$ac_objext'
5710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711   (eval $ac_try) 2>&5
5712   ac_status=$?
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); }; }; then
5715   ac_header_compiler=yes
5716 else
5717   echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720 ac_header_compiler=no
5721 fi
5722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5724 echo "${ECHO_T}$ac_header_compiler" >&6
5725
5726 # Is the header present?
5727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h.  */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h.  */
5735 #include <$ac_header>
5736 _ACEOF
5737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5739   ac_status=$?
5740   grep -v '^ *+' conftest.er1 >conftest.err
5741   rm -f conftest.er1
5742   cat conftest.err >&5
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); } >/dev/null; then
5745   if test -s conftest.err; then
5746     ac_cpp_err=$ac_c_preproc_warn_flag
5747     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5748   else
5749     ac_cpp_err=
5750   fi
5751 else
5752   ac_cpp_err=yes
5753 fi
5754 if test -z "$ac_cpp_err"; then
5755   ac_header_preproc=yes
5756 else
5757   echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5759
5760   ac_header_preproc=no
5761 fi
5762 rm -f conftest.err conftest.$ac_ext
5763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5764 echo "${ECHO_T}$ac_header_preproc" >&6
5765
5766 # So?  What about this header?
5767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5768   yes:no: )
5769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5773     ac_header_preproc=yes
5774     ;;
5775   no:yes:* )
5776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5778     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5779 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5780     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5782     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5783 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5786     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5788     (
5789       cat <<\_ASBOX
5790 ## ------------------------------------------ ##
5791 ## Report this to the AC_PACKAGE_NAME lists.  ##
5792 ## ------------------------------------------ ##
5793 _ASBOX
5794     ) |
5795       sed "s/^/$as_me: WARNING:     /" >&2
5796     ;;
5797 esac
5798 echo "$as_me:$LINENO: checking for $ac_header" >&5
5799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5801   echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803   eval "$as_ac_Header=\$ac_header_preproc"
5804 fi
5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5807
5808 fi
5809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5810   cat >>confdefs.h <<_ACEOF
5811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5812 _ACEOF
5813
5814 fi
5815
5816 done
5817
5818          echo "$as_me:$LINENO: checking for term.h" >&5
5819 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5820 if test "${ac_cv_header_term_h+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h.  */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h.  */
5829 #if HAVE_CURSES_H
5830 #include <curses.h>
5831 #endif
5832
5833
5834 #include <term.h>
5835 _ACEOF
5836 rm -f conftest.$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838   (eval $ac_compile) 2>conftest.er1
5839   ac_status=$?
5840   grep -v '^ *+' conftest.er1 >conftest.err
5841   rm -f conftest.er1
5842   cat conftest.err >&5
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } &&
5845          { ac_try='test -z "$ac_c_werror_flag"
5846                          || test ! -s conftest.err'
5847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848   (eval $ac_try) 2>&5
5849   ac_status=$?
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); }; } &&
5852          { ac_try='test -s conftest.$ac_objext'
5853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854   (eval $ac_try) 2>&5
5855   ac_status=$?
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); }; }; then
5858   ac_cv_header_term_h=yes
5859 else
5860   echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5862
5863 ac_cv_header_term_h=no
5864 fi
5865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5866 fi
5867 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5868 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5869 if test $ac_cv_header_term_h = yes; then
5870    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5871 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5872 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   ac_check_lib_save_LIBS=$LIBS
5876 LIBS="-lcurses  $LIBS"
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h.  */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h.  */
5883
5884 /* Override any gcc2 internal prototype to avoid an error.  */
5885 #ifdef __cplusplus
5886 extern "C"
5887 #endif
5888 /* We use char because int might match the return type of a gcc2
5889    builtin and then its argument prototype would still apply.  */
5890 char tgetent ();
5891 int
5892 main ()
5893 {
5894 tgetent ();
5895   ;
5896   return 0;
5897 }
5898 _ACEOF
5899 rm -f conftest.$ac_objext conftest$ac_exeext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901   (eval $ac_link) 2>conftest.er1
5902   ac_status=$?
5903   grep -v '^ *+' conftest.er1 >conftest.err
5904   rm -f conftest.er1
5905   cat conftest.err >&5
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); } &&
5908          { ac_try='test -z "$ac_c_werror_flag"
5909                          || test ! -s conftest.err'
5910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911   (eval $ac_try) 2>&5
5912   ac_status=$?
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); }; } &&
5915          { ac_try='test -s conftest$ac_exeext'
5916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917   (eval $ac_try) 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; }; then
5921   ac_cv_lib_curses_tgetent=yes
5922 else
5923   echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5925
5926 ac_cv_lib_curses_tgetent=no
5927 fi
5928 rm -f conftest.err conftest.$ac_objext \
5929       conftest$ac_exeext conftest.$ac_ext
5930 LIBS=$ac_check_lib_save_LIBS
5931 fi
5932 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5933 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5934 if test $ac_cv_lib_curses_tgetent = yes; then
5935    CONS_LIBS="-lcurses"
5936                    CONS_OBJ="conio.o"
5937                    CONS_SRC="conio.c"
5938                    got_conio="yes"
5939                    support_readline=no
5940
5941 cat >>confdefs.h <<\_ACEOF
5942 #define HAVE_CONIO 1
5943 _ACEOF
5944
5945
5946 fi
5947
5948
5949 else
5950    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5951 fi
5952
5953
5954
5955 fi
5956
5957
5958 fi
5959
5960
5961 # ---------------------------------------------------
5962 # Check for readline support/directory (default off)
5963 # ---------------------------------------------------
5964 # this allows you to turn it completely off
5965 # Check whether --enable-readline or --disable-readline was given.
5966 if test "${enable_readline+set}" = set; then
5967   enableval="$enable_readline"
5968   if test x$enableval = xno; then
5969     support_readline=no
5970   fi
5971 fi;
5972
5973 got_readline="no"
5974 READLINE_SRC=
5975 if test x$support_readline = xyes; then
5976
5977 # Check whether --with-readline or --without-readline was given.
5978 if test "${with_readline+set}" = set; then
5979   withval="$with_readline"
5980
5981         case "$with_readline" in
5982         no) : ;;
5983         yes|*)
5984           if test "$with_readline" != "yes"; then
5985             CONS_INC="-I${with_readline}"
5986             CONS_LDFLAGS="-L$with_readline"
5987           else
5988              with_readline="/usr/include/readline"
5989           fi
5990           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5992   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5993 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5995   echo $ECHO_N "(cached) $ECHO_C" >&6
5996 fi
5997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5999 else
6000   # Is the header compilable?
6001 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6002 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6003 cat >conftest.$ac_ext <<_ACEOF
6004 /* confdefs.h.  */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h.  */
6009 $ac_includes_default
6010 #include <${with_readline}/readline.h>
6011 _ACEOF
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014   (eval $ac_compile) 2>conftest.er1
6015   ac_status=$?
6016   grep -v '^ *+' conftest.er1 >conftest.err
6017   rm -f conftest.er1
6018   cat conftest.err >&5
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); } &&
6021          { ac_try='test -z "$ac_c_werror_flag"
6022                          || test ! -s conftest.err'
6023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024   (eval $ac_try) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); }; } &&
6028          { ac_try='test -s conftest.$ac_objext'
6029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030   (eval $ac_try) 2>&5
6031   ac_status=$?
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); }; }; then
6034   ac_header_compiler=yes
6035 else
6036   echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6038
6039 ac_header_compiler=no
6040 fi
6041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6043 echo "${ECHO_T}$ac_header_compiler" >&6
6044
6045 # Is the header present?
6046 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6047 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h.  */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h.  */
6054 #include <${with_readline}/readline.h>
6055 _ACEOF
6056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6058   ac_status=$?
6059   grep -v '^ *+' conftest.er1 >conftest.err
6060   rm -f conftest.er1
6061   cat conftest.err >&5
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); } >/dev/null; then
6064   if test -s conftest.err; then
6065     ac_cpp_err=$ac_c_preproc_warn_flag
6066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6067   else
6068     ac_cpp_err=
6069   fi
6070 else
6071   ac_cpp_err=yes
6072 fi
6073 if test -z "$ac_cpp_err"; then
6074   ac_header_preproc=yes
6075 else
6076   echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6078
6079   ac_header_preproc=no
6080 fi
6081 rm -f conftest.err conftest.$ac_ext
6082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6083 echo "${ECHO_T}$ac_header_preproc" >&6
6084
6085 # So?  What about this header?
6086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6087   yes:no: )
6088     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6089 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6090     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6091 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6092     ac_header_preproc=yes
6093     ;;
6094   no:yes:* )
6095     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6096 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6097     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6098 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6099     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6100 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6101     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6102 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6103     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6104 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6105     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6106 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6107     (
6108       cat <<\_ASBOX
6109 ## ------------------------------------------ ##
6110 ## Report this to the AC_PACKAGE_NAME lists.  ##
6111 ## ------------------------------------------ ##
6112 _ASBOX
6113     ) |
6114       sed "s/^/$as_me: WARNING:     /" >&2
6115     ;;
6116 esac
6117 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6118 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6120   echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122   eval "$as_ac_Header=\$ac_header_preproc"
6123 fi
6124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6126
6127 fi
6128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6129    cat >>confdefs.h <<\_ACEOF
6130 #define HAVE_READLINE 1
6131 _ACEOF
6132
6133                CONS_LIBS="-lreadline -ltermcap"
6134                got_readline="yes"
6135
6136 else
6137    echo " "
6138                echo "readline.h not found. readline turned off ..."
6139                echo " "
6140
6141
6142 fi
6143
6144
6145           ;;
6146         esac
6147
6148 else
6149
6150        # check for standard readline library
6151        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6152   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6153 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6154 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6155   echo $ECHO_N "(cached) $ECHO_C" >&6
6156 fi
6157 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6158 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6159 else
6160   # Is the header compilable?
6161 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6162 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6163 cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169 $ac_includes_default
6170 #include </usr/include/readline/readline.h>
6171 _ACEOF
6172 rm -f conftest.$ac_objext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6174   (eval $ac_compile) 2>conftest.er1
6175   ac_status=$?
6176   grep -v '^ *+' conftest.er1 >conftest.err
6177   rm -f conftest.er1
6178   cat conftest.err >&5
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } &&
6181          { ac_try='test -z "$ac_c_werror_flag"
6182                          || test ! -s conftest.err'
6183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184   (eval $ac_try) 2>&5
6185   ac_status=$?
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); }; } &&
6188          { ac_try='test -s conftest.$ac_objext'
6189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190   (eval $ac_try) 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); }; }; then
6194   ac_header_compiler=yes
6195 else
6196   echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6198
6199 ac_header_compiler=no
6200 fi
6201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6203 echo "${ECHO_T}$ac_header_compiler" >&6
6204
6205 # Is the header present?
6206 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6207 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6208 cat >conftest.$ac_ext <<_ACEOF
6209 /* confdefs.h.  */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h.  */
6214 #include </usr/include/readline/readline.h>
6215 _ACEOF
6216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6218   ac_status=$?
6219   grep -v '^ *+' conftest.er1 >conftest.err
6220   rm -f conftest.er1
6221   cat conftest.err >&5
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); } >/dev/null; then
6224   if test -s conftest.err; then
6225     ac_cpp_err=$ac_c_preproc_warn_flag
6226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6227   else
6228     ac_cpp_err=
6229   fi
6230 else
6231   ac_cpp_err=yes
6232 fi
6233 if test -z "$ac_cpp_err"; then
6234   ac_header_preproc=yes
6235 else
6236   echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239   ac_header_preproc=no
6240 fi
6241 rm -f conftest.err conftest.$ac_ext
6242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6243 echo "${ECHO_T}$ac_header_preproc" >&6
6244
6245 # So?  What about this header?
6246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6247   yes:no: )
6248     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6249 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6250     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6251 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6252     ac_header_preproc=yes
6253     ;;
6254   no:yes:* )
6255     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6256 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6257     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6258 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6259     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6260 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6261     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6262 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6263     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6264 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6265     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6266 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6267     (
6268       cat <<\_ASBOX
6269 ## ------------------------------------------ ##
6270 ## Report this to the AC_PACKAGE_NAME lists.  ##
6271 ## ------------------------------------------ ##
6272 _ASBOX
6273     ) |
6274       sed "s/^/$as_me: WARNING:     /" >&2
6275     ;;
6276 esac
6277 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6278 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6279 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6280   echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6283 fi
6284 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6285 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6286
6287 fi
6288 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6289    cat >>confdefs.h <<\_ACEOF
6290 #define HAVE_READLINE 1
6291 _ACEOF
6292
6293            got_readline="yes"
6294            CONS_INC="-I/usr/include/readline"
6295            CONS_LIBS="-lreadline -ltermcap"
6296
6297 else
6298
6299            # Did not find standard library, so try Bacula's default
6300             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6302   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6303 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6305   echo $ECHO_N "(cached) $ECHO_C" >&6
6306 fi
6307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6309 else
6310   # Is the header compilable?
6311 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6312 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6313 cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h.  */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h.  */
6319 $ac_includes_default
6320 #include <${TOP_DIR}/depkgs/readline/readline.h>
6321 _ACEOF
6322 rm -f conftest.$ac_objext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324   (eval $ac_compile) 2>conftest.er1
6325   ac_status=$?
6326   grep -v '^ *+' conftest.er1 >conftest.err
6327   rm -f conftest.er1
6328   cat conftest.err >&5
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); } &&
6331          { ac_try='test -z "$ac_c_werror_flag"
6332                          || test ! -s conftest.err'
6333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334   (eval $ac_try) 2>&5
6335   ac_status=$?
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); }; } &&
6338          { ac_try='test -s conftest.$ac_objext'
6339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340   (eval $ac_try) 2>&5
6341   ac_status=$?
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); }; }; then
6344   ac_header_compiler=yes
6345 else
6346   echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6348
6349 ac_header_compiler=no
6350 fi
6351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6353 echo "${ECHO_T}$ac_header_compiler" >&6
6354
6355 # Is the header present?
6356 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6357 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6358 cat >conftest.$ac_ext <<_ACEOF
6359 /* confdefs.h.  */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h.  */
6364 #include <${TOP_DIR}/depkgs/readline/readline.h>
6365 _ACEOF
6366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6368   ac_status=$?
6369   grep -v '^ *+' conftest.er1 >conftest.err
6370   rm -f conftest.er1
6371   cat conftest.err >&5
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); } >/dev/null; then
6374   if test -s conftest.err; then
6375     ac_cpp_err=$ac_c_preproc_warn_flag
6376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6377   else
6378     ac_cpp_err=
6379   fi
6380 else
6381   ac_cpp_err=yes
6382 fi
6383 if test -z "$ac_cpp_err"; then
6384   ac_header_preproc=yes
6385 else
6386   echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6388
6389   ac_header_preproc=no
6390 fi
6391 rm -f conftest.err conftest.$ac_ext
6392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6393 echo "${ECHO_T}$ac_header_preproc" >&6
6394
6395 # So?  What about this header?
6396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6397   yes:no: )
6398     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6399 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6400     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6401 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6402     ac_header_preproc=yes
6403     ;;
6404   no:yes:* )
6405     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6406 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6407     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6408 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6409     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6410 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6411     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6412 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6413     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6414 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6415     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6416 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6417     (
6418       cat <<\_ASBOX
6419 ## ------------------------------------------ ##
6420 ## Report this to the AC_PACKAGE_NAME lists.  ##
6421 ## ------------------------------------------ ##
6422 _ASBOX
6423     ) |
6424       sed "s/^/$as_me: WARNING:     /" >&2
6425     ;;
6426 esac
6427 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6428 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6430   echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432   eval "$as_ac_Header=\$ac_header_preproc"
6433 fi
6434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6436
6437 fi
6438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6439    cat >>confdefs.h <<\_ACEOF
6440 #define HAVE_READLINE 1
6441 _ACEOF
6442
6443                  got_readline="yes"
6444                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6445                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6446                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6447                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6448
6449 else
6450    echo " "
6451                 echo "readline.h not found. readline turned off ..."
6452                 echo " "
6453
6454
6455 fi
6456
6457
6458
6459
6460 fi
6461
6462
6463
6464
6465 fi;
6466 fi
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477 # Minimal stuff for readline Makefile configuration
6478 MAKE_SHELL=/bin/sh
6479
6480 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6481 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6482 if test "${ac_cv_header_stat_broken+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   cat >conftest.$ac_ext <<_ACEOF
6486 /* confdefs.h.  */
6487 _ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h.  */
6491 #include <sys/types.h>
6492 #include <sys/stat.h>
6493
6494 #if defined(S_ISBLK) && defined(S_IFDIR)
6495 # if S_ISBLK (S_IFDIR)
6496 You lose.
6497 # endif
6498 #endif
6499
6500 #if defined(S_ISBLK) && defined(S_IFCHR)
6501 # if S_ISBLK (S_IFCHR)
6502 You lose.
6503 # endif
6504 #endif
6505
6506 #if defined(S_ISLNK) && defined(S_IFREG)
6507 # if S_ISLNK (S_IFREG)
6508 You lose.
6509 # endif
6510 #endif
6511
6512 #if defined(S_ISSOCK) && defined(S_IFREG)
6513 # if S_ISSOCK (S_IFREG)
6514 You lose.
6515 # endif
6516 #endif
6517
6518 _ACEOF
6519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6520   $EGREP "You lose" >/dev/null 2>&1; then
6521   ac_cv_header_stat_broken=yes
6522 else
6523   ac_cv_header_stat_broken=no
6524 fi
6525 rm -f conftest*
6526
6527 fi
6528 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6529 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6530 if test $ac_cv_header_stat_broken = yes; then
6531
6532 cat >>confdefs.h <<\_ACEOF
6533 #define STAT_MACROS_BROKEN 1
6534 _ACEOF
6535
6536 fi
6537
6538
6539
6540
6541
6542
6543 ac_header_dirent=no
6544 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6545   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6546 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6547 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551   cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h.  */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h.  */
6557 #include <sys/types.h>
6558 #include <$ac_hdr>
6559
6560 int
6561 main ()
6562 {
6563 if ((DIR *) 0)
6564 return 0;
6565   ;
6566   return 0;
6567 }
6568 _ACEOF
6569 rm -f conftest.$ac_objext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571   (eval $ac_compile) 2>conftest.er1
6572   ac_status=$?
6573   grep -v '^ *+' conftest.er1 >conftest.err
6574   rm -f conftest.er1
6575   cat conftest.err >&5
6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577   (exit $ac_status); } &&
6578          { ac_try='test -z "$ac_c_werror_flag"
6579                          || test ! -s conftest.err'
6580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581   (eval $ac_try) 2>&5
6582   ac_status=$?
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); }; } &&
6585          { ac_try='test -s conftest.$ac_objext'
6586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587   (eval $ac_try) 2>&5
6588   ac_status=$?
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); }; }; then
6591   eval "$as_ac_Header=yes"
6592 else
6593   echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6595
6596 eval "$as_ac_Header=no"
6597 fi
6598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6599 fi
6600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6603   cat >>confdefs.h <<_ACEOF
6604 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6605 _ACEOF
6606
6607 ac_header_dirent=$ac_hdr; break
6608 fi
6609
6610 done
6611 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6612 if test $ac_header_dirent = dirent.h; then
6613   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6614 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6615 if test "${ac_cv_search_opendir+set}" = set; then
6616   echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618   ac_func_search_save_LIBS=$LIBS
6619 ac_cv_search_opendir=no
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h.  */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h.  */
6626
6627 /* Override any gcc2 internal prototype to avoid an error.  */
6628 #ifdef __cplusplus
6629 extern "C"
6630 #endif
6631 /* We use char because int might match the return type of a gcc2
6632    builtin and then its argument prototype would still apply.  */
6633 char opendir ();
6634 int
6635 main ()
6636 {
6637 opendir ();
6638   ;
6639   return 0;
6640 }
6641 _ACEOF
6642 rm -f conftest.$ac_objext conftest$ac_exeext
6643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6644   (eval $ac_link) 2>conftest.er1
6645   ac_status=$?
6646   grep -v '^ *+' conftest.er1 >conftest.err
6647   rm -f conftest.er1
6648   cat conftest.err >&5
6649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); } &&
6651          { ac_try='test -z "$ac_c_werror_flag"
6652                          || test ! -s conftest.err'
6653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654   (eval $ac_try) 2>&5
6655   ac_status=$?
6656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657   (exit $ac_status); }; } &&
6658          { ac_try='test -s conftest$ac_exeext'
6659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660   (eval $ac_try) 2>&5
6661   ac_status=$?
6662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663   (exit $ac_status); }; }; then
6664   ac_cv_search_opendir="none required"
6665 else
6666   echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6668
6669 fi
6670 rm -f conftest.err conftest.$ac_objext \
6671       conftest$ac_exeext conftest.$ac_ext
6672 if test "$ac_cv_search_opendir" = no; then
6673   for ac_lib in dir; do
6674     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6675     cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h.  */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h.  */
6681
6682 /* Override any gcc2 internal prototype to avoid an error.  */
6683 #ifdef __cplusplus
6684 extern "C"
6685 #endif
6686 /* We use char because int might match the return type of a gcc2
6687    builtin and then its argument prototype would still apply.  */
6688 char opendir ();
6689 int
6690 main ()
6691 {
6692 opendir ();
6693   ;
6694   return 0;
6695 }
6696 _ACEOF
6697 rm -f conftest.$ac_objext conftest$ac_exeext
6698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6699   (eval $ac_link) 2>conftest.er1
6700   ac_status=$?
6701   grep -v '^ *+' conftest.er1 >conftest.err
6702   rm -f conftest.er1
6703   cat conftest.err >&5
6704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705   (exit $ac_status); } &&
6706          { ac_try='test -z "$ac_c_werror_flag"
6707                          || test ! -s conftest.err'
6708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709   (eval $ac_try) 2>&5
6710   ac_status=$?
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); }; } &&
6713          { ac_try='test -s conftest$ac_exeext'
6714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715   (eval $ac_try) 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); }; }; then
6719   ac_cv_search_opendir="-l$ac_lib"
6720 break
6721 else
6722   echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6724
6725 fi
6726 rm -f conftest.err conftest.$ac_objext \
6727       conftest$ac_exeext conftest.$ac_ext
6728   done
6729 fi
6730 LIBS=$ac_func_search_save_LIBS
6731 fi
6732 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6733 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6734 if test "$ac_cv_search_opendir" != no; then
6735   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6736
6737 fi
6738
6739 else
6740   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6741 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6742 if test "${ac_cv_search_opendir+set}" = set; then
6743   echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745   ac_func_search_save_LIBS=$LIBS
6746 ac_cv_search_opendir=no
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h.  */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h.  */
6753
6754 /* Override any gcc2 internal prototype to avoid an error.  */
6755 #ifdef __cplusplus
6756 extern "C"
6757 #endif
6758 /* We use char because int might match the return type of a gcc2
6759    builtin and then its argument prototype would still apply.  */
6760 char opendir ();
6761 int
6762 main ()
6763 {
6764 opendir ();
6765   ;
6766   return 0;
6767 }
6768 _ACEOF
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6771   (eval $ac_link) 2>conftest.er1
6772   ac_status=$?
6773   grep -v '^ *+' conftest.er1 >conftest.err
6774   rm -f conftest.er1
6775   cat conftest.err >&5
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } &&
6778          { ac_try='test -z "$ac_c_werror_flag"
6779                          || test ! -s conftest.err'
6780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781   (eval $ac_try) 2>&5
6782   ac_status=$?
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); }; } &&
6785          { ac_try='test -s conftest$ac_exeext'
6786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787   (eval $ac_try) 2>&5
6788   ac_status=$?
6789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790   (exit $ac_status); }; }; then
6791   ac_cv_search_opendir="none required"
6792 else
6793   echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 fi
6797 rm -f conftest.err conftest.$ac_objext \
6798       conftest$ac_exeext conftest.$ac_ext
6799 if test "$ac_cv_search_opendir" = no; then
6800   for ac_lib in x; do
6801     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6802     cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h.  */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h.  */
6808
6809 /* Override any gcc2 internal prototype to avoid an error.  */
6810 #ifdef __cplusplus
6811 extern "C"
6812 #endif
6813 /* We use char because int might match the return type of a gcc2
6814    builtin and then its argument prototype would still apply.  */
6815 char opendir ();
6816 int
6817 main ()
6818 {
6819 opendir ();
6820   ;
6821   return 0;
6822 }
6823 _ACEOF
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826   (eval $ac_link) 2>conftest.er1
6827   ac_status=$?
6828   grep -v '^ *+' conftest.er1 >conftest.err
6829   rm -f conftest.er1
6830   cat conftest.err >&5
6831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832   (exit $ac_status); } &&
6833          { ac_try='test -z "$ac_c_werror_flag"
6834                          || test ! -s conftest.err'
6835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836   (eval $ac_try) 2>&5
6837   ac_status=$?
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); }; } &&
6840          { ac_try='test -s conftest$ac_exeext'
6841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842   (eval $ac_try) 2>&5
6843   ac_status=$?
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); }; }; then
6846   ac_cv_search_opendir="-l$ac_lib"
6847 break
6848 else
6849   echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6851
6852 fi
6853 rm -f conftest.err conftest.$ac_objext \
6854       conftest$ac_exeext conftest.$ac_ext
6855   done
6856 fi
6857 LIBS=$ac_func_search_save_LIBS
6858 fi
6859 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6860 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6861 if test "$ac_cv_search_opendir" != no; then
6862   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6863
6864 fi
6865
6866 fi
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6877 do
6878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6879 echo "$as_me:$LINENO: checking for $ac_func" >&5
6880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6881 if eval "test \"\${$as_ac_var+set}\" = set"; then
6882   echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884   cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h.  */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h.  */
6890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6892 #define $ac_func innocuous_$ac_func
6893
6894 /* System header to define __stub macros and hopefully few prototypes,
6895     which can conflict with char $ac_func (); below.
6896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6897     <limits.h> exists even on freestanding compilers.  */
6898
6899 #ifdef __STDC__
6900 # include <limits.h>
6901 #else
6902 # include <assert.h>
6903 #endif
6904
6905 #undef $ac_func
6906
6907 /* Override any gcc2 internal prototype to avoid an error.  */
6908 #ifdef __cplusplus
6909 extern "C"
6910 {
6911 #endif
6912 /* We use char because int might match the return type of a gcc2
6913    builtin and then its argument prototype would still apply.  */
6914 char $ac_func ();
6915 /* The GNU C library defines this for functions which it implements
6916     to always fail with ENOSYS.  Some functions are actually named
6917     something starting with __ and the normal name is an alias.  */
6918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6919 choke me
6920 #else
6921 char (*f) () = $ac_func;
6922 #endif
6923 #ifdef __cplusplus
6924 }
6925 #endif
6926
6927 int
6928 main ()
6929 {
6930 return f != $ac_func;
6931   ;
6932   return 0;
6933 }
6934 _ACEOF
6935 rm -f conftest.$ac_objext conftest$ac_exeext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937   (eval $ac_link) 2>conftest.er1
6938   ac_status=$?
6939   grep -v '^ *+' conftest.er1 >conftest.err
6940   rm -f conftest.er1
6941   cat conftest.err >&5
6942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943   (exit $ac_status); } &&
6944          { ac_try='test -z "$ac_c_werror_flag"
6945                          || test ! -s conftest.err'
6946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947   (eval $ac_try) 2>&5
6948   ac_status=$?
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); }; } &&
6951          { ac_try='test -s conftest$ac_exeext'
6952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953   (eval $ac_try) 2>&5
6954   ac_status=$?
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); }; }; then
6957   eval "$as_ac_var=yes"
6958 else
6959   echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6961
6962 eval "$as_ac_var=no"
6963 fi
6964 rm -f conftest.err conftest.$ac_objext \
6965       conftest$ac_exeext conftest.$ac_ext
6966 fi
6967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6969 if test `eval echo '${'$as_ac_var'}'` = yes; then
6970   cat >>confdefs.h <<_ACEOF
6971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6972 _ACEOF
6973
6974 fi
6975 done
6976
6977
6978
6979 for ac_func in nanosleep nl_langinfo
6980 do
6981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6982 echo "$as_me:$LINENO: checking for $ac_func" >&5
6983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6984 if eval "test \"\${$as_ac_var+set}\" = set"; then
6985   echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987   cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h.  */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h.  */
6993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6995 #define $ac_func innocuous_$ac_func
6996
6997 /* System header to define __stub macros and hopefully few prototypes,
6998     which can conflict with char $ac_func (); below.
6999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7000     <limits.h> exists even on freestanding compilers.  */
7001
7002 #ifdef __STDC__
7003 # include <limits.h>
7004 #else
7005 # include <assert.h>
7006 #endif
7007
7008 #undef $ac_func
7009
7010 /* Override any gcc2 internal prototype to avoid an error.  */
7011 #ifdef __cplusplus
7012 extern "C"
7013 {
7014 #endif
7015 /* We use char because int might match the return type of a gcc2
7016    builtin and then its argument prototype would still apply.  */
7017 char $ac_func ();
7018 /* The GNU C library defines this for functions which it implements
7019     to always fail with ENOSYS.  Some functions are actually named
7020     something starting with __ and the normal name is an alias.  */
7021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7022 choke me
7023 #else
7024 char (*f) () = $ac_func;
7025 #endif
7026 #ifdef __cplusplus
7027 }
7028 #endif
7029
7030 int
7031 main ()
7032 {
7033 return f != $ac_func;
7034   ;
7035   return 0;
7036 }
7037 _ACEOF
7038 rm -f conftest.$ac_objext conftest$ac_exeext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040   (eval $ac_link) 2>conftest.er1
7041   ac_status=$?
7042   grep -v '^ *+' conftest.er1 >conftest.err
7043   rm -f conftest.er1
7044   cat conftest.err >&5
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); } &&
7047          { ac_try='test -z "$ac_c_werror_flag"
7048                          || test ! -s conftest.err'
7049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050   (eval $ac_try) 2>&5
7051   ac_status=$?
7052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053   (exit $ac_status); }; } &&
7054          { ac_try='test -s conftest$ac_exeext'
7055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056   (eval $ac_try) 2>&5
7057   ac_status=$?
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); }; }; then
7060   eval "$as_ac_var=yes"
7061 else
7062   echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7064
7065 eval "$as_ac_var=no"
7066 fi
7067 rm -f conftest.err conftest.$ac_objext \
7068       conftest$ac_exeext conftest.$ac_ext
7069 fi
7070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7072 if test `eval echo '${'$as_ac_var'}'` = yes; then
7073   cat >>confdefs.h <<_ACEOF
7074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7075 _ACEOF
7076
7077 fi
7078 done
7079
7080
7081 for ac_header in varargs.h
7082 do
7083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7085   echo "$as_me:$LINENO: checking for $ac_header" >&5
7086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 fi
7090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7092 else
7093   # Is the header compilable?
7094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7096 cat >conftest.$ac_ext <<_ACEOF
7097 /* confdefs.h.  */
7098 _ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h.  */
7102 $ac_includes_default
7103 #include <$ac_header>
7104 _ACEOF
7105 rm -f conftest.$ac_objext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107   (eval $ac_compile) 2>conftest.er1
7108   ac_status=$?
7109   grep -v '^ *+' conftest.er1 >conftest.err
7110   rm -f conftest.er1
7111   cat conftest.err >&5
7112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113   (exit $ac_status); } &&
7114          { ac_try='test -z "$ac_c_werror_flag"
7115                          || test ! -s conftest.err'
7116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117   (eval $ac_try) 2>&5
7118   ac_status=$?
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); }; } &&
7121          { ac_try='test -s conftest.$ac_objext'
7122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123   (eval $ac_try) 2>&5
7124   ac_status=$?
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); }; }; then
7127   ac_header_compiler=yes
7128 else
7129   echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132 ac_header_compiler=no
7133 fi
7134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7136 echo "${ECHO_T}$ac_header_compiler" >&6
7137
7138 # Is the header present?
7139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7141 cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h.  */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h.  */
7147 #include <$ac_header>
7148 _ACEOF
7149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7151   ac_status=$?
7152   grep -v '^ *+' conftest.er1 >conftest.err
7153   rm -f conftest.er1
7154   cat conftest.err >&5
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); } >/dev/null; then
7157   if test -s conftest.err; then
7158     ac_cpp_err=$ac_c_preproc_warn_flag
7159     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7160   else
7161     ac_cpp_err=
7162   fi
7163 else
7164   ac_cpp_err=yes
7165 fi
7166 if test -z "$ac_cpp_err"; then
7167   ac_header_preproc=yes
7168 else
7169   echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7171
7172   ac_header_preproc=no
7173 fi
7174 rm -f conftest.err conftest.$ac_ext
7175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7176 echo "${ECHO_T}$ac_header_preproc" >&6
7177
7178 # So?  What about this header?
7179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7180   yes:no: )
7181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7185     ac_header_preproc=yes
7186     ;;
7187   no:yes:* )
7188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7190     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7191 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7192     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7194     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7195 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7198     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7200     (
7201       cat <<\_ASBOX
7202 ## ------------------------------------------ ##
7203 ## Report this to the AC_PACKAGE_NAME lists.  ##
7204 ## ------------------------------------------ ##
7205 _ASBOX
7206     ) |
7207       sed "s/^/$as_me: WARNING:     /" >&2
7208     ;;
7209 esac
7210 echo "$as_me:$LINENO: checking for $ac_header" >&5
7211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7213   echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215   eval "$as_ac_Header=\$ac_header_preproc"
7216 fi
7217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7219
7220 fi
7221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7222   cat >>confdefs.h <<_ACEOF
7223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7224 _ACEOF
7225
7226 fi
7227
7228 done
7229
7230
7231 # End of readline/conio stuff
7232 # -----------------------------------------------------------------------
7233
7234 # -----------------------------------------------------------------------
7235 #  Check for Python support
7236 #
7237 echo "$as_me:$LINENO: checking for Python support" >&5
7238 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7239
7240 # Check whether --with-python or --without-python was given.
7241 if test "${with_python+set}" = set; then
7242   withval="$with_python"
7243
7244   PYTHON_INCDIR=
7245   PYTHON_LIBS=
7246   if test "$withval" != "no"; then
7247      if test "$withval" = "yes"; then
7248         for python_root in /usr /usr/local; do
7249           if test -f $python_root/include/python2.2/Python.h; then
7250              PYTHON_INCDIR=-I$python_root/include/python2.2
7251              PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2 -lutil"
7252              break
7253           elif test -f $python_root/include/python2.3/Python.h; then
7254              PYTHON_INCDIR=-I$python_root/include/python2.3
7255              PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3 -lutil"
7256              break
7257           elif test -f $python_root/include/python2.4/Python.h; then
7258              PYTHON_INCDIR=-I$python_root/include/python2.4
7259              PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4 -lutil"
7260              break
7261           fi
7262         done
7263         if test x$PYTHON_INCDIR = x; then
7264           if test -f $prefix/include/Python.h; then
7265              PYTHON_INCDIR=-I$prefix/include
7266              PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil"
7267           else
7268            echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7270            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7271 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7272    { (exit 1); exit 1; }; }
7273           fi
7274         fi
7275      else
7276         if test -f $withval/Python.h; then
7277            PYTHON_INCDIR=-I$withval
7278            PYTHON_LIBS="-L$withval/config -lpython -lutil"
7279         elif test -f $withval/include/Python.h; then
7280            PYTHON_INCDIR=-I$withval/include
7281            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil"
7282         else
7283            echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6
7285            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7286 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7287    { (exit 1); exit 1; }; }
7288         fi
7289      fi
7290      cat >>confdefs.h <<\_ACEOF
7291 #define HAVE_PYTHON 1
7292 _ACEOF
7293
7294      echo "$as_me:$LINENO: result: yes" >&5
7295 echo "${ECHO_T}yes" >&6
7296      support_python=yes
7297
7298   else
7299      echo "$as_me:$LINENO: result: no" >&5
7300 echo "${ECHO_T}no" >&6
7301   fi
7302
7303 else
7304
7305   echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6
7307
7308 fi;
7309
7310
7311
7312
7313 #
7314 # Find where sockets are (especially for Solaris)
7315 # Do this before the TCP Wrappers test since tcp wrappers
7316 # uses the socket library and some linkers are stupid.
7317 #
7318 echo "$as_me:$LINENO: checking for socket" >&5
7319 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7320 if test "${ac_cv_func_socket+set}" = set; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323   cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h.  */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h.  */
7329 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7331 #define socket innocuous_socket
7332
7333 /* System header to define __stub macros and hopefully few prototypes,
7334     which can conflict with char socket (); below.
7335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7336     <limits.h> exists even on freestanding compilers.  */
7337
7338 #ifdef __STDC__
7339 # include <limits.h>
7340 #else
7341 # include <assert.h>
7342 #endif
7343
7344 #undef socket
7345
7346 /* Override any gcc2 internal prototype to avoid an error.  */
7347 #ifdef __cplusplus
7348 extern "C"
7349 {
7350 #endif
7351 /* We use char because int might match the return type of a gcc2
7352    builtin and then its argument prototype would still apply.  */
7353 char socket ();
7354 /* The GNU C library defines this for functions which it implements
7355     to always fail with ENOSYS.  Some functions are actually named
7356     something starting with __ and the normal name is an alias.  */
7357 #if defined (__stub_socket) || defined (__stub___socket)
7358 choke me
7359 #else
7360 char (*f) () = socket;
7361 #endif
7362 #ifdef __cplusplus
7363 }
7364 #endif
7365
7366 int
7367 main ()
7368 {
7369 return f != socket;
7370   ;
7371   return 0;
7372 }
7373 _ACEOF
7374 rm -f conftest.$ac_objext conftest$ac_exeext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7376   (eval $ac_link) 2>conftest.er1
7377   ac_status=$?
7378   grep -v '^ *+' conftest.er1 >conftest.err
7379   rm -f conftest.er1
7380   cat conftest.err >&5
7381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382   (exit $ac_status); } &&
7383          { ac_try='test -z "$ac_c_werror_flag"
7384                          || test ! -s conftest.err'
7385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386   (eval $ac_try) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); }; } &&
7390          { ac_try='test -s conftest$ac_exeext'
7391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392   (eval $ac_try) 2>&5
7393   ac_status=$?
7394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); }; }; then
7396   ac_cv_func_socket=yes
7397 else
7398   echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7400
7401 ac_cv_func_socket=no
7402 fi
7403 rm -f conftest.err conftest.$ac_objext \
7404       conftest$ac_exeext conftest.$ac_ext
7405 fi
7406 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7407 echo "${ECHO_T}$ac_cv_func_socket" >&6
7408 if test $ac_cv_func_socket = yes; then
7409   echo "$as_me:$LINENO: result: using libc's socket" >&5
7410 echo "${ECHO_T}using libc's socket" >&6
7411 else
7412
7413 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7414 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7415 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418   ac_check_lib_save_LIBS=$LIBS
7419 LIBS="-lxnet  $LIBS"
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h.  */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h.  */
7426
7427 /* Override any gcc2 internal prototype to avoid an error.  */
7428 #ifdef __cplusplus
7429 extern "C"
7430 #endif
7431 /* We use char because int might match the return type of a gcc2
7432    builtin and then its argument prototype would still apply.  */
7433 char socket ();
7434 int
7435 main ()
7436 {
7437 socket ();
7438   ;
7439   return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444   (eval $ac_link) 2>conftest.er1
7445   ac_status=$?
7446   grep -v '^ *+' conftest.er1 >conftest.err
7447   rm -f conftest.er1
7448   cat conftest.err >&5
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); } &&
7451          { ac_try='test -z "$ac_c_werror_flag"
7452                          || test ! -s conftest.err'
7453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454   (eval $ac_try) 2>&5
7455   ac_status=$?
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); }; } &&
7458          { ac_try='test -s conftest$ac_exeext'
7459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460   (eval $ac_try) 2>&5
7461   ac_status=$?
7462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463   (exit $ac_status); }; }; then
7464   ac_cv_lib_xnet_socket=yes
7465 else
7466   echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 ac_cv_lib_xnet_socket=no
7470 fi
7471 rm -f conftest.err conftest.$ac_objext \
7472       conftest$ac_exeext conftest.$ac_ext
7473 LIBS=$ac_check_lib_save_LIBS
7474 fi
7475 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7476 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7477 if test $ac_cv_lib_xnet_socket = yes; then
7478   cat >>confdefs.h <<_ACEOF
7479 #define HAVE_LIBXNET 1
7480 _ACEOF
7481
7482   LIBS="-lxnet $LIBS"
7483
7484 fi
7485
7486
7487 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7488 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7489 if test "${ac_cv_lib_socket_socket+set}" = set; then
7490   echo $ECHO_N "(cached) $ECHO_C" >&6
7491 else
7492   ac_check_lib_save_LIBS=$LIBS
7493 LIBS="-lsocket  $LIBS"
7494 cat >conftest.$ac_ext <<_ACEOF
7495 /* confdefs.h.  */
7496 _ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h.  */
7500
7501 /* Override any gcc2 internal prototype to avoid an error.  */
7502 #ifdef __cplusplus
7503 extern "C"
7504 #endif
7505 /* We use char because int might match the return type of a gcc2
7506    builtin and then its argument prototype would still apply.  */
7507 char socket ();
7508 int
7509 main ()
7510 {
7511 socket ();
7512   ;
7513   return 0;
7514 }
7515 _ACEOF
7516 rm -f conftest.$ac_objext conftest$ac_exeext
7517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7518   (eval $ac_link) 2>conftest.er1
7519   ac_status=$?
7520   grep -v '^ *+' conftest.er1 >conftest.err
7521   rm -f conftest.er1
7522   cat conftest.err >&5
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); } &&
7525          { ac_try='test -z "$ac_c_werror_flag"
7526                          || test ! -s conftest.err'
7527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528   (eval $ac_try) 2>&5
7529   ac_status=$?
7530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); }; } &&
7532          { ac_try='test -s conftest$ac_exeext'
7533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534   (eval $ac_try) 2>&5
7535   ac_status=$?
7536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537   (exit $ac_status); }; }; then
7538   ac_cv_lib_socket_socket=yes
7539 else
7540   echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7542
7543 ac_cv_lib_socket_socket=no
7544 fi
7545 rm -f conftest.err conftest.$ac_objext \
7546       conftest$ac_exeext conftest.$ac_ext
7547 LIBS=$ac_check_lib_save_LIBS
7548 fi
7549 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7550 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7551 if test $ac_cv_lib_socket_socket = yes; then
7552   cat >>confdefs.h <<_ACEOF
7553 #define HAVE_LIBSOCKET 1
7554 _ACEOF
7555
7556   LIBS="-lsocket $LIBS"
7557
7558 fi
7559
7560
7561 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7562 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7563 if test "${ac_cv_lib_inet_socket+set}" = set; then
7564   echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566   ac_check_lib_save_LIBS=$LIBS
7567 LIBS="-linet  $LIBS"
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h.  */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h.  */
7574
7575 /* Override any gcc2 internal prototype to avoid an error.  */
7576 #ifdef __cplusplus
7577 extern "C"
7578 #endif
7579 /* We use char because int might match the return type of a gcc2
7580    builtin and then its argument prototype would still apply.  */
7581 char socket ();
7582 int
7583 main ()
7584 {
7585 socket ();
7586   ;
7587   return 0;
7588 }
7589 _ACEOF
7590 rm -f conftest.$ac_objext conftest$ac_exeext
7591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7592   (eval $ac_link) 2>conftest.er1
7593   ac_status=$?
7594   grep -v '^ *+' conftest.er1 >conftest.err
7595   rm -f conftest.er1
7596   cat conftest.err >&5
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); } &&
7599          { ac_try='test -z "$ac_c_werror_flag"
7600                          || test ! -s conftest.err'
7601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602   (eval $ac_try) 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }; } &&
7606          { ac_try='test -s conftest$ac_exeext'
7607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608   (eval $ac_try) 2>&5
7609   ac_status=$?
7610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611   (exit $ac_status); }; }; then
7612   ac_cv_lib_inet_socket=yes
7613 else
7614   echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7616
7617 ac_cv_lib_inet_socket=no
7618 fi
7619 rm -f conftest.err conftest.$ac_objext \
7620       conftest$ac_exeext conftest.$ac_ext
7621 LIBS=$ac_check_lib_save_LIBS
7622 fi
7623 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7624 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7625 if test $ac_cv_lib_inet_socket = yes; then
7626   cat >>confdefs.h <<_ACEOF
7627 #define HAVE_LIBINET 1
7628 _ACEOF
7629
7630   LIBS="-linet $LIBS"
7631
7632 fi
7633
7634 fi
7635
7636
7637
7638 # -----------------------------------------------------------
7639 # Check whether user wants TCP wrappers support (default off)
7640 # -----------------------------------------------------------
7641 TCPW_MSG="no"
7642
7643 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7644 if test "${with_tcp_wrappers+set}" = set; then
7645   withval="$with_tcp_wrappers"
7646
7647     if test "x$withval" != "xno" ; then
7648        saved_LIBS="$LIBS"
7649        LIBS="$saved_LIBS -lwrap"
7650        echo "$as_me:$LINENO: checking for libwrap" >&5
7651 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7652        cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h.  */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h.  */
7658  #include <tcpd.h>
7659              int deny_severity = 0;
7660              int allow_severity = 0;
7661              struct request_info *req;
7662 int
7663 main ()
7664 {
7665  hosts_access(req);
7666   ;
7667   return 0;
7668 }
7669 _ACEOF
7670 rm -f conftest.$ac_objext conftest$ac_exeext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7672   (eval $ac_link) 2>conftest.er1
7673   ac_status=$?
7674   grep -v '^ *+' conftest.er1 >conftest.err
7675   rm -f conftest.er1
7676   cat conftest.err >&5
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); } &&
7679          { ac_try='test -z "$ac_c_werror_flag"
7680                          || test ! -s conftest.err'
7681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682   (eval $ac_try) 2>&5
7683   ac_status=$?
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); }; } &&
7686          { ac_try='test -s conftest$ac_exeext'
7687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688   (eval $ac_try) 2>&5
7689   ac_status=$?
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); }; }; then
7692
7693             echo "$as_me:$LINENO: result: yes" >&5
7694 echo "${ECHO_T}yes" >&6
7695             cat >>confdefs.h <<\_ACEOF
7696 #define HAVE_LIBWRAP 1
7697 _ACEOF
7698
7699             TCPW_MSG="yes"
7700
7701 else
7702   echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7704
7705
7706             LIBS="$saved_LIBS -lwrap -lnsl"
7707             cat >conftest.$ac_ext <<_ACEOF
7708 /* confdefs.h.  */
7709 _ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h.  */
7713  #include <tcpd.h>
7714                  int deny_severity = 0;
7715                  int allow_severity = 0;
7716                  struct request_info *req;
7717 int
7718 main ()
7719 {
7720  hosts_access(req);
7721   ;
7722   return 0;
7723 }
7724 _ACEOF
7725 rm -f conftest.$ac_objext conftest$ac_exeext
7726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7727   (eval $ac_link) 2>conftest.er1
7728   ac_status=$?
7729   grep -v '^ *+' conftest.er1 >conftest.err
7730   rm -f conftest.er1
7731   cat conftest.err >&5
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); } &&
7734          { ac_try='test -z "$ac_c_werror_flag"
7735                          || test ! -s conftest.err'
7736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737   (eval $ac_try) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); }; } &&
7741          { ac_try='test -s conftest$ac_exeext'
7742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743   (eval $ac_try) 2>&5
7744   ac_status=$?
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); }; }; then
7747
7748                  echo "$as_me:$LINENO: result: yes" >&5
7749 echo "${ECHO_T}yes" >&6
7750                  cat >>confdefs.h <<\_ACEOF
7751 #define HAVE_LIBWRAP 1
7752 _ACEOF
7753
7754                  TCPW_MSG="yes"
7755
7756 else
7757   echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7759
7760 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7761 echo "$as_me: error: *** libwrap missing" >&2;}
7762    { (exit 1); exit 1; }; }
7763
7764 fi
7765 rm -f conftest.err conftest.$ac_objext \
7766       conftest$ac_exeext conftest.$ac_ext
7767
7768 fi
7769 rm -f conftest.err conftest.$ac_objext \
7770       conftest$ac_exeext conftest.$ac_ext
7771     fi
7772
7773
7774 fi;
7775
7776 # -----------------------------------------------------------
7777 # Check whether OpenSSL is available
7778 # -----------------------------------------------------------
7779 echo "$as_me:$LINENO: checking for OpenSSL" >&5
7780 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7781
7782 # Check whether --with-openssl or --without-openssl was given.
7783 if test "${with_openssl+set}" = set; then
7784   withval="$with_openssl"
7785   with_openssl_directory=${withval}
7786 fi;
7787
7788 if test "x$with_openssl_directory" != "x"; then
7789         OPENSSL_LIBS="-lssl -lcrypto"
7790         OPENSSL_INC=""
7791
7792         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
7793                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
7794                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
7795         fi
7796
7797         saved_LIBS="$LIBS"
7798         saved_CFLAGS="$CFLAGS"
7799         LIBS="$saved_LIBS $OPENSSL_LIBS"
7800         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
7801
7802         cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h.  */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h.  */
7808  #include <openssl/ssl.h>
7809 int
7810 main ()
7811 {
7812  CRYPTO_set_id_callback(NULL);
7813   ;
7814   return 0;
7815 }
7816 _ACEOF
7817 rm -f conftest.$ac_objext conftest$ac_exeext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7819   (eval $ac_link) 2>conftest.er1
7820   ac_status=$?
7821   grep -v '^ *+' conftest.er1 >conftest.err
7822   rm -f conftest.er1
7823   cat conftest.err >&5
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); } &&
7826          { ac_try='test -z "$ac_c_werror_flag"
7827                          || test ! -s conftest.err'
7828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829   (eval $ac_try) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); }; } &&
7833          { ac_try='test -s conftest$ac_exeext'
7834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835   (eval $ac_try) 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); }; }; then
7839    support_tls="yes"
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844  support_tls="no"
7845
7846 fi
7847 rm -f conftest.err conftest.$ac_objext \
7848       conftest$ac_exeext conftest.$ac_ext
7849
7850         LIBS="$saved_LIBS"
7851         CFLAGS="$saved_CFLAGS"
7852
7853         if test "$support_tls" = "yes"; then
7854
7855 cat >>confdefs.h <<\_ACEOF
7856 #define HAVE_OPENSSL 1
7857 _ACEOF
7858
7859
7860 cat >>confdefs.h <<\_ACEOF
7861 #define HAVE_TLS 1
7862 _ACEOF
7863
7864         fi
7865 else
7866         support_tls="no"
7867         OPENSSL_LIBS=""
7868         OPENSSL_INC=""
7869 fi
7870
7871 echo "$as_me:$LINENO: result: $support_tls" >&5
7872 echo "${ECHO_T}$support_tls" >&6
7873
7874
7875
7876
7877
7878 # ------------------------------------------
7879 # Where to place working dir
7880 # ------------------------------------------
7881 working_dir=`eval echo ${prefix}/var/bacula/working`
7882
7883 # Check whether --with-working-dir or --without-working-dir was given.
7884 if test "${with_working_dir+set}" = set; then
7885   withval="$with_working_dir"
7886
7887        if test "x$withval" != "xno" ; then
7888               working_dir=$withval
7889        fi
7890
7891
7892 fi;
7893
7894
7895
7896
7897 # ------------------------------------------
7898 # Where to place scriptdir (script files)
7899 # ------------------------------------------
7900 scriptdir=`eval echo ${sysconfdir}`
7901
7902 # Check whether --with-scriptdir or --without-scriptdir was given.
7903 if test "${with_scriptdir+set}" = set; then
7904   withval="$with_scriptdir"
7905
7906        if test "x$withval" != "xno" ; then
7907               scriptdir=$withval
7908        fi
7909
7910
7911 fi;
7912
7913
7914
7915
7916 # ------------------------------------------
7917 # Where to send dump email
7918 # ------------------------------------------
7919 dump_email=root@localhost
7920
7921 # Check whether --with-dump-email or --without-dump-email was given.
7922 if test "${with_dump_email+set}" = set; then
7923   withval="$with_dump_email"
7924
7925        if test "x$withval" != "xno" ; then
7926               dump_email=$withval
7927        fi
7928
7929
7930 fi;
7931
7932
7933
7934 # ------------------------------------------
7935 # Where to send job email
7936 # ------------------------------------------
7937 job_email=root@localhost
7938
7939 # Check whether --with-job-email or --without-job-email was given.
7940 if test "${with_job_email+set}" = set; then
7941   withval="$with_job_email"
7942
7943        if test "x$withval" != "xno" ; then
7944               job_email=$withval
7945        fi
7946
7947
7948 fi;
7949
7950
7951
7952 # ------------------------------------------
7953 # Where to find smtp host
7954 # ------------------------------------------
7955 smtp_host=localhost
7956
7957 # Check whether --with-smtp_host or --without-smtp_host was given.
7958 if test "${with_smtp_host+set}" = set; then
7959   withval="$with_smtp_host"
7960
7961        if test "x$withval" != "xno" ; then
7962               smtp_host=$withval
7963        fi
7964
7965
7966 fi;
7967
7968
7969
7970
7971 # ------------------------------------
7972 # Where to place pid files
7973 # ------------------------------------
7974 piddir=/var/run
7975
7976 # Check whether --with-pid-dir or --without-pid-dir was given.
7977 if test "${with_pid_dir+set}" = set; then
7978   withval="$with_pid_dir"
7979
7980         if test "x$withval" != "xno" ; then
7981             piddir=$withval
7982         fi
7983
7984
7985 fi;
7986
7987 cat >>confdefs.h <<_ACEOF
7988 #define _PATH_BACULA_PIDDIR "$piddir"
7989 _ACEOF
7990
7991
7992
7993
7994 # ------------------------------------
7995 # Where to place subsys "lock file"
7996 # ------------------------------------
7997 subsysdir=/var/run/subsys
7998
7999 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8000 if test "${with_subsys_dir+set}" = set; then
8001   withval="$with_subsys_dir"
8002
8003         if test "x$withval" != "xno" ; then
8004             subsysdir=$withval
8005         fi
8006
8007
8008 fi;
8009
8010
8011
8012
8013
8014 # ------------------------------------
8015 # Where to start assigning ports
8016 # ------------------------------------
8017 baseport=9101
8018
8019 # Check whether --with-baseport or --without-baseport was given.
8020 if test "${with_baseport+set}" = set; then
8021   withval="$with_baseport"
8022
8023         if test "x$withval" != "xno" ; then
8024              baseport=$withval
8025         fi
8026
8027
8028 fi;
8029
8030
8031 dir_port=`expr $baseport`
8032 fd_port=`expr $baseport + 1`
8033 sd_port=`expr $fd_port + 1`
8034
8035
8036
8037
8038
8039
8040 # ------------------------------------------
8041 # Generate passwords
8042 # ------------------------------------------
8043 dir_password=
8044
8045 # Check whether --with-dir-password or --without-dir-password was given.
8046 if test "${with_dir_password+set}" = set; then
8047   withval="$with_dir_password"
8048
8049        if test "x$withval" != "xno" ; then
8050            dir_password=$withval
8051        fi
8052
8053
8054 fi;
8055
8056 if test "x$dir_password" = "x" ; then
8057    if test "x$OPENSSL" = "xnone" ; then
8058       key=`autoconf/randpass 33`
8059    else
8060       key=`openssl rand -base64 33`
8061    fi
8062    dir_password=$key
8063 fi
8064
8065 fd_password=
8066
8067 # Check whether --with-fd-password or --without-fd-password was given.
8068 if test "${with_fd_password+set}" = set; then
8069   withval="$with_fd_password"
8070
8071        if test "x$withval" != "xno" ; then
8072            fd_password=$withval
8073        fi
8074
8075
8076 fi;
8077
8078 if test "x$fd_password" = "x" ; then
8079    if test "x$OPENSSL" = "xnone" ; then
8080       key=`autoconf/randpass 37`
8081    else
8082       key=`openssl rand -base64 33`
8083    fi
8084    fd_password=$key
8085 fi
8086
8087 sd_password=
8088
8089 # Check whether --with-sd-password or --without-sd-password was given.
8090 if test "${with_sd_password+set}" = set; then
8091   withval="$with_sd_password"
8092
8093        if test "x$withval" != "xno" ; then
8094            sd_password=$withval
8095        fi
8096
8097
8098 fi;
8099
8100 if test "x$sd_password" = "x" ; then
8101    if test "x$OPENSSL" = "xnone" ; then
8102       key=`autoconf/randpass 41`
8103    else
8104       key=`openssl rand -base64 33`
8105    fi
8106    sd_password=$key
8107 fi
8108
8109 mon_dir_password=
8110
8111 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8112 if test "${with_mon_dir_password+set}" = set; then
8113   withval="$with_mon_dir_password"
8114
8115        if test "x$withval" != "xno" ; then
8116            mon_dir_password=$withval
8117        fi
8118
8119
8120 fi;
8121
8122 if test "x$mon_dir_password" = "x" ; then
8123    if test "x$OPENSSL" = "xnone" ; then
8124       key=`autoconf/randpass 33`
8125    else
8126       key=`openssl rand -base64 33`
8127    fi
8128    mon_dir_password=$key
8129 fi
8130
8131 mon_fd_password=
8132
8133 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8134 if test "${with_mon_fd_password+set}" = set; then
8135   withval="$with_mon_fd_password"
8136
8137        if test "x$withval" != "xno" ; then
8138            mon_fd_password=$withval
8139        fi
8140
8141
8142 fi;
8143
8144 if test "x$mon_fd_password" = "x" ; then
8145    if test "x$OPENSSL" = "xnone" ; then
8146       key=`autoconf/randpass 37`
8147    else
8148       key=`openssl rand -base64 33`
8149    fi
8150    mon_fd_password=$key
8151 fi
8152
8153 mon_sd_password=
8154
8155 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8156 if test "${with_mon_sd_password+set}" = set; then
8157   withval="$with_mon_sd_password"
8158
8159        if test "x$withval" != "xno" ; then
8160            mon_sd_password=$withval
8161        fi
8162
8163
8164 fi;
8165
8166 if test "x$mon_sd_password" = "x" ; then
8167    if test "x$OPENSSL" = "xnone" ; then
8168       key=`autoconf/randpass 41`
8169    else
8170       key=`openssl rand -base64 33`
8171    fi
8172    mon_sd_password=$key
8173 fi
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183 #
8184 # Handle users and groups for each daemon
8185 #
8186 dir_user=
8187
8188 # Check whether --with-dir_user or --without-dir_user was given.
8189 if test "${with_dir_user+set}" = set; then
8190   withval="$with_dir_user"
8191
8192         if test "x$withval" != "x" ; then
8193              dir_user=$withval
8194         fi
8195
8196
8197 fi;
8198
8199 dir_group=
8200
8201 # Check whether --with-dir_group or --without-dir_group was given.
8202 if test "${with_dir_group+set}" = set; then
8203   withval="$with_dir_group"
8204
8205         if test "x$withval" != "x" ; then
8206              dir_group=$withval
8207         fi
8208
8209
8210 fi;
8211
8212 sd_user=
8213
8214 # Check whether --with-sd_user or --without-sd_user was given.
8215 if test "${with_sd_user+set}" = set; then
8216   withval="$with_sd_user"
8217
8218         if test "x$withval" != "x" ; then
8219              sd_user=$withval
8220         fi
8221
8222
8223 fi;
8224
8225 sd_group=
8226
8227 # Check whether --with-sd_group or --without-sd_group was given.
8228 if test "${with_sd_group+set}" = set; then
8229   withval="$with_sd_group"
8230
8231         if test "x$withval" != "x" ; then
8232              sd_group=$withval
8233         fi
8234
8235
8236 fi;
8237
8238 fd_user=
8239
8240 # Check whether --with-fd_user or --without-fd_user was given.
8241 if test "${with_fd_user+set}" = set; then
8242   withval="$with_fd_user"
8243
8244         if test "x$withval" != "x" ; then
8245              fd_user=$withval
8246         fi
8247
8248
8249 fi;
8250
8251 fd_group=
8252
8253 # Check whether --with-fd_group or --without-fd_group was given.
8254 if test "${with_fd_group+set}" = set; then
8255   withval="$with_fd_group"
8256
8257         if test "x$withval" != "x" ; then
8258              fd_group=$withval
8259         fi
8260
8261
8262 fi;
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274 #
8275 # allow setting default executable permissions
8276 #
8277 SBINPERM=0754
8278
8279 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8280 if test "${with_sbin_perm+set}" = set; then
8281   withval="$with_sbin_perm"
8282
8283         if test "x$withval" != "x" ; then
8284             SBINPERM=$withval
8285         fi
8286
8287
8288 fi;
8289
8290
8291
8292 # ------------------------------------------------
8293 # Bacula check for various SQL database engines
8294 # ------------------------------------------------
8295
8296 db_found=no
8297 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8298 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8299
8300 # Check whether --with-postgresql or --without-postgresql was given.
8301 if test "${with_postgresql+set}" = set; then
8302   withval="$with_postgresql"
8303
8304   if test "$withval" != "no"; then
8305       if test "$db_found" = "yes"; then
8306           echo "$as_me:$LINENO: result: error" >&5
8307 echo "${ECHO_T}error" >&6
8308           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8309 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8310    { (exit 1); exit 1; }; };
8311       fi
8312       if test "$withval" = "yes"; then
8313           if test -f /usr/local/include/libpq-fe.h; then
8314               POSTGRESQL_INCDIR=/usr/local/include
8315               POSTGRESQL_LIBDIR=/usr/local/lib
8316               POSTGRESQL_BINDIR=/usr/local/bin
8317           elif test -f /usr/include/libpq-fe.h; then
8318               POSTGRESQL_INCDIR=/usr/include
8319               POSTGRESQL_LIBDIR=/usr/lib
8320               POSTGRESQL_BINDIR=/usr/bin
8321           elif test -f /usr/include/pgsql/libpq-fe.h; then
8322               POSTGRESQL_INCDIR=/usr/include/pgsql
8323               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8324               POSTGRESQL_BINDIR=/usr/bin
8325           elif test -f /usr/include/postgresql/libpq-fe.h; then
8326               POSTGRESQL_INCDIR=/usr/include/postgresql
8327               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8328               POSTGRESQL_BINDIR=/usr/bin
8329           else
8330               echo "$as_me:$LINENO: result: no" >&5
8331 echo "${ECHO_T}no" >&6
8332               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8333 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8334    { (exit 1); exit 1; }; }
8335           fi
8336       elif test -f $withval/include/libpq-fe.h; then
8337           POSTGRESQL_INCDIR=$withval/include
8338           POSTGRESQL_LIBDIR=$withval/lib
8339           POSTGRESQL_BINDIR=$withval/bin
8340       elif test -f $withval/include/postgresql/libpq-fe.h; then
8341           POSTGRESQL_INCDIR=$withval/include/postgresql
8342           POSTGRESQL_LIBDIR=$withval/lib
8343           POSTGRESQL_BINDIR=$withval/bin
8344       else
8345           echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6
8347           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8348 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8349    { (exit 1); exit 1; }; }
8350       fi
8351       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8352       echo "$as_me:$LINENO: checking for crypt" >&5
8353 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8354 if test "${ac_cv_func_crypt+set}" = set; then
8355   echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357   cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h.  */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h.  */
8363 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8365 #define crypt innocuous_crypt
8366
8367 /* System header to define __stub macros and hopefully few prototypes,
8368     which can conflict with char crypt (); below.
8369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8370     <limits.h> exists even on freestanding compilers.  */
8371
8372 #ifdef __STDC__
8373 # include <limits.h>
8374 #else
8375 # include <assert.h>
8376 #endif
8377
8378 #undef crypt
8379
8380 /* Override any gcc2 internal prototype to avoid an error.  */
8381 #ifdef __cplusplus
8382 extern "C"
8383 {
8384 #endif
8385 /* We use char because int might match the return type of a gcc2
8386    builtin and then its argument prototype would still apply.  */
8387 char crypt ();
8388 /* The GNU C library defines this for functions which it implements
8389     to always fail with ENOSYS.  Some functions are actually named
8390     something starting with __ and the normal name is an alias.  */
8391 #if defined (__stub_crypt) || defined (__stub___crypt)
8392 choke me
8393 #else
8394 char (*f) () = crypt;
8395 #endif
8396 #ifdef __cplusplus
8397 }
8398 #endif
8399
8400 int
8401 main ()
8402 {
8403 return f != crypt;
8404   ;
8405   return 0;
8406 }
8407 _ACEOF
8408 rm -f conftest.$ac_objext conftest$ac_exeext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8410   (eval $ac_link) 2>conftest.er1
8411   ac_status=$?
8412   grep -v '^ *+' conftest.er1 >conftest.err
8413   rm -f conftest.er1
8414   cat conftest.err >&5
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); } &&
8417          { ac_try='test -z "$ac_c_werror_flag"
8418                          || test ! -s conftest.err'
8419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420   (eval $ac_try) 2>&5
8421   ac_status=$?
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); }; } &&
8424          { ac_try='test -s conftest$ac_exeext'
8425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426   (eval $ac_try) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; }; then
8430   ac_cv_func_crypt=yes
8431 else
8432   echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435 ac_cv_func_crypt=no
8436 fi
8437 rm -f conftest.err conftest.$ac_objext \
8438       conftest$ac_exeext conftest.$ac_ext
8439 fi
8440 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8441 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8442 if test $ac_cv_func_crypt = yes; then
8443   :
8444 else
8445   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8446 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8447 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8448   echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450   ac_check_lib_save_LIBS=$LIBS
8451 LIBS="-lcrypt  $LIBS"
8452 cat >conftest.$ac_ext <<_ACEOF
8453 /* confdefs.h.  */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h.  */
8458
8459 /* Override any gcc2 internal prototype to avoid an error.  */
8460 #ifdef __cplusplus
8461 extern "C"
8462 #endif
8463 /* We use char because int might match the return type of a gcc2
8464    builtin and then its argument prototype would still apply.  */
8465 char crypt ();
8466 int
8467 main ()
8468 {
8469 crypt ();
8470   ;
8471   return 0;
8472 }
8473 _ACEOF
8474 rm -f conftest.$ac_objext conftest$ac_exeext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8476   (eval $ac_link) 2>conftest.er1
8477   ac_status=$?
8478   grep -v '^ *+' conftest.er1 >conftest.err
8479   rm -f conftest.er1
8480   cat conftest.err >&5
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); } &&
8483          { ac_try='test -z "$ac_c_werror_flag"
8484                          || test ! -s conftest.err'
8485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486   (eval $ac_try) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }; } &&
8490          { ac_try='test -s conftest$ac_exeext'
8491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492   (eval $ac_try) 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }; }; then
8496   ac_cv_lib_crypt_crypt=yes
8497 else
8498   echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8500
8501 ac_cv_lib_crypt_crypt=no
8502 fi
8503 rm -f conftest.err conftest.$ac_objext \
8504       conftest$ac_exeext conftest.$ac_ext
8505 LIBS=$ac_check_lib_save_LIBS
8506 fi
8507 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8508 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8509 if test $ac_cv_lib_crypt_crypt = yes; then
8510   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8511 fi
8512
8513 fi
8514
8515       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8516       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8517       SQL_BINDIR=$POSTGRESQL_BINDIR
8518       cat >>confdefs.h <<\_ACEOF
8519 #define HAVE_POSTGRESQL 1
8520 _ACEOF
8521
8522       echo "$as_me:$LINENO: result: yes" >&5
8523 echo "${ECHO_T}yes" >&6
8524       db_found=yes
8525       support_postgresql=yes
8526       db_name=PostgreSQL
8527       DB_NAME=postgresql
8528   else
8529       echo "$as_me:$LINENO: result: no" >&5
8530 echo "${ECHO_T}no" >&6
8531   fi
8532
8533 else
8534
8535   echo "$as_me:$LINENO: result: no" >&5
8536 echo "${ECHO_T}no" >&6
8537
8538 fi;
8539
8540
8541
8542
8543
8544
8545
8546 db_found=no
8547 echo "$as_me:$LINENO: checking for MySQL support" >&5
8548 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8549
8550 # Check whether --with-mysql or --without-mysql was given.
8551 if test "${with_mysql+set}" = set; then
8552   withval="$with_mysql"
8553
8554   if test "$withval" != "no"; then
8555         if test "$withval" = "yes"; then
8556                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8557                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8558                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8559                         MYSQL_BINDIR=/usr/local/mysql/bin
8560                 elif test -f /usr/include/mysql/mysql.h; then
8561                         MYSQL_INCDIR=/usr/include/mysql
8562                         MYSQL_LIBDIR=/usr/lib/mysql
8563                         MYSQL_BINDIR=/usr/bin
8564                 elif test -f /usr/include/mysql.h; then
8565                         MYSQL_INCDIR=/usr/include
8566                         MYSQL_LIBDIR=/usr/lib
8567                         MYSQL_BINDIR=/usr/bin
8568                 elif test -f /usr/local/include/mysql/mysql.h; then
8569                         MYSQL_INCDIR=/usr/local/include/mysql
8570                         MYSQL_LIBDIR=/usr/local/lib/mysql
8571                         MYSQL_BINDIR=/usr/local/bin
8572                 elif test -f /usr/local/include/mysql.h; then
8573                         MYSQL_INCDIR=/usr/local/include
8574                         MYSQL_LIBDIR=/usr/local/lib
8575                         MYSQL_BINDIR=/usr/local/bin
8576                 else
8577                    echo "$as_me:$LINENO: result: no" >&5
8578 echo "${ECHO_T}no" >&6
8579                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8580 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8581    { (exit 1); exit 1; }; }
8582                 fi
8583         else
8584                 if test -f $withval/include/mysql/mysql.h; then
8585                         MYSQL_INCDIR=$withval/include/mysql
8586                         MYSQL_LIBDIR=$withval/lib/mysql
8587                         MYSQL_BINDIR=$withval/bin
8588                 elif test -f $withval/include/mysql.h; then
8589                         MYSQL_INCDIR=$withval/include
8590                         MYSQL_LIBDIR=$withval/lib
8591                         MYSQL_BINDIR=$withval/bin
8592                 else
8593                    echo "$as_me:$LINENO: result: no" >&5
8594 echo "${ECHO_T}no" >&6
8595                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8596 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8597    { (exit 1); exit 1; }; }
8598                 fi
8599         fi
8600     SQL_INCLUDE=-I$MYSQL_INCDIR
8601     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8602        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8603        cat >>confdefs.h <<\_ACEOF
8604 #define HAVE_THREAD_SAFE_MYSQL 1
8605 _ACEOF
8606
8607     else
8608        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8609     fi
8610     SQL_BINDIR=$MYSQL_BINDIR
8611
8612     cat >>confdefs.h <<\_ACEOF
8613 #define HAVE_MYSQL 1
8614 _ACEOF
8615
8616     echo "$as_me:$LINENO: result: yes" >&5
8617 echo "${ECHO_T}yes" >&6
8618     db_found=yes
8619     support_mysql=yes
8620     db_name=MySQL
8621     DB_NAME=mysql
8622
8623   else
8624         echo "$as_me:$LINENO: result: no" >&5
8625 echo "${ECHO_T}no" >&6
8626   fi
8627
8628
8629 fi;
8630
8631
8632 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8633 if test "${with_embedded_mysql+set}" = set; then
8634   withval="$with_embedded_mysql"
8635
8636   if test "$withval" != "no"; then
8637         if test "$withval" = "yes"; then
8638                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8639                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8640                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8641                         MYSQL_BINDIR=/usr/local/mysql/bin
8642                 elif test -f /usr/include/mysql/mysql.h; then
8643                         MYSQL_INCDIR=/usr/include/mysql
8644                         MYSQL_LIBDIR=/usr/lib/mysql
8645                         MYSQL_BINDIR=/usr/bin
8646                 elif test -f /usr/include/mysql.h; then
8647                         MYSQL_INCDIR=/usr/include
8648                         MYSQL_LIBDIR=/usr/lib
8649                         MYSQL_BINDIR=/usr/bin
8650                 elif test -f /usr/local/include/mysql/mysql.h; then
8651                         MYSQL_INCDIR=/usr/local/include/mysql
8652                         MYSQL_LIBDIR=/usr/local/lib/mysql
8653                         MYSQL_BINDIR=/usr/local/bin
8654                 elif test -f /usr/local/include/mysql.h; then
8655                         MYSQL_INCDIR=/usr/local/include
8656                         MYSQL_LIBDIR=/usr/local/lib
8657                         MYSQL_BINDIR=/usr/local/bin
8658                 else
8659                    echo "$as_me:$LINENO: result: no" >&5
8660 echo "${ECHO_T}no" >&6
8661                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8662 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8663    { (exit 1); exit 1; }; }
8664                 fi
8665         else
8666                 if test -f $withval/include/mysql/mysql.h; then
8667                         MYSQL_INCDIR=$withval/include/mysql
8668                         MYSQL_LIBDIR=$withval/lib/mysql
8669                         MYSQL_BINDIR=$withval/bin
8670                 elif test -f $withval/include/mysql.h; then
8671                         MYSQL_INCDIR=$withval/include
8672                         MYSQL_LIBDIR=$withval/lib
8673                         MYSQL_BINDIR=$withval/bin
8674                 else
8675                    echo "$as_me:$LINENO: result: no" >&5
8676 echo "${ECHO_T}no" >&6
8677                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8678 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8679    { (exit 1); exit 1; }; }
8680                 fi
8681         fi
8682     SQL_INCLUDE=-I$MYSQL_INCDIR
8683     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8684     SQL_BINDIR=$MYSQL_BINDIR
8685
8686     cat >>confdefs.h <<\_ACEOF
8687 #define HAVE_MYSQL 1
8688 _ACEOF
8689
8690     cat >>confdefs.h <<\_ACEOF
8691 #define HAVE_EMBEDDED_MYSQL 1
8692 _ACEOF
8693
8694     echo "$as_me:$LINENO: result: yes" >&5
8695 echo "${ECHO_T}yes" >&6
8696     db_found=yes
8697     support_mysql=yes
8698     db_name=MySQL
8699     DB_NAME=mysql
8700
8701   else
8702         echo "$as_me:$LINENO: result: no" >&5
8703 echo "${ECHO_T}no" >&6
8704   fi
8705
8706
8707 fi;
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717 db_found=no
8718 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
8719 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
8720
8721 # Check whether --with-sqlite3 or --without-sqlite3 was given.
8722 if test "${with_sqlite3+set}" = set; then
8723   withval="$with_sqlite3"
8724
8725   if test "$withval" != "no"; then
8726      if test "$withval" = "yes"; then
8727         if test -f /usr/local/include/sqlite3.h; then
8728            SQLITE_INCDIR=/usr/local/include
8729            SQLITE_LIBDIR=/usr/local/lib
8730            SQLITE_BINDIR=/usr/local/bin
8731         elif test -f /usr/include/sqlite3.h; then
8732            SQLITE_INCDIR=/usr/include
8733            SQLITE_LIBDIR=/usr/lib
8734            SQLITE_BINDIR=/usr/bin
8735         elif test -f $prefix/include/sqlite3.h; then
8736            SQLITE_INCDIR=$prefix/include
8737            SQLITE_LIBDIR=$prefix/lib
8738            SQLITE_BINDIR=$prefix/bin
8739         else
8740            echo "$as_me:$LINENO: result: no" >&5
8741 echo "${ECHO_T}no" >&6
8742            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
8743 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
8744    { (exit 1); exit 1; }; }
8745         fi
8746      else
8747         if test -f $withval/sqlite3.h; then
8748            SQLITE_INCDIR=$withval
8749            SQLITE_LIBDIR=$withval
8750            SQLITE_BINDIR=$withval
8751         elif test -f $withval/include/sqlite3.h; then
8752            SQLITE_INCDIR=$withval/include
8753            SQLITE_LIBDIR=$withval/lib
8754            SQLITE_BINDIR=$withval/bin
8755         else
8756            echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6
8758            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
8759 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
8760    { (exit 1); exit 1; }; }
8761         fi
8762      fi
8763      SQL_INCLUDE=-I$SQLITE_INCDIR
8764      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
8765      SQL_BINDIR=$SQLITE_BINDIR
8766
8767      cat >>confdefs.h <<\_ACEOF
8768 #define HAVE_SQLITE3 1
8769 _ACEOF
8770
8771      echo "$as_me:$LINENO: result: yes" >&5
8772 echo "${ECHO_T}yes" >&6
8773      db_found=yes
8774      support_sqlite3=yes
8775      db_name=SQLite3
8776      DB_NAME=sqlite3
8777
8778   else
8779      echo "$as_me:$LINENO: result: no" >&5
8780 echo "${ECHO_T}no" >&6
8781   fi
8782
8783 else
8784
8785   echo "$as_me:$LINENO: result: no" >&5
8786 echo "${ECHO_T}no" >&6
8787
8788 fi;
8789
8790
8791
8792
8793
8794
8795
8796 db_found=no
8797 echo "$as_me:$LINENO: checking for SQLite support" >&5
8798 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8799
8800 # Check whether --with-sqlite or --without-sqlite was given.
8801 if test "${with_sqlite+set}" = set; then
8802   withval="$with_sqlite"
8803
8804   if test "$withval" != "no"; then
8805      if test "$withval" = "yes"; then
8806         if test -f /usr/local/include/sqlite.h; then
8807            SQLITE_INCDIR=/usr/local/include
8808            SQLITE_LIBDIR=/usr/local/lib
8809            SQLITE_BINDIR=/usr/local/bin
8810         elif test -f /usr/include/sqlite.h; then
8811            SQLITE_INCDIR=/usr/include
8812            SQLITE_LIBDIR=/usr/lib
8813            SQLITE_BINDIR=/usr/bin
8814         elif test -f $prefix/include/sqlite.h; then
8815            SQLITE_INCDIR=$prefix/include
8816            SQLITE_LIBDIR=$prefix/lib
8817            SQLITE_BINDIR=$prefix/bin
8818         else
8819            echo "$as_me:$LINENO: result: no" >&5
8820 echo "${ECHO_T}no" >&6
8821            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8822 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8823    { (exit 1); exit 1; }; }
8824         fi
8825      else
8826         if test -f $withval/sqlite.h; then
8827            SQLITE_INCDIR=$withval
8828            SQLITE_LIBDIR=$withval
8829            SQLITE_BINDIR=$withval
8830         elif test -f $withval/include/sqlite.h; then
8831            SQLITE_INCDIR=$withval/include
8832            SQLITE_LIBDIR=$withval/lib
8833            SQLITE_BINDIR=$withval/bin
8834         else
8835            echo "$as_me:$LINENO: result: no" >&5
8836 echo "${ECHO_T}no" >&6
8837            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8838 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8839    { (exit 1); exit 1; }; }
8840         fi
8841      fi
8842      SQL_INCLUDE=-I$SQLITE_INCDIR
8843      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8844      SQL_BINDIR=$SQLITE_BINDIR
8845
8846      cat >>confdefs.h <<\_ACEOF
8847 #define HAVE_SQLITE 1
8848 _ACEOF
8849
8850      echo "$as_me:$LINENO: result: yes" >&5
8851 echo "${ECHO_T}yes" >&6
8852      db_found=yes
8853      support_sqlite=yes
8854      db_name=SQLite
8855      DB_NAME=sqlite
8856
8857   else
8858      echo "$as_me:$LINENO: result: no" >&5
8859 echo "${ECHO_T}no" >&6
8860   fi
8861
8862 else
8863
8864   echo "$as_me:$LINENO: result: no" >&5
8865 echo "${ECHO_T}no" >&6
8866
8867 fi;
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877 cat >>confdefs.h <<\_ACEOF
8878 #define PROTOTYPES 1
8879 _ACEOF
8880
8881
8882 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8883     if test -z "$CCOPTS"; then
8884         CCOPTS='-g -O2 -Wall'
8885     fi
8886     CFLAGS="$CCOPTS"
8887 fi
8888
8889
8890
8891
8892 largefile_support="no"
8893
8894    # Check whether --enable-largefile or --disable-largefile was given.
8895 if test "${enable_largefile+set}" = set; then
8896   enableval="$enable_largefile"
8897
8898 fi;
8899    if test "$enable_largefile" != no; then
8900      if test -n "$ac_tool_prefix"; then
8901   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8902 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8903 echo "$as_me:$LINENO: checking for $ac_word" >&5
8904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8905 if test "${ac_cv_prog_GETCONF+set}" = set; then
8906   echo $ECHO_N "(cached) $ECHO_C" >&6
8907 else
8908   if test -n "$GETCONF"; then
8909   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8910 else
8911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912 for as_dir in $PATH
8913 do
8914   IFS=$as_save_IFS
8915   test -z "$as_dir" && as_dir=.
8916   for ac_exec_ext in '' $ac_executable_extensions; do
8917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8918     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8920     break 2
8921   fi
8922 done
8923 done
8924
8925 fi
8926 fi
8927 GETCONF=$ac_cv_prog_GETCONF
8928 if test -n "$GETCONF"; then
8929   echo "$as_me:$LINENO: result: $GETCONF" >&5
8930 echo "${ECHO_T}$GETCONF" >&6
8931 else
8932   echo "$as_me:$LINENO: result: no" >&5
8933 echo "${ECHO_T}no" >&6
8934 fi
8935
8936 fi
8937 if test -z "$ac_cv_prog_GETCONF"; then
8938   ac_ct_GETCONF=$GETCONF
8939   # Extract the first word of "getconf", so it can be a program name with args.
8940 set dummy getconf; ac_word=$2
8941 echo "$as_me:$LINENO: checking for $ac_word" >&5
8942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8943 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8944   echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946   if test -n "$ac_ct_GETCONF"; then
8947   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8948 else
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 for as_dir in $PATH
8951 do
8952   IFS=$as_save_IFS
8953   test -z "$as_dir" && as_dir=.
8954   for ac_exec_ext in '' $ac_executable_extensions; do
8955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8956     ac_cv_prog_ac_ct_GETCONF="getconf"
8957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8958     break 2
8959   fi
8960 done
8961 done
8962
8963 fi
8964 fi
8965 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8966 if test -n "$ac_ct_GETCONF"; then
8967   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8968 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8969 else
8970   echo "$as_me:$LINENO: result: no" >&5
8971 echo "${ECHO_T}no" >&6
8972 fi
8973
8974   GETCONF=$ac_ct_GETCONF
8975 else
8976   GETCONF="$ac_cv_prog_GETCONF"
8977 fi
8978
8979      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8980 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8981 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8982   echo $ECHO_N "(cached) $ECHO_C" >&6
8983 else
8984   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8985         ac_cv_sys_largefile_CFLAGS=no
8986         case "$host_os" in
8987            # IRIX 6.2 and later require cc -n32.
8988            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8989              if test "$GCC" != yes; then
8990                ac_cv_sys_largefile_CFLAGS=-n32
8991              fi
8992              ac_save_CC="$CC"
8993              CC="$CC $ac_cv_sys_largefile_CFLAGS"
8994              cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h.  */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h.  */
9000
9001 int
9002 main ()
9003 {
9004
9005   ;
9006   return 0;
9007 }
9008 _ACEOF
9009 rm -f conftest.$ac_objext conftest$ac_exeext
9010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9011   (eval $ac_link) 2>conftest.er1
9012   ac_status=$?
9013   grep -v '^ *+' conftest.er1 >conftest.err
9014   rm -f conftest.er1
9015   cat conftest.err >&5
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); } &&
9018          { ac_try='test -z "$ac_c_werror_flag"
9019                          || test ! -s conftest.err'
9020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021   (eval $ac_try) 2>&5
9022   ac_status=$?
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); }; } &&
9025          { ac_try='test -s conftest$ac_exeext'
9026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027   (eval $ac_try) 2>&5
9028   ac_status=$?
9029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030   (exit $ac_status); }; }; then
9031   :
9032 else
9033   echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9035
9036 ac_cv_sys_largefile_CFLAGS=no
9037 fi
9038 rm -f conftest.err conftest.$ac_objext \
9039       conftest$ac_exeext conftest.$ac_ext
9040              CC="$ac_save_CC"
9041            esac
9042       }
9043 fi
9044 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9045 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9046      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9047 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9048 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9049   echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9052         ac_cv_sys_largefile_LDFLAGS=no
9053
9054       }
9055 fi
9056 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9057 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9058      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9059 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9060 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9061   echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9064         ac_cv_sys_largefile_LIBS=no
9065
9066       }
9067 fi
9068 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9069 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9070
9071      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9072        case "$ac_flag" in
9073        no) ;;
9074        -D_FILE_OFFSET_BITS=*) ;;
9075        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9076        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9077        -D?* | -I?*)
9078          case "$ac_flag" in
9079    no) ;;
9080    ?*)
9081      case "$CPPFLAGS" in
9082      '') CPPFLAGS="$ac_flag" ;;
9083      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9084      esac ;;
9085    esac ;;
9086        *)
9087          case "$ac_flag" in
9088    no) ;;
9089    ?*)
9090      case "$CFLAGS" in
9091      '') CFLAGS="$ac_flag" ;;
9092      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9093      esac ;;
9094    esac ;;
9095        esac
9096      done
9097      case "$ac_cv_sys_largefile_LDFLAGS" in
9098    no) ;;
9099    ?*)
9100      case "$LDFLAGS" in
9101      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9102      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9103      esac ;;
9104    esac
9105      case "$ac_cv_sys_largefile_LIBS" in
9106    no) ;;
9107    ?*)
9108      case "$LIBS" in
9109      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9110      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9111      esac ;;
9112    esac
9113      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9114 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9115 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9116   echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118   ac_cv_sys_file_offset_bits=no
9119       ac_cv_sys_file_offset_bits=64
9120       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9121         case "$ac_flag" in
9122         -D_FILE_OFFSET_BITS)
9123           ac_cv_sys_file_offset_bits=1 ;;
9124         -D_FILE_OFFSET_BITS=*)
9125           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9126         esac
9127       done
9128
9129 fi
9130 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9131 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9132    if test "$ac_cv_sys_file_offset_bits" != no; then
9133
9134 cat >>confdefs.h <<_ACEOF
9135 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9136 _ACEOF
9137
9138    fi
9139      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9140 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9141 if test "${ac_cv_sys_largefile_source+set}" = set; then
9142   echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144   ac_cv_sys_largefile_source=no
9145       ac_cv_sys_largefile_source=1
9146       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9147         case "$ac_flag" in
9148         -D_LARGEFILE_SOURCE)
9149           ac_cv_sys_largefile_source=1 ;;
9150         -D_LARGEFILE_SOURCE=*)
9151           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9152         esac
9153       done
9154
9155 fi
9156 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9157 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9158    if test "$ac_cv_sys_largefile_source" != no; then
9159
9160 cat >>confdefs.h <<_ACEOF
9161 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9162 _ACEOF
9163
9164    fi
9165      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9166 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9167 if test "${ac_cv_sys_large_files+set}" = set; then
9168   echo $ECHO_N "(cached) $ECHO_C" >&6
9169 else
9170   ac_cv_sys_large_files=no
9171       ac_cv_sys_large_files=1
9172       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9173         case "$ac_flag" in
9174         -D_LARGE_FILES)
9175           ac_cv_sys_large_files=1 ;;
9176         -D_LARGE_FILES=*)
9177           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9178         esac
9179       done
9180
9181 fi
9182 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9183 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9184    if test "$ac_cv_sys_large_files" != no; then
9185
9186 cat >>confdefs.h <<_ACEOF
9187 #define _LARGE_FILES $ac_cv_sys_large_files
9188 _ACEOF
9189
9190    fi
9191    fi
9192
9193
9194
9195 echo "$as_me:$LINENO: checking for X" >&5
9196 echo $ECHO_N "checking for X... $ECHO_C" >&6
9197
9198
9199 # Check whether --with-x or --without-x was given.
9200 if test "${with_x+set}" = set; then
9201   withval="$with_x"
9202
9203 fi;
9204 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9205 if test "x$with_x" = xno; then
9206   # The user explicitly disabled X.
9207   have_x=disabled
9208 else
9209   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9210     # Both variables are already set.
9211     have_x=yes
9212   else
9213     if test "${ac_cv_have_x+set}" = set; then
9214   echo $ECHO_N "(cached) $ECHO_C" >&6
9215 else
9216   # One or both of the vars are not set, and there is no cached value.
9217 ac_x_includes=no ac_x_libraries=no
9218 rm -fr conftest.dir
9219 if mkdir conftest.dir; then
9220   cd conftest.dir
9221   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9222   cat >Imakefile <<'_ACEOF'
9223 acfindx:
9224         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9225 _ACEOF
9226   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9227     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9228     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9229     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9230     for ac_extension in a so sl; do
9231       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9232          test -f $ac_im_libdir/libX11.$ac_extension; then
9233         ac_im_usrlibdir=$ac_im_libdir; break
9234       fi
9235     done
9236     # Screen out bogus values from the imake configuration.  They are
9237     # bogus both because they are the default anyway, and because
9238     # using them would break gcc on systems where it needs fixed includes.
9239     case $ac_im_incroot in
9240         /usr/include) ;;
9241         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9242     esac
9243     case $ac_im_usrlibdir in
9244         /usr/lib | /lib) ;;
9245         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9246     esac
9247   fi
9248   cd ..
9249   rm -fr conftest.dir
9250 fi
9251
9252 # Standard set of common directories for X headers.
9253 # Check X11 before X11Rn because it is often a symlink to the current release.
9254 ac_x_header_dirs='
9255 /usr/X11/include
9256 /usr/X11R6/include
9257 /usr/X11R5/include
9258 /usr/X11R4/include
9259
9260 /usr/include/X11
9261 /usr/include/X11R6
9262 /usr/include/X11R5
9263 /usr/include/X11R4
9264
9265 /usr/local/X11/include
9266 /usr/local/X11R6/include
9267 /usr/local/X11R5/include
9268 /usr/local/X11R4/include
9269
9270 /usr/local/include/X11
9271 /usr/local/include/X11R6
9272 /usr/local/include/X11R5
9273 /usr/local/include/X11R4
9274
9275 /usr/X386/include
9276 /usr/x386/include
9277 /usr/XFree86/include/X11
9278
9279 /usr/include
9280 /usr/local/include
9281 /usr/unsupported/include
9282 /usr/athena/include
9283 /usr/local/x11r5/include
9284 /usr/lpp/Xamples/include
9285
9286 /usr/openwin/include
9287 /usr/openwin/share/include'
9288
9289 if test "$ac_x_includes" = no; then
9290   # Guess where to find include files, by looking for Intrinsic.h.
9291   # First, try using that file with no special directory specified.
9292   cat >conftest.$ac_ext <<_ACEOF
9293 /* confdefs.h.  */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h.  */
9298 #include <X11/Intrinsic.h>
9299 _ACEOF
9300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9302   ac_status=$?
9303   grep -v '^ *+' conftest.er1 >conftest.err
9304   rm -f conftest.er1
9305   cat conftest.err >&5
9306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307   (exit $ac_status); } >/dev/null; then
9308   if test -s conftest.err; then
9309     ac_cpp_err=$ac_c_preproc_warn_flag
9310     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9311   else
9312     ac_cpp_err=
9313   fi
9314 else
9315   ac_cpp_err=yes
9316 fi
9317 if test -z "$ac_cpp_err"; then
9318   # We can compile using X headers with no special include directory.
9319 ac_x_includes=
9320 else
9321   echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9323
9324   for ac_dir in $ac_x_header_dirs; do
9325   if test -r "$ac_dir/X11/Intrinsic.h"; then
9326     ac_x_includes=$ac_dir
9327     break
9328   fi
9329 done
9330 fi
9331 rm -f conftest.err conftest.$ac_ext
9332 fi # $ac_x_includes = no
9333
9334 if test "$ac_x_libraries" = no; then
9335   # Check for the libraries.
9336   # See if we find them without any special options.
9337   # Don't add to $LIBS permanently.
9338   ac_save_LIBS=$LIBS
9339   LIBS="-lXt $LIBS"
9340   cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h.  */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h.  */
9346 #include <X11/Intrinsic.h>
9347 int
9348 main ()
9349 {
9350 XtMalloc (0)
9351   ;
9352   return 0;
9353 }
9354 _ACEOF
9355 rm -f conftest.$ac_objext conftest$ac_exeext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9357   (eval $ac_link) 2>conftest.er1
9358   ac_status=$?
9359   grep -v '^ *+' conftest.er1 >conftest.err
9360   rm -f conftest.er1
9361   cat conftest.err >&5
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); } &&
9364          { ac_try='test -z "$ac_c_werror_flag"
9365                          || test ! -s conftest.err'
9366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367   (eval $ac_try) 2>&5
9368   ac_status=$?
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); }; } &&
9371          { ac_try='test -s conftest$ac_exeext'
9372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373   (eval $ac_try) 2>&5
9374   ac_status=$?
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); }; }; then
9377   LIBS=$ac_save_LIBS
9378 # We can link X programs with no special library path.
9379 ac_x_libraries=
9380 else
9381   echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9383
9384 LIBS=$ac_save_LIBS
9385 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9386 do
9387   # Don't even attempt the hair of trying to link an X program!
9388   for ac_extension in a so sl; do
9389     if test -r $ac_dir/libXt.$ac_extension; then
9390       ac_x_libraries=$ac_dir
9391       break 2
9392     fi
9393   done
9394 done
9395 fi
9396 rm -f conftest.err conftest.$ac_objext \
9397       conftest$ac_exeext conftest.$ac_ext
9398 fi # $ac_x_libraries = no
9399
9400 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9401   # Didn't find X anywhere.  Cache the known absence of X.
9402   ac_cv_have_x="have_x=no"
9403 else
9404   # Record where we found X for the cache.
9405   ac_cv_have_x="have_x=yes \
9406                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9407 fi
9408 fi
9409
9410   fi
9411   eval "$ac_cv_have_x"
9412 fi # $with_x != no
9413
9414 if test "$have_x" != yes; then
9415   echo "$as_me:$LINENO: result: $have_x" >&5
9416 echo "${ECHO_T}$have_x" >&6
9417   no_x=yes
9418 else
9419   # If each of the values was on the command line, it overrides each guess.
9420   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9421   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9422   # Update the cache value to reflect the command line values.
9423   ac_cv_have_x="have_x=yes \
9424                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9425   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9426 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9427 fi
9428
9429 if test "$no_x" = yes; then
9430   # Not all programs may use this symbol, but it does not hurt to define it.
9431
9432 cat >>confdefs.h <<\_ACEOF
9433 #define X_DISPLAY_MISSING 1
9434 _ACEOF
9435
9436   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9437 else
9438   if test -n "$x_includes"; then
9439     X_CFLAGS="$X_CFLAGS -I$x_includes"
9440   fi
9441
9442   # It would also be nice to do this for all -L options, not just this one.
9443   if test -n "$x_libraries"; then
9444     X_LIBS="$X_LIBS -L$x_libraries"
9445     # For Solaris; some versions of Sun CC require a space after -R and
9446     # others require no space.  Words are not sufficient . . . .
9447     case `(uname -sr) 2>/dev/null` in
9448     "SunOS 5"*)
9449       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9450 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9451       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9452       cat >conftest.$ac_ext <<_ACEOF
9453 /* confdefs.h.  */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h.  */
9458
9459 int
9460 main ()
9461 {
9462
9463   ;
9464   return 0;
9465 }
9466 _ACEOF
9467 rm -f conftest.$ac_objext conftest$ac_exeext
9468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9469   (eval $ac_link) 2>conftest.er1
9470   ac_status=$?
9471   grep -v '^ *+' conftest.er1 >conftest.err
9472   rm -f conftest.er1
9473   cat conftest.err >&5
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); } &&
9476          { ac_try='test -z "$ac_c_werror_flag"
9477                          || test ! -s conftest.err'
9478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479   (eval $ac_try) 2>&5
9480   ac_status=$?
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); }; } &&
9483          { ac_try='test -s conftest$ac_exeext'
9484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485   (eval $ac_try) 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); }; }; then
9489   ac_R_nospace=yes
9490 else
9491   echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9493
9494 ac_R_nospace=no
9495 fi
9496 rm -f conftest.err conftest.$ac_objext \
9497       conftest$ac_exeext conftest.$ac_ext
9498       if test $ac_R_nospace = yes; then
9499         echo "$as_me:$LINENO: result: no" >&5
9500 echo "${ECHO_T}no" >&6
9501         X_LIBS="$X_LIBS -R$x_libraries"
9502       else
9503         LIBS="$ac_xsave_LIBS -R $x_libraries"
9504         cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h.  */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h.  */
9510
9511 int
9512 main ()
9513 {
9514
9515   ;
9516   return 0;
9517 }
9518 _ACEOF
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521   (eval $ac_link) 2>conftest.er1
9522   ac_status=$?
9523   grep -v '^ *+' conftest.er1 >conftest.err
9524   rm -f conftest.er1
9525   cat conftest.err >&5
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); } &&
9528          { ac_try='test -z "$ac_c_werror_flag"
9529                          || test ! -s conftest.err'
9530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531   (eval $ac_try) 2>&5
9532   ac_status=$?
9533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534   (exit $ac_status); }; } &&
9535          { ac_try='test -s conftest$ac_exeext'
9536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537   (eval $ac_try) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; }; then
9541   ac_R_space=yes
9542 else
9543   echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9545
9546 ac_R_space=no
9547 fi
9548 rm -f conftest.err conftest.$ac_objext \
9549       conftest$ac_exeext conftest.$ac_ext
9550         if test $ac_R_space = yes; then
9551           echo "$as_me:$LINENO: result: yes" >&5
9552 echo "${ECHO_T}yes" >&6
9553           X_LIBS="$X_LIBS -R $x_libraries"
9554         else
9555           echo "$as_me:$LINENO: result: neither works" >&5
9556 echo "${ECHO_T}neither works" >&6
9557         fi
9558       fi
9559       LIBS=$ac_xsave_LIBS
9560     esac
9561   fi
9562
9563   # Check for system-dependent libraries X programs must link with.
9564   # Do this before checking for the system-independent R6 libraries
9565   # (-lICE), since we may need -lsocket or whatever for X linking.
9566
9567   if test "$ISC" = yes; then
9568     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9569   else
9570     # Martyn Johnson says this is needed for Ultrix, if the X
9571     # libraries were built with DECnet support.  And Karl Berry says
9572     # the Alpha needs dnet_stub (dnet does not exist).
9573     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9574     cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h.  */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h.  */
9580
9581 /* Override any gcc2 internal prototype to avoid an error.  */
9582 #ifdef __cplusplus
9583 extern "C"
9584 #endif
9585 /* We use char because int might match the return type of a gcc2
9586    builtin and then its argument prototype would still apply.  */
9587 char XOpenDisplay ();
9588 int
9589 main ()
9590 {
9591 XOpenDisplay ();
9592   ;
9593   return 0;
9594 }
9595 _ACEOF
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598   (eval $ac_link) 2>conftest.er1
9599   ac_status=$?
9600   grep -v '^ *+' conftest.er1 >conftest.err
9601   rm -f conftest.er1
9602   cat conftest.err >&5
9603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   (exit $ac_status); } &&
9605          { ac_try='test -z "$ac_c_werror_flag"
9606                          || test ! -s conftest.err'
9607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608   (eval $ac_try) 2>&5
9609   ac_status=$?
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); }; } &&
9612          { ac_try='test -s conftest$ac_exeext'
9613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614   (eval $ac_try) 2>&5
9615   ac_status=$?
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); }; }; then
9618   :
9619 else
9620   echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9622
9623 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9624 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9625 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9626   echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628   ac_check_lib_save_LIBS=$LIBS
9629 LIBS="-ldnet  $LIBS"
9630 cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h.  */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h.  */
9636
9637 /* Override any gcc2 internal prototype to avoid an error.  */
9638 #ifdef __cplusplus
9639 extern "C"
9640 #endif
9641 /* We use char because int might match the return type of a gcc2
9642    builtin and then its argument prototype would still apply.  */
9643 char dnet_ntoa ();
9644 int
9645 main ()
9646 {
9647 dnet_ntoa ();
9648   ;
9649   return 0;
9650 }
9651 _ACEOF
9652 rm -f conftest.$ac_objext conftest$ac_exeext
9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654   (eval $ac_link) 2>conftest.er1
9655   ac_status=$?
9656   grep -v '^ *+' conftest.er1 >conftest.err
9657   rm -f conftest.er1
9658   cat conftest.err >&5
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); } &&
9661          { ac_try='test -z "$ac_c_werror_flag"
9662                          || test ! -s conftest.err'
9663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664   (eval $ac_try) 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); }; } &&
9668          { ac_try='test -s conftest$ac_exeext'
9669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670   (eval $ac_try) 2>&5
9671   ac_status=$?
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); }; }; then
9674   ac_cv_lib_dnet_dnet_ntoa=yes
9675 else
9676   echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9678
9679 ac_cv_lib_dnet_dnet_ntoa=no
9680 fi
9681 rm -f conftest.err conftest.$ac_objext \
9682       conftest$ac_exeext conftest.$ac_ext
9683 LIBS=$ac_check_lib_save_LIBS
9684 fi
9685 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9686 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9687 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9688   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9689 fi
9690
9691     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9692       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9693 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9694 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9695   echo $ECHO_N "(cached) $ECHO_C" >&6
9696 else
9697   ac_check_lib_save_LIBS=$LIBS
9698 LIBS="-ldnet_stub  $LIBS"
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h.  */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h.  */
9705
9706 /* Override any gcc2 internal prototype to avoid an error.  */
9707 #ifdef __cplusplus
9708 extern "C"
9709 #endif
9710 /* We use char because int might match the return type of a gcc2
9711    builtin and then its argument prototype would still apply.  */
9712 char dnet_ntoa ();
9713 int
9714 main ()
9715 {
9716 dnet_ntoa ();
9717   ;
9718   return 0;
9719 }
9720 _ACEOF
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723   (eval $ac_link) 2>conftest.er1
9724   ac_status=$?
9725   grep -v '^ *+' conftest.er1 >conftest.err
9726   rm -f conftest.er1
9727   cat conftest.err >&5
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); } &&
9730          { ac_try='test -z "$ac_c_werror_flag"
9731                          || test ! -s conftest.err'
9732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733   (eval $ac_try) 2>&5
9734   ac_status=$?
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); }; } &&
9737          { ac_try='test -s conftest$ac_exeext'
9738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739   (eval $ac_try) 2>&5
9740   ac_status=$?
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); }; }; then
9743   ac_cv_lib_dnet_stub_dnet_ntoa=yes
9744 else
9745   echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9747
9748 ac_cv_lib_dnet_stub_dnet_ntoa=no
9749 fi
9750 rm -f conftest.err conftest.$ac_objext \
9751       conftest$ac_exeext conftest.$ac_ext
9752 LIBS=$ac_check_lib_save_LIBS
9753 fi
9754 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9755 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9756 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9757   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9758 fi
9759
9760     fi
9761 fi
9762 rm -f conftest.err conftest.$ac_objext \
9763       conftest$ac_exeext conftest.$ac_ext
9764     LIBS="$ac_xsave_LIBS"
9765
9766     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9767     # to get the SysV transport functions.
9768     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9769     # needs -lnsl.
9770     # The nsl library prevents programs from opening the X display
9771     # on Irix 5.2, according to T.E. Dickey.
9772     # The functions gethostbyname, getservbyname, and inet_addr are
9773     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9774     echo "$as_me:$LINENO: checking for gethostbyname" >&5
9775 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9776 if test "${ac_cv_func_gethostbyname+set}" = set; then
9777   echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779   cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h.  */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h.  */
9785 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9787 #define gethostbyname innocuous_gethostbyname
9788
9789 /* System header to define __stub macros and hopefully few prototypes,
9790     which can conflict with char gethostbyname (); below.
9791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9792     <limits.h> exists even on freestanding compilers.  */
9793
9794 #ifdef __STDC__
9795 # include <limits.h>
9796 #else
9797 # include <assert.h>
9798 #endif
9799
9800 #undef gethostbyname
9801
9802 /* Override any gcc2 internal prototype to avoid an error.  */
9803 #ifdef __cplusplus
9804 extern "C"
9805 {
9806 #endif
9807 /* We use char because int might match the return type of a gcc2
9808    builtin and then its argument prototype would still apply.  */
9809 char gethostbyname ();
9810 /* The GNU C library defines this for functions which it implements
9811     to always fail with ENOSYS.  Some functions are actually named
9812     something starting with __ and the normal name is an alias.  */
9813 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9814 choke me
9815 #else
9816 char (*f) () = gethostbyname;
9817 #endif
9818 #ifdef __cplusplus
9819 }
9820 #endif
9821
9822 int
9823 main ()
9824 {
9825 return f != gethostbyname;
9826   ;
9827   return 0;
9828 }
9829 _ACEOF
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9832   (eval $ac_link) 2>conftest.er1
9833   ac_status=$?
9834   grep -v '^ *+' conftest.er1 >conftest.err
9835   rm -f conftest.er1
9836   cat conftest.err >&5
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); } &&
9839          { ac_try='test -z "$ac_c_werror_flag"
9840                          || test ! -s conftest.err'
9841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842   (eval $ac_try) 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); }; } &&
9846          { ac_try='test -s conftest$ac_exeext'
9847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848   (eval $ac_try) 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); }; }; then
9852   ac_cv_func_gethostbyname=yes
9853 else
9854   echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9856
9857 ac_cv_func_gethostbyname=no
9858 fi
9859 rm -f conftest.err conftest.$ac_objext \
9860       conftest$ac_exeext conftest.$ac_ext
9861 fi
9862 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9863 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9864
9865     if test $ac_cv_func_gethostbyname = no; then
9866       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9867 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9868 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9869   echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871   ac_check_lib_save_LIBS=$LIBS
9872 LIBS="-lnsl  $LIBS"
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h.  */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h.  */
9879
9880 /* Override any gcc2 internal prototype to avoid an error.  */
9881 #ifdef __cplusplus
9882 extern "C"
9883 #endif
9884 /* We use char because int might match the return type of a gcc2
9885    builtin and then its argument prototype would still apply.  */
9886 char gethostbyname ();
9887 int
9888 main ()
9889 {
9890 gethostbyname ();
9891   ;
9892   return 0;
9893 }
9894 _ACEOF
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9897   (eval $ac_link) 2>conftest.er1
9898   ac_status=$?
9899   grep -v '^ *+' conftest.er1 >conftest.err
9900   rm -f conftest.er1
9901   cat conftest.err >&5
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); } &&
9904          { ac_try='test -z "$ac_c_werror_flag"
9905                          || test ! -s conftest.err'
9906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907   (eval $ac_try) 2>&5
9908   ac_status=$?
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); }; } &&
9911          { ac_try='test -s conftest$ac_exeext'
9912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913   (eval $ac_try) 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); }; }; then
9917   ac_cv_lib_nsl_gethostbyname=yes
9918 else
9919   echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922 ac_cv_lib_nsl_gethostbyname=no
9923 fi
9924 rm -f conftest.err conftest.$ac_objext \
9925       conftest$ac_exeext conftest.$ac_ext
9926 LIBS=$ac_check_lib_save_LIBS
9927 fi
9928 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9929 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9930 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9931   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9932 fi
9933
9934       if test $ac_cv_lib_nsl_gethostbyname = no; then
9935         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9936 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9937 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9938   echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940   ac_check_lib_save_LIBS=$LIBS
9941 LIBS="-lbsd  $LIBS"
9942 cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h.  */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h.  */
9948
9949 /* Override any gcc2 internal prototype to avoid an error.  */
9950 #ifdef __cplusplus
9951 extern "C"
9952 #endif
9953 /* We use char because int might match the return type of a gcc2
9954    builtin and then its argument prototype would still apply.  */
9955 char gethostbyname ();
9956 int
9957 main ()
9958 {
9959 gethostbyname ();
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966   (eval $ac_link) 2>conftest.er1
9967   ac_status=$?
9968   grep -v '^ *+' conftest.er1 >conftest.err
9969   rm -f conftest.er1
9970   cat conftest.err >&5
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); } &&
9973          { ac_try='test -z "$ac_c_werror_flag"
9974                          || test ! -s conftest.err'
9975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976   (eval $ac_try) 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); }; } &&
9980          { ac_try='test -s conftest$ac_exeext'
9981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982   (eval $ac_try) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; }; then
9986   ac_cv_lib_bsd_gethostbyname=yes
9987 else
9988   echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991 ac_cv_lib_bsd_gethostbyname=no
9992 fi
9993 rm -f conftest.err conftest.$ac_objext \
9994       conftest$ac_exeext conftest.$ac_ext
9995 LIBS=$ac_check_lib_save_LIBS
9996 fi
9997 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9998 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9999 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10000   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10001 fi
10002
10003       fi
10004     fi
10005
10006     # lieder@skyler.mavd.honeywell.com says without -lsocket,
10007     # socket/setsockopt and other routines are undefined under SCO ODT
10008     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10009     # on later versions), says Simon Leinen: it contains gethostby*
10010     # variants that don't use the name server (or something).  -lsocket
10011     # must be given before -lnsl if both are needed.  We assume that
10012     # if connect needs -lnsl, so does gethostbyname.
10013     echo "$as_me:$LINENO: checking for connect" >&5
10014 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10015 if test "${ac_cv_func_connect+set}" = set; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018   cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h.  */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h.  */
10024 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10026 #define connect innocuous_connect
10027
10028 /* System header to define __stub macros and hopefully few prototypes,
10029     which can conflict with char connect (); below.
10030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10031     <limits.h> exists even on freestanding compilers.  */
10032
10033 #ifdef __STDC__
10034 # include <limits.h>
10035 #else
10036 # include <assert.h>
10037 #endif
10038
10039 #undef connect
10040
10041 /* Override any gcc2 internal prototype to avoid an error.  */
10042 #ifdef __cplusplus
10043 extern "C"
10044 {
10045 #endif
10046 /* We use char because int might match the return type of a gcc2
10047    builtin and then its argument prototype would still apply.  */
10048 char connect ();
10049 /* The GNU C library defines this for functions which it implements
10050     to always fail with ENOSYS.  Some functions are actually named
10051     something starting with __ and the normal name is an alias.  */
10052 #if defined (__stub_connect) || defined (__stub___connect)
10053 choke me
10054 #else
10055 char (*f) () = connect;
10056 #endif
10057 #ifdef __cplusplus
10058 }
10059 #endif
10060
10061 int
10062 main ()
10063 {
10064 return f != connect;
10065   ;
10066   return 0;
10067 }
10068 _ACEOF
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071   (eval $ac_link) 2>conftest.er1
10072   ac_status=$?
10073   grep -v '^ *+' conftest.er1 >conftest.err
10074   rm -f conftest.er1
10075   cat conftest.err >&5
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); } &&
10078          { ac_try='test -z "$ac_c_werror_flag"
10079                          || test ! -s conftest.err'
10080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081   (eval $ac_try) 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); }; } &&
10085          { ac_try='test -s conftest$ac_exeext'
10086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087   (eval $ac_try) 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); }; }; then
10091   ac_cv_func_connect=yes
10092 else
10093   echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10095
10096 ac_cv_func_connect=no
10097 fi
10098 rm -f conftest.err conftest.$ac_objext \
10099       conftest$ac_exeext conftest.$ac_ext
10100 fi
10101 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10102 echo "${ECHO_T}$ac_cv_func_connect" >&6
10103
10104     if test $ac_cv_func_connect = no; then
10105       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10106 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10107 if test "${ac_cv_lib_socket_connect+set}" = set; then
10108   echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110   ac_check_lib_save_LIBS=$LIBS
10111 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h.  */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h.  */
10118
10119 /* Override any gcc2 internal prototype to avoid an error.  */
10120 #ifdef __cplusplus
10121 extern "C"
10122 #endif
10123 /* We use char because int might match the return type of a gcc2
10124    builtin and then its argument prototype would still apply.  */
10125 char connect ();
10126 int
10127 main ()
10128 {
10129 connect ();
10130   ;
10131   return 0;
10132 }
10133 _ACEOF
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136   (eval $ac_link) 2>conftest.er1
10137   ac_status=$?
10138   grep -v '^ *+' conftest.er1 >conftest.err
10139   rm -f conftest.er1
10140   cat conftest.err >&5
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); } &&
10143          { ac_try='test -z "$ac_c_werror_flag"
10144                          || test ! -s conftest.err'
10145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146   (eval $ac_try) 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); }; } &&
10150          { ac_try='test -s conftest$ac_exeext'
10151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152   (eval $ac_try) 2>&5
10153   ac_status=$?
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); }; }; then
10156   ac_cv_lib_socket_connect=yes
10157 else
10158   echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10160
10161 ac_cv_lib_socket_connect=no
10162 fi
10163 rm -f conftest.err conftest.$ac_objext \
10164       conftest$ac_exeext conftest.$ac_ext
10165 LIBS=$ac_check_lib_save_LIBS
10166 fi
10167 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10168 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10169 if test $ac_cv_lib_socket_connect = yes; then
10170   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10171 fi
10172
10173     fi
10174
10175     # Guillermo Gomez says -lposix is necessary on A/UX.
10176     echo "$as_me:$LINENO: checking for remove" >&5
10177 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10178 if test "${ac_cv_func_remove+set}" = set; then
10179   echo $ECHO_N "(cached) $ECHO_C" >&6
10180 else
10181   cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h.  */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h.  */
10187 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10189 #define remove innocuous_remove
10190
10191 /* System header to define __stub macros and hopefully few prototypes,
10192     which can conflict with char remove (); below.
10193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10194     <limits.h> exists even on freestanding compilers.  */
10195
10196 #ifdef __STDC__
10197 # include <limits.h>
10198 #else
10199 # include <assert.h>
10200 #endif
10201
10202 #undef remove
10203
10204 /* Override any gcc2 internal prototype to avoid an error.  */
10205 #ifdef __cplusplus
10206 extern "C"
10207 {
10208 #endif
10209 /* We use char because int might match the return type of a gcc2
10210    builtin and then its argument prototype would still apply.  */
10211 char remove ();
10212 /* The GNU C library defines this for functions which it implements
10213     to always fail with ENOSYS.  Some functions are actually named
10214     something starting with __ and the normal name is an alias.  */
10215 #if defined (__stub_remove) || defined (__stub___remove)
10216 choke me
10217 #else
10218 char (*f) () = remove;
10219 #endif
10220 #ifdef __cplusplus
10221 }
10222 #endif
10223
10224 int
10225 main ()
10226 {
10227 return f != remove;
10228   ;
10229   return 0;
10230 }
10231 _ACEOF
10232 rm -f conftest.$ac_objext conftest$ac_exeext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234   (eval $ac_link) 2>conftest.er1
10235   ac_status=$?
10236   grep -v '^ *+' conftest.er1 >conftest.err
10237   rm -f conftest.er1
10238   cat conftest.err >&5
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); } &&
10241          { ac_try='test -z "$ac_c_werror_flag"
10242                          || test ! -s conftest.err'
10243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244   (eval $ac_try) 2>&5
10245   ac_status=$?
10246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247   (exit $ac_status); }; } &&
10248          { ac_try='test -s conftest$ac_exeext'
10249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250   (eval $ac_try) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; }; then
10254   ac_cv_func_remove=yes
10255 else
10256   echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10258
10259 ac_cv_func_remove=no
10260 fi
10261 rm -f conftest.err conftest.$ac_objext \
10262       conftest$ac_exeext conftest.$ac_ext
10263 fi
10264 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10265 echo "${ECHO_T}$ac_cv_func_remove" >&6
10266
10267     if test $ac_cv_func_remove = no; then
10268       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10269 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10270 if test "${ac_cv_lib_posix_remove+set}" = set; then
10271   echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273   ac_check_lib_save_LIBS=$LIBS
10274 LIBS="-lposix  $LIBS"
10275 cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h.  */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h.  */
10281
10282 /* Override any gcc2 internal prototype to avoid an error.  */
10283 #ifdef __cplusplus
10284 extern "C"
10285 #endif
10286 /* We use char because int might match the return type of a gcc2
10287    builtin and then its argument prototype would still apply.  */
10288 char remove ();
10289 int
10290 main ()
10291 {
10292 remove ();
10293   ;
10294   return 0;
10295 }
10296 _ACEOF
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299   (eval $ac_link) 2>conftest.er1
10300   ac_status=$?
10301   grep -v '^ *+' conftest.er1 >conftest.err
10302   rm -f conftest.er1
10303   cat conftest.err >&5
10304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); } &&
10306          { ac_try='test -z "$ac_c_werror_flag"
10307                          || test ! -s conftest.err'
10308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309   (eval $ac_try) 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; } &&
10313          { ac_try='test -s conftest$ac_exeext'
10314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315   (eval $ac_try) 2>&5
10316   ac_status=$?
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); }; }; then
10319   ac_cv_lib_posix_remove=yes
10320 else
10321   echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10323
10324 ac_cv_lib_posix_remove=no
10325 fi
10326 rm -f conftest.err conftest.$ac_objext \
10327       conftest$ac_exeext conftest.$ac_ext
10328 LIBS=$ac_check_lib_save_LIBS
10329 fi
10330 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10331 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10332 if test $ac_cv_lib_posix_remove = yes; then
10333   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10334 fi
10335
10336     fi
10337
10338     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10339     echo "$as_me:$LINENO: checking for shmat" >&5
10340 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10341 if test "${ac_cv_func_shmat+set}" = set; then
10342   echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344   cat >conftest.$ac_ext <<_ACEOF
10345 /* confdefs.h.  */
10346 _ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h.  */
10350 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10352 #define shmat innocuous_shmat
10353
10354 /* System header to define __stub macros and hopefully few prototypes,
10355     which can conflict with char shmat (); below.
10356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10357     <limits.h> exists even on freestanding compilers.  */
10358
10359 #ifdef __STDC__
10360 # include <limits.h>
10361 #else
10362 # include <assert.h>
10363 #endif
10364
10365 #undef shmat
10366
10367 /* Override any gcc2 internal prototype to avoid an error.  */
10368 #ifdef __cplusplus
10369 extern "C"
10370 {
10371 #endif
10372 /* We use char because int might match the return type of a gcc2
10373    builtin and then its argument prototype would still apply.  */
10374 char shmat ();
10375 /* The GNU C library defines this for functions which it implements
10376     to always fail with ENOSYS.  Some functions are actually named
10377     something starting with __ and the normal name is an alias.  */
10378 #if defined (__stub_shmat) || defined (__stub___shmat)
10379 choke me
10380 #else
10381 char (*f) () = shmat;
10382 #endif
10383 #ifdef __cplusplus
10384 }
10385 #endif
10386
10387 int
10388 main ()
10389 {
10390 return f != shmat;
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10397   (eval $ac_link) 2>conftest.er1
10398   ac_status=$?
10399   grep -v '^ *+' conftest.er1 >conftest.err
10400   rm -f conftest.er1
10401   cat conftest.err >&5
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); } &&
10404          { ac_try='test -z "$ac_c_werror_flag"
10405                          || test ! -s conftest.err'
10406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407   (eval $ac_try) 2>&5
10408   ac_status=$?
10409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); }; } &&
10411          { ac_try='test -s conftest$ac_exeext'
10412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413   (eval $ac_try) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); }; }; then
10417   ac_cv_func_shmat=yes
10418 else
10419   echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10421
10422 ac_cv_func_shmat=no
10423 fi
10424 rm -f conftest.err conftest.$ac_objext \
10425       conftest$ac_exeext conftest.$ac_ext
10426 fi
10427 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10428 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10429
10430     if test $ac_cv_func_shmat = no; then
10431       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10432 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10433 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10434   echo $ECHO_N "(cached) $ECHO_C" >&6
10435 else
10436   ac_check_lib_save_LIBS=$LIBS
10437 LIBS="-lipc  $LIBS"
10438 cat >conftest.$ac_ext <<_ACEOF
10439 /* confdefs.h.  */
10440 _ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h.  */
10444
10445 /* Override any gcc2 internal prototype to avoid an error.  */
10446 #ifdef __cplusplus
10447 extern "C"
10448 #endif
10449 /* We use char because int might match the return type of a gcc2
10450    builtin and then its argument prototype would still apply.  */
10451 char shmat ();
10452 int
10453 main ()
10454 {
10455 shmat ();
10456   ;
10457   return 0;
10458 }
10459 _ACEOF
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462   (eval $ac_link) 2>conftest.er1
10463   ac_status=$?
10464   grep -v '^ *+' conftest.er1 >conftest.err
10465   rm -f conftest.er1
10466   cat conftest.err >&5
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); } &&
10469          { ac_try='test -z "$ac_c_werror_flag"
10470                          || test ! -s conftest.err'
10471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472   (eval $ac_try) 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); }; } &&
10476          { ac_try='test -s conftest$ac_exeext'
10477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478   (eval $ac_try) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); }; }; then
10482   ac_cv_lib_ipc_shmat=yes
10483 else
10484   echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487 ac_cv_lib_ipc_shmat=no
10488 fi
10489 rm -f conftest.err conftest.$ac_objext \
10490       conftest$ac_exeext conftest.$ac_ext
10491 LIBS=$ac_check_lib_save_LIBS
10492 fi
10493 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10494 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10495 if test $ac_cv_lib_ipc_shmat = yes; then
10496   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10497 fi
10498
10499     fi
10500   fi
10501
10502   # Check for libraries that X11R6 Xt/Xaw programs need.
10503   ac_save_LDFLAGS=$LDFLAGS
10504   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10505   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10506   # check for ICE first), but we must link in the order -lSM -lICE or
10507   # we get undefined symbols.  So assume we have SM if we have ICE.
10508   # These have to be linked with before -lX11, unlike the other
10509   # libraries we check for below, so use a different variable.
10510   # John Interrante, Karl Berry
10511   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10512 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10513 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10514   echo $ECHO_N "(cached) $ECHO_C" >&6
10515 else
10516   ac_check_lib_save_LIBS=$LIBS
10517 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10518 cat >conftest.$ac_ext <<_ACEOF
10519 /* confdefs.h.  */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h.  */
10524
10525 /* Override any gcc2 internal prototype to avoid an error.  */
10526 #ifdef __cplusplus
10527 extern "C"
10528 #endif
10529 /* We use char because int might match the return type of a gcc2
10530    builtin and then its argument prototype would still apply.  */
10531 char IceConnectionNumber ();
10532 int
10533 main ()
10534 {
10535 IceConnectionNumber ();
10536   ;
10537   return 0;
10538 }
10539 _ACEOF
10540 rm -f conftest.$ac_objext conftest$ac_exeext
10541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10542   (eval $ac_link) 2>conftest.er1
10543   ac_status=$?
10544   grep -v '^ *+' conftest.er1 >conftest.err
10545   rm -f conftest.er1
10546   cat conftest.err >&5
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); } &&
10549          { ac_try='test -z "$ac_c_werror_flag"
10550                          || test ! -s conftest.err'
10551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552   (eval $ac_try) 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); }; } &&
10556          { ac_try='test -s conftest$ac_exeext'
10557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558   (eval $ac_try) 2>&5
10559   ac_status=$?
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); }; }; then
10562   ac_cv_lib_ICE_IceConnectionNumber=yes
10563 else
10564   echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10566
10567 ac_cv_lib_ICE_IceConnectionNumber=no
10568 fi
10569 rm -f conftest.err conftest.$ac_objext \
10570       conftest$ac_exeext conftest.$ac_ext
10571 LIBS=$ac_check_lib_save_LIBS
10572 fi
10573 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10574 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10575 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10576   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10577 fi
10578
10579   LDFLAGS=$ac_save_LDFLAGS
10580
10581 fi
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611 for ac_header in \
10612         assert.h \
10613         fcntl.h \
10614         grp.h \
10615         pwd.h \
10616         libc.h \
10617         limits.h \
10618         stdarg.h \
10619         stdlib.h \
10620         stdint.h \
10621         string.h \
10622         termios.h \
10623         termcap.h \
10624         term.h \
10625         unistd.h \
10626         sys/bitypes.h \
10627         sys/byteorder.h \
10628         sys/ioctl.h \
10629         sys/select.h \
10630         sys/sockio.h \
10631         sys/time.h \
10632         sys/socket.h \
10633         arpa/nameser.h \
10634         resolv.h \
10635         mtio.h \
10636         sys/mtio.h \
10637         sys/tape.h \
10638         regex.h \
10639
10640 do
10641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10643   echo "$as_me:$LINENO: checking for $ac_header" >&5
10644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10646   echo $ECHO_N "(cached) $ECHO_C" >&6
10647 fi
10648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10650 else
10651   # Is the header compilable?
10652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10654 cat >conftest.$ac_ext <<_ACEOF
10655 /* confdefs.h.  */
10656 _ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h.  */
10660 $ac_includes_default
10661 #include <$ac_header>
10662 _ACEOF
10663 rm -f conftest.$ac_objext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10665   (eval $ac_compile) 2>conftest.er1
10666   ac_status=$?
10667   grep -v '^ *+' conftest.er1 >conftest.err
10668   rm -f conftest.er1
10669   cat conftest.err >&5
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); } &&
10672          { ac_try='test -z "$ac_c_werror_flag"
10673                          || test ! -s conftest.err'
10674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675   (eval $ac_try) 2>&5
10676   ac_status=$?
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); }; } &&
10679          { ac_try='test -s conftest.$ac_objext'
10680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681   (eval $ac_try) 2>&5
10682   ac_status=$?
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); }; }; then
10685   ac_header_compiler=yes
10686 else
10687   echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10689
10690 ac_header_compiler=no
10691 fi
10692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10693 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10694 echo "${ECHO_T}$ac_header_compiler" >&6
10695
10696 # Is the header present?
10697 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10699 cat >conftest.$ac_ext <<_ACEOF
10700 /* confdefs.h.  */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h.  */
10705 #include <$ac_header>
10706 _ACEOF
10707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10708   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10709   ac_status=$?
10710   grep -v '^ *+' conftest.er1 >conftest.err
10711   rm -f conftest.er1
10712   cat conftest.err >&5
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); } >/dev/null; then
10715   if test -s conftest.err; then
10716     ac_cpp_err=$ac_c_preproc_warn_flag
10717     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10718   else
10719     ac_cpp_err=
10720   fi
10721 else
10722   ac_cpp_err=yes
10723 fi
10724 if test -z "$ac_cpp_err"; then
10725   ac_header_preproc=yes
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730   ac_header_preproc=no
10731 fi
10732 rm -f conftest.err conftest.$ac_ext
10733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10734 echo "${ECHO_T}$ac_header_preproc" >&6
10735
10736 # So?  What about this header?
10737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10738   yes:no: )
10739     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10743     ac_header_preproc=yes
10744     ;;
10745   no:yes:* )
10746     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10748     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10749 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10750     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10752     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10753 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10754     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10756     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10758     (
10759       cat <<\_ASBOX
10760 ## ------------------------------------------ ##
10761 ## Report this to the AC_PACKAGE_NAME lists.  ##
10762 ## ------------------------------------------ ##
10763 _ASBOX
10764     ) |
10765       sed "s/^/$as_me: WARNING:     /" >&2
10766     ;;
10767 esac
10768 echo "$as_me:$LINENO: checking for $ac_header" >&5
10769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10771   echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773   eval "$as_ac_Header=\$ac_header_preproc"
10774 fi
10775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10777
10778 fi
10779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10780   cat >>confdefs.h <<_ACEOF
10781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10782 _ACEOF
10783
10784 fi
10785
10786 done
10787
10788 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10789 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10790 if test "${ac_cv_header_stdc+set}" = set; then
10791   echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793   cat >conftest.$ac_ext <<_ACEOF
10794 /* confdefs.h.  */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h.  */
10799 #include <stdlib.h>
10800 #include <stdarg.h>
10801 #include <string.h>
10802 #include <float.h>
10803
10804 int
10805 main ()
10806 {
10807
10808   ;
10809   return 0;
10810 }
10811 _ACEOF
10812 rm -f conftest.$ac_objext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10814   (eval $ac_compile) 2>conftest.er1
10815   ac_status=$?
10816   grep -v '^ *+' conftest.er1 >conftest.err
10817   rm -f conftest.er1
10818   cat conftest.err >&5
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); } &&
10821          { ac_try='test -z "$ac_c_werror_flag"
10822                          || test ! -s conftest.err'
10823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824   (eval $ac_try) 2>&5
10825   ac_status=$?
10826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827   (exit $ac_status); }; } &&
10828          { ac_try='test -s conftest.$ac_objext'
10829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830   (eval $ac_try) 2>&5
10831   ac_status=$?
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); }; }; then
10834   ac_cv_header_stdc=yes
10835 else
10836   echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839 ac_cv_header_stdc=no
10840 fi
10841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10842
10843 if test $ac_cv_header_stdc = yes; then
10844   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10845   cat >conftest.$ac_ext <<_ACEOF
10846 /* confdefs.h.  */
10847 _ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h.  */
10851 #include <string.h>
10852
10853 _ACEOF
10854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10855   $EGREP "memchr" >/dev/null 2>&1; then
10856   :
10857 else
10858   ac_cv_header_stdc=no
10859 fi
10860 rm -f conftest*
10861
10862 fi
10863
10864 if test $ac_cv_header_stdc = yes; then
10865   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10866   cat >conftest.$ac_ext <<_ACEOF
10867 /* confdefs.h.  */
10868 _ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h.  */
10872 #include <stdlib.h>
10873
10874 _ACEOF
10875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10876   $EGREP "free" >/dev/null 2>&1; then
10877   :
10878 else
10879   ac_cv_header_stdc=no
10880 fi
10881 rm -f conftest*
10882
10883 fi
10884
10885 if test $ac_cv_header_stdc = yes; then
10886   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10887   if test "$cross_compiling" = yes; then
10888   :
10889 else
10890   cat >conftest.$ac_ext <<_ACEOF
10891 /* confdefs.h.  */
10892 _ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h.  */
10896 #include <ctype.h>
10897 #if ((' ' & 0x0FF) == 0x020)
10898 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10899 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10900 #else
10901 # define ISLOWER(c) \
10902                    (('a' <= (c) && (c) <= 'i') \
10903                      || ('j' <= (c) && (c) <= 'r') \
10904                      || ('s' <= (c) && (c) <= 'z'))
10905 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10906 #endif
10907
10908 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10909 int
10910 main ()
10911 {
10912   int i;
10913   for (i = 0; i < 256; i++)
10914     if (XOR (islower (i), ISLOWER (i))
10915         || toupper (i) != TOUPPER (i))
10916       exit(2);
10917   exit (0);
10918 }
10919 _ACEOF
10920 rm -f conftest$ac_exeext
10921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10922   (eval $ac_link) 2>&5
10923   ac_status=$?
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927   (eval $ac_try) 2>&5
10928   ac_status=$?
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); }; }; then
10931   :
10932 else
10933   echo "$as_me: program exited with status $ac_status" >&5
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10936
10937 ( exit $ac_status )
10938 ac_cv_header_stdc=no
10939 fi
10940 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10941 fi
10942 fi
10943 fi
10944 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10945 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10946 if test $ac_cv_header_stdc = yes; then
10947
10948 cat >>confdefs.h <<\_ACEOF
10949 #define STDC_HEADERS 1
10950 _ACEOF
10951
10952 fi
10953
10954 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10955 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10956 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10957   echo $ECHO_N "(cached) $ECHO_C" >&6
10958 else
10959   cat >conftest.$ac_ext <<_ACEOF
10960 /* confdefs.h.  */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h.  */
10965 #include <sys/types.h>
10966 int
10967 main ()
10968 {
10969 return makedev(0, 0);
10970   ;
10971   return 0;
10972 }
10973 _ACEOF
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976   (eval $ac_link) 2>conftest.er1
10977   ac_status=$?
10978   grep -v '^ *+' conftest.er1 >conftest.err
10979   rm -f conftest.er1
10980   cat conftest.err >&5
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); } &&
10983          { ac_try='test -z "$ac_c_werror_flag"
10984                          || test ! -s conftest.err'
10985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986   (eval $ac_try) 2>&5
10987   ac_status=$?
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   (exit $ac_status); }; } &&
10990          { ac_try='test -s conftest$ac_exeext'
10991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992   (eval $ac_try) 2>&5
10993   ac_status=$?
10994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995   (exit $ac_status); }; }; then
10996   ac_cv_header_sys_types_h_makedev=yes
10997 else
10998   echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001 ac_cv_header_sys_types_h_makedev=no
11002 fi
11003 rm -f conftest.err conftest.$ac_objext \
11004       conftest$ac_exeext conftest.$ac_ext
11005
11006 fi
11007 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11008 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11009
11010 if test $ac_cv_header_sys_types_h_makedev = no; then
11011 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11012   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11013 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11014 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11015   echo $ECHO_N "(cached) $ECHO_C" >&6
11016 fi
11017 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11018 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11019 else
11020   # Is the header compilable?
11021 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11022 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h.  */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h.  */
11029 $ac_includes_default
11030 #include <sys/mkdev.h>
11031 _ACEOF
11032 rm -f conftest.$ac_objext
11033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11034   (eval $ac_compile) 2>conftest.er1
11035   ac_status=$?
11036   grep -v '^ *+' conftest.er1 >conftest.err
11037   rm -f conftest.er1
11038   cat conftest.err >&5
11039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); } &&
11041          { ac_try='test -z "$ac_c_werror_flag"
11042                          || test ! -s conftest.err'
11043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044   (eval $ac_try) 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); }; } &&
11048          { ac_try='test -s conftest.$ac_objext'
11049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050   (eval $ac_try) 2>&5
11051   ac_status=$?
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); }; }; then
11054   ac_header_compiler=yes
11055 else
11056   echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059 ac_header_compiler=no
11060 fi
11061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11063 echo "${ECHO_T}$ac_header_compiler" >&6
11064
11065 # Is the header present?
11066 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11067 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11068 cat >conftest.$ac_ext <<_ACEOF
11069 /* confdefs.h.  */
11070 _ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h.  */
11074 #include <sys/mkdev.h>
11075 _ACEOF
11076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11078   ac_status=$?
11079   grep -v '^ *+' conftest.er1 >conftest.err
11080   rm -f conftest.er1
11081   cat conftest.err >&5
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } >/dev/null; then
11084   if test -s conftest.err; then
11085     ac_cpp_err=$ac_c_preproc_warn_flag
11086     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11087   else
11088     ac_cpp_err=
11089   fi
11090 else
11091   ac_cpp_err=yes
11092 fi
11093 if test -z "$ac_cpp_err"; then
11094   ac_header_preproc=yes
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099   ac_header_preproc=no
11100 fi
11101 rm -f conftest.err conftest.$ac_ext
11102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11103 echo "${ECHO_T}$ac_header_preproc" >&6
11104
11105 # So?  What about this header?
11106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11107   yes:no: )
11108     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11109 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11110     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11111 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11112     ac_header_preproc=yes
11113     ;;
11114   no:yes:* )
11115     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11116 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11117     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11118 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11119     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11120 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11121     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11122 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11123     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11124 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11125     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11126 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11127     (
11128       cat <<\_ASBOX
11129 ## ------------------------------------------ ##
11130 ## Report this to the AC_PACKAGE_NAME lists.  ##
11131 ## ------------------------------------------ ##
11132 _ASBOX
11133     ) |
11134       sed "s/^/$as_me: WARNING:     /" >&2
11135     ;;
11136 esac
11137 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11138 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11139 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11140   echo $ECHO_N "(cached) $ECHO_C" >&6
11141 else
11142   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11143 fi
11144 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11145 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11146
11147 fi
11148 if test $ac_cv_header_sys_mkdev_h = yes; then
11149
11150 cat >>confdefs.h <<\_ACEOF
11151 #define MAJOR_IN_MKDEV 1
11152 _ACEOF
11153
11154 fi
11155
11156
11157
11158   if test $ac_cv_header_sys_mkdev_h = no; then
11159     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11160   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11161 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11162 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11163   echo $ECHO_N "(cached) $ECHO_C" >&6
11164 fi
11165 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11166 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11167 else
11168   # Is the header compilable?
11169 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11170 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11171 cat >conftest.$ac_ext <<_ACEOF
11172 /* confdefs.h.  */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h.  */
11177 $ac_includes_default
11178 #include <sys/sysmacros.h>
11179 _ACEOF
11180 rm -f conftest.$ac_objext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11182   (eval $ac_compile) 2>conftest.er1
11183   ac_status=$?
11184   grep -v '^ *+' conftest.er1 >conftest.err
11185   rm -f conftest.er1
11186   cat conftest.err >&5
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); } &&
11189          { ac_try='test -z "$ac_c_werror_flag"
11190                          || test ! -s conftest.err'
11191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192   (eval $ac_try) 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; } &&
11196          { ac_try='test -s conftest.$ac_objext'
11197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198   (eval $ac_try) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); }; }; then
11202   ac_header_compiler=yes
11203 else
11204   echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11206
11207 ac_header_compiler=no
11208 fi
11209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11211 echo "${ECHO_T}$ac_header_compiler" >&6
11212
11213 # Is the header present?
11214 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11215 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11216 cat >conftest.$ac_ext <<_ACEOF
11217 /* confdefs.h.  */
11218 _ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h.  */
11222 #include <sys/sysmacros.h>
11223 _ACEOF
11224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11225   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11226   ac_status=$?
11227   grep -v '^ *+' conftest.er1 >conftest.err
11228   rm -f conftest.er1
11229   cat conftest.err >&5
11230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231   (exit $ac_status); } >/dev/null; then
11232   if test -s conftest.err; then
11233     ac_cpp_err=$ac_c_preproc_warn_flag
11234     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11235   else
11236     ac_cpp_err=
11237   fi
11238 else
11239   ac_cpp_err=yes
11240 fi
11241 if test -z "$ac_cpp_err"; then
11242   ac_header_preproc=yes
11243 else
11244   echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11246
11247   ac_header_preproc=no
11248 fi
11249 rm -f conftest.err conftest.$ac_ext
11250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11251 echo "${ECHO_T}$ac_header_preproc" >&6
11252
11253 # So?  What about this header?
11254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11255   yes:no: )
11256     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11257 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11258     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11259 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11260     ac_header_preproc=yes
11261     ;;
11262   no:yes:* )
11263     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11264 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11265     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11266 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11267     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11268 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11269     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11270 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11271     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11272 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11273     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11274 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11275     (
11276       cat <<\_ASBOX
11277 ## ------------------------------------------ ##
11278 ## Report this to the AC_PACKAGE_NAME lists.  ##
11279 ## ------------------------------------------ ##
11280 _ASBOX
11281     ) |
11282       sed "s/^/$as_me: WARNING:     /" >&2
11283     ;;
11284 esac
11285 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11286 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11287 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11288   echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11291 fi
11292 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11293 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11294
11295 fi
11296 if test $ac_cv_header_sys_sysmacros_h = yes; then
11297
11298 cat >>confdefs.h <<\_ACEOF
11299 #define MAJOR_IN_SYSMACROS 1
11300 _ACEOF
11301
11302 fi
11303
11304
11305   fi
11306 fi
11307
11308
11309
11310
11311
11312
11313 ac_header_dirent=no
11314 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11315   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11316 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11317 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11319   echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11321   cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h.  */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h.  */
11327 #include <sys/types.h>
11328 #include <$ac_hdr>
11329
11330 int
11331 main ()
11332 {
11333 if ((DIR *) 0)
11334 return 0;
11335   ;
11336   return 0;
11337 }
11338 _ACEOF
11339 rm -f conftest.$ac_objext
11340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11341   (eval $ac_compile) 2>conftest.er1
11342   ac_status=$?
11343   grep -v '^ *+' conftest.er1 >conftest.err
11344   rm -f conftest.er1
11345   cat conftest.err >&5
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); } &&
11348          { ac_try='test -z "$ac_c_werror_flag"
11349                          || test ! -s conftest.err'
11350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351   (eval $ac_try) 2>&5
11352   ac_status=$?
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); }; } &&
11355          { ac_try='test -s conftest.$ac_objext'
11356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357   (eval $ac_try) 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); }; }; then
11361   eval "$as_ac_Header=yes"
11362 else
11363   echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11365
11366 eval "$as_ac_Header=no"
11367 fi
11368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11369 fi
11370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11373   cat >>confdefs.h <<_ACEOF
11374 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11375 _ACEOF
11376
11377 ac_header_dirent=$ac_hdr; break
11378 fi
11379
11380 done
11381 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11382 if test $ac_header_dirent = dirent.h; then
11383   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11384 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11385 if test "${ac_cv_search_opendir+set}" = set; then
11386   echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388   ac_func_search_save_LIBS=$LIBS
11389 ac_cv_search_opendir=no
11390 cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h.  */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h.  */
11396
11397 /* Override any gcc2 internal prototype to avoid an error.  */
11398 #ifdef __cplusplus
11399 extern "C"
11400 #endif
11401 /* We use char because int might match the return type of a gcc2
11402    builtin and then its argument prototype would still apply.  */
11403 char opendir ();
11404 int
11405 main ()
11406 {
11407 opendir ();
11408   ;
11409   return 0;
11410 }
11411 _ACEOF
11412 rm -f conftest.$ac_objext conftest$ac_exeext
11413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11414   (eval $ac_link) 2>conftest.er1
11415   ac_status=$?
11416   grep -v '^ *+' conftest.er1 >conftest.err
11417   rm -f conftest.er1
11418   cat conftest.err >&5
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); } &&
11421          { ac_try='test -z "$ac_c_werror_flag"
11422                          || test ! -s conftest.err'
11423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424   (eval $ac_try) 2>&5
11425   ac_status=$?
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); }; } &&
11428          { ac_try='test -s conftest$ac_exeext'
11429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430   (eval $ac_try) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); }; }; then
11434   ac_cv_search_opendir="none required"
11435 else
11436   echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439 fi
11440 rm -f conftest.err conftest.$ac_objext \
11441       conftest$ac_exeext conftest.$ac_ext
11442 if test "$ac_cv_search_opendir" = no; then
11443   for ac_lib in dir; do
11444     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11445     cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h.  */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h.  */
11451
11452 /* Override any gcc2 internal prototype to avoid an error.  */
11453 #ifdef __cplusplus
11454 extern "C"
11455 #endif
11456 /* We use char because int might match the return type of a gcc2
11457    builtin and then its argument prototype would still apply.  */
11458 char opendir ();
11459 int
11460 main ()
11461 {
11462 opendir ();
11463   ;
11464   return 0;
11465 }
11466 _ACEOF
11467 rm -f conftest.$ac_objext conftest$ac_exeext
11468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11469   (eval $ac_link) 2>conftest.er1
11470   ac_status=$?
11471   grep -v '^ *+' conftest.er1 >conftest.err
11472   rm -f conftest.er1
11473   cat conftest.err >&5
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); } &&
11476          { ac_try='test -z "$ac_c_werror_flag"
11477                          || test ! -s conftest.err'
11478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479   (eval $ac_try) 2>&5
11480   ac_status=$?
11481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482   (exit $ac_status); }; } &&
11483          { ac_try='test -s conftest$ac_exeext'
11484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485   (eval $ac_try) 2>&5
11486   ac_status=$?
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); }; }; then
11489   ac_cv_search_opendir="-l$ac_lib"
11490 break
11491 else
11492   echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11494
11495 fi
11496 rm -f conftest.err conftest.$ac_objext \
11497       conftest$ac_exeext conftest.$ac_ext
11498   done
11499 fi
11500 LIBS=$ac_func_search_save_LIBS
11501 fi
11502 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11503 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11504 if test "$ac_cv_search_opendir" != no; then
11505   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11506
11507 fi
11508
11509 else
11510   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11511 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11512 if test "${ac_cv_search_opendir+set}" = set; then
11513   echo $ECHO_N "(cached) $ECHO_C" >&6
11514 else
11515   ac_func_search_save_LIBS=$LIBS
11516 ac_cv_search_opendir=no
11517 cat >conftest.$ac_ext <<_ACEOF
11518 /* confdefs.h.  */
11519 _ACEOF
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h.  */
11523
11524 /* Override any gcc2 internal prototype to avoid an error.  */
11525 #ifdef __cplusplus
11526 extern "C"
11527 #endif
11528 /* We use char because int might match the return type of a gcc2
11529    builtin and then its argument prototype would still apply.  */
11530 char opendir ();
11531 int
11532 main ()
11533 {
11534 opendir ();
11535   ;
11536   return 0;
11537 }
11538 _ACEOF
11539 rm -f conftest.$ac_objext conftest$ac_exeext
11540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11541   (eval $ac_link) 2>conftest.er1
11542   ac_status=$?
11543   grep -v '^ *+' conftest.er1 >conftest.err
11544   rm -f conftest.er1
11545   cat conftest.err >&5
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); } &&
11548          { ac_try='test -z "$ac_c_werror_flag"
11549                          || test ! -s conftest.err'
11550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551   (eval $ac_try) 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; } &&
11555          { ac_try='test -s conftest$ac_exeext'
11556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557   (eval $ac_try) 2>&5
11558   ac_status=$?
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); }; }; then
11561   ac_cv_search_opendir="none required"
11562 else
11563   echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11565
11566 fi
11567 rm -f conftest.err conftest.$ac_objext \
11568       conftest$ac_exeext conftest.$ac_ext
11569 if test "$ac_cv_search_opendir" = no; then
11570   for ac_lib in x; do
11571     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11572     cat >conftest.$ac_ext <<_ACEOF
11573 /* confdefs.h.  */
11574 _ACEOF
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h.  */
11578
11579 /* Override any gcc2 internal prototype to avoid an error.  */
11580 #ifdef __cplusplus
11581 extern "C"
11582 #endif
11583 /* We use char because int might match the return type of a gcc2
11584    builtin and then its argument prototype would still apply.  */
11585 char opendir ();
11586 int
11587 main ()
11588 {
11589 opendir ();
11590   ;
11591   return 0;
11592 }
11593 _ACEOF
11594 rm -f conftest.$ac_objext conftest$ac_exeext
11595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11596   (eval $ac_link) 2>conftest.er1
11597   ac_status=$?
11598   grep -v '^ *+' conftest.er1 >conftest.err
11599   rm -f conftest.er1
11600   cat conftest.err >&5
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); } &&
11603          { ac_try='test -z "$ac_c_werror_flag"
11604                          || test ! -s conftest.err'
11605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606   (eval $ac_try) 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); }; } &&
11610          { ac_try='test -s conftest$ac_exeext'
11611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612   (eval $ac_try) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); }; }; then
11616   ac_cv_search_opendir="-l$ac_lib"
11617 break
11618 else
11619   echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622 fi
11623 rm -f conftest.err conftest.$ac_objext \
11624       conftest$ac_exeext conftest.$ac_ext
11625   done
11626 fi
11627 LIBS=$ac_func_search_save_LIBS
11628 fi
11629 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11630 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11631 if test "$ac_cv_search_opendir" != no; then
11632   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11633
11634 fi
11635
11636 fi
11637
11638 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11639 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11640 if test "${ac_cv_header_stat_broken+set}" = set; then
11641   echo $ECHO_N "(cached) $ECHO_C" >&6
11642 else
11643   cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h.  */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h.  */
11649 #include <sys/types.h>
11650 #include <sys/stat.h>
11651
11652 #if defined(S_ISBLK) && defined(S_IFDIR)
11653 # if S_ISBLK (S_IFDIR)
11654 You lose.
11655 # endif
11656 #endif
11657
11658 #if defined(S_ISBLK) && defined(S_IFCHR)
11659 # if S_ISBLK (S_IFCHR)
11660 You lose.
11661 # endif
11662 #endif
11663
11664 #if defined(S_ISLNK) && defined(S_IFREG)
11665 # if S_ISLNK (S_IFREG)
11666 You lose.
11667 # endif
11668 #endif
11669
11670 #if defined(S_ISSOCK) && defined(S_IFREG)
11671 # if S_ISSOCK (S_IFREG)
11672 You lose.
11673 # endif
11674 #endif
11675
11676 _ACEOF
11677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11678   $EGREP "You lose" >/dev/null 2>&1; then
11679   ac_cv_header_stat_broken=yes
11680 else
11681   ac_cv_header_stat_broken=no
11682 fi
11683 rm -f conftest*
11684
11685 fi
11686 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11687 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11688 if test $ac_cv_header_stat_broken = yes; then
11689
11690 cat >>confdefs.h <<\_ACEOF
11691 #define STAT_MACROS_BROKEN 1
11692 _ACEOF
11693
11694 fi
11695
11696 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11697 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11698 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11699   echo $ECHO_N "(cached) $ECHO_C" >&6
11700 else
11701   cat >conftest.$ac_ext <<_ACEOF
11702 /* confdefs.h.  */
11703 _ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h.  */
11707 #include <sys/types.h>
11708 #include <sys/wait.h>
11709 #ifndef WEXITSTATUS
11710 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11711 #endif
11712 #ifndef WIFEXITED
11713 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11714 #endif
11715
11716 int
11717 main ()
11718 {
11719   int s;
11720   wait (&s);
11721   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11722   ;
11723   return 0;
11724 }
11725 _ACEOF
11726 rm -f conftest.$ac_objext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728   (eval $ac_compile) 2>conftest.er1
11729   ac_status=$?
11730   grep -v '^ *+' conftest.er1 >conftest.err
11731   rm -f conftest.er1
11732   cat conftest.err >&5
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); } &&
11735          { ac_try='test -z "$ac_c_werror_flag"
11736                          || test ! -s conftest.err'
11737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738   (eval $ac_try) 2>&5
11739   ac_status=$?
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); }; } &&
11742          { ac_try='test -s conftest.$ac_objext'
11743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744   (eval $ac_try) 2>&5
11745   ac_status=$?
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); }; }; then
11748   ac_cv_header_sys_wait_h=yes
11749 else
11750   echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11752
11753 ac_cv_header_sys_wait_h=no
11754 fi
11755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11756 fi
11757 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11758 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11759 if test $ac_cv_header_sys_wait_h = yes; then
11760
11761 cat >>confdefs.h <<\_ACEOF
11762 #define HAVE_SYS_WAIT_H 1
11763 _ACEOF
11764
11765 fi
11766
11767 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11768 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11769 if test "${ac_cv_header_time+set}" = set; then
11770   echo $ECHO_N "(cached) $ECHO_C" >&6
11771 else
11772   cat >conftest.$ac_ext <<_ACEOF
11773 /* confdefs.h.  */
11774 _ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h.  */
11778 #include <sys/types.h>
11779 #include <sys/time.h>
11780 #include <time.h>
11781
11782 int
11783 main ()
11784 {
11785 if ((struct tm *) 0)
11786 return 0;
11787   ;
11788   return 0;
11789 }
11790 _ACEOF
11791 rm -f conftest.$ac_objext
11792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11793   (eval $ac_compile) 2>conftest.er1
11794   ac_status=$?
11795   grep -v '^ *+' conftest.er1 >conftest.err
11796   rm -f conftest.er1
11797   cat conftest.err >&5
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); } &&
11800          { ac_try='test -z "$ac_c_werror_flag"
11801                          || test ! -s conftest.err'
11802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803   (eval $ac_try) 2>&5
11804   ac_status=$?
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); }; } &&
11807          { ac_try='test -s conftest.$ac_objext'
11808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809   (eval $ac_try) 2>&5
11810   ac_status=$?
11811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812   (exit $ac_status); }; }; then
11813   ac_cv_header_time=yes
11814 else
11815   echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11817
11818 ac_cv_header_time=no
11819 fi
11820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11821 fi
11822 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11823 echo "${ECHO_T}$ac_cv_header_time" >&6
11824 if test $ac_cv_header_time = yes; then
11825
11826 cat >>confdefs.h <<\_ACEOF
11827 #define TIME_WITH_SYS_TIME 1
11828 _ACEOF
11829
11830 fi
11831
11832
11833 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11834 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11835 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11836   echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838   cat >conftest.$ac_ext <<_ACEOF
11839 /* confdefs.h.  */
11840 _ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h.  */
11844 $ac_includes_default
11845 int
11846 main ()
11847 {
11848 static struct stat ac_aggr;
11849 if (ac_aggr.st_blksize)
11850 return 0;
11851   ;
11852   return 0;
11853 }
11854 _ACEOF
11855 rm -f conftest.$ac_objext
11856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11857   (eval $ac_compile) 2>conftest.er1
11858   ac_status=$?
11859   grep -v '^ *+' conftest.er1 >conftest.err
11860   rm -f conftest.er1
11861   cat conftest.err >&5
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); } &&
11864          { ac_try='test -z "$ac_c_werror_flag"
11865                          || test ! -s conftest.err'
11866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867   (eval $ac_try) 2>&5
11868   ac_status=$?
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); }; } &&
11871          { ac_try='test -s conftest.$ac_objext'
11872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873   (eval $ac_try) 2>&5
11874   ac_status=$?
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); }; }; then
11877   ac_cv_member_struct_stat_st_blksize=yes
11878 else
11879   echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11881
11882 cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h.  */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h.  */
11888 $ac_includes_default
11889 int
11890 main ()
11891 {
11892 static struct stat ac_aggr;
11893 if (sizeof ac_aggr.st_blksize)
11894 return 0;
11895   ;
11896   return 0;
11897 }
11898 _ACEOF
11899 rm -f conftest.$ac_objext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901   (eval $ac_compile) 2>conftest.er1
11902   ac_status=$?
11903   grep -v '^ *+' conftest.er1 >conftest.err
11904   rm -f conftest.er1
11905   cat conftest.err >&5
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); } &&
11908          { ac_try='test -z "$ac_c_werror_flag"
11909                          || test ! -s conftest.err'
11910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911   (eval $ac_try) 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); }; } &&
11915          { ac_try='test -s conftest.$ac_objext'
11916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917   (eval $ac_try) 2>&5
11918   ac_status=$?
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); }; }; then
11921   ac_cv_member_struct_stat_st_blksize=yes
11922 else
11923   echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11925
11926 ac_cv_member_struct_stat_st_blksize=no
11927 fi
11928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11929 fi
11930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11931 fi
11932 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11933 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11934 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11935
11936 cat >>confdefs.h <<_ACEOF
11937 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11938 _ACEOF
11939
11940
11941 cat >>confdefs.h <<\_ACEOF
11942 #define HAVE_ST_BLKSIZE 1
11943 _ACEOF
11944
11945 fi
11946
11947
11948 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11949 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11950 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11951   echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953   cat >conftest.$ac_ext <<_ACEOF
11954 /* confdefs.h.  */
11955 _ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h.  */
11959 $ac_includes_default
11960 int
11961 main ()
11962 {
11963 static struct stat ac_aggr;
11964 if (ac_aggr.st_blocks)
11965 return 0;
11966   ;
11967   return 0;
11968 }
11969 _ACEOF
11970 rm -f conftest.$ac_objext
11971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11972   (eval $ac_compile) 2>conftest.er1
11973   ac_status=$?
11974   grep -v '^ *+' conftest.er1 >conftest.err
11975   rm -f conftest.er1
11976   cat conftest.err >&5
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); } &&
11979          { ac_try='test -z "$ac_c_werror_flag"
11980                          || test ! -s conftest.err'
11981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982   (eval $ac_try) 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); }; } &&
11986          { ac_try='test -s conftest.$ac_objext'
11987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988   (eval $ac_try) 2>&5
11989   ac_status=$?
11990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); }; }; then
11992   ac_cv_member_struct_stat_st_blocks=yes
11993 else
11994   echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11996
11997 cat >conftest.$ac_ext <<_ACEOF
11998 /* confdefs.h.  */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h.  */
12003 $ac_includes_default
12004 int
12005 main ()
12006 {
12007 static struct stat ac_aggr;
12008 if (sizeof ac_aggr.st_blocks)
12009 return 0;
12010   ;
12011   return 0;
12012 }
12013 _ACEOF
12014 rm -f conftest.$ac_objext
12015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12016   (eval $ac_compile) 2>conftest.er1
12017   ac_status=$?
12018   grep -v '^ *+' conftest.er1 >conftest.err
12019   rm -f conftest.er1
12020   cat conftest.err >&5
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } &&
12023          { ac_try='test -z "$ac_c_werror_flag"
12024                          || test ! -s conftest.err'
12025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026   (eval $ac_try) 2>&5
12027   ac_status=$?
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); }; } &&
12030          { ac_try='test -s conftest.$ac_objext'
12031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032   (eval $ac_try) 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; }; then
12036   ac_cv_member_struct_stat_st_blocks=yes
12037 else
12038   echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12040
12041 ac_cv_member_struct_stat_st_blocks=no
12042 fi
12043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12044 fi
12045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12046 fi
12047 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12048 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12049 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12050
12051 cat >>confdefs.h <<_ACEOF
12052 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12053 _ACEOF
12054
12055
12056 cat >>confdefs.h <<\_ACEOF
12057 #define HAVE_ST_BLOCKS 1
12058 _ACEOF
12059
12060 else
12061   case $LIBOBJS in
12062     "fileblocks.$ac_objext"   | \
12063   *" fileblocks.$ac_objext"   | \
12064     "fileblocks.$ac_objext "* | \
12065   *" fileblocks.$ac_objext "* ) ;;
12066   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12067 esac
12068
12069 fi
12070
12071
12072 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12073 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12074 if test "${ac_cv_struct_tm+set}" = set; then
12075   echo $ECHO_N "(cached) $ECHO_C" >&6
12076 else
12077   cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h.  */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h.  */
12083 #include <sys/types.h>
12084 #include <time.h>
12085
12086 int
12087 main ()
12088 {
12089 struct tm *tp; tp->tm_sec;
12090   ;
12091   return 0;
12092 }
12093 _ACEOF
12094 rm -f conftest.$ac_objext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12096   (eval $ac_compile) 2>conftest.er1
12097   ac_status=$?
12098   grep -v '^ *+' conftest.er1 >conftest.err
12099   rm -f conftest.er1
12100   cat conftest.err >&5
12101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102   (exit $ac_status); } &&
12103          { ac_try='test -z "$ac_c_werror_flag"
12104                          || test ! -s conftest.err'
12105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106   (eval $ac_try) 2>&5
12107   ac_status=$?
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); }; } &&
12110          { ac_try='test -s conftest.$ac_objext'
12111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112   (eval $ac_try) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); }; }; then
12116   ac_cv_struct_tm=time.h
12117 else
12118   echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12120
12121 ac_cv_struct_tm=sys/time.h
12122 fi
12123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12124 fi
12125 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12126 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12127 if test $ac_cv_struct_tm = sys/time.h; then
12128
12129 cat >>confdefs.h <<\_ACEOF
12130 #define TM_IN_SYS_TIME 1
12131 _ACEOF
12132
12133 fi
12134
12135 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12136 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12137 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12138   echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140   cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h.  */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h.  */
12146 #include <sys/types.h>
12147 #include <$ac_cv_struct_tm>
12148
12149
12150 int
12151 main ()
12152 {
12153 static struct tm ac_aggr;
12154 if (ac_aggr.tm_zone)
12155 return 0;
12156   ;
12157   return 0;
12158 }
12159 _ACEOF
12160 rm -f conftest.$ac_objext
12161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12162   (eval $ac_compile) 2>conftest.er1
12163   ac_status=$?
12164   grep -v '^ *+' conftest.er1 >conftest.err
12165   rm -f conftest.er1
12166   cat conftest.err >&5
12167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168   (exit $ac_status); } &&
12169          { ac_try='test -z "$ac_c_werror_flag"
12170                          || test ! -s conftest.err'
12171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172   (eval $ac_try) 2>&5
12173   ac_status=$?
12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175   (exit $ac_status); }; } &&
12176          { ac_try='test -s conftest.$ac_objext'
12177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178   (eval $ac_try) 2>&5
12179   ac_status=$?
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); }; }; then
12182   ac_cv_member_struct_tm_tm_zone=yes
12183 else
12184   echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12186
12187 cat >conftest.$ac_ext <<_ACEOF
12188 /* confdefs.h.  */
12189 _ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h.  */
12193 #include <sys/types.h>
12194 #include <$ac_cv_struct_tm>
12195
12196
12197 int
12198 main ()
12199 {
12200 static struct tm ac_aggr;
12201 if (sizeof ac_aggr.tm_zone)
12202 return 0;
12203   ;
12204   return 0;
12205 }
12206 _ACEOF
12207 rm -f conftest.$ac_objext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12209   (eval $ac_compile) 2>conftest.er1
12210   ac_status=$?
12211   grep -v '^ *+' conftest.er1 >conftest.err
12212   rm -f conftest.er1
12213   cat conftest.err >&5
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } &&
12216          { ac_try='test -z "$ac_c_werror_flag"
12217                          || test ! -s conftest.err'
12218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219   (eval $ac_try) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; } &&
12223          { ac_try='test -s conftest.$ac_objext'
12224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225   (eval $ac_try) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; }; then
12229   ac_cv_member_struct_tm_tm_zone=yes
12230 else
12231   echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234 ac_cv_member_struct_tm_tm_zone=no
12235 fi
12236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12237 fi
12238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12239 fi
12240 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12241 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12242 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12243
12244 cat >>confdefs.h <<_ACEOF
12245 #define HAVE_STRUCT_TM_TM_ZONE 1
12246 _ACEOF
12247
12248
12249 fi
12250
12251 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12252
12253 cat >>confdefs.h <<\_ACEOF
12254 #define HAVE_TM_ZONE 1
12255 _ACEOF
12256
12257 else
12258   echo "$as_me:$LINENO: checking for tzname" >&5
12259 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12260 if test "${ac_cv_var_tzname+set}" = set; then
12261   echo $ECHO_N "(cached) $ECHO_C" >&6
12262 else
12263   cat >conftest.$ac_ext <<_ACEOF
12264 /* confdefs.h.  */
12265 _ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h.  */
12269 #include <time.h>
12270 #ifndef tzname /* For SGI.  */
12271 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12272 #endif
12273
12274 int
12275 main ()
12276 {
12277 atoi(*tzname);
12278   ;
12279   return 0;
12280 }
12281 _ACEOF
12282 rm -f conftest.$ac_objext conftest$ac_exeext
12283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12284   (eval $ac_link) 2>conftest.er1
12285   ac_status=$?
12286   grep -v '^ *+' conftest.er1 >conftest.err
12287   rm -f conftest.er1
12288   cat conftest.err >&5
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); } &&
12291          { ac_try='test -z "$ac_c_werror_flag"
12292                          || test ! -s conftest.err'
12293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294   (eval $ac_try) 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); }; } &&
12298          { ac_try='test -s conftest$ac_exeext'
12299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300   (eval $ac_try) 2>&5
12301   ac_status=$?
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); }; }; then
12304   ac_cv_var_tzname=yes
12305 else
12306   echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12308
12309 ac_cv_var_tzname=no
12310 fi
12311 rm -f conftest.err conftest.$ac_objext \
12312       conftest$ac_exeext conftest.$ac_ext
12313 fi
12314 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12315 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12316   if test $ac_cv_var_tzname = yes; then
12317
12318 cat >>confdefs.h <<\_ACEOF
12319 #define HAVE_TZNAME 1
12320 _ACEOF
12321
12322   fi
12323 fi
12324
12325
12326 echo "$as_me:$LINENO: checking for utime.h" >&5
12327 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12328 if test "${ba_cv_header_utime_h+set}" = set; then
12329   echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331   cat >conftest.$ac_ext <<_ACEOF
12332 /* confdefs.h.  */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h.  */
12337
12338 #include <sys/types.h>
12339 #include <utime.h>
12340 int
12341 main ()
12342 {
12343 struct utimbuf foo
12344   ;
12345   return 0;
12346 }
12347 _ACEOF
12348 rm -f conftest.$ac_objext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12350   (eval $ac_compile) 2>conftest.er1
12351   ac_status=$?
12352   grep -v '^ *+' conftest.er1 >conftest.err
12353   rm -f conftest.er1
12354   cat conftest.err >&5
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); } &&
12357          { ac_try='test -z "$ac_c_werror_flag"
12358                          || test ! -s conftest.err'
12359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360   (eval $ac_try) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }; } &&
12364          { ac_try='test -s conftest.$ac_objext'
12365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366   (eval $ac_try) 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); }; }; then
12370   ba_cv_header_utime_h=yes
12371 else
12372   echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 ba_cv_header_utime_h=no
12376 fi
12377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12378 fi
12379 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12380 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12381 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12382 #define HAVE_UTIME_H 1
12383 _ACEOF
12384
12385
12386 echo "$as_me:$LINENO: checking for socklen_t" >&5
12387 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12388 if test "${ba_cv_header_socklen_t+set}" = set; then
12389   echo $ECHO_N "(cached) $ECHO_C" >&6
12390 else
12391   cat >conftest.$ac_ext <<_ACEOF
12392 /* confdefs.h.  */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h.  */
12397
12398 #include <sys/types.h>
12399 #include <sys/socket.h>
12400 int
12401 main ()
12402 {
12403 socklen_t x
12404   ;
12405   return 0;
12406 }
12407 _ACEOF
12408 rm -f conftest.$ac_objext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12410   (eval $ac_compile) 2>conftest.er1
12411   ac_status=$?
12412   grep -v '^ *+' conftest.er1 >conftest.err
12413   rm -f conftest.er1
12414   cat conftest.err >&5
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); } &&
12417          { ac_try='test -z "$ac_c_werror_flag"
12418                          || test ! -s conftest.err'
12419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420   (eval $ac_try) 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; } &&
12424          { ac_try='test -s conftest.$ac_objext'
12425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426   (eval $ac_try) 2>&5
12427   ac_status=$?
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); }; }; then
12430   ba_cv_header_socklen_t=yes
12431 else
12432   echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12434
12435 ba_cv_header_socklen_t=no
12436 fi
12437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12438 fi
12439 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12440 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12441 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12442 #define HAVE_SOCKLEN_T 1
12443 _ACEOF
12444
12445
12446 echo "$as_me:$LINENO: checking for bigendian" >&5
12447 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12448 if test "${ba_cv_bigendian+set}" = set; then
12449   echo $ECHO_N "(cached) $ECHO_C" >&6
12450 else
12451   if test "$cross_compiling" = yes; then
12452   ba_cv_bigendian=no
12453 else
12454   cat >conftest.$ac_ext <<_ACEOF
12455 /* confdefs.h.  */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h.  */
12460 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12461 _ACEOF
12462 rm -f conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464   (eval $ac_link) 2>&5
12465   ac_status=$?
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469   (eval $ac_try) 2>&5
12470   ac_status=$?
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); }; }; then
12473   ba_cv_bigendian=yes
12474 else
12475   echo "$as_me: program exited with status $ac_status" >&5
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12478
12479 ( exit $ac_status )
12480 ba_cv_bigendian=no
12481 fi
12482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12483 fi
12484 fi
12485 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12486 echo "${ECHO_T}$ba_cv_bigendian" >&6
12487 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12488 #define HAVE_BIGENDIAN 1
12489 _ACEOF
12490
12491
12492
12493 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12494 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12495 if test "${ac_cv_c_const+set}" = set; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498   cat >conftest.$ac_ext <<_ACEOF
12499 /* confdefs.h.  */
12500 _ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h.  */
12504
12505 int
12506 main ()
12507 {
12508 /* FIXME: Include the comments suggested by Paul. */
12509 #ifndef __cplusplus
12510   /* Ultrix mips cc rejects this.  */
12511   typedef int charset[2];
12512   const charset x;
12513   /* SunOS 4.1.1 cc rejects this.  */
12514   char const *const *ccp;
12515   char **p;
12516   /* NEC SVR4.0.2 mips cc rejects this.  */
12517   struct point {int x, y;};
12518   static struct point const zero = {0,0};
12519   /* AIX XL C 1.02.0.0 rejects this.
12520      It does not let you subtract one const X* pointer from another in
12521      an arm of an if-expression whose if-part is not a constant
12522      expression */
12523   const char *g = "string";
12524   ccp = &g + (g ? g-g : 0);
12525   /* HPUX 7.0 cc rejects these. */
12526   ++ccp;
12527   p = (char**) ccp;
12528   ccp = (char const *const *) p;
12529   { /* SCO 3.2v4 cc rejects this.  */
12530     char *t;
12531     char const *s = 0 ? (char *) 0 : (char const *) 0;
12532
12533     *t++ = 0;
12534   }
12535   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12536     int x[] = {25, 17};
12537     const int *foo = &x[0];
12538     ++foo;
12539   }
12540   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12541     typedef const int *iptr;
12542     iptr p = 0;
12543     ++p;
12544   }
12545   { /* AIX XL C 1.02.0.0 rejects this saying
12546        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12547     struct s { int j; const int *ap[3]; };
12548     struct s *b; b->j = 5;
12549   }
12550   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12551     const int foo = 10;
12552   }
12553 #endif
12554
12555   ;
12556   return 0;
12557 }
12558 _ACEOF
12559 rm -f conftest.$ac_objext
12560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12561   (eval $ac_compile) 2>conftest.er1
12562   ac_status=$?
12563   grep -v '^ *+' conftest.er1 >conftest.err
12564   rm -f conftest.er1
12565   cat conftest.err >&5
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); } &&
12568          { ac_try='test -z "$ac_c_werror_flag"
12569                          || test ! -s conftest.err'
12570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571   (eval $ac_try) 2>&5
12572   ac_status=$?
12573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574   (exit $ac_status); }; } &&
12575          { ac_try='test -s conftest.$ac_objext'
12576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577   (eval $ac_try) 2>&5
12578   ac_status=$?
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); }; }; then
12581   ac_cv_c_const=yes
12582 else
12583   echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12585
12586 ac_cv_c_const=no
12587 fi
12588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12589 fi
12590 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12591 echo "${ECHO_T}$ac_cv_c_const" >&6
12592 if test $ac_cv_c_const = no; then
12593
12594 cat >>confdefs.h <<\_ACEOF
12595 #define const
12596 _ACEOF
12597
12598 fi
12599
12600
12601
12602 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12603 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12604 fstype=no
12605 # The order of these tests is important.
12606 cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h.  */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h.  */
12612 #include <sys/statvfs.h>
12613 #include <sys/fstyp.h>
12614 _ACEOF
12615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12616   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12617   ac_status=$?
12618   grep -v '^ *+' conftest.er1 >conftest.err
12619   rm -f conftest.er1
12620   cat conftest.err >&5
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); } >/dev/null; then
12623   if test -s conftest.err; then
12624     ac_cpp_err=$ac_c_preproc_warn_flag
12625     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12626   else
12627     ac_cpp_err=
12628   fi
12629 else
12630   ac_cpp_err=yes
12631 fi
12632 if test -z "$ac_cpp_err"; then
12633   cat >>confdefs.h <<\_ACEOF
12634 #define FSTYPE_STATVFS 1
12635 _ACEOF
12636  fstype=SVR4
12637 else
12638   echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641
12642 fi
12643 rm -f conftest.err conftest.$ac_ext
12644 if test $fstype = no; then
12645 cat >conftest.$ac_ext <<_ACEOF
12646 /* confdefs.h.  */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h.  */
12651 #include <sys/statfs.h>
12652 #include <sys/fstyp.h>
12653 _ACEOF
12654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12655   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12656   ac_status=$?
12657   grep -v '^ *+' conftest.er1 >conftest.err
12658   rm -f conftest.er1
12659   cat conftest.err >&5
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); } >/dev/null; then
12662   if test -s conftest.err; then
12663     ac_cpp_err=$ac_c_preproc_warn_flag
12664     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12665   else
12666     ac_cpp_err=
12667   fi
12668 else
12669   ac_cpp_err=yes
12670 fi
12671 if test -z "$ac_cpp_err"; then
12672   cat >>confdefs.h <<\_ACEOF
12673 #define FSTYPE_USG_STATFS 1
12674 _ACEOF
12675  fstype=SVR3
12676 else
12677   echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12679
12680
12681 fi
12682 rm -f conftest.err conftest.$ac_ext
12683 fi
12684 if test $fstype = no; then
12685 cat >conftest.$ac_ext <<_ACEOF
12686 /* confdefs.h.  */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h.  */
12691 #include <sys/statfs.h>
12692 #include <sys/vmount.h>
12693 _ACEOF
12694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12696   ac_status=$?
12697   grep -v '^ *+' conftest.er1 >conftest.err
12698   rm -f conftest.er1
12699   cat conftest.err >&5
12700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701   (exit $ac_status); } >/dev/null; then
12702   if test -s conftest.err; then
12703     ac_cpp_err=$ac_c_preproc_warn_flag
12704     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12705   else
12706     ac_cpp_err=
12707   fi
12708 else
12709   ac_cpp_err=yes
12710 fi
12711 if test -z "$ac_cpp_err"; then
12712   cat >>confdefs.h <<\_ACEOF
12713 #define FSTYPE_AIX_STATFS 1
12714 _ACEOF
12715  fstype=AIX
12716 else
12717   echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12719
12720
12721 fi
12722 rm -f conftest.err conftest.$ac_ext
12723 fi
12724 if test $fstype = no; then
12725 cat >conftest.$ac_ext <<_ACEOF
12726 /* confdefs.h.  */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h.  */
12731 #include <mntent.h>
12732 _ACEOF
12733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12734   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12735   ac_status=$?
12736   grep -v '^ *+' conftest.er1 >conftest.err
12737   rm -f conftest.er1
12738   cat conftest.err >&5
12739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); } >/dev/null; then
12741   if test -s conftest.err; then
12742     ac_cpp_err=$ac_c_preproc_warn_flag
12743     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12744   else
12745     ac_cpp_err=
12746   fi
12747 else
12748   ac_cpp_err=yes
12749 fi
12750 if test -z "$ac_cpp_err"; then
12751   cat >>confdefs.h <<\_ACEOF
12752 #define FSTYPE_MNTENT 1
12753 _ACEOF
12754  fstype=4.3BSD
12755 else
12756   echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12758
12759
12760 fi
12761 rm -f conftest.err conftest.$ac_ext
12762 fi
12763 if test $fstype = no; then
12764 cat >conftest.$ac_ext <<_ACEOF
12765 /* confdefs.h.  */
12766 _ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h.  */
12770 #include <sys/mount.h>
12771
12772 _ACEOF
12773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12774   $EGREP "f_type;" >/dev/null 2>&1; then
12775   cat >>confdefs.h <<\_ACEOF
12776 #define FSTYPE_STATFS 1
12777 _ACEOF
12778  fstype=4.4BSD/OSF1
12779 fi
12780 rm -f conftest*
12781
12782 fi
12783 if test $fstype = no; then
12784 cat >conftest.$ac_ext <<_ACEOF
12785 /* confdefs.h.  */
12786 _ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h.  */
12790 #include <sys/mount.h>
12791 #include <sys/fs_types.h>
12792 _ACEOF
12793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12795   ac_status=$?
12796   grep -v '^ *+' conftest.er1 >conftest.err
12797   rm -f conftest.er1
12798   cat conftest.err >&5
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); } >/dev/null; then
12801   if test -s conftest.err; then
12802     ac_cpp_err=$ac_c_preproc_warn_flag
12803     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12804   else
12805     ac_cpp_err=
12806   fi
12807 else
12808   ac_cpp_err=yes
12809 fi
12810 if test -z "$ac_cpp_err"; then
12811   cat >>confdefs.h <<\_ACEOF
12812 #define FSTYPE_GETMNT 1
12813 _ACEOF
12814  fstype=Ultrix
12815 else
12816   echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12818
12819
12820 fi
12821 rm -f conftest.err conftest.$ac_ext
12822 fi
12823 echo "$as_me:$LINENO: result: $fstype" >&5
12824 echo "${ECHO_T}$fstype" >&6
12825
12826 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12827 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12828 if test "${ac_cv_type_signal+set}" = set; then
12829   echo $ECHO_N "(cached) $ECHO_C" >&6
12830 else
12831   cat >conftest.$ac_ext <<_ACEOF
12832 /* confdefs.h.  */
12833 _ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h.  */
12837 #include <sys/types.h>
12838 #include <signal.h>
12839 #ifdef signal
12840 # undef signal
12841 #endif
12842 #ifdef __cplusplus
12843 extern "C" void (*signal (int, void (*)(int)))(int);
12844 #else
12845 void (*signal ()) ();
12846 #endif
12847
12848 int
12849 main ()
12850 {
12851 int i;
12852   ;
12853   return 0;
12854 }
12855 _ACEOF
12856 rm -f conftest.$ac_objext
12857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12858   (eval $ac_compile) 2>conftest.er1
12859   ac_status=$?
12860   grep -v '^ *+' conftest.er1 >conftest.err
12861   rm -f conftest.er1
12862   cat conftest.err >&5
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); } &&
12865          { ac_try='test -z "$ac_c_werror_flag"
12866                          || test ! -s conftest.err'
12867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868   (eval $ac_try) 2>&5
12869   ac_status=$?
12870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871   (exit $ac_status); }; } &&
12872          { ac_try='test -s conftest.$ac_objext'
12873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874   (eval $ac_try) 2>&5
12875   ac_status=$?
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); }; }; then
12878   ac_cv_type_signal=void
12879 else
12880   echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12882
12883 ac_cv_type_signal=int
12884 fi
12885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12886 fi
12887 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12888 echo "${ECHO_T}$ac_cv_type_signal" >&6
12889
12890 cat >>confdefs.h <<_ACEOF
12891 #define RETSIGTYPE $ac_cv_type_signal
12892 _ACEOF
12893
12894
12895
12896 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12897 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12898 if test "${bash_cv_signal_vintage+set}" = set; then
12899   echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901
12902   cat >conftest.$ac_ext <<_ACEOF
12903 /* confdefs.h.  */
12904 _ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h.  */
12908 #include <signal.h>
12909 int
12910 main ()
12911 {
12912
12913     sigset_t ss;
12914     struct sigaction sa;
12915     sigemptyset(&ss); sigsuspend(&ss);
12916     sigaction(SIGINT, &sa, (struct sigaction *) 0);
12917     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12918
12919   ;
12920   return 0;
12921 }
12922 _ACEOF
12923 rm -f conftest.$ac_objext conftest$ac_exeext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12925   (eval $ac_link) 2>conftest.er1
12926   ac_status=$?
12927   grep -v '^ *+' conftest.er1 >conftest.err
12928   rm -f conftest.er1
12929   cat conftest.err >&5
12930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931   (exit $ac_status); } &&
12932          { ac_try='test -z "$ac_c_werror_flag"
12933                          || test ! -s conftest.err'
12934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935   (eval $ac_try) 2>&5
12936   ac_status=$?
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); }; } &&
12939          { ac_try='test -s conftest$ac_exeext'
12940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941   (eval $ac_try) 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); }; }; then
12945   bash_cv_signal_vintage=posix
12946 else
12947   echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12949
12950
12951     cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h.  */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h.  */
12957 #include <signal.h>
12958 int
12959 main ()
12960 {
12961
12962         int mask = sigmask(SIGINT);
12963         sigsetmask(mask); sigblock(mask); sigpause(mask);
12964
12965   ;
12966   return 0;
12967 }
12968 _ACEOF
12969 rm -f conftest.$ac_objext conftest$ac_exeext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12971   (eval $ac_link) 2>conftest.er1
12972   ac_status=$?
12973   grep -v '^ *+' conftest.er1 >conftest.err
12974   rm -f conftest.er1
12975   cat conftest.err >&5
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); } &&
12978          { ac_try='test -z "$ac_c_werror_flag"
12979                          || test ! -s conftest.err'
12980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981   (eval $ac_try) 2>&5
12982   ac_status=$?
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); }; } &&
12985          { ac_try='test -s conftest$ac_exeext'
12986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987   (eval $ac_try) 2>&5
12988   ac_status=$?
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); }; }; then
12991   bash_cv_signal_vintage=4.2bsd
12992 else
12993   echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12995
12996
12997       cat >conftest.$ac_ext <<_ACEOF
12998 /* confdefs.h.  */
12999 _ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h.  */
13003
13004         #include <signal.h>
13005         RETSIGTYPE foo() { }
13006 int
13007 main ()
13008 {
13009
13010                 int mask = sigmask(SIGINT);
13011                 sigset(SIGINT, foo); sigrelse(SIGINT);
13012                 sighold(SIGINT); sigpause(SIGINT);
13013
13014   ;
13015   return 0;
13016 }
13017 _ACEOF
13018 rm -f conftest.$ac_objext conftest$ac_exeext
13019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13020   (eval $ac_link) 2>conftest.er1
13021   ac_status=$?
13022   grep -v '^ *+' conftest.er1 >conftest.err
13023   rm -f conftest.er1
13024   cat conftest.err >&5
13025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026   (exit $ac_status); } &&
13027          { ac_try='test -z "$ac_c_werror_flag"
13028                          || test ! -s conftest.err'
13029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030   (eval $ac_try) 2>&5
13031   ac_status=$?
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); }; } &&
13034          { ac_try='test -s conftest$ac_exeext'
13035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036   (eval $ac_try) 2>&5
13037   ac_status=$?
13038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039   (exit $ac_status); }; }; then
13040   bash_cv_signal_vintage=svr3
13041 else
13042   echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13044
13045 bash_cv_signal_vintage=v7
13046
13047 fi
13048 rm -f conftest.err conftest.$ac_objext \
13049       conftest$ac_exeext conftest.$ac_ext
13050
13051 fi
13052 rm -f conftest.err conftest.$ac_objext \
13053       conftest$ac_exeext conftest.$ac_ext
13054
13055 fi
13056 rm -f conftest.err conftest.$ac_objext \
13057       conftest$ac_exeext conftest.$ac_ext
13058
13059 fi
13060
13061 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13062 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13063 if test "$bash_cv_signal_vintage" = posix; then
13064 cat >>confdefs.h <<\_ACEOF
13065 #define HAVE_POSIX_SIGNALS 1
13066 _ACEOF
13067
13068 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13069 cat >>confdefs.h <<\_ACEOF
13070 #define HAVE_BSD_SIGNALS 1
13071 _ACEOF
13072
13073 elif test "$bash_cv_signal_vintage" = svr3; then
13074 cat >>confdefs.h <<\_ACEOF
13075 #define HAVE_USG_SIGHOLD 1
13076 _ACEOF
13077
13078 fi
13079
13080 echo "$as_me:$LINENO: checking for mode_t" >&5
13081 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13082 if test "${ac_cv_type_mode_t+set}" = set; then
13083   echo $ECHO_N "(cached) $ECHO_C" >&6
13084 else
13085   cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h.  */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h.  */
13091 $ac_includes_default
13092 int
13093 main ()
13094 {
13095 if ((mode_t *) 0)
13096   return 0;
13097 if (sizeof (mode_t))
13098   return 0;
13099   ;
13100   return 0;
13101 }
13102 _ACEOF
13103 rm -f conftest.$ac_objext
13104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13105   (eval $ac_compile) 2>conftest.er1
13106   ac_status=$?
13107   grep -v '^ *+' conftest.er1 >conftest.err
13108   rm -f conftest.er1
13109   cat conftest.err >&5
13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111   (exit $ac_status); } &&
13112          { ac_try='test -z "$ac_c_werror_flag"
13113                          || test ! -s conftest.err'
13114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115   (eval $ac_try) 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; } &&
13119          { ac_try='test -s conftest.$ac_objext'
13120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121   (eval $ac_try) 2>&5
13122   ac_status=$?
13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); }; }; then
13125   ac_cv_type_mode_t=yes
13126 else
13127   echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13129
13130 ac_cv_type_mode_t=no
13131 fi
13132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13133 fi
13134 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13135 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13136 if test $ac_cv_type_mode_t = yes; then
13137   :
13138 else
13139
13140 cat >>confdefs.h <<_ACEOF
13141 #define mode_t int
13142 _ACEOF
13143
13144 fi
13145
13146 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13147 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13148 if test "${ac_cv_type_uid_t+set}" = set; then
13149   echo $ECHO_N "(cached) $ECHO_C" >&6
13150 else
13151   cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h.  */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h.  */
13157 #include <sys/types.h>
13158
13159 _ACEOF
13160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13161   $EGREP "uid_t" >/dev/null 2>&1; then
13162   ac_cv_type_uid_t=yes
13163 else
13164   ac_cv_type_uid_t=no
13165 fi
13166 rm -f conftest*
13167
13168 fi
13169 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13170 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13171 if test $ac_cv_type_uid_t = no; then
13172
13173 cat >>confdefs.h <<\_ACEOF
13174 #define uid_t int
13175 _ACEOF
13176
13177
13178 cat >>confdefs.h <<\_ACEOF
13179 #define gid_t int
13180 _ACEOF
13181
13182 fi
13183
13184 echo "$as_me:$LINENO: checking for size_t" >&5
13185 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13186 if test "${ac_cv_type_size_t+set}" = set; then
13187   echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189   cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h.  */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h.  */
13195 $ac_includes_default
13196 int
13197 main ()
13198 {
13199 if ((size_t *) 0)
13200   return 0;
13201 if (sizeof (size_t))
13202   return 0;
13203   ;
13204   return 0;
13205 }
13206 _ACEOF
13207 rm -f conftest.$ac_objext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209   (eval $ac_compile) 2>conftest.er1
13210   ac_status=$?
13211   grep -v '^ *+' conftest.er1 >conftest.err
13212   rm -f conftest.er1
13213   cat conftest.err >&5
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); } &&
13216          { ac_try='test -z "$ac_c_werror_flag"
13217                          || test ! -s conftest.err'
13218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219   (eval $ac_try) 2>&5
13220   ac_status=$?
13221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222   (exit $ac_status); }; } &&
13223          { ac_try='test -s conftest.$ac_objext'
13224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13225   (eval $ac_try) 2>&5
13226   ac_status=$?
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); }; }; then
13229   ac_cv_type_size_t=yes
13230 else
13231   echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13233
13234 ac_cv_type_size_t=no
13235 fi
13236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13237 fi
13238 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13239 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13240 if test $ac_cv_type_size_t = yes; then
13241   :
13242 else
13243
13244 cat >>confdefs.h <<_ACEOF
13245 #define size_t unsigned
13246 _ACEOF
13247
13248 fi
13249
13250 echo "$as_me:$LINENO: checking for pid_t" >&5
13251 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13252 if test "${ac_cv_type_pid_t+set}" = set; then
13253   echo $ECHO_N "(cached) $ECHO_C" >&6
13254 else
13255   cat >conftest.$ac_ext <<_ACEOF
13256 /* confdefs.h.  */
13257 _ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h.  */
13261 $ac_includes_default
13262 int
13263 main ()
13264 {
13265 if ((pid_t *) 0)
13266   return 0;
13267 if (sizeof (pid_t))
13268   return 0;
13269   ;
13270   return 0;
13271 }
13272 _ACEOF
13273 rm -f conftest.$ac_objext
13274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13275   (eval $ac_compile) 2>conftest.er1
13276   ac_status=$?
13277   grep -v '^ *+' conftest.er1 >conftest.err
13278   rm -f conftest.er1
13279   cat conftest.err >&5
13280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   (exit $ac_status); } &&
13282          { ac_try='test -z "$ac_c_werror_flag"
13283                          || test ! -s conftest.err'
13284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285   (eval $ac_try) 2>&5
13286   ac_status=$?
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); }; } &&
13289          { ac_try='test -s conftest.$ac_objext'
13290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291   (eval $ac_try) 2>&5
13292   ac_status=$?
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); }; }; then
13295   ac_cv_type_pid_t=yes
13296 else
13297   echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13299
13300 ac_cv_type_pid_t=no
13301 fi
13302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13303 fi
13304 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13305 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13306 if test $ac_cv_type_pid_t = yes; then
13307   :
13308 else
13309
13310 cat >>confdefs.h <<_ACEOF
13311 #define pid_t int
13312 _ACEOF
13313
13314 fi
13315
13316 echo "$as_me:$LINENO: checking for off_t" >&5
13317 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13318 if test "${ac_cv_type_off_t+set}" = set; then
13319   echo $ECHO_N "(cached) $ECHO_C" >&6
13320 else
13321   cat >conftest.$ac_ext <<_ACEOF
13322 /* confdefs.h.  */
13323 _ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h.  */
13327 $ac_includes_default
13328 int
13329 main ()
13330 {
13331 if ((off_t *) 0)
13332   return 0;
13333 if (sizeof (off_t))
13334   return 0;
13335   ;
13336   return 0;
13337 }
13338 _ACEOF
13339 rm -f conftest.$ac_objext
13340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13341   (eval $ac_compile) 2>conftest.er1
13342   ac_status=$?
13343   grep -v '^ *+' conftest.er1 >conftest.err
13344   rm -f conftest.er1
13345   cat conftest.err >&5
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); } &&
13348          { ac_try='test -z "$ac_c_werror_flag"
13349                          || test ! -s conftest.err'
13350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351   (eval $ac_try) 2>&5
13352   ac_status=$?
13353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354   (exit $ac_status); }; } &&
13355          { ac_try='test -s conftest.$ac_objext'
13356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357   (eval $ac_try) 2>&5
13358   ac_status=$?
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); }; }; then
13361   ac_cv_type_off_t=yes
13362 else
13363   echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13365
13366 ac_cv_type_off_t=no
13367 fi
13368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13369 fi
13370 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13371 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13372 if test $ac_cv_type_off_t = yes; then
13373   :
13374 else
13375
13376 cat >>confdefs.h <<_ACEOF
13377 #define off_t long
13378 _ACEOF
13379
13380 fi
13381
13382 echo "$as_me:$LINENO: checking for ino_t" >&5
13383 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13384 if test "${ac_cv_type_ino_t+set}" = set; then
13385   echo $ECHO_N "(cached) $ECHO_C" >&6
13386 else
13387   cat >conftest.$ac_ext <<_ACEOF
13388 /* confdefs.h.  */
13389 _ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h.  */
13393 $ac_includes_default
13394 int
13395 main ()
13396 {
13397 if ((ino_t *) 0)
13398   return 0;
13399 if (sizeof (ino_t))
13400   return 0;
13401   ;
13402   return 0;
13403 }
13404 _ACEOF
13405 rm -f conftest.$ac_objext
13406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13407   (eval $ac_compile) 2>conftest.er1
13408   ac_status=$?
13409   grep -v '^ *+' conftest.er1 >conftest.err
13410   rm -f conftest.er1
13411   cat conftest.err >&5
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); } &&
13414          { ac_try='test -z "$ac_c_werror_flag"
13415                          || test ! -s conftest.err'
13416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417   (eval $ac_try) 2>&5
13418   ac_status=$?
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); }; } &&
13421          { ac_try='test -s conftest.$ac_objext'
13422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423   (eval $ac_try) 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); }; }; then
13427   ac_cv_type_ino_t=yes
13428 else
13429   echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13431
13432 ac_cv_type_ino_t=no
13433 fi
13434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13435 fi
13436 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13437 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13438 if test $ac_cv_type_ino_t = yes; then
13439   :
13440 else
13441
13442 cat >>confdefs.h <<_ACEOF
13443 #define ino_t unsigned long
13444 _ACEOF
13445
13446 fi
13447
13448 echo "$as_me:$LINENO: checking for dev_t" >&5
13449 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13450 if test "${ac_cv_type_dev_t+set}" = set; then
13451   echo $ECHO_N "(cached) $ECHO_C" >&6
13452 else
13453   cat >conftest.$ac_ext <<_ACEOF
13454 /* confdefs.h.  */
13455 _ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h.  */
13459 $ac_includes_default
13460 int
13461 main ()
13462 {
13463 if ((dev_t *) 0)
13464   return 0;
13465 if (sizeof (dev_t))
13466   return 0;
13467   ;
13468   return 0;
13469 }
13470 _ACEOF
13471 rm -f conftest.$ac_objext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13473   (eval $ac_compile) 2>conftest.er1
13474   ac_status=$?
13475   grep -v '^ *+' conftest.er1 >conftest.err
13476   rm -f conftest.er1
13477   cat conftest.err >&5
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); } &&
13480          { ac_try='test -z "$ac_c_werror_flag"
13481                          || test ! -s conftest.err'
13482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483   (eval $ac_try) 2>&5
13484   ac_status=$?
13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); }; } &&
13487          { ac_try='test -s conftest.$ac_objext'
13488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489   (eval $ac_try) 2>&5
13490   ac_status=$?
13491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492   (exit $ac_status); }; }; then
13493   ac_cv_type_dev_t=yes
13494 else
13495   echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13497
13498 ac_cv_type_dev_t=no
13499 fi
13500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13501 fi
13502 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13503 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13504 if test $ac_cv_type_dev_t = yes; then
13505   :
13506 else
13507
13508 cat >>confdefs.h <<_ACEOF
13509 #define dev_t unsigned long
13510 _ACEOF
13511
13512 fi
13513
13514 echo "$as_me:$LINENO: checking for daddr_t" >&5
13515 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13516 if test "${ac_cv_type_daddr_t+set}" = set; then
13517   echo $ECHO_N "(cached) $ECHO_C" >&6
13518 else
13519   cat >conftest.$ac_ext <<_ACEOF
13520 /* confdefs.h.  */
13521 _ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h.  */
13525 $ac_includes_default
13526 int
13527 main ()
13528 {
13529 if ((daddr_t *) 0)
13530   return 0;
13531 if (sizeof (daddr_t))
13532   return 0;
13533   ;
13534   return 0;
13535 }
13536 _ACEOF
13537 rm -f conftest.$ac_objext
13538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13539   (eval $ac_compile) 2>conftest.er1
13540   ac_status=$?
13541   grep -v '^ *+' conftest.er1 >conftest.err
13542   rm -f conftest.er1
13543   cat conftest.err >&5
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); } &&
13546          { ac_try='test -z "$ac_c_werror_flag"
13547                          || test ! -s conftest.err'
13548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549   (eval $ac_try) 2>&5
13550   ac_status=$?
13551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552   (exit $ac_status); }; } &&
13553          { ac_try='test -s conftest.$ac_objext'
13554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555   (eval $ac_try) 2>&5
13556   ac_status=$?
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); }; }; then
13559   ac_cv_type_daddr_t=yes
13560 else
13561   echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13563
13564 ac_cv_type_daddr_t=no
13565 fi
13566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13567 fi
13568 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13569 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13570 if test $ac_cv_type_daddr_t = yes; then
13571   :
13572 else
13573
13574 cat >>confdefs.h <<_ACEOF
13575 #define daddr_t long
13576 _ACEOF
13577
13578 fi
13579
13580 echo "$as_me:$LINENO: checking for major_t" >&5
13581 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13582 if test "${ac_cv_type_major_t+set}" = set; then
13583   echo $ECHO_N "(cached) $ECHO_C" >&6
13584 else
13585   cat >conftest.$ac_ext <<_ACEOF
13586 /* confdefs.h.  */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h.  */
13591 $ac_includes_default
13592 int
13593 main ()
13594 {
13595 if ((major_t *) 0)
13596   return 0;
13597 if (sizeof (major_t))
13598   return 0;
13599   ;
13600   return 0;
13601 }
13602 _ACEOF
13603 rm -f conftest.$ac_objext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605   (eval $ac_compile) 2>conftest.er1
13606   ac_status=$?
13607   grep -v '^ *+' conftest.er1 >conftest.err
13608   rm -f conftest.er1
13609   cat conftest.err >&5
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); } &&
13612          { ac_try='test -z "$ac_c_werror_flag"
13613                          || test ! -s conftest.err'
13614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615   (eval $ac_try) 2>&5
13616   ac_status=$?
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); }; } &&
13619          { ac_try='test -s conftest.$ac_objext'
13620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621   (eval $ac_try) 2>&5
13622   ac_status=$?
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); }; }; then
13625   ac_cv_type_major_t=yes
13626 else
13627   echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 ac_cv_type_major_t=no
13631 fi
13632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13633 fi
13634 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13635 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13636 if test $ac_cv_type_major_t = yes; then
13637   :
13638 else
13639
13640 cat >>confdefs.h <<_ACEOF
13641 #define major_t int
13642 _ACEOF
13643
13644 fi
13645
13646 echo "$as_me:$LINENO: checking for minor_t" >&5
13647 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13648 if test "${ac_cv_type_minor_t+set}" = set; then
13649   echo $ECHO_N "(cached) $ECHO_C" >&6
13650 else
13651   cat >conftest.$ac_ext <<_ACEOF
13652 /* confdefs.h.  */
13653 _ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h.  */
13657 $ac_includes_default
13658 int
13659 main ()
13660 {
13661 if ((minor_t *) 0)
13662   return 0;
13663 if (sizeof (minor_t))
13664   return 0;
13665   ;
13666   return 0;
13667 }
13668 _ACEOF
13669 rm -f conftest.$ac_objext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13671   (eval $ac_compile) 2>conftest.er1
13672   ac_status=$?
13673   grep -v '^ *+' conftest.er1 >conftest.err
13674   rm -f conftest.er1
13675   cat conftest.err >&5
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); } &&
13678          { ac_try='test -z "$ac_c_werror_flag"
13679                          || test ! -s conftest.err'
13680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681   (eval $ac_try) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }; } &&
13685          { ac_try='test -s conftest.$ac_objext'
13686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687   (eval $ac_try) 2>&5
13688   ac_status=$?
13689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690   (exit $ac_status); }; }; then
13691   ac_cv_type_minor_t=yes
13692 else
13693   echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13695
13696 ac_cv_type_minor_t=no
13697 fi
13698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13699 fi
13700 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13701 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13702 if test $ac_cv_type_minor_t = yes; then
13703   :
13704 else
13705
13706 cat >>confdefs.h <<_ACEOF
13707 #define minor_t int
13708 _ACEOF
13709
13710 fi
13711
13712 echo "$as_me:$LINENO: checking for ssize_t" >&5
13713 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13714 if test "${ac_cv_type_ssize_t+set}" = set; then
13715   echo $ECHO_N "(cached) $ECHO_C" >&6
13716 else
13717   cat >conftest.$ac_ext <<_ACEOF
13718 /* confdefs.h.  */
13719 _ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h.  */
13723 $ac_includes_default
13724 int
13725 main ()
13726 {
13727 if ((ssize_t *) 0)
13728   return 0;
13729 if (sizeof (ssize_t))
13730   return 0;
13731   ;
13732   return 0;
13733 }
13734 _ACEOF
13735 rm -f conftest.$ac_objext
13736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13737   (eval $ac_compile) 2>conftest.er1
13738   ac_status=$?
13739   grep -v '^ *+' conftest.er1 >conftest.err
13740   rm -f conftest.er1
13741   cat conftest.err >&5
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); } &&
13744          { ac_try='test -z "$ac_c_werror_flag"
13745                          || test ! -s conftest.err'
13746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747   (eval $ac_try) 2>&5
13748   ac_status=$?
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); }; } &&
13751          { ac_try='test -s conftest.$ac_objext'
13752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753   (eval $ac_try) 2>&5
13754   ac_status=$?
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); }; }; then
13757   ac_cv_type_ssize_t=yes
13758 else
13759   echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13761
13762 ac_cv_type_ssize_t=no
13763 fi
13764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13765 fi
13766 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13767 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13768 if test $ac_cv_type_ssize_t = yes; then
13769   :
13770 else
13771
13772 cat >>confdefs.h <<_ACEOF
13773 #define ssize_t int
13774 _ACEOF
13775
13776 fi
13777
13778 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13779 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13780 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13781   echo $ECHO_N "(cached) $ECHO_C" >&6
13782 else
13783   cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h.  */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h.  */
13789 $ac_includes_default
13790 int
13791 main ()
13792 {
13793 static struct stat ac_aggr;
13794 if (ac_aggr.st_blocks)
13795 return 0;
13796   ;
13797   return 0;
13798 }
13799 _ACEOF
13800 rm -f conftest.$ac_objext
13801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13802   (eval $ac_compile) 2>conftest.er1
13803   ac_status=$?
13804   grep -v '^ *+' conftest.er1 >conftest.err
13805   rm -f conftest.er1
13806   cat conftest.err >&5
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); } &&
13809          { ac_try='test -z "$ac_c_werror_flag"
13810                          || test ! -s conftest.err'
13811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812   (eval $ac_try) 2>&5
13813   ac_status=$?
13814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815   (exit $ac_status); }; } &&
13816          { ac_try='test -s conftest.$ac_objext'
13817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818   (eval $ac_try) 2>&5
13819   ac_status=$?
13820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821   (exit $ac_status); }; }; then
13822   ac_cv_member_struct_stat_st_blocks=yes
13823 else
13824   echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13826
13827 cat >conftest.$ac_ext <<_ACEOF
13828 /* confdefs.h.  */
13829 _ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h.  */
13833 $ac_includes_default
13834 int
13835 main ()
13836 {
13837 static struct stat ac_aggr;
13838 if (sizeof ac_aggr.st_blocks)
13839 return 0;
13840   ;
13841   return 0;
13842 }
13843 _ACEOF
13844 rm -f conftest.$ac_objext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13846   (eval $ac_compile) 2>conftest.er1
13847   ac_status=$?
13848   grep -v '^ *+' conftest.er1 >conftest.err
13849   rm -f conftest.er1
13850   cat conftest.err >&5
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); } &&
13853          { ac_try='test -z "$ac_c_werror_flag"
13854                          || test ! -s conftest.err'
13855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856   (eval $ac_try) 2>&5
13857   ac_status=$?
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); }; } &&
13860          { ac_try='test -s conftest.$ac_objext'
13861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862   (eval $ac_try) 2>&5
13863   ac_status=$?
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); }; }; then
13866   ac_cv_member_struct_stat_st_blocks=yes
13867 else
13868   echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13870
13871 ac_cv_member_struct_stat_st_blocks=no
13872 fi
13873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13874 fi
13875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13876 fi
13877 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13878 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13879 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13880
13881 cat >>confdefs.h <<_ACEOF
13882 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13883 _ACEOF
13884
13885
13886 cat >>confdefs.h <<\_ACEOF
13887 #define HAVE_ST_BLOCKS 1
13888 _ACEOF
13889
13890 else
13891   case $LIBOBJS in
13892     "fileblocks.$ac_objext"   | \
13893   *" fileblocks.$ac_objext"   | \
13894     "fileblocks.$ac_objext "* | \
13895   *" fileblocks.$ac_objext "* ) ;;
13896   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
13897 esac
13898
13899 fi
13900
13901
13902
13903 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13904 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13905 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13906   echo $ECHO_N "(cached) $ECHO_C" >&6
13907 else
13908   cat >conftest.$ac_ext <<_ACEOF
13909 /* confdefs.h.  */
13910 _ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h.  */
13914 $ac_includes_default
13915 int
13916 main ()
13917 {
13918 static struct stat ac_aggr;
13919 if (ac_aggr.st_rdev)
13920 return 0;
13921   ;
13922   return 0;
13923 }
13924 _ACEOF
13925 rm -f conftest.$ac_objext
13926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13927   (eval $ac_compile) 2>conftest.er1
13928   ac_status=$?
13929   grep -v '^ *+' conftest.er1 >conftest.err
13930   rm -f conftest.er1
13931   cat conftest.err >&5
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); } &&
13934          { ac_try='test -z "$ac_c_werror_flag"
13935                          || test ! -s conftest.err'
13936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937   (eval $ac_try) 2>&5
13938   ac_status=$?
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); }; } &&
13941          { ac_try='test -s conftest.$ac_objext'
13942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943   (eval $ac_try) 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); }; }; then
13947   ac_cv_member_struct_stat_st_rdev=yes
13948 else
13949   echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13951
13952 cat >conftest.$ac_ext <<_ACEOF
13953 /* confdefs.h.  */
13954 _ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h.  */
13958 $ac_includes_default
13959 int
13960 main ()
13961 {
13962 static struct stat ac_aggr;
13963 if (sizeof ac_aggr.st_rdev)
13964 return 0;
13965   ;
13966   return 0;
13967 }
13968 _ACEOF
13969 rm -f conftest.$ac_objext
13970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13971   (eval $ac_compile) 2>conftest.er1
13972   ac_status=$?
13973   grep -v '^ *+' conftest.er1 >conftest.err
13974   rm -f conftest.er1
13975   cat conftest.err >&5
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); } &&
13978          { ac_try='test -z "$ac_c_werror_flag"
13979                          || test ! -s conftest.err'
13980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981   (eval $ac_try) 2>&5
13982   ac_status=$?
13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); }; } &&
13985          { ac_try='test -s conftest.$ac_objext'
13986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987   (eval $ac_try) 2>&5
13988   ac_status=$?
13989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990   (exit $ac_status); }; }; then
13991   ac_cv_member_struct_stat_st_rdev=yes
13992 else
13993   echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13995
13996 ac_cv_member_struct_stat_st_rdev=no
13997 fi
13998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13999 fi
14000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14001 fi
14002 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14003 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14004 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14005
14006 cat >>confdefs.h <<_ACEOF
14007 #define HAVE_STRUCT_STAT_ST_RDEV 1
14008 _ACEOF
14009
14010
14011 cat >>confdefs.h <<\_ACEOF
14012 #define HAVE_ST_RDEV 1
14013 _ACEOF
14014
14015 fi
14016
14017
14018 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14019 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14020 if test "${ac_cv_struct_tm+set}" = set; then
14021   echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023   cat >conftest.$ac_ext <<_ACEOF
14024 /* confdefs.h.  */
14025 _ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h.  */
14029 #include <sys/types.h>
14030 #include <time.h>
14031
14032 int
14033 main ()
14034 {
14035 struct tm *tp; tp->tm_sec;
14036   ;
14037   return 0;
14038 }
14039 _ACEOF
14040 rm -f conftest.$ac_objext
14041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14042   (eval $ac_compile) 2>conftest.er1
14043   ac_status=$?
14044   grep -v '^ *+' conftest.er1 >conftest.err
14045   rm -f conftest.er1
14046   cat conftest.err >&5
14047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048   (exit $ac_status); } &&
14049          { ac_try='test -z "$ac_c_werror_flag"
14050                          || test ! -s conftest.err'
14051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052   (eval $ac_try) 2>&5
14053   ac_status=$?
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); }; } &&
14056          { ac_try='test -s conftest.$ac_objext'
14057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058   (eval $ac_try) 2>&5
14059   ac_status=$?
14060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); }; }; then
14062   ac_cv_struct_tm=time.h
14063 else
14064   echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14066
14067 ac_cv_struct_tm=sys/time.h
14068 fi
14069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14070 fi
14071 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14072 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14073 if test $ac_cv_struct_tm = sys/time.h; then
14074
14075 cat >>confdefs.h <<\_ACEOF
14076 #define TM_IN_SYS_TIME 1
14077 _ACEOF
14078
14079 fi
14080
14081 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14082 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14083 if test "${ac_cv_c_const+set}" = set; then
14084   echo $ECHO_N "(cached) $ECHO_C" >&6
14085 else
14086   cat >conftest.$ac_ext <<_ACEOF
14087 /* confdefs.h.  */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h.  */
14092
14093 int
14094 main ()
14095 {
14096 /* FIXME: Include the comments suggested by Paul. */
14097 #ifndef __cplusplus
14098   /* Ultrix mips cc rejects this.  */
14099   typedef int charset[2];
14100   const charset x;
14101   /* SunOS 4.1.1 cc rejects this.  */
14102   char const *const *ccp;
14103   char **p;
14104   /* NEC SVR4.0.2 mips cc rejects this.  */
14105   struct point {int x, y;};
14106   static struct point const zero = {0,0};
14107   /* AIX XL C 1.02.0.0 rejects this.
14108      It does not let you subtract one const X* pointer from another in
14109      an arm of an if-expression whose if-part is not a constant
14110      expression */
14111   const char *g = "string";
14112   ccp = &g + (g ? g-g : 0);
14113   /* HPUX 7.0 cc rejects these. */
14114   ++ccp;
14115   p = (char**) ccp;
14116   ccp = (char const *const *) p;
14117   { /* SCO 3.2v4 cc rejects this.  */
14118     char *t;
14119     char const *s = 0 ? (char *) 0 : (char const *) 0;
14120
14121     *t++ = 0;
14122   }
14123   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14124     int x[] = {25, 17};
14125     const int *foo = &x[0];
14126     ++foo;
14127   }
14128   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14129     typedef const int *iptr;
14130     iptr p = 0;
14131     ++p;
14132   }
14133   { /* AIX XL C 1.02.0.0 rejects this saying
14134        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14135     struct s { int j; const int *ap[3]; };
14136     struct s *b; b->j = 5;
14137   }
14138   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14139     const int foo = 10;
14140   }
14141 #endif
14142
14143   ;
14144   return 0;
14145 }
14146 _ACEOF
14147 rm -f conftest.$ac_objext
14148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14149   (eval $ac_compile) 2>conftest.er1
14150   ac_status=$?
14151   grep -v '^ *+' conftest.er1 >conftest.err
14152   rm -f conftest.er1
14153   cat conftest.err >&5
14154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); } &&
14156          { ac_try='test -z "$ac_c_werror_flag"
14157                          || test ! -s conftest.err'
14158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159   (eval $ac_try) 2>&5
14160   ac_status=$?
14161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162   (exit $ac_status); }; } &&
14163          { ac_try='test -s conftest.$ac_objext'
14164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165   (eval $ac_try) 2>&5
14166   ac_status=$?
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); }; }; then
14169   ac_cv_c_const=yes
14170 else
14171   echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14173
14174 ac_cv_c_const=no
14175 fi
14176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14177 fi
14178 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14179 echo "${ECHO_T}$ac_cv_c_const" >&6
14180 if test $ac_cv_c_const = no; then
14181
14182 cat >>confdefs.h <<\_ACEOF
14183 #define const
14184 _ACEOF
14185
14186 fi
14187
14188
14189
14190 echo "$as_me:$LINENO: checking for char" >&5
14191 echo $ECHO_N "checking for char... $ECHO_C" >&6
14192 if test "${ac_cv_type_char+set}" = set; then
14193   echo $ECHO_N "(cached) $ECHO_C" >&6
14194 else
14195   cat >conftest.$ac_ext <<_ACEOF
14196 /* confdefs.h.  */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h.  */
14201 $ac_includes_default
14202 int
14203 main ()
14204 {
14205 if ((char *) 0)
14206   return 0;
14207 if (sizeof (char))
14208   return 0;
14209   ;
14210   return 0;
14211 }
14212 _ACEOF
14213 rm -f conftest.$ac_objext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215   (eval $ac_compile) 2>conftest.er1
14216   ac_status=$?
14217   grep -v '^ *+' conftest.er1 >conftest.err
14218   rm -f conftest.er1
14219   cat conftest.err >&5
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); } &&
14222          { ac_try='test -z "$ac_c_werror_flag"
14223                          || test ! -s conftest.err'
14224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225   (eval $ac_try) 2>&5
14226   ac_status=$?
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); }; } &&
14229          { ac_try='test -s conftest.$ac_objext'
14230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231   (eval $ac_try) 2>&5
14232   ac_status=$?
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); }; }; then
14235   ac_cv_type_char=yes
14236 else
14237   echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14239
14240 ac_cv_type_char=no
14241 fi
14242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14243 fi
14244 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14245 echo "${ECHO_T}$ac_cv_type_char" >&6
14246
14247 echo "$as_me:$LINENO: checking size of char" >&5
14248 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14249 if test "${ac_cv_sizeof_char+set}" = set; then
14250   echo $ECHO_N "(cached) $ECHO_C" >&6
14251 else
14252   if test "$ac_cv_type_char" = yes; then
14253   # The cast to unsigned long works around a bug in the HP C Compiler
14254   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14255   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14256   # This bug is HP SR number 8606223364.
14257   if test "$cross_compiling" = yes; then
14258   # Depending upon the size, compute the lo and hi bounds.
14259 cat >conftest.$ac_ext <<_ACEOF
14260 /* confdefs.h.  */
14261 _ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h.  */
14265 $ac_includes_default
14266 int
14267 main ()
14268 {
14269 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14270 test_array [0] = 0
14271
14272   ;
14273   return 0;
14274 }
14275 _ACEOF
14276 rm -f conftest.$ac_objext
14277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14278   (eval $ac_compile) 2>conftest.er1
14279   ac_status=$?
14280   grep -v '^ *+' conftest.er1 >conftest.err
14281   rm -f conftest.er1
14282   cat conftest.err >&5
14283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284   (exit $ac_status); } &&
14285          { ac_try='test -z "$ac_c_werror_flag"
14286                          || test ! -s conftest.err'
14287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288   (eval $ac_try) 2>&5
14289   ac_status=$?
14290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291   (exit $ac_status); }; } &&
14292          { ac_try='test -s conftest.$ac_objext'
14293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294   (eval $ac_try) 2>&5
14295   ac_status=$?
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); }; }; then
14298   ac_lo=0 ac_mid=0
14299   while :; do
14300     cat >conftest.$ac_ext <<_ACEOF
14301 /* confdefs.h.  */
14302 _ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h.  */
14306 $ac_includes_default
14307 int
14308 main ()
14309 {
14310 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14311 test_array [0] = 0
14312
14313   ;
14314   return 0;
14315 }
14316 _ACEOF
14317 rm -f conftest.$ac_objext
14318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319   (eval $ac_compile) 2>conftest.er1
14320   ac_status=$?
14321   grep -v '^ *+' conftest.er1 >conftest.err
14322   rm -f conftest.er1
14323   cat conftest.err >&5
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); } &&
14326          { ac_try='test -z "$ac_c_werror_flag"
14327                          || test ! -s conftest.err'
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); }; } &&
14333          { ac_try='test -s conftest.$ac_objext'
14334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335   (eval $ac_try) 2>&5
14336   ac_status=$?
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); }; }; then
14339   ac_hi=$ac_mid; break
14340 else
14341   echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14343
14344 ac_lo=`expr $ac_mid + 1`
14345                     if test $ac_lo -le $ac_mid; then
14346                       ac_lo= ac_hi=
14347                       break
14348                     fi
14349                     ac_mid=`expr 2 '*' $ac_mid + 1`
14350 fi
14351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14352   done
14353 else
14354   echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14356
14357 cat >conftest.$ac_ext <<_ACEOF
14358 /* confdefs.h.  */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h.  */
14363 $ac_includes_default
14364 int
14365 main ()
14366 {
14367 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14368 test_array [0] = 0
14369
14370   ;
14371   return 0;
14372 }
14373 _ACEOF
14374 rm -f conftest.$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376   (eval $ac_compile) 2>conftest.er1
14377   ac_status=$?
14378   grep -v '^ *+' conftest.er1 >conftest.err
14379   rm -f conftest.er1
14380   cat conftest.err >&5
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); } &&
14383          { ac_try='test -z "$ac_c_werror_flag"
14384                          || test ! -s conftest.err'
14385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386   (eval $ac_try) 2>&5
14387   ac_status=$?
14388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389   (exit $ac_status); }; } &&
14390          { ac_try='test -s conftest.$ac_objext'
14391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392   (eval $ac_try) 2>&5
14393   ac_status=$?
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); }; }; then
14396   ac_hi=-1 ac_mid=-1
14397   while :; do
14398     cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h.  */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h.  */
14404 $ac_includes_default
14405 int
14406 main ()
14407 {
14408 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14409 test_array [0] = 0
14410
14411   ;
14412   return 0;
14413 }
14414 _ACEOF
14415 rm -f conftest.$ac_objext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14417   (eval $ac_compile) 2>conftest.er1
14418   ac_status=$?
14419   grep -v '^ *+' conftest.er1 >conftest.err
14420   rm -f conftest.er1
14421   cat conftest.err >&5
14422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423   (exit $ac_status); } &&
14424          { ac_try='test -z "$ac_c_werror_flag"
14425                          || test ! -s conftest.err'
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); }; } &&
14431          { ac_try='test -s conftest.$ac_objext'
14432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433   (eval $ac_try) 2>&5
14434   ac_status=$?
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); }; }; then
14437   ac_lo=$ac_mid; break
14438 else
14439   echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14441
14442 ac_hi=`expr '(' $ac_mid ')' - 1`
14443                        if test $ac_mid -le $ac_hi; then
14444                          ac_lo= ac_hi=
14445                          break
14446                        fi
14447                        ac_mid=`expr 2 '*' $ac_mid`
14448 fi
14449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14450   done
14451 else
14452   echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14454
14455 ac_lo= ac_hi=
14456 fi
14457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14458 fi
14459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14460 # Binary search between lo and hi bounds.
14461 while test "x$ac_lo" != "x$ac_hi"; do
14462   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14463   cat >conftest.$ac_ext <<_ACEOF
14464 /* confdefs.h.  */
14465 _ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h.  */
14469 $ac_includes_default
14470 int
14471 main ()
14472 {
14473 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14474 test_array [0] = 0
14475
14476   ;
14477   return 0;
14478 }
14479 _ACEOF
14480 rm -f conftest.$ac_objext
14481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14482   (eval $ac_compile) 2>conftest.er1
14483   ac_status=$?
14484   grep -v '^ *+' conftest.er1 >conftest.err
14485   rm -f conftest.er1
14486   cat conftest.err >&5
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); } &&
14489          { ac_try='test -z "$ac_c_werror_flag"
14490                          || test ! -s conftest.err'
14491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492   (eval $ac_try) 2>&5
14493   ac_status=$?
14494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495   (exit $ac_status); }; } &&
14496          { ac_try='test -s conftest.$ac_objext'
14497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498   (eval $ac_try) 2>&5
14499   ac_status=$?
14500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501   (exit $ac_status); }; }; then
14502   ac_hi=$ac_mid
14503 else
14504   echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14506
14507 ac_lo=`expr '(' $ac_mid ')' + 1`
14508 fi
14509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14510 done
14511 case $ac_lo in
14512 ?*) ac_cv_sizeof_char=$ac_lo;;
14513 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14514 See \`config.log' for more details." >&5
14515 echo "$as_me: error: cannot compute sizeof (char), 77
14516 See \`config.log' for more details." >&2;}
14517    { (exit 1); exit 1; }; } ;;
14518 esac
14519 else
14520   if test "$cross_compiling" = yes; then
14521   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14522 See \`config.log' for more details." >&5
14523 echo "$as_me: error: cannot run test program while cross compiling
14524 See \`config.log' for more details." >&2;}
14525    { (exit 1); exit 1; }; }
14526 else
14527   cat >conftest.$ac_ext <<_ACEOF
14528 /* confdefs.h.  */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h.  */
14533 $ac_includes_default
14534 long longval () { return (long) (sizeof (char)); }
14535 unsigned long ulongval () { return (long) (sizeof (char)); }
14536 #include <stdio.h>
14537 #include <stdlib.h>
14538 int
14539 main ()
14540 {
14541
14542   FILE *f = fopen ("conftest.val", "w");
14543   if (! f)
14544     exit (1);
14545   if (((long) (sizeof (char))) < 0)
14546     {
14547       long i = longval ();
14548       if (i != ((long) (sizeof (char))))
14549         exit (1);
14550       fprintf (f, "%ld\n", i);
14551     }
14552   else
14553     {
14554       unsigned long i = ulongval ();
14555       if (i != ((long) (sizeof (char))))
14556         exit (1);
14557       fprintf (f, "%lu\n", i);
14558     }
14559   exit (ferror (f) || fclose (f) != 0);
14560
14561   ;
14562   return 0;
14563 }
14564 _ACEOF
14565 rm -f conftest$ac_exeext
14566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14567   (eval $ac_link) 2>&5
14568   ac_status=$?
14569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572   (eval $ac_try) 2>&5
14573   ac_status=$?
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); }; }; then
14576   ac_cv_sizeof_char=`cat conftest.val`
14577 else
14578   echo "$as_me: program exited with status $ac_status" >&5
14579 echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14581
14582 ( exit $ac_status )
14583 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14584 See \`config.log' for more details." >&5
14585 echo "$as_me: error: cannot compute sizeof (char), 77
14586 See \`config.log' for more details." >&2;}
14587    { (exit 1); exit 1; }; }
14588 fi
14589 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14590 fi
14591 fi
14592 rm -f conftest.val
14593 else
14594   ac_cv_sizeof_char=0
14595 fi
14596 fi
14597 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14598 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14599 cat >>confdefs.h <<_ACEOF
14600 #define SIZEOF_CHAR $ac_cv_sizeof_char
14601 _ACEOF
14602
14603
14604 echo "$as_me:$LINENO: checking for short int" >&5
14605 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14606 if test "${ac_cv_type_short_int+set}" = set; then
14607   echo $ECHO_N "(cached) $ECHO_C" >&6
14608 else
14609   cat >conftest.$ac_ext <<_ACEOF
14610 /* confdefs.h.  */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h.  */
14615 $ac_includes_default
14616 int
14617 main ()
14618 {
14619 if ((short int *) 0)
14620   return 0;
14621 if (sizeof (short int))
14622   return 0;
14623   ;
14624   return 0;
14625 }
14626 _ACEOF
14627 rm -f conftest.$ac_objext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629   (eval $ac_compile) 2>conftest.er1
14630   ac_status=$?
14631   grep -v '^ *+' conftest.er1 >conftest.err
14632   rm -f conftest.er1
14633   cat conftest.err >&5
14634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); } &&
14636          { ac_try='test -z "$ac_c_werror_flag"
14637                          || test ! -s conftest.err'
14638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639   (eval $ac_try) 2>&5
14640   ac_status=$?
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); }; } &&
14643          { ac_try='test -s conftest.$ac_objext'
14644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645   (eval $ac_try) 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); }; }; then
14649   ac_cv_type_short_int=yes
14650 else
14651   echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14653
14654 ac_cv_type_short_int=no
14655 fi
14656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14657 fi
14658 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14659 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14660
14661 echo "$as_me:$LINENO: checking size of short int" >&5
14662 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14663 if test "${ac_cv_sizeof_short_int+set}" = set; then
14664   echo $ECHO_N "(cached) $ECHO_C" >&6
14665 else
14666   if test "$ac_cv_type_short_int" = yes; then
14667   # The cast to unsigned long works around a bug in the HP C Compiler
14668   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14669   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14670   # This bug is HP SR number 8606223364.
14671   if test "$cross_compiling" = yes; then
14672   # Depending upon the size, compute the lo and hi bounds.
14673 cat >conftest.$ac_ext <<_ACEOF
14674 /* confdefs.h.  */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h.  */
14679 $ac_includes_default
14680 int
14681 main ()
14682 {
14683 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14684 test_array [0] = 0
14685
14686   ;
14687   return 0;
14688 }
14689 _ACEOF
14690 rm -f conftest.$ac_objext
14691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14692   (eval $ac_compile) 2>conftest.er1
14693   ac_status=$?
14694   grep -v '^ *+' conftest.er1 >conftest.err
14695   rm -f conftest.er1
14696   cat conftest.err >&5
14697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698   (exit $ac_status); } &&
14699          { ac_try='test -z "$ac_c_werror_flag"
14700                          || test ! -s conftest.err'
14701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702   (eval $ac_try) 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); }; } &&
14706          { ac_try='test -s conftest.$ac_objext'
14707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708   (eval $ac_try) 2>&5
14709   ac_status=$?
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); }; }; then
14712   ac_lo=0 ac_mid=0
14713   while :; do
14714     cat >conftest.$ac_ext <<_ACEOF
14715 /* confdefs.h.  */
14716 _ACEOF
14717 cat confdefs.h >>conftest.$ac_ext
14718 cat >>conftest.$ac_ext <<_ACEOF
14719 /* end confdefs.h.  */
14720 $ac_includes_default
14721 int
14722 main ()
14723 {
14724 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14725 test_array [0] = 0
14726
14727   ;
14728   return 0;
14729 }
14730 _ACEOF
14731 rm -f conftest.$ac_objext
14732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14733   (eval $ac_compile) 2>conftest.er1
14734   ac_status=$?
14735   grep -v '^ *+' conftest.er1 >conftest.err
14736   rm -f conftest.er1
14737   cat conftest.err >&5
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } &&
14740          { ac_try='test -z "$ac_c_werror_flag"
14741                          || test ! -s conftest.err'
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); }; } &&
14747          { ac_try='test -s conftest.$ac_objext'
14748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749   (eval $ac_try) 2>&5
14750   ac_status=$?
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); }; }; then
14753   ac_hi=$ac_mid; break
14754 else
14755   echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14757
14758 ac_lo=`expr $ac_mid + 1`
14759                     if test $ac_lo -le $ac_mid; then
14760                       ac_lo= ac_hi=
14761                       break
14762                     fi
14763                     ac_mid=`expr 2 '*' $ac_mid + 1`
14764 fi
14765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14766   done
14767 else
14768   echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14770
14771 cat >conftest.$ac_ext <<_ACEOF
14772 /* confdefs.h.  */
14773 _ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h.  */
14777 $ac_includes_default
14778 int
14779 main ()
14780 {
14781 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
14782 test_array [0] = 0
14783
14784   ;
14785   return 0;
14786 }
14787 _ACEOF
14788 rm -f conftest.$ac_objext
14789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14790   (eval $ac_compile) 2>conftest.er1
14791   ac_status=$?
14792   grep -v '^ *+' conftest.er1 >conftest.err
14793   rm -f conftest.er1
14794   cat conftest.err >&5
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); } &&
14797          { ac_try='test -z "$ac_c_werror_flag"
14798                          || test ! -s conftest.err'
14799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800   (eval $ac_try) 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); }; } &&
14804          { ac_try='test -s conftest.$ac_objext'
14805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806   (eval $ac_try) 2>&5
14807   ac_status=$?
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); }; }; then
14810   ac_hi=-1 ac_mid=-1
14811   while :; do
14812     cat >conftest.$ac_ext <<_ACEOF
14813 /* confdefs.h.  */
14814 _ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h.  */
14818 $ac_includes_default
14819 int
14820 main ()
14821 {
14822 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
14823 test_array [0] = 0
14824
14825   ;
14826   return 0;
14827 }
14828 _ACEOF
14829 rm -f conftest.$ac_objext
14830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14831   (eval $ac_compile) 2>conftest.er1
14832   ac_status=$?
14833   grep -v '^ *+' conftest.er1 >conftest.err
14834   rm -f conftest.er1
14835   cat conftest.err >&5
14836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837   (exit $ac_status); } &&
14838          { ac_try='test -z "$ac_c_werror_flag"
14839                          || test ! -s conftest.err'
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); }; } &&
14845          { ac_try='test -s conftest.$ac_objext'
14846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847   (eval $ac_try) 2>&5
14848   ac_status=$?
14849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850   (exit $ac_status); }; }; then
14851   ac_lo=$ac_mid; break
14852 else
14853   echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14855
14856 ac_hi=`expr '(' $ac_mid ')' - 1`
14857                        if test $ac_mid -le $ac_hi; then
14858                          ac_lo= ac_hi=
14859                          break
14860                        fi
14861                        ac_mid=`expr 2 '*' $ac_mid`
14862 fi
14863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14864   done
14865 else
14866   echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14868
14869 ac_lo= ac_hi=
14870 fi
14871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14872 fi
14873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14874 # Binary search between lo and hi bounds.
14875 while test "x$ac_lo" != "x$ac_hi"; do
14876   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14877   cat >conftest.$ac_ext <<_ACEOF
14878 /* confdefs.h.  */
14879 _ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h.  */
14883 $ac_includes_default
14884 int
14885 main ()
14886 {
14887 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14888 test_array [0] = 0
14889
14890   ;
14891   return 0;
14892 }
14893 _ACEOF
14894 rm -f conftest.$ac_objext
14895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14896   (eval $ac_compile) 2>conftest.er1
14897   ac_status=$?
14898   grep -v '^ *+' conftest.er1 >conftest.err
14899   rm -f conftest.er1
14900   cat conftest.err >&5
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); } &&
14903          { ac_try='test -z "$ac_c_werror_flag"
14904                          || test ! -s conftest.err'
14905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906   (eval $ac_try) 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); }; } &&
14910          { ac_try='test -s conftest.$ac_objext'
14911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912   (eval $ac_try) 2>&5
14913   ac_status=$?
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); }; }; then
14916   ac_hi=$ac_mid
14917 else
14918   echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921 ac_lo=`expr '(' $ac_mid ')' + 1`
14922 fi
14923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14924 done
14925 case $ac_lo in
14926 ?*) ac_cv_sizeof_short_int=$ac_lo;;
14927 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14928 See \`config.log' for more details." >&5
14929 echo "$as_me: error: cannot compute sizeof (short int), 77
14930 See \`config.log' for more details." >&2;}
14931    { (exit 1); exit 1; }; } ;;
14932 esac
14933 else
14934   if test "$cross_compiling" = yes; then
14935   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14936 See \`config.log' for more details." >&5
14937 echo "$as_me: error: cannot run test program while cross compiling
14938 See \`config.log' for more details." >&2;}
14939    { (exit 1); exit 1; }; }
14940 else
14941   cat >conftest.$ac_ext <<_ACEOF
14942 /* confdefs.h.  */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h.  */
14947 $ac_includes_default
14948 long longval () { return (long) (sizeof (short int)); }
14949 unsigned long ulongval () { return (long) (sizeof (short int)); }
14950 #include <stdio.h>
14951 #include <stdlib.h>
14952 int
14953 main ()
14954 {
14955
14956   FILE *f = fopen ("conftest.val", "w");
14957   if (! f)
14958     exit (1);
14959   if (((long) (sizeof (short int))) < 0)
14960     {
14961       long i = longval ();
14962       if (i != ((long) (sizeof (short int))))
14963         exit (1);
14964       fprintf (f, "%ld\n", i);
14965     }
14966   else
14967     {
14968       unsigned long i = ulongval ();
14969       if (i != ((long) (sizeof (short int))))
14970         exit (1);
14971       fprintf (f, "%lu\n", i);
14972     }
14973   exit (ferror (f) || fclose (f) != 0);
14974
14975   ;
14976   return 0;
14977 }
14978 _ACEOF
14979 rm -f conftest$ac_exeext
14980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14981   (eval $ac_link) 2>&5
14982   ac_status=$?
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986   (eval $ac_try) 2>&5
14987   ac_status=$?
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); }; }; then
14990   ac_cv_sizeof_short_int=`cat conftest.val`
14991 else
14992   echo "$as_me: program exited with status $ac_status" >&5
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14995
14996 ( exit $ac_status )
14997 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14998 See \`config.log' for more details." >&5
14999 echo "$as_me: error: cannot compute sizeof (short int), 77
15000 See \`config.log' for more details." >&2;}
15001    { (exit 1); exit 1; }; }
15002 fi
15003 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15004 fi
15005 fi
15006 rm -f conftest.val
15007 else
15008   ac_cv_sizeof_short_int=0
15009 fi
15010 fi
15011 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15012 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15013 cat >>confdefs.h <<_ACEOF
15014 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15015 _ACEOF
15016
15017
15018 echo "$as_me:$LINENO: checking for int" >&5
15019 echo $ECHO_N "checking for int... $ECHO_C" >&6
15020 if test "${ac_cv_type_int+set}" = set; then
15021   echo $ECHO_N "(cached) $ECHO_C" >&6
15022 else
15023   cat >conftest.$ac_ext <<_ACEOF
15024 /* confdefs.h.  */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h.  */
15029 $ac_includes_default
15030 int
15031 main ()
15032 {
15033 if ((int *) 0)
15034   return 0;
15035 if (sizeof (int))
15036   return 0;
15037   ;
15038   return 0;
15039 }
15040 _ACEOF
15041 rm -f conftest.$ac_objext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15043   (eval $ac_compile) 2>conftest.er1
15044   ac_status=$?
15045   grep -v '^ *+' conftest.er1 >conftest.err
15046   rm -f conftest.er1
15047   cat conftest.err >&5
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   (exit $ac_status); } &&
15050          { ac_try='test -z "$ac_c_werror_flag"
15051                          || test ! -s conftest.err'
15052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053   (eval $ac_try) 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); }; } &&
15057          { ac_try='test -s conftest.$ac_objext'
15058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059   (eval $ac_try) 2>&5
15060   ac_status=$?
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); }; }; then
15063   ac_cv_type_int=yes
15064 else
15065   echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15067
15068 ac_cv_type_int=no
15069 fi
15070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15071 fi
15072 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15073 echo "${ECHO_T}$ac_cv_type_int" >&6
15074
15075 echo "$as_me:$LINENO: checking size of int" >&5
15076 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15077 if test "${ac_cv_sizeof_int+set}" = set; then
15078   echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080   if test "$ac_cv_type_int" = yes; then
15081   # The cast to unsigned long works around a bug in the HP C Compiler
15082   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15083   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15084   # This bug is HP SR number 8606223364.
15085   if test "$cross_compiling" = yes; then
15086   # Depending upon the size, compute the lo and hi bounds.
15087 cat >conftest.$ac_ext <<_ACEOF
15088 /* confdefs.h.  */
15089 _ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h.  */
15093 $ac_includes_default
15094 int
15095 main ()
15096 {
15097 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15098 test_array [0] = 0
15099
15100   ;
15101   return 0;
15102 }
15103 _ACEOF
15104 rm -f conftest.$ac_objext
15105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15106   (eval $ac_compile) 2>conftest.er1
15107   ac_status=$?
15108   grep -v '^ *+' conftest.er1 >conftest.err
15109   rm -f conftest.er1
15110   cat conftest.err >&5
15111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); } &&
15113          { ac_try='test -z "$ac_c_werror_flag"
15114                          || test ! -s conftest.err'
15115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116   (eval $ac_try) 2>&5
15117   ac_status=$?
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); }; } &&
15120          { ac_try='test -s conftest.$ac_objext'
15121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122   (eval $ac_try) 2>&5
15123   ac_status=$?
15124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125   (exit $ac_status); }; }; then
15126   ac_lo=0 ac_mid=0
15127   while :; do
15128     cat >conftest.$ac_ext <<_ACEOF
15129 /* confdefs.h.  */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h.  */
15134 $ac_includes_default
15135 int
15136 main ()
15137 {
15138 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15139 test_array [0] = 0
15140
15141   ;
15142   return 0;
15143 }
15144 _ACEOF
15145 rm -f conftest.$ac_objext
15146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15147   (eval $ac_compile) 2>conftest.er1
15148   ac_status=$?
15149   grep -v '^ *+' conftest.er1 >conftest.err
15150   rm -f conftest.er1
15151   cat conftest.err >&5
15152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153   (exit $ac_status); } &&
15154          { ac_try='test -z "$ac_c_werror_flag"
15155                          || test ! -s conftest.err'
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); }; } &&
15161          { ac_try='test -s conftest.$ac_objext'
15162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163   (eval $ac_try) 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }; }; then
15167   ac_hi=$ac_mid; break
15168 else
15169   echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15171
15172 ac_lo=`expr $ac_mid + 1`
15173                     if test $ac_lo -le $ac_mid; then
15174                       ac_lo= ac_hi=
15175                       break
15176                     fi
15177                     ac_mid=`expr 2 '*' $ac_mid + 1`
15178 fi
15179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15180   done
15181 else
15182   echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15184
15185 cat >conftest.$ac_ext <<_ACEOF
15186 /* confdefs.h.  */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h.  */
15191 $ac_includes_default
15192 int
15193 main ()
15194 {
15195 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15196 test_array [0] = 0
15197
15198   ;
15199   return 0;
15200 }
15201 _ACEOF
15202 rm -f conftest.$ac_objext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15204   (eval $ac_compile) 2>conftest.er1
15205   ac_status=$?
15206   grep -v '^ *+' conftest.er1 >conftest.err
15207   rm -f conftest.er1
15208   cat conftest.err >&5
15209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210   (exit $ac_status); } &&
15211          { ac_try='test -z "$ac_c_werror_flag"
15212                          || test ! -s conftest.err'
15213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214   (eval $ac_try) 2>&5
15215   ac_status=$?
15216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217   (exit $ac_status); }; } &&
15218          { ac_try='test -s conftest.$ac_objext'
15219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220   (eval $ac_try) 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); }; }; then
15224   ac_hi=-1 ac_mid=-1
15225   while :; do
15226     cat >conftest.$ac_ext <<_ACEOF
15227 /* confdefs.h.  */
15228 _ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h.  */
15232 $ac_includes_default
15233 int
15234 main ()
15235 {
15236 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15237 test_array [0] = 0
15238
15239   ;
15240   return 0;
15241 }
15242 _ACEOF
15243 rm -f conftest.$ac_objext
15244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15245   (eval $ac_compile) 2>conftest.er1
15246   ac_status=$?
15247   grep -v '^ *+' conftest.er1 >conftest.err
15248   rm -f conftest.er1
15249   cat conftest.err >&5
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); } &&
15252          { ac_try='test -z "$ac_c_werror_flag"
15253                          || test ! -s conftest.err'
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); }; } &&
15259          { ac_try='test -s conftest.$ac_objext'
15260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261   (eval $ac_try) 2>&5
15262   ac_status=$?
15263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264   (exit $ac_status); }; }; then
15265   ac_lo=$ac_mid; break
15266 else
15267   echo "$as_me: failed program was:" >&5
15268 sed 's/^/| /' conftest.$ac_ext >&5
15269
15270 ac_hi=`expr '(' $ac_mid ')' - 1`
15271                        if test $ac_mid -le $ac_hi; then
15272                          ac_lo= ac_hi=
15273                          break
15274                        fi
15275                        ac_mid=`expr 2 '*' $ac_mid`
15276 fi
15277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15278   done
15279 else
15280   echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15282
15283 ac_lo= ac_hi=
15284 fi
15285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15286 fi
15287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15288 # Binary search between lo and hi bounds.
15289 while test "x$ac_lo" != "x$ac_hi"; do
15290   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15291   cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h.  */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h.  */
15297 $ac_includes_default
15298 int
15299 main ()
15300 {
15301 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15302 test_array [0] = 0
15303
15304   ;
15305   return 0;
15306 }
15307 _ACEOF
15308 rm -f conftest.$ac_objext
15309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15310   (eval $ac_compile) 2>conftest.er1
15311   ac_status=$?
15312   grep -v '^ *+' conftest.er1 >conftest.err
15313   rm -f conftest.er1
15314   cat conftest.err >&5
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); } &&
15317          { ac_try='test -z "$ac_c_werror_flag"
15318                          || test ! -s conftest.err'
15319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320   (eval $ac_try) 2>&5
15321   ac_status=$?
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); }; } &&
15324          { ac_try='test -s conftest.$ac_objext'
15325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326   (eval $ac_try) 2>&5
15327   ac_status=$?
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); }; }; then
15330   ac_hi=$ac_mid
15331 else
15332   echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15334
15335 ac_lo=`expr '(' $ac_mid ')' + 1`
15336 fi
15337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15338 done
15339 case $ac_lo in
15340 ?*) ac_cv_sizeof_int=$ac_lo;;
15341 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15342 See \`config.log' for more details." >&5
15343 echo "$as_me: error: cannot compute sizeof (int), 77
15344 See \`config.log' for more details." >&2;}
15345    { (exit 1); exit 1; }; } ;;
15346 esac
15347 else
15348   if test "$cross_compiling" = yes; then
15349   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15350 See \`config.log' for more details." >&5
15351 echo "$as_me: error: cannot run test program while cross compiling
15352 See \`config.log' for more details." >&2;}
15353    { (exit 1); exit 1; }; }
15354 else
15355   cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h.  */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h.  */
15361 $ac_includes_default
15362 long longval () { return (long) (sizeof (int)); }
15363 unsigned long ulongval () { return (long) (sizeof (int)); }
15364 #include <stdio.h>
15365 #include <stdlib.h>
15366 int
15367 main ()
15368 {
15369
15370   FILE *f = fopen ("conftest.val", "w");
15371   if (! f)
15372     exit (1);
15373   if (((long) (sizeof (int))) < 0)
15374     {
15375       long i = longval ();
15376       if (i != ((long) (sizeof (int))))
15377         exit (1);
15378       fprintf (f, "%ld\n", i);
15379     }
15380   else
15381     {
15382       unsigned long i = ulongval ();
15383       if (i != ((long) (sizeof (int))))
15384         exit (1);
15385       fprintf (f, "%lu\n", i);
15386     }
15387   exit (ferror (f) || fclose (f) != 0);
15388
15389   ;
15390   return 0;
15391 }
15392 _ACEOF
15393 rm -f conftest$ac_exeext
15394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15395   (eval $ac_link) 2>&5
15396   ac_status=$?
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400   (eval $ac_try) 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }; }; then
15404   ac_cv_sizeof_int=`cat conftest.val`
15405 else
15406   echo "$as_me: program exited with status $ac_status" >&5
15407 echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15409
15410 ( exit $ac_status )
15411 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15412 See \`config.log' for more details." >&5
15413 echo "$as_me: error: cannot compute sizeof (int), 77
15414 See \`config.log' for more details." >&2;}
15415    { (exit 1); exit 1; }; }
15416 fi
15417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15418 fi
15419 fi
15420 rm -f conftest.val
15421 else
15422   ac_cv_sizeof_int=0
15423 fi
15424 fi
15425 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15426 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15427 cat >>confdefs.h <<_ACEOF
15428 #define SIZEOF_INT $ac_cv_sizeof_int
15429 _ACEOF
15430
15431
15432 echo "$as_me:$LINENO: checking for long int" >&5
15433 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15434 if test "${ac_cv_type_long_int+set}" = set; then
15435   echo $ECHO_N "(cached) $ECHO_C" >&6
15436 else
15437   cat >conftest.$ac_ext <<_ACEOF
15438 /* confdefs.h.  */
15439 _ACEOF
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h.  */
15443 $ac_includes_default
15444 int
15445 main ()
15446 {
15447 if ((long int *) 0)
15448   return 0;
15449 if (sizeof (long int))
15450   return 0;
15451   ;
15452   return 0;
15453 }
15454 _ACEOF
15455 rm -f conftest.$ac_objext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15457   (eval $ac_compile) 2>conftest.er1
15458   ac_status=$?
15459   grep -v '^ *+' conftest.er1 >conftest.err
15460   rm -f conftest.er1
15461   cat conftest.err >&5
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); } &&
15464          { ac_try='test -z "$ac_c_werror_flag"
15465                          || test ! -s conftest.err'
15466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467   (eval $ac_try) 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); }; } &&
15471          { ac_try='test -s conftest.$ac_objext'
15472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473   (eval $ac_try) 2>&5
15474   ac_status=$?
15475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476   (exit $ac_status); }; }; then
15477   ac_cv_type_long_int=yes
15478 else
15479   echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15481
15482 ac_cv_type_long_int=no
15483 fi
15484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15485 fi
15486 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15487 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15488
15489 echo "$as_me:$LINENO: checking size of long int" >&5
15490 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15491 if test "${ac_cv_sizeof_long_int+set}" = set; then
15492   echo $ECHO_N "(cached) $ECHO_C" >&6
15493 else
15494   if test "$ac_cv_type_long_int" = yes; then
15495   # The cast to unsigned long works around a bug in the HP C Compiler
15496   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15497   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15498   # This bug is HP SR number 8606223364.
15499   if test "$cross_compiling" = yes; then
15500   # Depending upon the size, compute the lo and hi bounds.
15501 cat >conftest.$ac_ext <<_ACEOF
15502 /* confdefs.h.  */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h.  */
15507 $ac_includes_default
15508 int
15509 main ()
15510 {
15511 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15512 test_array [0] = 0
15513
15514   ;
15515   return 0;
15516 }
15517 _ACEOF
15518 rm -f conftest.$ac_objext
15519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15520   (eval $ac_compile) 2>conftest.er1
15521   ac_status=$?
15522   grep -v '^ *+' conftest.er1 >conftest.err
15523   rm -f conftest.er1
15524   cat conftest.err >&5
15525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526   (exit $ac_status); } &&
15527          { ac_try='test -z "$ac_c_werror_flag"
15528                          || test ! -s conftest.err'
15529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530   (eval $ac_try) 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }; } &&
15534          { ac_try='test -s conftest.$ac_objext'
15535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536   (eval $ac_try) 2>&5
15537   ac_status=$?
15538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539   (exit $ac_status); }; }; then
15540   ac_lo=0 ac_mid=0
15541   while :; do
15542     cat >conftest.$ac_ext <<_ACEOF
15543 /* confdefs.h.  */
15544 _ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h.  */
15548 $ac_includes_default
15549 int
15550 main ()
15551 {
15552 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15553 test_array [0] = 0
15554
15555   ;
15556   return 0;
15557 }
15558 _ACEOF
15559 rm -f conftest.$ac_objext
15560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15561   (eval $ac_compile) 2>conftest.er1
15562   ac_status=$?
15563   grep -v '^ *+' conftest.er1 >conftest.err
15564   rm -f conftest.er1
15565   cat conftest.err >&5
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); } &&
15568          { ac_try='test -z "$ac_c_werror_flag"
15569                          || test ! -s conftest.err'
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); }; } &&
15575          { ac_try='test -s conftest.$ac_objext'
15576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577   (eval $ac_try) 2>&5
15578   ac_status=$?
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); }; }; then
15581   ac_hi=$ac_mid; break
15582 else
15583   echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15585
15586 ac_lo=`expr $ac_mid + 1`
15587                     if test $ac_lo -le $ac_mid; then
15588                       ac_lo= ac_hi=
15589                       break
15590                     fi
15591                     ac_mid=`expr 2 '*' $ac_mid + 1`
15592 fi
15593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15594   done
15595 else
15596   echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15598
15599 cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h.  */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h.  */
15605 $ac_includes_default
15606 int
15607 main ()
15608 {
15609 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15610 test_array [0] = 0
15611
15612   ;
15613   return 0;
15614 }
15615 _ACEOF
15616 rm -f conftest.$ac_objext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618   (eval $ac_compile) 2>conftest.er1
15619   ac_status=$?
15620   grep -v '^ *+' conftest.er1 >conftest.err
15621   rm -f conftest.er1
15622   cat conftest.err >&5
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } &&
15625          { ac_try='test -z "$ac_c_werror_flag"
15626                          || test ! -s conftest.err'
15627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628   (eval $ac_try) 2>&5
15629   ac_status=$?
15630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); }; } &&
15632          { ac_try='test -s conftest.$ac_objext'
15633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634   (eval $ac_try) 2>&5
15635   ac_status=$?
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); }; }; then
15638   ac_hi=-1 ac_mid=-1
15639   while :; do
15640     cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h.  */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h.  */
15646 $ac_includes_default
15647 int
15648 main ()
15649 {
15650 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15651 test_array [0] = 0
15652
15653   ;
15654   return 0;
15655 }
15656 _ACEOF
15657 rm -f conftest.$ac_objext
15658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15659   (eval $ac_compile) 2>conftest.er1
15660   ac_status=$?
15661   grep -v '^ *+' conftest.er1 >conftest.err
15662   rm -f conftest.er1
15663   cat conftest.err >&5
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); } &&
15666          { ac_try='test -z "$ac_c_werror_flag"
15667                          || test ! -s conftest.err'
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); }; } &&
15673          { ac_try='test -s conftest.$ac_objext'
15674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675   (eval $ac_try) 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }; }; then
15679   ac_lo=$ac_mid; break
15680 else
15681   echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684 ac_hi=`expr '(' $ac_mid ')' - 1`
15685                        if test $ac_mid -le $ac_hi; then
15686                          ac_lo= ac_hi=
15687                          break
15688                        fi
15689                        ac_mid=`expr 2 '*' $ac_mid`
15690 fi
15691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15692   done
15693 else
15694   echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15696
15697 ac_lo= ac_hi=
15698 fi
15699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15700 fi
15701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15702 # Binary search between lo and hi bounds.
15703 while test "x$ac_lo" != "x$ac_hi"; do
15704   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15705   cat >conftest.$ac_ext <<_ACEOF
15706 /* confdefs.h.  */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h.  */
15711 $ac_includes_default
15712 int
15713 main ()
15714 {
15715 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15716 test_array [0] = 0
15717
15718   ;
15719   return 0;
15720 }
15721 _ACEOF
15722 rm -f conftest.$ac_objext
15723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15724   (eval $ac_compile) 2>conftest.er1
15725   ac_status=$?
15726   grep -v '^ *+' conftest.er1 >conftest.err
15727   rm -f conftest.er1
15728   cat conftest.err >&5
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); } &&
15731          { ac_try='test -z "$ac_c_werror_flag"
15732                          || test ! -s conftest.err'
15733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734   (eval $ac_try) 2>&5
15735   ac_status=$?
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); }; } &&
15738          { ac_try='test -s conftest.$ac_objext'
15739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740   (eval $ac_try) 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; }; then
15744   ac_hi=$ac_mid
15745 else
15746   echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15748
15749 ac_lo=`expr '(' $ac_mid ')' + 1`
15750 fi
15751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15752 done
15753 case $ac_lo in
15754 ?*) ac_cv_sizeof_long_int=$ac_lo;;
15755 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15756 See \`config.log' for more details." >&5
15757 echo "$as_me: error: cannot compute sizeof (long int), 77
15758 See \`config.log' for more details." >&2;}
15759    { (exit 1); exit 1; }; } ;;
15760 esac
15761 else
15762   if test "$cross_compiling" = yes; then
15763   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15764 See \`config.log' for more details." >&5
15765 echo "$as_me: error: cannot run test program while cross compiling
15766 See \`config.log' for more details." >&2;}
15767    { (exit 1); exit 1; }; }
15768 else
15769   cat >conftest.$ac_ext <<_ACEOF
15770 /* confdefs.h.  */
15771 _ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h.  */
15775 $ac_includes_default
15776 long longval () { return (long) (sizeof (long int)); }
15777 unsigned long ulongval () { return (long) (sizeof (long int)); }
15778 #include <stdio.h>
15779 #include <stdlib.h>
15780 int
15781 main ()
15782 {
15783
15784   FILE *f = fopen ("conftest.val", "w");
15785   if (! f)
15786     exit (1);
15787   if (((long) (sizeof (long int))) < 0)
15788     {
15789       long i = longval ();
15790       if (i != ((long) (sizeof (long int))))
15791         exit (1);
15792       fprintf (f, "%ld\n", i);
15793     }
15794   else
15795     {
15796       unsigned long i = ulongval ();
15797       if (i != ((long) (sizeof (long int))))
15798         exit (1);
15799       fprintf (f, "%lu\n", i);
15800     }
15801   exit (ferror (f) || fclose (f) != 0);
15802
15803   ;
15804   return 0;
15805 }
15806 _ACEOF
15807 rm -f conftest$ac_exeext
15808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15809   (eval $ac_link) 2>&5
15810   ac_status=$?
15811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814   (eval $ac_try) 2>&5
15815   ac_status=$?
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); }; }; then
15818   ac_cv_sizeof_long_int=`cat conftest.val`
15819 else
15820   echo "$as_me: program exited with status $ac_status" >&5
15821 echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15823
15824 ( exit $ac_status )
15825 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15826 See \`config.log' for more details." >&5
15827 echo "$as_me: error: cannot compute sizeof (long int), 77
15828 See \`config.log' for more details." >&2;}
15829    { (exit 1); exit 1; }; }
15830 fi
15831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15832 fi
15833 fi
15834 rm -f conftest.val
15835 else
15836   ac_cv_sizeof_long_int=0
15837 fi
15838 fi
15839 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
15840 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
15841 cat >>confdefs.h <<_ACEOF
15842 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15843 _ACEOF
15844
15845
15846 echo "$as_me:$LINENO: checking for long long int" >&5
15847 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15848 if test "${ac_cv_type_long_long_int+set}" = set; then
15849   echo $ECHO_N "(cached) $ECHO_C" >&6
15850 else
15851   cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h.  */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h.  */
15857 $ac_includes_default
15858 int
15859 main ()
15860 {
15861 if ((long long int *) 0)
15862   return 0;
15863 if (sizeof (long long int))
15864   return 0;
15865   ;
15866   return 0;
15867 }
15868 _ACEOF
15869 rm -f conftest.$ac_objext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871   (eval $ac_compile) 2>conftest.er1
15872   ac_status=$?
15873   grep -v '^ *+' conftest.er1 >conftest.err
15874   rm -f conftest.er1
15875   cat conftest.err >&5
15876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877   (exit $ac_status); } &&
15878          { ac_try='test -z "$ac_c_werror_flag"
15879                          || test ! -s conftest.err'
15880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881   (eval $ac_try) 2>&5
15882   ac_status=$?
15883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); }; } &&
15885          { ac_try='test -s conftest.$ac_objext'
15886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887   (eval $ac_try) 2>&5
15888   ac_status=$?
15889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890   (exit $ac_status); }; }; then
15891   ac_cv_type_long_long_int=yes
15892 else
15893   echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15895
15896 ac_cv_type_long_long_int=no
15897 fi
15898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15899 fi
15900 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15901 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15902
15903 echo "$as_me:$LINENO: checking size of long long int" >&5
15904 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
15905 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
15906   echo $ECHO_N "(cached) $ECHO_C" >&6
15907 else
15908   if test "$ac_cv_type_long_long_int" = yes; then
15909   # The cast to unsigned long works around a bug in the HP C Compiler
15910   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15911   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15912   # This bug is HP SR number 8606223364.
15913   if test "$cross_compiling" = yes; then
15914   # Depending upon the size, compute the lo and hi bounds.
15915 cat >conftest.$ac_ext <<_ACEOF
15916 /* confdefs.h.  */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h.  */
15921 $ac_includes_default
15922 int
15923 main ()
15924 {
15925 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15926 test_array [0] = 0
15927
15928   ;
15929   return 0;
15930 }
15931 _ACEOF
15932 rm -f conftest.$ac_objext
15933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15934   (eval $ac_compile) 2>conftest.er1
15935   ac_status=$?
15936   grep -v '^ *+' conftest.er1 >conftest.err
15937   rm -f conftest.er1
15938   cat conftest.err >&5
15939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940   (exit $ac_status); } &&
15941          { ac_try='test -z "$ac_c_werror_flag"
15942                          || test ! -s conftest.err'
15943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944   (eval $ac_try) 2>&5
15945   ac_status=$?
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); }; } &&
15948          { ac_try='test -s conftest.$ac_objext'
15949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950   (eval $ac_try) 2>&5
15951   ac_status=$?
15952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953   (exit $ac_status); }; }; then
15954   ac_lo=0 ac_mid=0
15955   while :; do
15956     cat >conftest.$ac_ext <<_ACEOF
15957 /* confdefs.h.  */
15958 _ACEOF
15959 cat confdefs.h >>conftest.$ac_ext
15960 cat >>conftest.$ac_ext <<_ACEOF
15961 /* end confdefs.h.  */
15962 $ac_includes_default
15963 int
15964 main ()
15965 {
15966 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15967 test_array [0] = 0
15968
15969   ;
15970   return 0;
15971 }
15972 _ACEOF
15973 rm -f conftest.$ac_objext
15974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15975   (eval $ac_compile) 2>conftest.er1
15976   ac_status=$?
15977   grep -v '^ *+' conftest.er1 >conftest.err
15978   rm -f conftest.er1
15979   cat conftest.err >&5
15980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981   (exit $ac_status); } &&
15982          { ac_try='test -z "$ac_c_werror_flag"
15983                          || test ! -s conftest.err'
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); }; } &&
15989          { ac_try='test -s conftest.$ac_objext'
15990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991   (eval $ac_try) 2>&5
15992   ac_status=$?
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); }; }; then
15995   ac_hi=$ac_mid; break
15996 else
15997   echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
15999
16000 ac_lo=`expr $ac_mid + 1`
16001                     if test $ac_lo -le $ac_mid; then
16002                       ac_lo= ac_hi=
16003                       break
16004                     fi
16005                     ac_mid=`expr 2 '*' $ac_mid + 1`
16006 fi
16007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16008   done
16009 else
16010   echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16012
16013 cat >conftest.$ac_ext <<_ACEOF
16014 /* confdefs.h.  */
16015 _ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h.  */
16019 $ac_includes_default
16020 int
16021 main ()
16022 {
16023 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16024 test_array [0] = 0
16025
16026   ;
16027   return 0;
16028 }
16029 _ACEOF
16030 rm -f conftest.$ac_objext
16031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16032   (eval $ac_compile) 2>conftest.er1
16033   ac_status=$?
16034   grep -v '^ *+' conftest.er1 >conftest.err
16035   rm -f conftest.er1
16036   cat conftest.err >&5
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); } &&
16039          { ac_try='test -z "$ac_c_werror_flag"
16040                          || test ! -s conftest.err'
16041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042   (eval $ac_try) 2>&5
16043   ac_status=$?
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); }; } &&
16046          { ac_try='test -s conftest.$ac_objext'
16047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048   (eval $ac_try) 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); }; }; then
16052   ac_hi=-1 ac_mid=-1
16053   while :; do
16054     cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h.  */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h.  */
16060 $ac_includes_default
16061 int
16062 main ()
16063 {
16064 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16065 test_array [0] = 0
16066
16067   ;
16068   return 0;
16069 }
16070 _ACEOF
16071 rm -f conftest.$ac_objext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16073   (eval $ac_compile) 2>conftest.er1
16074   ac_status=$?
16075   grep -v '^ *+' conftest.er1 >conftest.err
16076   rm -f conftest.er1
16077   cat conftest.err >&5
16078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079   (exit $ac_status); } &&
16080          { ac_try='test -z "$ac_c_werror_flag"
16081                          || test ! -s conftest.err'
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); }; } &&
16087          { ac_try='test -s conftest.$ac_objext'
16088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089   (eval $ac_try) 2>&5
16090   ac_status=$?
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); }; }; then
16093   ac_lo=$ac_mid; break
16094 else
16095   echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.$ac_ext >&5
16097
16098 ac_hi=`expr '(' $ac_mid ')' - 1`
16099                        if test $ac_mid -le $ac_hi; then
16100                          ac_lo= ac_hi=
16101                          break
16102                        fi
16103                        ac_mid=`expr 2 '*' $ac_mid`
16104 fi
16105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16106   done
16107 else
16108   echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.$ac_ext >&5
16110
16111 ac_lo= ac_hi=
16112 fi
16113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16114 fi
16115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16116 # Binary search between lo and hi bounds.
16117 while test "x$ac_lo" != "x$ac_hi"; do
16118   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16119   cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h.  */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h.  */
16125 $ac_includes_default
16126 int
16127 main ()
16128 {
16129 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16130 test_array [0] = 0
16131
16132   ;
16133   return 0;
16134 }
16135 _ACEOF
16136 rm -f conftest.$ac_objext
16137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16138   (eval $ac_compile) 2>conftest.er1
16139   ac_status=$?
16140   grep -v '^ *+' conftest.er1 >conftest.err
16141   rm -f conftest.er1
16142   cat conftest.err >&5
16143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144   (exit $ac_status); } &&
16145          { ac_try='test -z "$ac_c_werror_flag"
16146                          || test ! -s conftest.err'
16147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148   (eval $ac_try) 2>&5
16149   ac_status=$?
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); }; } &&
16152          { ac_try='test -s conftest.$ac_objext'
16153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154   (eval $ac_try) 2>&5
16155   ac_status=$?
16156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157   (exit $ac_status); }; }; then
16158   ac_hi=$ac_mid
16159 else
16160   echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16162
16163 ac_lo=`expr '(' $ac_mid ')' + 1`
16164 fi
16165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16166 done
16167 case $ac_lo in
16168 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16169 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16170 See \`config.log' for more details." >&5
16171 echo "$as_me: error: cannot compute sizeof (long long int), 77
16172 See \`config.log' for more details." >&2;}
16173    { (exit 1); exit 1; }; } ;;
16174 esac
16175 else
16176   if test "$cross_compiling" = yes; then
16177   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16178 See \`config.log' for more details." >&5
16179 echo "$as_me: error: cannot run test program while cross compiling
16180 See \`config.log' for more details." >&2;}
16181    { (exit 1); exit 1; }; }
16182 else
16183   cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h.  */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h.  */
16189 $ac_includes_default
16190 long longval () { return (long) (sizeof (long long int)); }
16191 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16192 #include <stdio.h>
16193 #include <stdlib.h>
16194 int
16195 main ()
16196 {
16197
16198   FILE *f = fopen ("conftest.val", "w");
16199   if (! f)
16200     exit (1);
16201   if (((long) (sizeof (long long int))) < 0)
16202     {
16203       long i = longval ();
16204       if (i != ((long) (sizeof (long long int))))
16205         exit (1);
16206       fprintf (f, "%ld\n", i);
16207     }
16208   else
16209     {
16210       unsigned long i = ulongval ();
16211       if (i != ((long) (sizeof (long long int))))
16212         exit (1);
16213       fprintf (f, "%lu\n", i);
16214     }
16215   exit (ferror (f) || fclose (f) != 0);
16216
16217   ;
16218   return 0;
16219 }
16220 _ACEOF
16221 rm -f conftest$ac_exeext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16223   (eval $ac_link) 2>&5
16224   ac_status=$?
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228   (eval $ac_try) 2>&5
16229   ac_status=$?
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); }; }; then
16232   ac_cv_sizeof_long_long_int=`cat conftest.val`
16233 else
16234   echo "$as_me: program exited with status $ac_status" >&5
16235 echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16237
16238 ( exit $ac_status )
16239 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16240 See \`config.log' for more details." >&5
16241 echo "$as_me: error: cannot compute sizeof (long long int), 77
16242 See \`config.log' for more details." >&2;}
16243    { (exit 1); exit 1; }; }
16244 fi
16245 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16246 fi
16247 fi
16248 rm -f conftest.val
16249 else
16250   ac_cv_sizeof_long_long_int=0
16251 fi
16252 fi
16253 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16254 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16255 cat >>confdefs.h <<_ACEOF
16256 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16257 _ACEOF
16258
16259
16260 echo "$as_me:$LINENO: checking for int *" >&5
16261 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16262 if test "${ac_cv_type_int_p+set}" = set; then
16263   echo $ECHO_N "(cached) $ECHO_C" >&6
16264 else
16265   cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h.  */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h.  */
16271 $ac_includes_default
16272 int
16273 main ()
16274 {
16275 if ((int * *) 0)
16276   return 0;
16277 if (sizeof (int *))
16278   return 0;
16279   ;
16280   return 0;
16281 }
16282 _ACEOF
16283 rm -f conftest.$ac_objext
16284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16285   (eval $ac_compile) 2>conftest.er1
16286   ac_status=$?
16287   grep -v '^ *+' conftest.er1 >conftest.err
16288   rm -f conftest.er1
16289   cat conftest.err >&5
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); } &&
16292          { ac_try='test -z "$ac_c_werror_flag"
16293                          || test ! -s conftest.err'
16294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295   (eval $ac_try) 2>&5
16296   ac_status=$?
16297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298   (exit $ac_status); }; } &&
16299          { ac_try='test -s conftest.$ac_objext'
16300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301   (eval $ac_try) 2>&5
16302   ac_status=$?
16303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304   (exit $ac_status); }; }; then
16305   ac_cv_type_int_p=yes
16306 else
16307   echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16309
16310 ac_cv_type_int_p=no
16311 fi
16312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16313 fi
16314 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16315 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16316
16317 echo "$as_me:$LINENO: checking size of int *" >&5
16318 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16319 if test "${ac_cv_sizeof_int_p+set}" = set; then
16320   echo $ECHO_N "(cached) $ECHO_C" >&6
16321 else
16322   if test "$ac_cv_type_int_p" = yes; then
16323   # The cast to unsigned long works around a bug in the HP C Compiler
16324   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16325   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16326   # This bug is HP SR number 8606223364.
16327   if test "$cross_compiling" = yes; then
16328   # Depending upon the size, compute the lo and hi bounds.
16329 cat >conftest.$ac_ext <<_ACEOF
16330 /* confdefs.h.  */
16331 _ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h.  */
16335 $ac_includes_default
16336 int
16337 main ()
16338 {
16339 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16340 test_array [0] = 0
16341
16342   ;
16343   return 0;
16344 }
16345 _ACEOF
16346 rm -f conftest.$ac_objext
16347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16348   (eval $ac_compile) 2>conftest.er1
16349   ac_status=$?
16350   grep -v '^ *+' conftest.er1 >conftest.err
16351   rm -f conftest.er1
16352   cat conftest.err >&5
16353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); } &&
16355          { ac_try='test -z "$ac_c_werror_flag"
16356                          || test ! -s conftest.err'
16357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358   (eval $ac_try) 2>&5
16359   ac_status=$?
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); }; } &&
16362          { ac_try='test -s conftest.$ac_objext'
16363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364   (eval $ac_try) 2>&5
16365   ac_status=$?
16366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367   (exit $ac_status); }; }; then
16368   ac_lo=0 ac_mid=0
16369   while :; do
16370     cat >conftest.$ac_ext <<_ACEOF
16371 /* confdefs.h.  */
16372 _ACEOF
16373 cat confdefs.h >>conftest.$ac_ext
16374 cat >>conftest.$ac_ext <<_ACEOF
16375 /* end confdefs.h.  */
16376 $ac_includes_default
16377 int
16378 main ()
16379 {
16380 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16381 test_array [0] = 0
16382
16383   ;
16384   return 0;
16385 }
16386 _ACEOF
16387 rm -f conftest.$ac_objext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16389   (eval $ac_compile) 2>conftest.er1
16390   ac_status=$?
16391   grep -v '^ *+' conftest.er1 >conftest.err
16392   rm -f conftest.er1
16393   cat conftest.err >&5
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); } &&
16396          { ac_try='test -z "$ac_c_werror_flag"
16397                          || test ! -s conftest.err'
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); }; } &&
16403          { ac_try='test -s conftest.$ac_objext'
16404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405   (eval $ac_try) 2>&5
16406   ac_status=$?
16407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408   (exit $ac_status); }; }; then
16409   ac_hi=$ac_mid; break
16410 else
16411   echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16413
16414 ac_lo=`expr $ac_mid + 1`
16415                     if test $ac_lo -le $ac_mid; then
16416                       ac_lo= ac_hi=
16417                       break
16418                     fi
16419                     ac_mid=`expr 2 '*' $ac_mid + 1`
16420 fi
16421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16422   done
16423 else
16424   echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16426
16427 cat >conftest.$ac_ext <<_ACEOF
16428 /* confdefs.h.  */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h.  */
16433 $ac_includes_default
16434 int
16435 main ()
16436 {
16437 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16438 test_array [0] = 0
16439
16440   ;
16441   return 0;
16442 }
16443 _ACEOF
16444 rm -f conftest.$ac_objext
16445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16446   (eval $ac_compile) 2>conftest.er1
16447   ac_status=$?
16448   grep -v '^ *+' conftest.er1 >conftest.err
16449   rm -f conftest.er1
16450   cat conftest.err >&5
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); } &&
16453          { ac_try='test -z "$ac_c_werror_flag"
16454                          || test ! -s conftest.err'
16455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456   (eval $ac_try) 2>&5
16457   ac_status=$?
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); }; } &&
16460          { ac_try='test -s conftest.$ac_objext'
16461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462   (eval $ac_try) 2>&5
16463   ac_status=$?
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); }; }; then
16466   ac_hi=-1 ac_mid=-1
16467   while :; do
16468     cat >conftest.$ac_ext <<_ACEOF
16469 /* confdefs.h.  */
16470 _ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h.  */
16474 $ac_includes_default
16475 int
16476 main ()
16477 {
16478 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16479 test_array [0] = 0
16480
16481   ;
16482   return 0;
16483 }
16484 _ACEOF
16485 rm -f conftest.$ac_objext
16486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16487   (eval $ac_compile) 2>conftest.er1
16488   ac_status=$?
16489   grep -v '^ *+' conftest.er1 >conftest.err
16490   rm -f conftest.er1
16491   cat conftest.err >&5
16492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493   (exit $ac_status); } &&
16494          { ac_try='test -z "$ac_c_werror_flag"
16495                          || test ! -s conftest.err'
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); }; } &&
16501          { ac_try='test -s conftest.$ac_objext'
16502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16503   (eval $ac_try) 2>&5
16504   ac_status=$?
16505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506   (exit $ac_status); }; }; then
16507   ac_lo=$ac_mid; break
16508 else
16509   echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16511
16512 ac_hi=`expr '(' $ac_mid ')' - 1`
16513                        if test $ac_mid -le $ac_hi; then
16514                          ac_lo= ac_hi=
16515                          break
16516                        fi
16517                        ac_mid=`expr 2 '*' $ac_mid`
16518 fi
16519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16520   done
16521 else
16522   echo "$as_me: failed program was:" >&5
16523 sed 's/^/| /' conftest.$ac_ext >&5
16524
16525 ac_lo= ac_hi=
16526 fi
16527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16528 fi
16529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16530 # Binary search between lo and hi bounds.
16531 while test "x$ac_lo" != "x$ac_hi"; do
16532   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16533   cat >conftest.$ac_ext <<_ACEOF
16534 /* confdefs.h.  */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h.  */
16539 $ac_includes_default
16540 int
16541 main ()
16542 {
16543 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16544 test_array [0] = 0
16545
16546   ;
16547   return 0;
16548 }
16549 _ACEOF
16550 rm -f conftest.$ac_objext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16552   (eval $ac_compile) 2>conftest.er1
16553   ac_status=$?
16554   grep -v '^ *+' conftest.er1 >conftest.err
16555   rm -f conftest.er1
16556   cat conftest.err >&5
16557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558   (exit $ac_status); } &&
16559          { ac_try='test -z "$ac_c_werror_flag"
16560                          || test ! -s conftest.err'
16561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562   (eval $ac_try) 2>&5
16563   ac_status=$?
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); }; } &&
16566          { ac_try='test -s conftest.$ac_objext'
16567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568   (eval $ac_try) 2>&5
16569   ac_status=$?
16570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571   (exit $ac_status); }; }; then
16572   ac_hi=$ac_mid
16573 else
16574   echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16576
16577 ac_lo=`expr '(' $ac_mid ')' + 1`
16578 fi
16579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16580 done
16581 case $ac_lo in
16582 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16583 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16584 See \`config.log' for more details." >&5
16585 echo "$as_me: error: cannot compute sizeof (int *), 77
16586 See \`config.log' for more details." >&2;}
16587    { (exit 1); exit 1; }; } ;;
16588 esac
16589 else
16590   if test "$cross_compiling" = yes; then
16591   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16592 See \`config.log' for more details." >&5
16593 echo "$as_me: error: cannot run test program while cross compiling
16594 See \`config.log' for more details." >&2;}
16595    { (exit 1); exit 1; }; }
16596 else
16597   cat >conftest.$ac_ext <<_ACEOF
16598 /* confdefs.h.  */
16599 _ACEOF
16600 cat confdefs.h >>conftest.$ac_ext
16601 cat >>conftest.$ac_ext <<_ACEOF
16602 /* end confdefs.h.  */
16603 $ac_includes_default
16604 long longval () { return (long) (sizeof (int *)); }
16605 unsigned long ulongval () { return (long) (sizeof (int *)); }
16606 #include <stdio.h>
16607 #include <stdlib.h>
16608 int
16609 main ()
16610 {
16611
16612   FILE *f = fopen ("conftest.val", "w");
16613   if (! f)
16614     exit (1);
16615   if (((long) (sizeof (int *))) < 0)
16616     {
16617       long i = longval ();
16618       if (i != ((long) (sizeof (int *))))
16619         exit (1);
16620       fprintf (f, "%ld\n", i);
16621     }
16622   else
16623     {
16624       unsigned long i = ulongval ();
16625       if (i != ((long) (sizeof (int *))))
16626         exit (1);
16627       fprintf (f, "%lu\n", i);
16628     }
16629   exit (ferror (f) || fclose (f) != 0);
16630
16631   ;
16632   return 0;
16633 }
16634 _ACEOF
16635 rm -f conftest$ac_exeext
16636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16637   (eval $ac_link) 2>&5
16638   ac_status=$?
16639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642   (eval $ac_try) 2>&5
16643   ac_status=$?
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); }; }; then
16646   ac_cv_sizeof_int_p=`cat conftest.val`
16647 else
16648   echo "$as_me: program exited with status $ac_status" >&5
16649 echo "$as_me: failed program was:" >&5
16650 sed 's/^/| /' conftest.$ac_ext >&5
16651
16652 ( exit $ac_status )
16653 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16654 See \`config.log' for more details." >&5
16655 echo "$as_me: error: cannot compute sizeof (int *), 77
16656 See \`config.log' for more details." >&2;}
16657    { (exit 1); exit 1; }; }
16658 fi
16659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16660 fi
16661 fi
16662 rm -f conftest.val
16663 else
16664   ac_cv_sizeof_int_p=0
16665 fi
16666 fi
16667 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16668 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16669 cat >>confdefs.h <<_ACEOF
16670 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16671 _ACEOF
16672
16673
16674
16675 # Check for sys/types.h types
16676 echo "$as_me:$LINENO: checking for u_int type" >&5
16677 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16678 if test "${ac_cv_have_u_int+set}" = set; then
16679   echo $ECHO_N "(cached) $ECHO_C" >&6
16680 else
16681
16682     cat >conftest.$ac_ext <<_ACEOF
16683 /* confdefs.h.  */
16684 _ACEOF
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h.  */
16688  #include <sys/types.h>
16689 int
16690 main ()
16691 {
16692  u_int a; a = 1;
16693   ;
16694   return 0;
16695 }
16696 _ACEOF
16697 rm -f conftest.$ac_objext
16698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16699   (eval $ac_compile) 2>conftest.er1
16700   ac_status=$?
16701   grep -v '^ *+' conftest.er1 >conftest.err
16702   rm -f conftest.er1
16703   cat conftest.err >&5
16704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); } &&
16706          { ac_try='test -z "$ac_c_werror_flag"
16707                          || test ! -s conftest.err'
16708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16709   (eval $ac_try) 2>&5
16710   ac_status=$?
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); }; } &&
16713          { ac_try='test -s conftest.$ac_objext'
16714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715   (eval $ac_try) 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); }; }; then
16719    ac_cv_have_u_int="yes"
16720 else
16721   echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16723
16724  ac_cv_have_u_int="no"
16725
16726 fi
16727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16728
16729 fi
16730 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
16731 echo "${ECHO_T}$ac_cv_have_u_int" >&6
16732 if test "x$ac_cv_have_u_int" = "xyes" ; then
16733    cat >>confdefs.h <<\_ACEOF
16734 #define HAVE_U_INT 1
16735 _ACEOF
16736
16737    have_u_int=1
16738 fi
16739
16740 echo "$as_me:$LINENO: checking for intmax_t type" >&5
16741 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
16742 if test "${ac_cv_have_intmax_t+set}" = set; then
16743   echo $ECHO_N "(cached) $ECHO_C" >&6
16744 else
16745
16746    cat >conftest.$ac_ext <<_ACEOF
16747 /* confdefs.h.  */
16748 _ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h.  */
16752  #include <sys/types.h>
16753 int
16754 main ()
16755 {
16756  intmax_t a; a = 1;
16757   ;
16758   return 0;
16759 }
16760 _ACEOF
16761 rm -f conftest.$ac_objext
16762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16763   (eval $ac_compile) 2>conftest.er1
16764   ac_status=$?
16765   grep -v '^ *+' conftest.er1 >conftest.err
16766   rm -f conftest.er1
16767   cat conftest.err >&5
16768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); } &&
16770          { ac_try='test -z "$ac_c_werror_flag"
16771                          || test ! -s conftest.err'
16772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773   (eval $ac_try) 2>&5
16774   ac_status=$?
16775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); }; } &&
16777          { ac_try='test -s conftest.$ac_objext'
16778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779   (eval $ac_try) 2>&5
16780   ac_status=$?
16781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); }; }; then
16783    ac_cv_have_intmax_t="yes"
16784 else
16785   echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16787
16788
16789          cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h.  */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h.  */
16795  #include <stdint.h>
16796 int
16797 main ()
16798 {
16799  intmax_t a; a = 1;
16800   ;
16801   return 0;
16802 }
16803 _ACEOF
16804 rm -f conftest.$ac_objext
16805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16806   (eval $ac_compile) 2>conftest.er1
16807   ac_status=$?
16808   grep -v '^ *+' conftest.er1 >conftest.err
16809   rm -f conftest.er1
16810   cat conftest.err >&5
16811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812   (exit $ac_status); } &&
16813          { ac_try='test -z "$ac_c_werror_flag"
16814                          || test ! -s conftest.err'
16815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816   (eval $ac_try) 2>&5
16817   ac_status=$?
16818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819   (exit $ac_status); }; } &&
16820          { ac_try='test -s conftest.$ac_objext'
16821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822   (eval $ac_try) 2>&5
16823   ac_status=$?
16824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825   (exit $ac_status); }; }; then
16826    ac_cv_have_intmax_t="yes"
16827 else
16828   echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16830
16831  ac_cv_have_intmax_t="no"
16832
16833 fi
16834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16835
16836
16837 fi
16838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16839
16840
16841 fi
16842 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
16843 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
16844 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
16845    cat >>confdefs.h <<\_ACEOF
16846 #define HAVE_INTMAX_T 1
16847 _ACEOF
16848
16849    have_intmax_t=1
16850 fi
16851
16852
16853 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
16854 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
16855 if test "${ac_cv_have_u_intmax_t+set}" = set; then
16856   echo $ECHO_N "(cached) $ECHO_C" >&6
16857 else
16858
16859    cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h.  */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h.  */
16865  #include <sys/types.h>
16866 int
16867 main ()
16868 {
16869  u_intmax_t a; a = 1;
16870   ;
16871   return 0;
16872 }
16873 _ACEOF
16874 rm -f conftest.$ac_objext
16875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16876   (eval $ac_compile) 2>conftest.er1
16877   ac_status=$?
16878   grep -v '^ *+' conftest.er1 >conftest.err
16879   rm -f conftest.er1
16880   cat conftest.err >&5
16881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882   (exit $ac_status); } &&
16883          { ac_try='test -z "$ac_c_werror_flag"
16884                          || test ! -s conftest.err'
16885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886   (eval $ac_try) 2>&5
16887   ac_status=$?
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); }; } &&
16890          { ac_try='test -s conftest.$ac_objext'
16891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892   (eval $ac_try) 2>&5
16893   ac_status=$?
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); }; }; then
16896    ac_cv_have_u_intmax_t="yes"
16897 else
16898   echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16900
16901
16902          cat >conftest.$ac_ext <<_ACEOF
16903 /* confdefs.h.  */
16904 _ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h.  */
16908  #include <stdint.h>
16909 int
16910 main ()
16911 {
16912  u_intmax_t a; a = 1;
16913   ;
16914   return 0;
16915 }
16916 _ACEOF
16917 rm -f conftest.$ac_objext
16918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16919   (eval $ac_compile) 2>conftest.er1
16920   ac_status=$?
16921   grep -v '^ *+' conftest.er1 >conftest.err
16922   rm -f conftest.er1
16923   cat conftest.err >&5
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); } &&
16926          { ac_try='test -z "$ac_c_werror_flag"
16927                          || test ! -s conftest.err'
16928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929   (eval $ac_try) 2>&5
16930   ac_status=$?
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); }; } &&
16933          { ac_try='test -s conftest.$ac_objext'
16934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935   (eval $ac_try) 2>&5
16936   ac_status=$?
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); }; }; then
16939    ac_cv_have_u_intmax_t="yes"
16940 else
16941   echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16943
16944  ac_cv_have_u_intmax_t="no"
16945
16946 fi
16947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16948
16949
16950 fi
16951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16952
16953 fi
16954 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
16955 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
16956 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
16957    cat >>confdefs.h <<\_ACEOF
16958 #define HAVE_U_INTMAX_T 1
16959 _ACEOF
16960
16961    have_u_intmax_t=1
16962 fi
16963
16964
16965 echo "$as_me:$LINENO: checking for intXX_t types" >&5
16966 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
16967 if test "${ac_cv_have_intxx_t+set}" = set; then
16968   echo $ECHO_N "(cached) $ECHO_C" >&6
16969 else
16970
16971    cat >conftest.$ac_ext <<_ACEOF
16972 /* confdefs.h.  */
16973 _ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h.  */
16977  #include <sys/types.h>
16978 int
16979 main ()
16980 {
16981  int8_t a; int16_t b; int32_t c; a = b = c = 1;
16982   ;
16983   return 0;
16984 }
16985 _ACEOF
16986 rm -f conftest.$ac_objext
16987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16988   (eval $ac_compile) 2>conftest.er1
16989   ac_status=$?
16990   grep -v '^ *+' conftest.er1 >conftest.err
16991   rm -f conftest.er1
16992   cat conftest.err >&5
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); } &&
16995          { ac_try='test -z "$ac_c_werror_flag"
16996                          || test ! -s conftest.err'
16997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998   (eval $ac_try) 2>&5
16999   ac_status=$?
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); }; } &&
17002          { ac_try='test -s conftest.$ac_objext'
17003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004   (eval $ac_try) 2>&5
17005   ac_status=$?
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); }; }; then
17008    ac_cv_have_intxx_t="yes"
17009 else
17010   echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.$ac_ext >&5
17012
17013  ac_cv_have_intxx_t="no"
17014
17015 fi
17016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17017
17018 fi
17019 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17020 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17021 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17022    cat >>confdefs.h <<\_ACEOF
17023 #define HAVE_INTXX_T 1
17024 _ACEOF
17025
17026    have_intxx_t=1
17027 fi
17028
17029 echo "$as_me:$LINENO: checking for int64_t type" >&5
17030 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17031 if test "${ac_cv_have_int64_t+set}" = set; then
17032   echo $ECHO_N "(cached) $ECHO_C" >&6
17033 else
17034
17035    cat >conftest.$ac_ext <<_ACEOF
17036 /* confdefs.h.  */
17037 _ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h.  */
17041  #include <sys/types.h>
17042 int
17043 main ()
17044 {
17045  int64_t a; a = 1;
17046   ;
17047   return 0;
17048 }
17049 _ACEOF
17050 rm -f conftest.$ac_objext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17052   (eval $ac_compile) 2>conftest.er1
17053   ac_status=$?
17054   grep -v '^ *+' conftest.er1 >conftest.err
17055   rm -f conftest.er1
17056   cat conftest.err >&5
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); } &&
17059          { ac_try='test -z "$ac_c_werror_flag"
17060                          || test ! -s conftest.err'
17061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062   (eval $ac_try) 2>&5
17063   ac_status=$?
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); }; } &&
17066          { ac_try='test -s conftest.$ac_objext'
17067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068   (eval $ac_try) 2>&5
17069   ac_status=$?
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); }; }; then
17072    ac_cv_have_int64_t="yes"
17073 else
17074   echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17076
17077  ac_cv_have_int64_t="no"
17078
17079 fi
17080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17081
17082 fi
17083 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17084 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17085 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17086    cat >>confdefs.h <<\_ACEOF
17087 #define HAVE_INT64_T 1
17088 _ACEOF
17089
17090    have_int64_t=1
17091 fi
17092
17093 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17094 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17095 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17096   echo $ECHO_N "(cached) $ECHO_C" >&6
17097 else
17098
17099    cat >conftest.$ac_ext <<_ACEOF
17100 /* confdefs.h.  */
17101 _ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h.  */
17105  #include <sys/types.h>
17106 int
17107 main ()
17108 {
17109  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17110   ;
17111   return 0;
17112 }
17113 _ACEOF
17114 rm -f conftest.$ac_objext
17115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17116   (eval $ac_compile) 2>conftest.er1
17117   ac_status=$?
17118   grep -v '^ *+' conftest.er1 >conftest.err
17119   rm -f conftest.er1
17120   cat conftest.err >&5
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); } &&
17123          { ac_try='test -z "$ac_c_werror_flag"
17124                          || test ! -s conftest.err'
17125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126   (eval $ac_try) 2>&5
17127   ac_status=$?
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); }; } &&
17130          { ac_try='test -s conftest.$ac_objext'
17131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132   (eval $ac_try) 2>&5
17133   ac_status=$?
17134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135   (exit $ac_status); }; }; then
17136    ac_cv_have_u_intxx_t="yes"
17137 else
17138   echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17140
17141  ac_cv_have_u_intxx_t="no"
17142
17143 fi
17144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17145
17146 fi
17147 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17148 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17149 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17150    cat >>confdefs.h <<\_ACEOF
17151 #define HAVE_U_INTXX_T 1
17152 _ACEOF
17153
17154    have_u_intxx_t=1
17155 fi
17156
17157 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17158 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17159 if test "${ac_cv_have_u_int64_t+set}" = set; then
17160   echo $ECHO_N "(cached) $ECHO_C" >&6
17161 else
17162
17163    cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h.  */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h.  */
17169  #include <sys/types.h>
17170 int
17171 main ()
17172 {
17173  u_int64_t a; a = 1;
17174   ;
17175   return 0;
17176 }
17177 _ACEOF
17178 rm -f conftest.$ac_objext
17179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17180   (eval $ac_compile) 2>conftest.er1
17181   ac_status=$?
17182   grep -v '^ *+' conftest.er1 >conftest.err
17183   rm -f conftest.er1
17184   cat conftest.err >&5
17185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186   (exit $ac_status); } &&
17187          { ac_try='test -z "$ac_c_werror_flag"
17188                          || test ! -s conftest.err'
17189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190   (eval $ac_try) 2>&5
17191   ac_status=$?
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); }; } &&
17194          { ac_try='test -s conftest.$ac_objext'
17195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196   (eval $ac_try) 2>&5
17197   ac_status=$?
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); }; }; then
17200    ac_cv_have_u_int64_t="yes"
17201 else
17202   echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17204
17205  ac_cv_have_u_int64_t="no"
17206
17207 fi
17208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17209
17210 fi
17211 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17212 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17213 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17214    cat >>confdefs.h <<\_ACEOF
17215 #define HAVE_U_INT64_T 1
17216 _ACEOF
17217
17218    have_u_int64_t=1
17219 fi
17220
17221 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17222            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17223 then
17224    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17225 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17226    cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h.  */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h.  */
17232  #include <sys/bitypes.h>
17233 int
17234 main ()
17235 {
17236  int8_t a; int16_t b; int32_t c;
17237         u_int8_t e; u_int16_t f; u_int32_t g;
17238         a = b = c = e = f = g = 1;
17239   ;
17240   return 0;
17241 }
17242 _ACEOF
17243 rm -f conftest.$ac_objext
17244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17245   (eval $ac_compile) 2>conftest.er1
17246   ac_status=$?
17247   grep -v '^ *+' conftest.er1 >conftest.err
17248   rm -f conftest.er1
17249   cat conftest.err >&5
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); } &&
17252          { ac_try='test -z "$ac_c_werror_flag"
17253                          || test ! -s conftest.err'
17254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255   (eval $ac_try) 2>&5
17256   ac_status=$?
17257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258   (exit $ac_status); }; } &&
17259          { ac_try='test -s conftest.$ac_objext'
17260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261   (eval $ac_try) 2>&5
17262   ac_status=$?
17263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264   (exit $ac_status); }; }; then
17265    cat >>confdefs.h <<\_ACEOF
17266 #define HAVE_U_INTXX_T 1
17267 _ACEOF
17268
17269         cat >>confdefs.h <<\_ACEOF
17270 #define HAVE_INTXX_T 1
17271 _ACEOF
17272
17273         cat >>confdefs.h <<\_ACEOF
17274 #define HAVE_SYS_BITYPES_H 1
17275 _ACEOF
17276
17277         echo "$as_me:$LINENO: result: yes" >&5
17278 echo "${ECHO_T}yes" >&6
17279 else
17280   echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17282
17283  echo "$as_me:$LINENO: result: no" >&5
17284 echo "${ECHO_T}no" >&6
17285
17286 fi
17287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17288 fi
17289
17290 if test -z "$have_u_intxx_t" ; then
17291    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17292 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17293 if test "${ac_cv_have_uintxx_t+set}" = set; then
17294   echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296
17297       cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h.  */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h.  */
17303  #include <sys/types.h>
17304 int
17305 main ()
17306 {
17307  uint8_t a; uint16_t b;
17308            uint32_t c; a = b = c = 1;
17309   ;
17310   return 0;
17311 }
17312 _ACEOF
17313 rm -f conftest.$ac_objext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17315   (eval $ac_compile) 2>conftest.er1
17316   ac_status=$?
17317   grep -v '^ *+' conftest.er1 >conftest.err
17318   rm -f conftest.er1
17319   cat conftest.err >&5
17320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321   (exit $ac_status); } &&
17322          { ac_try='test -z "$ac_c_werror_flag"
17323                          || test ! -s conftest.err'
17324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325   (eval $ac_try) 2>&5
17326   ac_status=$?
17327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328   (exit $ac_status); }; } &&
17329          { ac_try='test -s conftest.$ac_objext'
17330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331   (eval $ac_try) 2>&5
17332   ac_status=$?
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); }; }; then
17335    ac_cv_have_uintxx_t="yes"
17336 else
17337   echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340  ac_cv_have_uintxx_t="no"
17341
17342 fi
17343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17344
17345 fi
17346 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17347 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17348    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17349       cat >>confdefs.h <<\_ACEOF
17350 #define HAVE_UINTXX_T 1
17351 _ACEOF
17352
17353    fi
17354 fi
17355
17356 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17357           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17358 then
17359    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17360 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17361    cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h.  */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h.  */
17367  #include <sys/bitypes.h>
17368 int
17369 main ()
17370 {
17371  int64_t a; u_int64_t b;
17372        a = b = 1;
17373   ;
17374   return 0;
17375 }
17376 _ACEOF
17377 rm -f conftest.$ac_objext
17378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17379   (eval $ac_compile) 2>conftest.er1
17380   ac_status=$?
17381   grep -v '^ *+' conftest.er1 >conftest.err
17382   rm -f conftest.er1
17383   cat conftest.err >&5
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); } &&
17386          { ac_try='test -z "$ac_c_werror_flag"
17387                          || test ! -s conftest.err'
17388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389   (eval $ac_try) 2>&5
17390   ac_status=$?
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); }; } &&
17393          { ac_try='test -s conftest.$ac_objext'
17394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395   (eval $ac_try) 2>&5
17396   ac_status=$?
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); }; }; then
17399    cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_U_INT64_T 1
17401 _ACEOF
17402
17403        cat >>confdefs.h <<\_ACEOF
17404 #define HAVE_INT64_T 1
17405 _ACEOF
17406
17407        echo "$as_me:$LINENO: result: yes" >&5
17408 echo "${ECHO_T}yes" >&6
17409 else
17410   echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17412
17413  echo "$as_me:$LINENO: result: no" >&5
17414 echo "${ECHO_T}no" >&6
17415
17416 fi
17417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17418 fi
17419
17420 if (test -z "$have_uintxx_t" && \
17421           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17422 then
17423    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17424 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17425    cat >conftest.$ac_ext <<_ACEOF
17426 /* confdefs.h.  */
17427 _ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h.  */
17431  #include <sys/bitypes.h>
17432 int
17433 main ()
17434 {
17435  uint8_t a; uint16_t b;
17436           uint32_t c; a = b = c = 1;
17437   ;
17438   return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest.$ac_objext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17443   (eval $ac_compile) 2>conftest.er1
17444   ac_status=$?
17445   grep -v '^ *+' conftest.er1 >conftest.err
17446   rm -f conftest.er1
17447   cat conftest.err >&5
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); } &&
17450          { ac_try='test -z "$ac_c_werror_flag"
17451                          || test ! -s conftest.err'
17452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453   (eval $ac_try) 2>&5
17454   ac_status=$?
17455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456   (exit $ac_status); }; } &&
17457          { ac_try='test -s conftest.$ac_objext'
17458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459   (eval $ac_try) 2>&5
17460   ac_status=$?
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); }; }; then
17463    cat >>confdefs.h <<\_ACEOF
17464 #define HAVE_UINTXX_T 1
17465 _ACEOF
17466
17467        echo "$as_me:$LINENO: result: yes" >&5
17468 echo "${ECHO_T}yes" >&6
17469 else
17470   echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17472
17473  echo "$as_me:$LINENO: result: no" >&5
17474 echo "${ECHO_T}no" >&6
17475
17476 fi
17477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17478
17479 fi
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497 for ac_func in \
17498         fork \
17499         getcwd \
17500         gethostname \
17501         getpid \
17502         gettimeofday \
17503         setpgid \
17504         setpgrp \
17505         setsid \
17506         signal \
17507         strerror \
17508         strncmp \
17509         strncpy \
17510         vfprintf \
17511
17512 do
17513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17514 echo "$as_me:$LINENO: checking for $ac_func" >&5
17515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17516 if eval "test \"\${$as_ac_var+set}\" = set"; then
17517   echo $ECHO_N "(cached) $ECHO_C" >&6
17518 else
17519   cat >conftest.$ac_ext <<_ACEOF
17520 /* confdefs.h.  */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h.  */
17525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17527 #define $ac_func innocuous_$ac_func
17528
17529 /* System header to define __stub macros and hopefully few prototypes,
17530     which can conflict with char $ac_func (); below.
17531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17532     <limits.h> exists even on freestanding compilers.  */
17533
17534 #ifdef __STDC__
17535 # include <limits.h>
17536 #else
17537 # include <assert.h>
17538 #endif
17539
17540 #undef $ac_func
17541
17542 /* Override any gcc2 internal prototype to avoid an error.  */
17543 #ifdef __cplusplus
17544 extern "C"
17545 {
17546 #endif
17547 /* We use char because int might match the return type of a gcc2
17548    builtin and then its argument prototype would still apply.  */
17549 char $ac_func ();
17550 /* The GNU C library defines this for functions which it implements
17551     to always fail with ENOSYS.  Some functions are actually named
17552     something starting with __ and the normal name is an alias.  */
17553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17554 choke me
17555 #else
17556 char (*f) () = $ac_func;
17557 #endif
17558 #ifdef __cplusplus
17559 }
17560 #endif
17561
17562 int
17563 main ()
17564 {
17565 return f != $ac_func;
17566   ;
17567   return 0;
17568 }
17569 _ACEOF
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17572   (eval $ac_link) 2>conftest.er1
17573   ac_status=$?
17574   grep -v '^ *+' conftest.er1 >conftest.err
17575   rm -f conftest.er1
17576   cat conftest.err >&5
17577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); } &&
17579          { ac_try='test -z "$ac_c_werror_flag"
17580                          || test ! -s conftest.err'
17581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582   (eval $ac_try) 2>&5
17583   ac_status=$?
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); }; } &&
17586          { ac_try='test -s conftest$ac_exeext'
17587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588   (eval $ac_try) 2>&5
17589   ac_status=$?
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); }; }; then
17592   eval "$as_ac_var=yes"
17593 else
17594   echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17596
17597 eval "$as_ac_var=no"
17598 fi
17599 rm -f conftest.err conftest.$ac_objext \
17600       conftest$ac_exeext conftest.$ac_ext
17601 fi
17602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17604 if test `eval echo '${'$as_ac_var'}'` = yes; then
17605   cat >>confdefs.h <<_ACEOF
17606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17607 _ACEOF
17608
17609 else
17610   echo 'configure: cannot find needed function.'; exit 1
17611
17612 fi
17613 done
17614
17615
17616
17617 for ac_func in fchdir
17618 do
17619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17620 echo "$as_me:$LINENO: checking for $ac_func" >&5
17621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17622 if eval "test \"\${$as_ac_var+set}\" = set"; then
17623   echo $ECHO_N "(cached) $ECHO_C" >&6
17624 else
17625   cat >conftest.$ac_ext <<_ACEOF
17626 /* confdefs.h.  */
17627 _ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h.  */
17631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17633 #define $ac_func innocuous_$ac_func
17634
17635 /* System header to define __stub macros and hopefully few prototypes,
17636     which can conflict with char $ac_func (); below.
17637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17638     <limits.h> exists even on freestanding compilers.  */
17639
17640 #ifdef __STDC__
17641 # include <limits.h>
17642 #else
17643 # include <assert.h>
17644 #endif
17645
17646 #undef $ac_func
17647
17648 /* Override any gcc2 internal prototype to avoid an error.  */
17649 #ifdef __cplusplus
17650 extern "C"
17651 {
17652 #endif
17653 /* We use char because int might match the return type of a gcc2
17654    builtin and then its argument prototype would still apply.  */
17655 char $ac_func ();
17656 /* The GNU C library defines this for functions which it implements
17657     to always fail with ENOSYS.  Some functions are actually named
17658     something starting with __ and the normal name is an alias.  */
17659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17660 choke me
17661 #else
17662 char (*f) () = $ac_func;
17663 #endif
17664 #ifdef __cplusplus
17665 }
17666 #endif
17667
17668 int
17669 main ()
17670 {
17671 return f != $ac_func;
17672   ;
17673   return 0;
17674 }
17675 _ACEOF
17676 rm -f conftest.$ac_objext conftest$ac_exeext
17677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17678   (eval $ac_link) 2>conftest.er1
17679   ac_status=$?
17680   grep -v '^ *+' conftest.er1 >conftest.err
17681   rm -f conftest.er1
17682   cat conftest.err >&5
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); } &&
17685          { ac_try='test -z "$ac_c_werror_flag"
17686                          || test ! -s conftest.err'
17687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688   (eval $ac_try) 2>&5
17689   ac_status=$?
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); }; } &&
17692          { ac_try='test -s conftest$ac_exeext'
17693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694   (eval $ac_try) 2>&5
17695   ac_status=$?
17696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); }; }; then
17698   eval "$as_ac_var=yes"
17699 else
17700   echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17702
17703 eval "$as_ac_var=no"
17704 fi
17705 rm -f conftest.err conftest.$ac_objext \
17706       conftest$ac_exeext conftest.$ac_ext
17707 fi
17708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17710 if test `eval echo '${'$as_ac_var'}'` = yes; then
17711   cat >>confdefs.h <<_ACEOF
17712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17713 _ACEOF
17714  cat >>confdefs.h <<\_ACEOF
17715 #define HAVE_FCHDIR 1
17716 _ACEOF
17717
17718 fi
17719 done
17720
17721
17722 for ac_func in strtoll
17723 do
17724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17725 echo "$as_me:$LINENO: checking for $ac_func" >&5
17726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17727 if eval "test \"\${$as_ac_var+set}\" = set"; then
17728   echo $ECHO_N "(cached) $ECHO_C" >&6
17729 else
17730   cat >conftest.$ac_ext <<_ACEOF
17731 /* confdefs.h.  */
17732 _ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h.  */
17736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17738 #define $ac_func innocuous_$ac_func
17739
17740 /* System header to define __stub macros and hopefully few prototypes,
17741     which can conflict with char $ac_func (); below.
17742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17743     <limits.h> exists even on freestanding compilers.  */
17744
17745 #ifdef __STDC__
17746 # include <limits.h>
17747 #else
17748 # include <assert.h>
17749 #endif
17750
17751 #undef $ac_func
17752
17753 /* Override any gcc2 internal prototype to avoid an error.  */
17754 #ifdef __cplusplus
17755 extern "C"
17756 {
17757 #endif
17758 /* We use char because int might match the return type of a gcc2
17759    builtin and then its argument prototype would still apply.  */
17760 char $ac_func ();
17761 /* The GNU C library defines this for functions which it implements
17762     to always fail with ENOSYS.  Some functions are actually named
17763     something starting with __ and the normal name is an alias.  */
17764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17765 choke me
17766 #else
17767 char (*f) () = $ac_func;
17768 #endif
17769 #ifdef __cplusplus
17770 }
17771 #endif
17772
17773 int
17774 main ()
17775 {
17776 return f != $ac_func;
17777   ;
17778   return 0;
17779 }
17780 _ACEOF
17781 rm -f conftest.$ac_objext conftest$ac_exeext
17782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17783   (eval $ac_link) 2>conftest.er1
17784   ac_status=$?
17785   grep -v '^ *+' conftest.er1 >conftest.err
17786   rm -f conftest.er1
17787   cat conftest.err >&5
17788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789   (exit $ac_status); } &&
17790          { ac_try='test -z "$ac_c_werror_flag"
17791                          || test ! -s conftest.err'
17792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793   (eval $ac_try) 2>&5
17794   ac_status=$?
17795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796   (exit $ac_status); }; } &&
17797          { ac_try='test -s conftest$ac_exeext'
17798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799   (eval $ac_try) 2>&5
17800   ac_status=$?
17801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802   (exit $ac_status); }; }; then
17803   eval "$as_ac_var=yes"
17804 else
17805   echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17807
17808 eval "$as_ac_var=no"
17809 fi
17810 rm -f conftest.err conftest.$ac_objext \
17811       conftest$ac_exeext conftest.$ac_ext
17812 fi
17813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17815 if test `eval echo '${'$as_ac_var'}'` = yes; then
17816   cat >>confdefs.h <<_ACEOF
17817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17818 _ACEOF
17819  cat >>confdefs.h <<\_ACEOF
17820 #define HAVE_STRTOLL 1
17821 _ACEOF
17822
17823 fi
17824 done
17825
17826
17827
17828 for ac_func in chflags
17829 do
17830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17831 echo "$as_me:$LINENO: checking for $ac_func" >&5
17832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17833 if eval "test \"\${$as_ac_var+set}\" = set"; then
17834   echo $ECHO_N "(cached) $ECHO_C" >&6
17835 else
17836   cat >conftest.$ac_ext <<_ACEOF
17837 /* confdefs.h.  */
17838 _ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h.  */
17842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17844 #define $ac_func innocuous_$ac_func
17845
17846 /* System header to define __stub macros and hopefully few prototypes,
17847     which can conflict with char $ac_func (); below.
17848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17849     <limits.h> exists even on freestanding compilers.  */
17850
17851 #ifdef __STDC__
17852 # include <limits.h>
17853 #else
17854 # include <assert.h>
17855 #endif
17856
17857 #undef $ac_func
17858
17859 /* Override any gcc2 internal prototype to avoid an error.  */
17860 #ifdef __cplusplus
17861 extern "C"
17862 {
17863 #endif
17864 /* We use char because int might match the return type of a gcc2
17865    builtin and then its argument prototype would still apply.  */
17866 char $ac_func ();
17867 /* The GNU C library defines this for functions which it implements
17868     to always fail with ENOSYS.  Some functions are actually named
17869     something starting with __ and the normal name is an alias.  */
17870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17871 choke me
17872 #else
17873 char (*f) () = $ac_func;
17874 #endif
17875 #ifdef __cplusplus
17876 }
17877 #endif
17878
17879 int
17880 main ()
17881 {
17882 return f != $ac_func;
17883   ;
17884   return 0;
17885 }
17886 _ACEOF
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889   (eval $ac_link) 2>conftest.er1
17890   ac_status=$?
17891   grep -v '^ *+' conftest.er1 >conftest.err
17892   rm -f conftest.er1
17893   cat conftest.err >&5
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); } &&
17896          { ac_try='test -z "$ac_c_werror_flag"
17897                          || test ! -s conftest.err'
17898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899   (eval $ac_try) 2>&5
17900   ac_status=$?
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); }; } &&
17903          { ac_try='test -s conftest$ac_exeext'
17904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905   (eval $ac_try) 2>&5
17906   ac_status=$?
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); }; }; then
17909   eval "$as_ac_var=yes"
17910 else
17911   echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17913
17914 eval "$as_ac_var=no"
17915 fi
17916 rm -f conftest.err conftest.$ac_objext \
17917       conftest$ac_exeext conftest.$ac_ext
17918 fi
17919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17921 if test `eval echo '${'$as_ac_var'}'` = yes; then
17922   cat >>confdefs.h <<_ACEOF
17923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17924 _ACEOF
17925
17926 fi
17927 done
17928
17929
17930
17931
17932
17933
17934 for ac_func in snprintf vsnprintf gethostid fseeko
17935 do
17936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17937 echo "$as_me:$LINENO: checking for $ac_func" >&5
17938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17939 if eval "test \"\${$as_ac_var+set}\" = set"; then
17940   echo $ECHO_N "(cached) $ECHO_C" >&6
17941 else
17942   cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h.  */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h.  */
17948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17950 #define $ac_func innocuous_$ac_func
17951
17952 /* System header to define __stub macros and hopefully few prototypes,
17953     which can conflict with char $ac_func (); below.
17954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17955     <limits.h> exists even on freestanding compilers.  */
17956
17957 #ifdef __STDC__
17958 # include <limits.h>
17959 #else
17960 # include <assert.h>
17961 #endif
17962
17963 #undef $ac_func
17964
17965 /* Override any gcc2 internal prototype to avoid an error.  */
17966 #ifdef __cplusplus
17967 extern "C"
17968 {
17969 #endif
17970 /* We use char because int might match the return type of a gcc2
17971    builtin and then its argument prototype would still apply.  */
17972 char $ac_func ();
17973 /* The GNU C library defines this for functions which it implements
17974     to always fail with ENOSYS.  Some functions are actually named
17975     something starting with __ and the normal name is an alias.  */
17976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17977 choke me
17978 #else
17979 char (*f) () = $ac_func;
17980 #endif
17981 #ifdef __cplusplus
17982 }
17983 #endif
17984
17985 int
17986 main ()
17987 {
17988 return f != $ac_func;
17989   ;
17990   return 0;
17991 }
17992 _ACEOF
17993 rm -f conftest.$ac_objext conftest$ac_exeext
17994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17995   (eval $ac_link) 2>conftest.er1
17996   ac_status=$?
17997   grep -v '^ *+' conftest.er1 >conftest.err
17998   rm -f conftest.er1
17999   cat conftest.err >&5
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); } &&
18002          { ac_try='test -z "$ac_c_werror_flag"
18003                          || test ! -s conftest.err'
18004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005   (eval $ac_try) 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); }; } &&
18009          { ac_try='test -s conftest$ac_exeext'
18010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011   (eval $ac_try) 2>&5
18012   ac_status=$?
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); }; }; then
18015   eval "$as_ac_var=yes"
18016 else
18017   echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.$ac_ext >&5
18019
18020 eval "$as_ac_var=no"
18021 fi
18022 rm -f conftest.err conftest.$ac_objext \
18023       conftest$ac_exeext conftest.$ac_ext
18024 fi
18025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18027 if test `eval echo '${'$as_ac_var'}'` = yes; then
18028   cat >>confdefs.h <<_ACEOF
18029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18030 _ACEOF
18031
18032 fi
18033 done
18034
18035
18036
18037
18038
18039
18040 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18041 do
18042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18043 echo "$as_me:$LINENO: checking for $ac_func" >&5
18044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18045 if eval "test \"\${$as_ac_var+set}\" = set"; then
18046   echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048   cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h.  */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h.  */
18054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18056 #define $ac_func innocuous_$ac_func
18057
18058 /* System header to define __stub macros and hopefully few prototypes,
18059     which can conflict with char $ac_func (); below.
18060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18061     <limits.h> exists even on freestanding compilers.  */
18062
18063 #ifdef __STDC__
18064 # include <limits.h>
18065 #else
18066 # include <assert.h>
18067 #endif
18068
18069 #undef $ac_func
18070
18071 /* Override any gcc2 internal prototype to avoid an error.  */
18072 #ifdef __cplusplus
18073 extern "C"
18074 {
18075 #endif
18076 /* We use char because int might match the return type of a gcc2
18077    builtin and then its argument prototype would still apply.  */
18078 char $ac_func ();
18079 /* The GNU C library defines this for functions which it implements
18080     to always fail with ENOSYS.  Some functions are actually named
18081     something starting with __ and the normal name is an alias.  */
18082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18083 choke me
18084 #else
18085 char (*f) () = $ac_func;
18086 #endif
18087 #ifdef __cplusplus
18088 }
18089 #endif
18090
18091 int
18092 main ()
18093 {
18094 return f != $ac_func;
18095   ;
18096   return 0;
18097 }
18098 _ACEOF
18099 rm -f conftest.$ac_objext conftest$ac_exeext
18100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18101   (eval $ac_link) 2>conftest.er1
18102   ac_status=$?
18103   grep -v '^ *+' conftest.er1 >conftest.err
18104   rm -f conftest.er1
18105   cat conftest.err >&5
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); } &&
18108          { ac_try='test -z "$ac_c_werror_flag"
18109                          || test ! -s conftest.err'
18110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111   (eval $ac_try) 2>&5
18112   ac_status=$?
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); }; } &&
18115          { ac_try='test -s conftest$ac_exeext'
18116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117   (eval $ac_try) 2>&5
18118   ac_status=$?
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); }; }; then
18121   eval "$as_ac_var=yes"
18122 else
18123   echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18125
18126 eval "$as_ac_var=no"
18127 fi
18128 rm -f conftest.err conftest.$ac_objext \
18129       conftest$ac_exeext conftest.$ac_ext
18130 fi
18131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18133 if test `eval echo '${'$as_ac_var'}'` = yes; then
18134   cat >>confdefs.h <<_ACEOF
18135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18136 _ACEOF
18137
18138 fi
18139 done
18140
18141
18142 # If resolver functions are not in libc check for -lnsl or -lresolv.
18143 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18144 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18145 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18146   echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148   cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h.  */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h.  */
18154 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18156 #define gethostbyname_r innocuous_gethostbyname_r
18157
18158 /* System header to define __stub macros and hopefully few prototypes,
18159     which can conflict with char gethostbyname_r (); below.
18160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18161     <limits.h> exists even on freestanding compilers.  */
18162
18163 #ifdef __STDC__
18164 # include <limits.h>
18165 #else
18166 # include <assert.h>
18167 #endif
18168
18169 #undef gethostbyname_r
18170
18171 /* Override any gcc2 internal prototype to avoid an error.  */
18172 #ifdef __cplusplus
18173 extern "C"
18174 {
18175 #endif
18176 /* We use char because int might match the return type of a gcc2
18177    builtin and then its argument prototype would still apply.  */
18178 char gethostbyname_r ();
18179 /* The GNU C library defines this for functions which it implements
18180     to always fail with ENOSYS.  Some functions are actually named
18181     something starting with __ and the normal name is an alias.  */
18182 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18183 choke me
18184 #else
18185 char (*f) () = gethostbyname_r;
18186 #endif
18187 #ifdef __cplusplus
18188 }
18189 #endif
18190
18191 int
18192 main ()
18193 {
18194 return f != gethostbyname_r;
18195   ;
18196   return 0;
18197 }
18198 _ACEOF
18199 rm -f conftest.$ac_objext conftest$ac_exeext
18200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18201   (eval $ac_link) 2>conftest.er1
18202   ac_status=$?
18203   grep -v '^ *+' conftest.er1 >conftest.err
18204   rm -f conftest.er1
18205   cat conftest.err >&5
18206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207   (exit $ac_status); } &&
18208          { ac_try='test -z "$ac_c_werror_flag"
18209                          || test ! -s conftest.err'
18210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211   (eval $ac_try) 2>&5
18212   ac_status=$?
18213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214   (exit $ac_status); }; } &&
18215          { ac_try='test -s conftest$ac_exeext'
18216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217   (eval $ac_try) 2>&5
18218   ac_status=$?
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); }; }; then
18221   ac_cv_func_gethostbyname_r=yes
18222 else
18223   echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18225
18226 ac_cv_func_gethostbyname_r=no
18227 fi
18228 rm -f conftest.err conftest.$ac_objext \
18229       conftest$ac_exeext conftest.$ac_ext
18230 fi
18231 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18232 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18233 if test $ac_cv_func_gethostbyname_r = yes; then
18234   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18235 echo "${ECHO_T}using libc's resolver" >&6
18236 else
18237
18238 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18239 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18240 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18241   echo $ECHO_N "(cached) $ECHO_C" >&6
18242 else
18243   ac_check_lib_save_LIBS=$LIBS
18244 LIBS="-lnsl  $LIBS"
18245 cat >conftest.$ac_ext <<_ACEOF
18246 /* confdefs.h.  */
18247 _ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h.  */
18251
18252 /* Override any gcc2 internal prototype to avoid an error.  */
18253 #ifdef __cplusplus
18254 extern "C"
18255 #endif
18256 /* We use char because int might match the return type of a gcc2
18257    builtin and then its argument prototype would still apply.  */
18258 char gethostbyname_r ();
18259 int
18260 main ()
18261 {
18262 gethostbyname_r ();
18263   ;
18264   return 0;
18265 }
18266 _ACEOF
18267 rm -f conftest.$ac_objext conftest$ac_exeext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18269   (eval $ac_link) 2>conftest.er1
18270   ac_status=$?
18271   grep -v '^ *+' conftest.er1 >conftest.err
18272   rm -f conftest.er1
18273   cat conftest.err >&5
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); } &&
18276          { ac_try='test -z "$ac_c_werror_flag"
18277                          || test ! -s conftest.err'
18278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279   (eval $ac_try) 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); }; } &&
18283          { ac_try='test -s conftest$ac_exeext'
18284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285   (eval $ac_try) 2>&5
18286   ac_status=$?
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); }; }; then
18289   ac_cv_lib_nsl_gethostbyname_r=yes
18290 else
18291   echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18293
18294 ac_cv_lib_nsl_gethostbyname_r=no
18295 fi
18296 rm -f conftest.err conftest.$ac_objext \
18297       conftest$ac_exeext conftest.$ac_ext
18298 LIBS=$ac_check_lib_save_LIBS
18299 fi
18300 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18301 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18302 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18303   cat >>confdefs.h <<_ACEOF
18304 #define HAVE_LIBNSL 1
18305 _ACEOF
18306
18307   LIBS="-lnsl $LIBS"
18308
18309 fi
18310
18311
18312 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18313 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18314 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18315   echo $ECHO_N "(cached) $ECHO_C" >&6
18316 else
18317   ac_check_lib_save_LIBS=$LIBS
18318 LIBS="-lresolv  $LIBS"
18319 cat >conftest.$ac_ext <<_ACEOF
18320 /* confdefs.h.  */
18321 _ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h.  */
18325
18326 /* Override any gcc2 internal prototype to avoid an error.  */
18327 #ifdef __cplusplus
18328 extern "C"
18329 #endif
18330 /* We use char because int might match the return type of a gcc2
18331    builtin and then its argument prototype would still apply.  */
18332 char gethostbyname_r ();
18333 int
18334 main ()
18335 {
18336 gethostbyname_r ();
18337   ;
18338   return 0;
18339 }
18340 _ACEOF
18341 rm -f conftest.$ac_objext conftest$ac_exeext
18342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18343   (eval $ac_link) 2>conftest.er1
18344   ac_status=$?
18345   grep -v '^ *+' conftest.er1 >conftest.err
18346   rm -f conftest.er1
18347   cat conftest.err >&5
18348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349   (exit $ac_status); } &&
18350          { ac_try='test -z "$ac_c_werror_flag"
18351                          || test ! -s conftest.err'
18352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353   (eval $ac_try) 2>&5
18354   ac_status=$?
18355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356   (exit $ac_status); }; } &&
18357          { ac_try='test -s conftest$ac_exeext'
18358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359   (eval $ac_try) 2>&5
18360   ac_status=$?
18361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362   (exit $ac_status); }; }; then
18363   ac_cv_lib_resolv_gethostbyname_r=yes
18364 else
18365   echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18367
18368 ac_cv_lib_resolv_gethostbyname_r=no
18369 fi
18370 rm -f conftest.err conftest.$ac_objext \
18371       conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18373 fi
18374 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18375 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18376 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18377   cat >>confdefs.h <<_ACEOF
18378 #define HAVE_LIBRESOLV 1
18379 _ACEOF
18380
18381   LIBS="-lresolv $LIBS"
18382
18383 fi
18384
18385 fi
18386
18387
18388
18389
18390
18391 for ac_func in inet_pton
18392 do
18393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18394 echo "$as_me:$LINENO: checking for $ac_func" >&5
18395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18396 if eval "test \"\${$as_ac_var+set}\" = set"; then
18397   echo $ECHO_N "(cached) $ECHO_C" >&6
18398 else
18399   cat >conftest.$ac_ext <<_ACEOF
18400 /* confdefs.h.  */
18401 _ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h.  */
18405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18407 #define $ac_func innocuous_$ac_func
18408
18409 /* System header to define __stub macros and hopefully few prototypes,
18410     which can conflict with char $ac_func (); below.
18411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18412     <limits.h> exists even on freestanding compilers.  */
18413
18414 #ifdef __STDC__
18415 # include <limits.h>
18416 #else
18417 # include <assert.h>
18418 #endif
18419
18420 #undef $ac_func
18421
18422 /* Override any gcc2 internal prototype to avoid an error.  */
18423 #ifdef __cplusplus
18424 extern "C"
18425 {
18426 #endif
18427 /* We use char because int might match the return type of a gcc2
18428    builtin and then its argument prototype would still apply.  */
18429 char $ac_func ();
18430 /* The GNU C library defines this for functions which it implements
18431     to always fail with ENOSYS.  Some functions are actually named
18432     something starting with __ and the normal name is an alias.  */
18433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18434 choke me
18435 #else
18436 char (*f) () = $ac_func;
18437 #endif
18438 #ifdef __cplusplus
18439 }
18440 #endif
18441
18442 int
18443 main ()
18444 {
18445 return f != $ac_func;
18446   ;
18447   return 0;
18448 }
18449 _ACEOF
18450 rm -f conftest.$ac_objext conftest$ac_exeext
18451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18452   (eval $ac_link) 2>conftest.er1
18453   ac_status=$?
18454   grep -v '^ *+' conftest.er1 >conftest.err
18455   rm -f conftest.er1
18456   cat conftest.err >&5
18457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); } &&
18459          { ac_try='test -z "$ac_c_werror_flag"
18460                          || test ! -s conftest.err'
18461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462   (eval $ac_try) 2>&5
18463   ac_status=$?
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); }; } &&
18466          { ac_try='test -s conftest$ac_exeext'
18467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468   (eval $ac_try) 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; }; then
18472   eval "$as_ac_var=yes"
18473 else
18474   echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477 eval "$as_ac_var=no"
18478 fi
18479 rm -f conftest.err conftest.$ac_objext \
18480       conftest$ac_exeext conftest.$ac_ext
18481 fi
18482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18484 if test `eval echo '${'$as_ac_var'}'` = yes; then
18485   cat >>confdefs.h <<_ACEOF
18486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18487 _ACEOF
18488  cat >>confdefs.h <<\_ACEOF
18489 #define HAVE_INET_PTON 1
18490 _ACEOF
18491
18492 fi
18493 done
18494
18495
18496 for ac_func in inet_ntop
18497 do
18498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18499 echo "$as_me:$LINENO: checking for $ac_func" >&5
18500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18501 if eval "test \"\${$as_ac_var+set}\" = set"; then
18502   echo $ECHO_N "(cached) $ECHO_C" >&6
18503 else
18504   cat >conftest.$ac_ext <<_ACEOF
18505 /* confdefs.h.  */
18506 _ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h.  */
18510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18512 #define $ac_func innocuous_$ac_func
18513
18514 /* System header to define __stub macros and hopefully few prototypes,
18515     which can conflict with char $ac_func (); below.
18516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18517     <limits.h> exists even on freestanding compilers.  */
18518
18519 #ifdef __STDC__
18520 # include <limits.h>
18521 #else
18522 # include <assert.h>
18523 #endif
18524
18525 #undef $ac_func
18526
18527 /* Override any gcc2 internal prototype to avoid an error.  */
18528 #ifdef __cplusplus
18529 extern "C"
18530 {
18531 #endif
18532 /* We use char because int might match the return type of a gcc2
18533    builtin and then its argument prototype would still apply.  */
18534 char $ac_func ();
18535 /* The GNU C library defines this for functions which it implements
18536     to always fail with ENOSYS.  Some functions are actually named
18537     something starting with __ and the normal name is an alias.  */
18538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18539 choke me
18540 #else
18541 char (*f) () = $ac_func;
18542 #endif
18543 #ifdef __cplusplus
18544 }
18545 #endif
18546
18547 int
18548 main ()
18549 {
18550 return f != $ac_func;
18551   ;
18552   return 0;
18553 }
18554 _ACEOF
18555 rm -f conftest.$ac_objext conftest$ac_exeext
18556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18557   (eval $ac_link) 2>conftest.er1
18558   ac_status=$?
18559   grep -v '^ *+' conftest.er1 >conftest.err
18560   rm -f conftest.er1
18561   cat conftest.err >&5
18562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563   (exit $ac_status); } &&
18564          { ac_try='test -z "$ac_c_werror_flag"
18565                          || test ! -s conftest.err'
18566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567   (eval $ac_try) 2>&5
18568   ac_status=$?
18569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570   (exit $ac_status); }; } &&
18571          { ac_try='test -s conftest$ac_exeext'
18572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573   (eval $ac_try) 2>&5
18574   ac_status=$?
18575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576   (exit $ac_status); }; }; then
18577   eval "$as_ac_var=yes"
18578 else
18579   echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18581
18582 eval "$as_ac_var=no"
18583 fi
18584 rm -f conftest.err conftest.$ac_objext \
18585       conftest$ac_exeext conftest.$ac_ext
18586 fi
18587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18589 if test `eval echo '${'$as_ac_var'}'` = yes; then
18590   cat >>confdefs.h <<_ACEOF
18591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18592 _ACEOF
18593  cat >>confdefs.h <<\_ACEOF
18594 #define HAVE_INET_NTOP 1
18595 _ACEOF
18596
18597 fi
18598 done
18599
18600
18601 for ac_func in gethostbyname2
18602 do
18603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18604 echo "$as_me:$LINENO: checking for $ac_func" >&5
18605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18606 if eval "test \"\${$as_ac_var+set}\" = set"; then
18607   echo $ECHO_N "(cached) $ECHO_C" >&6
18608 else
18609   cat >conftest.$ac_ext <<_ACEOF
18610 /* confdefs.h.  */
18611 _ACEOF
18612 cat confdefs.h >>conftest.$ac_ext
18613 cat >>conftest.$ac_ext <<_ACEOF
18614 /* end confdefs.h.  */
18615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18617 #define $ac_func innocuous_$ac_func
18618
18619 /* System header to define __stub macros and hopefully few prototypes,
18620     which can conflict with char $ac_func (); below.
18621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18622     <limits.h> exists even on freestanding compilers.  */
18623
18624 #ifdef __STDC__
18625 # include <limits.h>
18626 #else
18627 # include <assert.h>
18628 #endif
18629
18630 #undef $ac_func
18631
18632 /* Override any gcc2 internal prototype to avoid an error.  */
18633 #ifdef __cplusplus
18634 extern "C"
18635 {
18636 #endif
18637 /* We use char because int might match the return type of a gcc2
18638    builtin and then its argument prototype would still apply.  */
18639 char $ac_func ();
18640 /* The GNU C library defines this for functions which it implements
18641     to always fail with ENOSYS.  Some functions are actually named
18642     something starting with __ and the normal name is an alias.  */
18643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18644 choke me
18645 #else
18646 char (*f) () = $ac_func;
18647 #endif
18648 #ifdef __cplusplus
18649 }
18650 #endif
18651
18652 int
18653 main ()
18654 {
18655 return f != $ac_func;
18656   ;
18657   return 0;
18658 }
18659 _ACEOF
18660 rm -f conftest.$ac_objext conftest$ac_exeext
18661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18662   (eval $ac_link) 2>conftest.er1
18663   ac_status=$?
18664   grep -v '^ *+' conftest.er1 >conftest.err
18665   rm -f conftest.er1
18666   cat conftest.err >&5
18667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668   (exit $ac_status); } &&
18669          { ac_try='test -z "$ac_c_werror_flag"
18670                          || test ! -s conftest.err'
18671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672   (eval $ac_try) 2>&5
18673   ac_status=$?
18674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675   (exit $ac_status); }; } &&
18676          { ac_try='test -s conftest$ac_exeext'
18677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678   (eval $ac_try) 2>&5
18679   ac_status=$?
18680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681   (exit $ac_status); }; }; then
18682   eval "$as_ac_var=yes"
18683 else
18684   echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18686
18687 eval "$as_ac_var=no"
18688 fi
18689 rm -f conftest.err conftest.$ac_objext \
18690       conftest$ac_exeext conftest.$ac_ext
18691 fi
18692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18694 if test `eval echo '${'$as_ac_var'}'` = yes; then
18695   cat >>confdefs.h <<_ACEOF
18696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18697 _ACEOF
18698  cat >>confdefs.h <<\_ACEOF
18699 #define HAVE_GETHOSTBYNAME2 1
18700 _ACEOF
18701
18702 fi
18703 done
18704
18705
18706 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18707 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18708 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18709   echo $ECHO_N "(cached) $ECHO_C" >&6
18710 else
18711   cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h.  */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h.  */
18717 #include <sys/socket.h>
18718 int
18719 main ()
18720 {
18721 struct sockaddr s; s.sa_len;
18722   ;
18723   return 0;
18724 }
18725 _ACEOF
18726 rm -f conftest.$ac_objext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18728   (eval $ac_compile) 2>conftest.er1
18729   ac_status=$?
18730   grep -v '^ *+' conftest.er1 >conftest.err
18731   rm -f conftest.er1
18732   cat conftest.err >&5
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); } &&
18735          { ac_try='test -z "$ac_c_werror_flag"
18736                          || test ! -s conftest.err'
18737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738   (eval $ac_try) 2>&5
18739   ac_status=$?
18740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741   (exit $ac_status); }; } &&
18742          { ac_try='test -s conftest.$ac_objext'
18743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744   (eval $ac_try) 2>&5
18745   ac_status=$?
18746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747   (exit $ac_status); }; }; then
18748   ac_cv_struct_sockaddr_sa_len=yes
18749 else
18750   echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18752
18753 ac_cv_struct_sockaddr_sa_len=no
18754 fi
18755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18756 fi
18757 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18758 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18759
18760  if test $ac_cv_struct_sockaddr_sa_len = yes; then
18761
18762 cat >>confdefs.h <<\_ACEOF
18763 #define HAVE_SA_LEN 1
18764 _ACEOF
18765
18766  fi
18767
18768
18769 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18770 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18771 if test "${ac_cv_ipv6_support+set}" = set; then
18772   echo $ECHO_N "(cached) $ECHO_C" >&6
18773 else
18774   cat >conftest.$ac_ext <<_ACEOF
18775 /* confdefs.h.  */
18776 _ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h.  */
18780  #include <sys/types.h>
18781 #include <sys/socket.h>
18782 #include <netinet/in.h>
18783 int
18784 main ()
18785 {
18786 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18787  0;
18788   ;
18789   return 0;
18790 }
18791 _ACEOF
18792 rm -f conftest.$ac_objext conftest$ac_exeext
18793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18794   (eval $ac_link) 2>conftest.er1
18795   ac_status=$?
18796   grep -v '^ *+' conftest.er1 >conftest.err
18797   rm -f conftest.er1
18798   cat conftest.err >&5
18799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800   (exit $ac_status); } &&
18801          { ac_try='test -z "$ac_c_werror_flag"
18802                          || test ! -s conftest.err'
18803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804   (eval $ac_try) 2>&5
18805   ac_status=$?
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); }; } &&
18808          { ac_try='test -s conftest$ac_exeext'
18809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18810   (eval $ac_try) 2>&5
18811   ac_status=$?
18812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); }; }; then
18814   ac_cv_ipv6_support=yes
18815 else
18816   echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18818
18819 ac_cv_ipv6_support=no
18820 fi
18821 rm -f conftest.err conftest.$ac_objext \
18822       conftest$ac_exeext conftest.$ac_ext
18823 fi
18824 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
18825 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
18826
18827 if test "$ac_cv_ipv6_support" = yes; then
18828
18829 cat >>confdefs.h <<\_ACEOF
18830 #define HAVE_IPV6 1
18831 _ACEOF
18832
18833 fi
18834
18835
18836
18837
18838 for ac_func in strftime
18839 do
18840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18841 echo "$as_me:$LINENO: checking for $ac_func" >&5
18842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18843 if eval "test \"\${$as_ac_var+set}\" = set"; then
18844   echo $ECHO_N "(cached) $ECHO_C" >&6
18845 else
18846   cat >conftest.$ac_ext <<_ACEOF
18847 /* confdefs.h.  */
18848 _ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h.  */
18852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18854 #define $ac_func innocuous_$ac_func
18855
18856 /* System header to define __stub macros and hopefully few prototypes,
18857     which can conflict with char $ac_func (); below.
18858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18859     <limits.h> exists even on freestanding compilers.  */
18860
18861 #ifdef __STDC__
18862 # include <limits.h>
18863 #else
18864 # include <assert.h>
18865 #endif
18866
18867 #undef $ac_func
18868
18869 /* Override any gcc2 internal prototype to avoid an error.  */
18870 #ifdef __cplusplus
18871 extern "C"
18872 {
18873 #endif
18874 /* We use char because int might match the return type of a gcc2
18875    builtin and then its argument prototype would still apply.  */
18876 char $ac_func ();
18877 /* The GNU C library defines this for functions which it implements
18878     to always fail with ENOSYS.  Some functions are actually named
18879     something starting with __ and the normal name is an alias.  */
18880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18881 choke me
18882 #else
18883 char (*f) () = $ac_func;
18884 #endif
18885 #ifdef __cplusplus
18886 }
18887 #endif
18888
18889 int
18890 main ()
18891 {
18892 return f != $ac_func;
18893   ;
18894   return 0;
18895 }
18896 _ACEOF
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18899   (eval $ac_link) 2>conftest.er1
18900   ac_status=$?
18901   grep -v '^ *+' conftest.er1 >conftest.err
18902   rm -f conftest.er1
18903   cat conftest.err >&5
18904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905   (exit $ac_status); } &&
18906          { ac_try='test -z "$ac_c_werror_flag"
18907                          || test ! -s conftest.err'
18908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909   (eval $ac_try) 2>&5
18910   ac_status=$?
18911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912   (exit $ac_status); }; } &&
18913          { ac_try='test -s conftest$ac_exeext'
18914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915   (eval $ac_try) 2>&5
18916   ac_status=$?
18917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918   (exit $ac_status); }; }; then
18919   eval "$as_ac_var=yes"
18920 else
18921   echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18923
18924 eval "$as_ac_var=no"
18925 fi
18926 rm -f conftest.err conftest.$ac_objext \
18927       conftest$ac_exeext conftest.$ac_ext
18928 fi
18929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18931 if test `eval echo '${'$as_ac_var'}'` = yes; then
18932   cat >>confdefs.h <<_ACEOF
18933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18934 _ACEOF
18935
18936 else
18937   # strftime is in -lintl on SCO UNIX.
18938 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18939 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18940 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18941   echo $ECHO_N "(cached) $ECHO_C" >&6
18942 else
18943   ac_check_lib_save_LIBS=$LIBS
18944 LIBS="-lintl  $LIBS"
18945 cat >conftest.$ac_ext <<_ACEOF
18946 /* confdefs.h.  */
18947 _ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h.  */
18951
18952 /* Override any gcc2 internal prototype to avoid an error.  */
18953 #ifdef __cplusplus
18954 extern "C"
18955 #endif
18956 /* We use char because int might match the return type of a gcc2
18957    builtin and then its argument prototype would still apply.  */
18958 char strftime ();
18959 int
18960 main ()
18961 {
18962 strftime ();
18963   ;
18964   return 0;
18965 }
18966 _ACEOF
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18969   (eval $ac_link) 2>conftest.er1
18970   ac_status=$?
18971   grep -v '^ *+' conftest.er1 >conftest.err
18972   rm -f conftest.er1
18973   cat conftest.err >&5
18974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975   (exit $ac_status); } &&
18976          { ac_try='test -z "$ac_c_werror_flag"
18977                          || test ! -s conftest.err'
18978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979   (eval $ac_try) 2>&5
18980   ac_status=$?
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); }; } &&
18983          { ac_try='test -s conftest$ac_exeext'
18984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985   (eval $ac_try) 2>&5
18986   ac_status=$?
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); }; }; then
18989   ac_cv_lib_intl_strftime=yes
18990 else
18991   echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18993
18994 ac_cv_lib_intl_strftime=no
18995 fi
18996 rm -f conftest.err conftest.$ac_objext \
18997       conftest$ac_exeext conftest.$ac_ext
18998 LIBS=$ac_check_lib_save_LIBS
18999 fi
19000 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19001 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19002 if test $ac_cv_lib_intl_strftime = yes; then
19003   cat >>confdefs.h <<\_ACEOF
19004 #define HAVE_STRFTIME 1
19005 _ACEOF
19006
19007 LIBS="-lintl $LIBS"
19008 fi
19009
19010 fi
19011 done
19012
19013
19014 for ac_func in vprintf
19015 do
19016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19017 echo "$as_me:$LINENO: checking for $ac_func" >&5
19018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19019 if eval "test \"\${$as_ac_var+set}\" = set"; then
19020   echo $ECHO_N "(cached) $ECHO_C" >&6
19021 else
19022   cat >conftest.$ac_ext <<_ACEOF
19023 /* confdefs.h.  */
19024 _ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h.  */
19028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19030 #define $ac_func innocuous_$ac_func
19031
19032 /* System header to define __stub macros and hopefully few prototypes,
19033     which can conflict with char $ac_func (); below.
19034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19035     <limits.h> exists even on freestanding compilers.  */
19036
19037 #ifdef __STDC__
19038 # include <limits.h>
19039 #else
19040 # include <assert.h>
19041 #endif
19042
19043 #undef $ac_func
19044
19045 /* Override any gcc2 internal prototype to avoid an error.  */
19046 #ifdef __cplusplus
19047 extern "C"
19048 {
19049 #endif
19050 /* We use char because int might match the return type of a gcc2
19051    builtin and then its argument prototype would still apply.  */
19052 char $ac_func ();
19053 /* The GNU C library defines this for functions which it implements
19054     to always fail with ENOSYS.  Some functions are actually named
19055     something starting with __ and the normal name is an alias.  */
19056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19057 choke me
19058 #else
19059 char (*f) () = $ac_func;
19060 #endif
19061 #ifdef __cplusplus
19062 }
19063 #endif
19064
19065 int
19066 main ()
19067 {
19068 return f != $ac_func;
19069   ;
19070   return 0;
19071 }
19072 _ACEOF
19073 rm -f conftest.$ac_objext conftest$ac_exeext
19074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19075   (eval $ac_link) 2>conftest.er1
19076   ac_status=$?
19077   grep -v '^ *+' conftest.er1 >conftest.err
19078   rm -f conftest.er1
19079   cat conftest.err >&5
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); } &&
19082          { ac_try='test -z "$ac_c_werror_flag"
19083                          || test ! -s conftest.err'
19084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085   (eval $ac_try) 2>&5
19086   ac_status=$?
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); }; } &&
19089          { ac_try='test -s conftest$ac_exeext'
19090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091   (eval $ac_try) 2>&5
19092   ac_status=$?
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); }; }; then
19095   eval "$as_ac_var=yes"
19096 else
19097   echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100 eval "$as_ac_var=no"
19101 fi
19102 rm -f conftest.err conftest.$ac_objext \
19103       conftest$ac_exeext conftest.$ac_ext
19104 fi
19105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19107 if test `eval echo '${'$as_ac_var'}'` = yes; then
19108   cat >>confdefs.h <<_ACEOF
19109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19110 _ACEOF
19111
19112 echo "$as_me:$LINENO: checking for _doprnt" >&5
19113 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19114 if test "${ac_cv_func__doprnt+set}" = set; then
19115   echo $ECHO_N "(cached) $ECHO_C" >&6
19116 else
19117   cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h.  */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h.  */
19123 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19125 #define _doprnt innocuous__doprnt
19126
19127 /* System header to define __stub macros and hopefully few prototypes,
19128     which can conflict with char _doprnt (); below.
19129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19130     <limits.h> exists even on freestanding compilers.  */
19131
19132 #ifdef __STDC__
19133 # include <limits.h>
19134 #else
19135 # include <assert.h>
19136 #endif
19137
19138 #undef _doprnt
19139
19140 /* Override any gcc2 internal prototype to avoid an error.  */
19141 #ifdef __cplusplus
19142 extern "C"
19143 {
19144 #endif
19145 /* We use char because int might match the return type of a gcc2
19146    builtin and then its argument prototype would still apply.  */
19147 char _doprnt ();
19148 /* The GNU C library defines this for functions which it implements
19149     to always fail with ENOSYS.  Some functions are actually named
19150     something starting with __ and the normal name is an alias.  */
19151 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19152 choke me
19153 #else
19154 char (*f) () = _doprnt;
19155 #endif
19156 #ifdef __cplusplus
19157 }
19158 #endif
19159
19160 int
19161 main ()
19162 {
19163 return f != _doprnt;
19164   ;
19165   return 0;
19166 }
19167 _ACEOF
19168 rm -f conftest.$ac_objext conftest$ac_exeext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19170   (eval $ac_link) 2>conftest.er1
19171   ac_status=$?
19172   grep -v '^ *+' conftest.er1 >conftest.err
19173   rm -f conftest.er1
19174   cat conftest.err >&5
19175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176   (exit $ac_status); } &&
19177          { ac_try='test -z "$ac_c_werror_flag"
19178                          || test ! -s conftest.err'
19179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180   (eval $ac_try) 2>&5
19181   ac_status=$?
19182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); }; } &&
19184          { ac_try='test -s conftest$ac_exeext'
19185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186   (eval $ac_try) 2>&5
19187   ac_status=$?
19188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189   (exit $ac_status); }; }; then
19190   ac_cv_func__doprnt=yes
19191 else
19192   echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19194
19195 ac_cv_func__doprnt=no
19196 fi
19197 rm -f conftest.err conftest.$ac_objext \
19198       conftest$ac_exeext conftest.$ac_ext
19199 fi
19200 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19201 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19202 if test $ac_cv_func__doprnt = yes; then
19203
19204 cat >>confdefs.h <<\_ACEOF
19205 #define HAVE_DOPRNT 1
19206 _ACEOF
19207
19208 fi
19209
19210 fi
19211 done
19212
19213
19214 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19215 # for constant arguments.  Useless!
19216 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19217 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19218 if test "${ac_cv_working_alloca_h+set}" = set; then
19219   echo $ECHO_N "(cached) $ECHO_C" >&6
19220 else
19221   cat >conftest.$ac_ext <<_ACEOF
19222 /* confdefs.h.  */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h.  */
19227 #include <alloca.h>
19228 int
19229 main ()
19230 {
19231 char *p = (char *) alloca (2 * sizeof (int));
19232   ;
19233   return 0;
19234 }
19235 _ACEOF
19236 rm -f conftest.$ac_objext conftest$ac_exeext
19237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19238   (eval $ac_link) 2>conftest.er1
19239   ac_status=$?
19240   grep -v '^ *+' conftest.er1 >conftest.err
19241   rm -f conftest.er1
19242   cat conftest.err >&5
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); } &&
19245          { ac_try='test -z "$ac_c_werror_flag"
19246                          || test ! -s conftest.err'
19247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248   (eval $ac_try) 2>&5
19249   ac_status=$?
19250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251   (exit $ac_status); }; } &&
19252          { ac_try='test -s conftest$ac_exeext'
19253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254   (eval $ac_try) 2>&5
19255   ac_status=$?
19256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257   (exit $ac_status); }; }; then
19258   ac_cv_working_alloca_h=yes
19259 else
19260   echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19262
19263 ac_cv_working_alloca_h=no
19264 fi
19265 rm -f conftest.err conftest.$ac_objext \
19266       conftest$ac_exeext conftest.$ac_ext
19267 fi
19268 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19269 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19270 if test $ac_cv_working_alloca_h = yes; then
19271
19272 cat >>confdefs.h <<\_ACEOF
19273 #define HAVE_ALLOCA_H 1
19274 _ACEOF
19275
19276 fi
19277
19278 echo "$as_me:$LINENO: checking for alloca" >&5
19279 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19280 if test "${ac_cv_func_alloca_works+set}" = set; then
19281   echo $ECHO_N "(cached) $ECHO_C" >&6
19282 else
19283   cat >conftest.$ac_ext <<_ACEOF
19284 /* confdefs.h.  */
19285 _ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h.  */
19289 #ifdef __GNUC__
19290 # define alloca __builtin_alloca
19291 #else
19292 # ifdef _MSC_VER
19293 #  include <malloc.h>
19294 #  define alloca _alloca
19295 # else
19296 #  if HAVE_ALLOCA_H
19297 #   include <alloca.h>
19298 #  else
19299 #   ifdef _AIX
19300  #pragma alloca
19301 #   else
19302 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19303 char *alloca ();
19304 #    endif
19305 #   endif
19306 #  endif
19307 # endif
19308 #endif
19309
19310 int
19311 main ()
19312 {
19313 char *p = (char *) alloca (1);
19314   ;
19315   return 0;
19316 }
19317 _ACEOF
19318 rm -f conftest.$ac_objext conftest$ac_exeext
19319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19320   (eval $ac_link) 2>conftest.er1
19321   ac_status=$?
19322   grep -v '^ *+' conftest.er1 >conftest.err
19323   rm -f conftest.er1
19324   cat conftest.err >&5
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); } &&
19327          { ac_try='test -z "$ac_c_werror_flag"
19328                          || test ! -s conftest.err'
19329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330   (eval $ac_try) 2>&5
19331   ac_status=$?
19332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); }; } &&
19334          { ac_try='test -s conftest$ac_exeext'
19335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336   (eval $ac_try) 2>&5
19337   ac_status=$?
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); }; }; then
19340   ac_cv_func_alloca_works=yes
19341 else
19342   echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19344
19345 ac_cv_func_alloca_works=no
19346 fi
19347 rm -f conftest.err conftest.$ac_objext \
19348       conftest$ac_exeext conftest.$ac_ext
19349 fi
19350 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19351 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19352
19353 if test $ac_cv_func_alloca_works = yes; then
19354
19355 cat >>confdefs.h <<\_ACEOF
19356 #define HAVE_ALLOCA 1
19357 _ACEOF
19358
19359 else
19360   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19361 # that cause trouble.  Some versions do not even contain alloca or
19362 # contain a buggy version.  If you still want to use their alloca,
19363 # use ar to extract alloca.o from them instead of compiling alloca.c.
19364
19365 ALLOCA=alloca.$ac_objext
19366
19367 cat >>confdefs.h <<\_ACEOF
19368 #define C_ALLOCA 1
19369 _ACEOF
19370
19371
19372 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19373 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19374 if test "${ac_cv_os_cray+set}" = set; then
19375   echo $ECHO_N "(cached) $ECHO_C" >&6
19376 else
19377   cat >conftest.$ac_ext <<_ACEOF
19378 /* confdefs.h.  */
19379 _ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h.  */
19383 #if defined(CRAY) && ! defined(CRAY2)
19384 webecray
19385 #else
19386 wenotbecray
19387 #endif
19388
19389 _ACEOF
19390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19391   $EGREP "webecray" >/dev/null 2>&1; then
19392   ac_cv_os_cray=yes
19393 else
19394   ac_cv_os_cray=no
19395 fi
19396 rm -f conftest*
19397
19398 fi
19399 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19400 echo "${ECHO_T}$ac_cv_os_cray" >&6
19401 if test $ac_cv_os_cray = yes; then
19402   for ac_func in _getb67 GETB67 getb67; do
19403     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19404 echo "$as_me:$LINENO: checking for $ac_func" >&5
19405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19406 if eval "test \"\${$as_ac_var+set}\" = set"; then
19407   echo $ECHO_N "(cached) $ECHO_C" >&6
19408 else
19409   cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h.  */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h.  */
19415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19417 #define $ac_func innocuous_$ac_func
19418
19419 /* System header to define __stub macros and hopefully few prototypes,
19420     which can conflict with char $ac_func (); below.
19421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19422     <limits.h> exists even on freestanding compilers.  */
19423
19424 #ifdef __STDC__
19425 # include <limits.h>
19426 #else
19427 # include <assert.h>
19428 #endif
19429
19430 #undef $ac_func
19431
19432 /* Override any gcc2 internal prototype to avoid an error.  */
19433 #ifdef __cplusplus
19434 extern "C"
19435 {
19436 #endif
19437 /* We use char because int might match the return type of a gcc2
19438    builtin and then its argument prototype would still apply.  */
19439 char $ac_func ();
19440 /* The GNU C library defines this for functions which it implements
19441     to always fail with ENOSYS.  Some functions are actually named
19442     something starting with __ and the normal name is an alias.  */
19443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19444 choke me
19445 #else
19446 char (*f) () = $ac_func;
19447 #endif
19448 #ifdef __cplusplus
19449 }
19450 #endif
19451
19452 int
19453 main ()
19454 {
19455 return f != $ac_func;
19456   ;
19457   return 0;
19458 }
19459 _ACEOF
19460 rm -f conftest.$ac_objext conftest$ac_exeext
19461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19462   (eval $ac_link) 2>conftest.er1
19463   ac_status=$?
19464   grep -v '^ *+' conftest.er1 >conftest.err
19465   rm -f conftest.er1
19466   cat conftest.err >&5
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); } &&
19469          { ac_try='test -z "$ac_c_werror_flag"
19470                          || test ! -s conftest.err'
19471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472   (eval $ac_try) 2>&5
19473   ac_status=$?
19474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475   (exit $ac_status); }; } &&
19476          { ac_try='test -s conftest$ac_exeext'
19477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478   (eval $ac_try) 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); }; }; then
19482   eval "$as_ac_var=yes"
19483 else
19484   echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19486
19487 eval "$as_ac_var=no"
19488 fi
19489 rm -f conftest.err conftest.$ac_objext \
19490       conftest$ac_exeext conftest.$ac_ext
19491 fi
19492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19494 if test `eval echo '${'$as_ac_var'}'` = yes; then
19495
19496 cat >>confdefs.h <<_ACEOF
19497 #define CRAY_STACKSEG_END $ac_func
19498 _ACEOF
19499
19500     break
19501 fi
19502
19503   done
19504 fi
19505
19506 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19507 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19508 if test "${ac_cv_c_stack_direction+set}" = set; then
19509   echo $ECHO_N "(cached) $ECHO_C" >&6
19510 else
19511   if test "$cross_compiling" = yes; then
19512   ac_cv_c_stack_direction=0
19513 else
19514   cat >conftest.$ac_ext <<_ACEOF
19515 /* confdefs.h.  */
19516 _ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h.  */
19520 int
19521 find_stack_direction ()
19522 {
19523   static char *addr = 0;
19524   auto char dummy;
19525   if (addr == 0)
19526     {
19527       addr = &dummy;
19528       return find_stack_direction ();
19529     }
19530   else
19531     return (&dummy > addr) ? 1 : -1;
19532 }
19533
19534 int
19535 main ()
19536 {
19537   exit (find_stack_direction () < 0);
19538 }
19539 _ACEOF
19540 rm -f conftest$ac_exeext
19541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19542   (eval $ac_link) 2>&5
19543   ac_status=$?
19544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547   (eval $ac_try) 2>&5
19548   ac_status=$?
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); }; }; then
19551   ac_cv_c_stack_direction=1
19552 else
19553   echo "$as_me: program exited with status $ac_status" >&5
19554 echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19556
19557 ( exit $ac_status )
19558 ac_cv_c_stack_direction=-1
19559 fi
19560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19561 fi
19562 fi
19563 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19564 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19565
19566 cat >>confdefs.h <<_ACEOF
19567 #define STACK_DIRECTION $ac_cv_c_stack_direction
19568 _ACEOF
19569
19570
19571 fi
19572
19573 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19574 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19575 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19576 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19577   echo $ECHO_N "(cached) $ECHO_C" >&6
19578 else
19579   ac_check_lib_save_LIBS=$LIBS
19580 LIBS="-lsun  $LIBS"
19581 cat >conftest.$ac_ext <<_ACEOF
19582 /* confdefs.h.  */
19583 _ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h.  */
19587
19588 /* Override any gcc2 internal prototype to avoid an error.  */
19589 #ifdef __cplusplus
19590 extern "C"
19591 #endif
19592 /* We use char because int might match the return type of a gcc2
19593    builtin and then its argument prototype would still apply.  */
19594 char getmntent ();
19595 int
19596 main ()
19597 {
19598 getmntent ();
19599   ;
19600   return 0;
19601 }
19602 _ACEOF
19603 rm -f conftest.$ac_objext conftest$ac_exeext
19604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19605   (eval $ac_link) 2>conftest.er1
19606   ac_status=$?
19607   grep -v '^ *+' conftest.er1 >conftest.err
19608   rm -f conftest.er1
19609   cat conftest.err >&5
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); } &&
19612          { ac_try='test -z "$ac_c_werror_flag"
19613                          || test ! -s conftest.err'
19614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615   (eval $ac_try) 2>&5
19616   ac_status=$?
19617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618   (exit $ac_status); }; } &&
19619          { ac_try='test -s conftest$ac_exeext'
19620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621   (eval $ac_try) 2>&5
19622   ac_status=$?
19623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624   (exit $ac_status); }; }; then
19625   ac_cv_lib_sun_getmntent=yes
19626 else
19627   echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19629
19630 ac_cv_lib_sun_getmntent=no
19631 fi
19632 rm -f conftest.err conftest.$ac_objext \
19633       conftest$ac_exeext conftest.$ac_ext
19634 LIBS=$ac_check_lib_save_LIBS
19635 fi
19636 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19637 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19638 if test $ac_cv_lib_sun_getmntent = yes; then
19639   LIBS="-lsun $LIBS"
19640 else
19641   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19642 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19643 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19644   echo $ECHO_N "(cached) $ECHO_C" >&6
19645 else
19646   ac_check_lib_save_LIBS=$LIBS
19647 LIBS="-lseq  $LIBS"
19648 cat >conftest.$ac_ext <<_ACEOF
19649 /* confdefs.h.  */
19650 _ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h.  */
19654
19655 /* Override any gcc2 internal prototype to avoid an error.  */
19656 #ifdef __cplusplus
19657 extern "C"
19658 #endif
19659 /* We use char because int might match the return type of a gcc2
19660    builtin and then its argument prototype would still apply.  */
19661 char getmntent ();
19662 int
19663 main ()
19664 {
19665 getmntent ();
19666   ;
19667   return 0;
19668 }
19669 _ACEOF
19670 rm -f conftest.$ac_objext conftest$ac_exeext
19671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19672   (eval $ac_link) 2>conftest.er1
19673   ac_status=$?
19674   grep -v '^ *+' conftest.er1 >conftest.err
19675   rm -f conftest.er1
19676   cat conftest.err >&5
19677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); } &&
19679          { ac_try='test -z "$ac_c_werror_flag"
19680                          || test ! -s conftest.err'
19681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682   (eval $ac_try) 2>&5
19683   ac_status=$?
19684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685   (exit $ac_status); }; } &&
19686          { ac_try='test -s conftest$ac_exeext'
19687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688   (eval $ac_try) 2>&5
19689   ac_status=$?
19690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691   (exit $ac_status); }; }; then
19692   ac_cv_lib_seq_getmntent=yes
19693 else
19694   echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19696
19697 ac_cv_lib_seq_getmntent=no
19698 fi
19699 rm -f conftest.err conftest.$ac_objext \
19700       conftest$ac_exeext conftest.$ac_ext
19701 LIBS=$ac_check_lib_save_LIBS
19702 fi
19703 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19704 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19705 if test $ac_cv_lib_seq_getmntent = yes; then
19706   LIBS="-lseq $LIBS"
19707 else
19708   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19709 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19710 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19711   echo $ECHO_N "(cached) $ECHO_C" >&6
19712 else
19713   ac_check_lib_save_LIBS=$LIBS
19714 LIBS="-lgen  $LIBS"
19715 cat >conftest.$ac_ext <<_ACEOF
19716 /* confdefs.h.  */
19717 _ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h.  */
19721
19722 /* Override any gcc2 internal prototype to avoid an error.  */
19723 #ifdef __cplusplus
19724 extern "C"
19725 #endif
19726 /* We use char because int might match the return type of a gcc2
19727    builtin and then its argument prototype would still apply.  */
19728 char getmntent ();
19729 int
19730 main ()
19731 {
19732 getmntent ();
19733   ;
19734   return 0;
19735 }
19736 _ACEOF
19737 rm -f conftest.$ac_objext conftest$ac_exeext
19738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19739   (eval $ac_link) 2>conftest.er1
19740   ac_status=$?
19741   grep -v '^ *+' conftest.er1 >conftest.err
19742   rm -f conftest.er1
19743   cat conftest.err >&5
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); } &&
19746          { ac_try='test -z "$ac_c_werror_flag"
19747                          || test ! -s conftest.err'
19748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749   (eval $ac_try) 2>&5
19750   ac_status=$?
19751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752   (exit $ac_status); }; } &&
19753          { ac_try='test -s conftest$ac_exeext'
19754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755   (eval $ac_try) 2>&5
19756   ac_status=$?
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); }; }; then
19759   ac_cv_lib_gen_getmntent=yes
19760 else
19761   echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19763
19764 ac_cv_lib_gen_getmntent=no
19765 fi
19766 rm -f conftest.err conftest.$ac_objext \
19767       conftest$ac_exeext conftest.$ac_ext
19768 LIBS=$ac_check_lib_save_LIBS
19769 fi
19770 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19771 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19772 if test $ac_cv_lib_gen_getmntent = yes; then
19773   LIBS="-lgen $LIBS"
19774 fi
19775
19776 fi
19777
19778 fi
19779
19780
19781 for ac_func in getmntent
19782 do
19783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19784 echo "$as_me:$LINENO: checking for $ac_func" >&5
19785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19786 if eval "test \"\${$as_ac_var+set}\" = set"; then
19787   echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789   cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h.  */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h.  */
19795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19797 #define $ac_func innocuous_$ac_func
19798
19799 /* System header to define __stub macros and hopefully few prototypes,
19800     which can conflict with char $ac_func (); below.
19801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19802     <limits.h> exists even on freestanding compilers.  */
19803
19804 #ifdef __STDC__
19805 # include <limits.h>
19806 #else
19807 # include <assert.h>
19808 #endif
19809
19810 #undef $ac_func
19811
19812 /* Override any gcc2 internal prototype to avoid an error.  */
19813 #ifdef __cplusplus
19814 extern "C"
19815 {
19816 #endif
19817 /* We use char because int might match the return type of a gcc2
19818    builtin and then its argument prototype would still apply.  */
19819 char $ac_func ();
19820 /* The GNU C library defines this for functions which it implements
19821     to always fail with ENOSYS.  Some functions are actually named
19822     something starting with __ and the normal name is an alias.  */
19823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19824 choke me
19825 #else
19826 char (*f) () = $ac_func;
19827 #endif
19828 #ifdef __cplusplus
19829 }
19830 #endif
19831
19832 int
19833 main ()
19834 {
19835 return f != $ac_func;
19836   ;
19837   return 0;
19838 }
19839 _ACEOF
19840 rm -f conftest.$ac_objext conftest$ac_exeext
19841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19842   (eval $ac_link) 2>conftest.er1
19843   ac_status=$?
19844   grep -v '^ *+' conftest.er1 >conftest.err
19845   rm -f conftest.er1
19846   cat conftest.err >&5
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); } &&
19849          { ac_try='test -z "$ac_c_werror_flag"
19850                          || test ! -s conftest.err'
19851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852   (eval $ac_try) 2>&5
19853   ac_status=$?
19854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855   (exit $ac_status); }; } &&
19856          { ac_try='test -s conftest$ac_exeext'
19857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858   (eval $ac_try) 2>&5
19859   ac_status=$?
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); }; }; then
19862   eval "$as_ac_var=yes"
19863 else
19864   echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19866
19867 eval "$as_ac_var=no"
19868 fi
19869 rm -f conftest.err conftest.$ac_objext \
19870       conftest$ac_exeext conftest.$ac_ext
19871 fi
19872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19874 if test `eval echo '${'$as_ac_var'}'` = yes; then
19875   cat >>confdefs.h <<_ACEOF
19876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19877 _ACEOF
19878
19879 fi
19880 done
19881
19882
19883 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19884 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19885 if test "${ac_cv_func_closedir_void+set}" = set; then
19886   echo $ECHO_N "(cached) $ECHO_C" >&6
19887 else
19888   if test "$cross_compiling" = yes; then
19889   ac_cv_func_closedir_void=yes
19890 else
19891   cat >conftest.$ac_ext <<_ACEOF
19892 /* confdefs.h.  */
19893 _ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h.  */
19897 $ac_includes_default
19898 #include <$ac_header_dirent>
19899 #ifndef __cplusplus
19900 int closedir ();
19901 #endif
19902
19903 int
19904 main ()
19905 {
19906 exit (closedir (opendir (".")) != 0);
19907   ;
19908   return 0;
19909 }
19910 _ACEOF
19911 rm -f conftest$ac_exeext
19912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19913   (eval $ac_link) 2>&5
19914   ac_status=$?
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918   (eval $ac_try) 2>&5
19919   ac_status=$?
19920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921   (exit $ac_status); }; }; then
19922   ac_cv_func_closedir_void=no
19923 else
19924   echo "$as_me: program exited with status $ac_status" >&5
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19927
19928 ( exit $ac_status )
19929 ac_cv_func_closedir_void=yes
19930 fi
19931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19932 fi
19933 fi
19934 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
19935 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
19936 if test $ac_cv_func_closedir_void = yes; then
19937
19938 cat >>confdefs.h <<\_ACEOF
19939 #define CLOSEDIR_VOID 1
19940 _ACEOF
19941
19942 fi
19943
19944 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19945 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19946 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19947   echo $ECHO_N "(cached) $ECHO_C" >&6
19948 else
19949   if test "$cross_compiling" = yes; then
19950   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19951 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19952    { (exit 1); exit 1; }; }
19953 else
19954   cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h.  */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h.  */
19960 #if HAVE_UNISTD_H
19961 # include <unistd.h>
19962 #endif
19963
19964 int
19965 main ()
19966 {
19967 /* If this system has a BSD-style setpgrp which takes arguments,
19968   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19969   exit successfully. */
19970   exit (setpgrp (1,1) == -1 ? 0 : 1);
19971   ;
19972   return 0;
19973 }
19974 _ACEOF
19975 rm -f conftest$ac_exeext
19976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19977   (eval $ac_link) 2>&5
19978   ac_status=$?
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982   (eval $ac_try) 2>&5
19983   ac_status=$?
19984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985   (exit $ac_status); }; }; then
19986   ac_cv_func_setpgrp_void=no
19987 else
19988   echo "$as_me: program exited with status $ac_status" >&5
19989 echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19991
19992 ( exit $ac_status )
19993 ac_cv_func_setpgrp_void=yes
19994 fi
19995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19996 fi
19997 fi
19998 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19999 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20000 if test $ac_cv_func_setpgrp_void = yes; then
20001
20002 cat >>confdefs.h <<\_ACEOF
20003 #define SETPGRP_VOID 1
20004 _ACEOF
20005
20006 fi
20007                       # AC_FUNC_FNMATCH    dnl use local version
20008
20009
20010 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20011 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20012 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20013   echo $ECHO_N "(cached) $ECHO_C" >&6
20014 else
20015   ac_check_lib_save_LIBS=$LIBS
20016 LIBS="-lxpg4  $LIBS"
20017 cat >conftest.$ac_ext <<_ACEOF
20018 /* confdefs.h.  */
20019 _ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h.  */
20023
20024 /* Override any gcc2 internal prototype to avoid an error.  */
20025 #ifdef __cplusplus
20026 extern "C"
20027 #endif
20028 /* We use char because int might match the return type of a gcc2
20029    builtin and then its argument prototype would still apply.  */
20030 char setlocale ();
20031 int
20032 main ()
20033 {
20034 setlocale ();
20035   ;
20036   return 0;
20037 }
20038 _ACEOF
20039 rm -f conftest.$ac_objext conftest$ac_exeext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20041   (eval $ac_link) 2>conftest.er1
20042   ac_status=$?
20043   grep -v '^ *+' conftest.er1 >conftest.err
20044   rm -f conftest.er1
20045   cat conftest.err >&5
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); } &&
20048          { ac_try='test -z "$ac_c_werror_flag"
20049                          || test ! -s conftest.err'
20050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051   (eval $ac_try) 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); }; } &&
20055          { ac_try='test -s conftest$ac_exeext'
20056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057   (eval $ac_try) 2>&5
20058   ac_status=$?
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); }; }; then
20061   ac_cv_lib_xpg4_setlocale=yes
20062 else
20063   echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066 ac_cv_lib_xpg4_setlocale=no
20067 fi
20068 rm -f conftest.err conftest.$ac_objext \
20069       conftest$ac_exeext conftest.$ac_ext
20070 LIBS=$ac_check_lib_save_LIBS
20071 fi
20072 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20073 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20074 if test $ac_cv_lib_xpg4_setlocale = yes; then
20075   LIBS="$LIBS -lxpg4"
20076 fi
20077
20078
20079
20080
20081 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20082 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20083 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20084   echo $ECHO_N "(cached) $ECHO_C" >&6
20085 else
20086   ac_check_lib_save_LIBS=$LIBS
20087 LIBS="-lsun  $LIBS"
20088 cat >conftest.$ac_ext <<_ACEOF
20089 /* confdefs.h.  */
20090 _ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h.  */
20094
20095 /* Override any gcc2 internal prototype to avoid an error.  */
20096 #ifdef __cplusplus
20097 extern "C"
20098 #endif
20099 /* We use char because int might match the return type of a gcc2
20100    builtin and then its argument prototype would still apply.  */
20101 char getpwnam ();
20102 int
20103 main ()
20104 {
20105 getpwnam ();
20106   ;
20107   return 0;
20108 }
20109 _ACEOF
20110 rm -f conftest.$ac_objext conftest$ac_exeext
20111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20112   (eval $ac_link) 2>conftest.er1
20113   ac_status=$?
20114   grep -v '^ *+' conftest.er1 >conftest.err
20115   rm -f conftest.er1
20116   cat conftest.err >&5
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); } &&
20119          { ac_try='test -z "$ac_c_werror_flag"
20120                          || test ! -s conftest.err'
20121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122   (eval $ac_try) 2>&5
20123   ac_status=$?
20124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125   (exit $ac_status); }; } &&
20126          { ac_try='test -s conftest$ac_exeext'
20127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128   (eval $ac_try) 2>&5
20129   ac_status=$?
20130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131   (exit $ac_status); }; }; then
20132   ac_cv_lib_sun_getpwnam=yes
20133 else
20134   echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20136
20137 ac_cv_lib_sun_getpwnam=no
20138 fi
20139 rm -f conftest.err conftest.$ac_objext \
20140       conftest$ac_exeext conftest.$ac_ext
20141 LIBS=$ac_check_lib_save_LIBS
20142 fi
20143 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20144 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20145 if test $ac_cv_lib_sun_getpwnam = yes; then
20146   cat >>confdefs.h <<_ACEOF
20147 #define HAVE_LIBSUN 1
20148 _ACEOF
20149
20150   LIBS="-lsun $LIBS"
20151
20152 fi
20153
20154
20155
20156 for ac_header in zlib.h
20157 do
20158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20160   echo "$as_me:$LINENO: checking for $ac_header" >&5
20161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20163   echo $ECHO_N "(cached) $ECHO_C" >&6
20164 fi
20165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20167 else
20168   # Is the header compilable?
20169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20171 cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h.  */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h.  */
20177 $ac_includes_default
20178 #include <$ac_header>
20179 _ACEOF
20180 rm -f conftest.$ac_objext
20181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20182   (eval $ac_compile) 2>conftest.er1
20183   ac_status=$?
20184   grep -v '^ *+' conftest.er1 >conftest.err
20185   rm -f conftest.er1
20186   cat conftest.err >&5
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); } &&
20189          { ac_try='test -z "$ac_c_werror_flag"
20190                          || test ! -s conftest.err'
20191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192   (eval $ac_try) 2>&5
20193   ac_status=$?
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); }; } &&
20196          { ac_try='test -s conftest.$ac_objext'
20197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198   (eval $ac_try) 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; }; then
20202   ac_header_compiler=yes
20203 else
20204   echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20206
20207 ac_header_compiler=no
20208 fi
20209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20211 echo "${ECHO_T}$ac_header_compiler" >&6
20212
20213 # Is the header present?
20214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20216 cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h.  */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h.  */
20222 #include <$ac_header>
20223 _ACEOF
20224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20225   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20226   ac_status=$?
20227   grep -v '^ *+' conftest.er1 >conftest.err
20228   rm -f conftest.er1
20229   cat conftest.err >&5
20230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); } >/dev/null; then
20232   if test -s conftest.err; then
20233     ac_cpp_err=$ac_c_preproc_warn_flag
20234     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20235   else
20236     ac_cpp_err=
20237   fi
20238 else
20239   ac_cpp_err=yes
20240 fi
20241 if test -z "$ac_cpp_err"; then
20242   ac_header_preproc=yes
20243 else
20244   echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20246
20247   ac_header_preproc=no
20248 fi
20249 rm -f conftest.err conftest.$ac_ext
20250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20251 echo "${ECHO_T}$ac_header_preproc" >&6
20252
20253 # So?  What about this header?
20254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20255   yes:no: )
20256     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20260     ac_header_preproc=yes
20261     ;;
20262   no:yes:* )
20263     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20265     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20266 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20267     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20269     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20270 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20273     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20275     (
20276       cat <<\_ASBOX
20277 ## ------------------------------------------ ##
20278 ## Report this to the AC_PACKAGE_NAME lists.  ##
20279 ## ------------------------------------------ ##
20280 _ASBOX
20281     ) |
20282       sed "s/^/$as_me: WARNING:     /" >&2
20283     ;;
20284 esac
20285 echo "$as_me:$LINENO: checking for $ac_header" >&5
20286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20288   echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290   eval "$as_ac_Header=\$ac_header_preproc"
20291 fi
20292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20294
20295 fi
20296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20297   cat >>confdefs.h <<_ACEOF
20298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20299 _ACEOF
20300
20301 fi
20302
20303 done
20304
20305 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20306 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20307 if test "${ac_cv_lib_z_deflate+set}" = set; then
20308   echo $ECHO_N "(cached) $ECHO_C" >&6
20309 else
20310   ac_check_lib_save_LIBS=$LIBS
20311 LIBS="-lz  $LIBS"
20312 cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318
20319 /* Override any gcc2 internal prototype to avoid an error.  */
20320 #ifdef __cplusplus
20321 extern "C"
20322 #endif
20323 /* We use char because int might match the return type of a gcc2
20324    builtin and then its argument prototype would still apply.  */
20325 char deflate ();
20326 int
20327 main ()
20328 {
20329 deflate ();
20330   ;
20331   return 0;
20332 }
20333 _ACEOF
20334 rm -f conftest.$ac_objext conftest$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336   (eval $ac_link) 2>conftest.er1
20337   ac_status=$?
20338   grep -v '^ *+' conftest.er1 >conftest.err
20339   rm -f conftest.er1
20340   cat conftest.err >&5
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); } &&
20343          { ac_try='test -z "$ac_c_werror_flag"
20344                          || test ! -s conftest.err'
20345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346   (eval $ac_try) 2>&5
20347   ac_status=$?
20348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349   (exit $ac_status); }; } &&
20350          { ac_try='test -s conftest$ac_exeext'
20351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352   (eval $ac_try) 2>&5
20353   ac_status=$?
20354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); }; }; then
20356   ac_cv_lib_z_deflate=yes
20357 else
20358   echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.$ac_ext >&5
20360
20361 ac_cv_lib_z_deflate=no
20362 fi
20363 rm -f conftest.err conftest.$ac_objext \
20364       conftest$ac_exeext conftest.$ac_ext
20365 LIBS=$ac_check_lib_save_LIBS
20366 fi
20367 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20368 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20369 if test $ac_cv_lib_z_deflate = yes; then
20370   FDLIBS="-lz"
20371 fi
20372
20373 have_zlib=no
20374 if test x$FDLIBS = x-lz; then
20375   cat >>confdefs.h <<\_ACEOF
20376 #define HAVE_LIBZ 1
20377 _ACEOF
20378
20379   have_zlib=yes
20380 fi
20381
20382 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20383   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20384 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20385 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20386   echo $ECHO_N "(cached) $ECHO_C" >&6
20387 fi
20388 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20389 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20390 else
20391   # Is the header compilable?
20392 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20393 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20394 cat >conftest.$ac_ext <<_ACEOF
20395 /* confdefs.h.  */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h.  */
20400 $ac_includes_default
20401 #include <sys/acl.h>
20402 _ACEOF
20403 rm -f conftest.$ac_objext
20404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20405   (eval $ac_compile) 2>conftest.er1
20406   ac_status=$?
20407   grep -v '^ *+' conftest.er1 >conftest.err
20408   rm -f conftest.er1
20409   cat conftest.err >&5
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); } &&
20412          { ac_try='test -z "$ac_c_werror_flag"
20413                          || test ! -s conftest.err'
20414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415   (eval $ac_try) 2>&5
20416   ac_status=$?
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); }; } &&
20419          { ac_try='test -s conftest.$ac_objext'
20420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421   (eval $ac_try) 2>&5
20422   ac_status=$?
20423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424   (exit $ac_status); }; }; then
20425   ac_header_compiler=yes
20426 else
20427   echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20429
20430 ac_header_compiler=no
20431 fi
20432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20434 echo "${ECHO_T}$ac_header_compiler" >&6
20435
20436 # Is the header present?
20437 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20438 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20439 cat >conftest.$ac_ext <<_ACEOF
20440 /* confdefs.h.  */
20441 _ACEOF
20442 cat confdefs.h >>conftest.$ac_ext
20443 cat >>conftest.$ac_ext <<_ACEOF
20444 /* end confdefs.h.  */
20445 #include <sys/acl.h>
20446 _ACEOF
20447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20448   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20449   ac_status=$?
20450   grep -v '^ *+' conftest.er1 >conftest.err
20451   rm -f conftest.er1
20452   cat conftest.err >&5
20453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454   (exit $ac_status); } >/dev/null; then
20455   if test -s conftest.err; then
20456     ac_cpp_err=$ac_c_preproc_warn_flag
20457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20458   else
20459     ac_cpp_err=
20460   fi
20461 else
20462   ac_cpp_err=yes
20463 fi
20464 if test -z "$ac_cpp_err"; then
20465   ac_header_preproc=yes
20466 else
20467   echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20469
20470   ac_header_preproc=no
20471 fi
20472 rm -f conftest.err conftest.$ac_ext
20473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20474 echo "${ECHO_T}$ac_header_preproc" >&6
20475
20476 # So?  What about this header?
20477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20478   yes:no: )
20479     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20480 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20481     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20482 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20483     ac_header_preproc=yes
20484     ;;
20485   no:yes:* )
20486     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20487 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20488     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20489 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20490     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20491 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20492     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20493 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20494     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20495 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20496     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20497 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20498     (
20499       cat <<\_ASBOX
20500 ## ------------------------------------------ ##
20501 ## Report this to the AC_PACKAGE_NAME lists.  ##
20502 ## ------------------------------------------ ##
20503 _ASBOX
20504     ) |
20505       sed "s/^/$as_me: WARNING:     /" >&2
20506     ;;
20507 esac
20508 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20509 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20510 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20511   echo $ECHO_N "(cached) $ECHO_C" >&6
20512 else
20513   ac_cv_header_sys_acl_h=$ac_header_preproc
20514 fi
20515 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20516 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20517
20518 fi
20519
20520
20521 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20522 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20523 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20524   echo $ECHO_N "(cached) $ECHO_C" >&6
20525 else
20526   ac_check_lib_save_LIBS=$LIBS
20527 LIBS="-lacl  $LIBS"
20528 cat >conftest.$ac_ext <<_ACEOF
20529 /* confdefs.h.  */
20530 _ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h.  */
20534
20535 /* Override any gcc2 internal prototype to avoid an error.  */
20536 #ifdef __cplusplus
20537 extern "C"
20538 #endif
20539 /* We use char because int might match the return type of a gcc2
20540    builtin and then its argument prototype would still apply.  */
20541 char acl_get_file ();
20542 int
20543 main ()
20544 {
20545 acl_get_file ();
20546   ;
20547   return 0;
20548 }
20549 _ACEOF
20550 rm -f conftest.$ac_objext conftest$ac_exeext
20551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20552   (eval $ac_link) 2>conftest.er1
20553   ac_status=$?
20554   grep -v '^ *+' conftest.er1 >conftest.err
20555   rm -f conftest.er1
20556   cat conftest.err >&5
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); } &&
20559          { ac_try='test -z "$ac_c_werror_flag"
20560                          || test ! -s conftest.err'
20561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562   (eval $ac_try) 2>&5
20563   ac_status=$?
20564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565   (exit $ac_status); }; } &&
20566          { ac_try='test -s conftest$ac_exeext'
20567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568   (eval $ac_try) 2>&5
20569   ac_status=$?
20570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); }; }; then
20572   ac_cv_lib_acl_acl_get_file=yes
20573 else
20574   echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20576
20577 ac_cv_lib_acl_acl_get_file=no
20578 fi
20579 rm -f conftest.err conftest.$ac_objext \
20580       conftest$ac_exeext conftest.$ac_ext
20581 LIBS=$ac_check_lib_save_LIBS
20582 fi
20583 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20584 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20585 if test $ac_cv_lib_acl_acl_get_file = yes; then
20586   FDLIBS="-lacl $FDLIBS"
20587 fi
20588
20589 have_acl=no
20590 if test $ac_cv_lib_acl_acl_get_file = yes; then
20591    cat >>confdefs.h <<\_ACEOF
20592 #define HAVE_ACL 1
20593 _ACEOF
20594
20595    have_acl=yes
20596 fi
20597
20598 PTHREAD_LIB=""
20599 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20600 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20601 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20602   echo $ECHO_N "(cached) $ECHO_C" >&6
20603 else
20604   ac_check_lib_save_LIBS=$LIBS
20605 LIBS="-lpthread  $LIBS"
20606 cat >conftest.$ac_ext <<_ACEOF
20607 /* confdefs.h.  */
20608 _ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h.  */
20612
20613 /* Override any gcc2 internal prototype to avoid an error.  */
20614 #ifdef __cplusplus
20615 extern "C"
20616 #endif
20617 /* We use char because int might match the return type of a gcc2
20618    builtin and then its argument prototype would still apply.  */
20619 char pthread_create ();
20620 int
20621 main ()
20622 {
20623 pthread_create ();
20624   ;
20625   return 0;
20626 }
20627 _ACEOF
20628 rm -f conftest.$ac_objext conftest$ac_exeext
20629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20630   (eval $ac_link) 2>conftest.er1
20631   ac_status=$?
20632   grep -v '^ *+' conftest.er1 >conftest.err
20633   rm -f conftest.er1
20634   cat conftest.err >&5
20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); } &&
20637          { ac_try='test -z "$ac_c_werror_flag"
20638                          || test ! -s conftest.err'
20639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640   (eval $ac_try) 2>&5
20641   ac_status=$?
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); }; } &&
20644          { ac_try='test -s conftest$ac_exeext'
20645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646   (eval $ac_try) 2>&5
20647   ac_status=$?
20648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649   (exit $ac_status); }; }; then
20650   ac_cv_lib_pthread_pthread_create=yes
20651 else
20652   echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20654
20655 ac_cv_lib_pthread_pthread_create=no
20656 fi
20657 rm -f conftest.err conftest.$ac_objext \
20658       conftest$ac_exeext conftest.$ac_ext
20659 LIBS=$ac_check_lib_save_LIBS
20660 fi
20661 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20662 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20663 if test $ac_cv_lib_pthread_pthread_create = yes; then
20664   PTHREAD_LIB="-lpthread"
20665 else
20666   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20667 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20668 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20669   echo $ECHO_N "(cached) $ECHO_C" >&6
20670 else
20671   ac_check_lib_save_LIBS=$LIBS
20672 LIBS="-lpthreads  $LIBS"
20673 cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h.  */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h.  */
20679
20680 /* Override any gcc2 internal prototype to avoid an error.  */
20681 #ifdef __cplusplus
20682 extern "C"
20683 #endif
20684 /* We use char because int might match the return type of a gcc2
20685    builtin and then its argument prototype would still apply.  */
20686 char pthread_create ();
20687 int
20688 main ()
20689 {
20690 pthread_create ();
20691   ;
20692   return 0;
20693 }
20694 _ACEOF
20695 rm -f conftest.$ac_objext conftest$ac_exeext
20696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20697   (eval $ac_link) 2>conftest.er1
20698   ac_status=$?
20699   grep -v '^ *+' conftest.er1 >conftest.err
20700   rm -f conftest.er1
20701   cat conftest.err >&5
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); } &&
20704          { ac_try='test -z "$ac_c_werror_flag"
20705                          || test ! -s conftest.err'
20706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707   (eval $ac_try) 2>&5
20708   ac_status=$?
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); }; } &&
20711          { ac_try='test -s conftest$ac_exeext'
20712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713   (eval $ac_try) 2>&5
20714   ac_status=$?
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); }; }; then
20717   ac_cv_lib_pthreads_pthread_create=yes
20718 else
20719   echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20721
20722 ac_cv_lib_pthreads_pthread_create=no
20723 fi
20724 rm -f conftest.err conftest.$ac_objext \
20725       conftest$ac_exeext conftest.$ac_ext
20726 LIBS=$ac_check_lib_save_LIBS
20727 fi
20728 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20729 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20730 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20731   PTHREAD_LIB="-lpthreads"
20732 else
20733   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20734 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20735 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20736   echo $ECHO_N "(cached) $ECHO_C" >&6
20737 else
20738   ac_check_lib_save_LIBS=$LIBS
20739 LIBS="-lc_r  $LIBS"
20740 cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h.  */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h.  */
20746
20747 /* Override any gcc2 internal prototype to avoid an error.  */
20748 #ifdef __cplusplus
20749 extern "C"
20750 #endif
20751 /* We use char because int might match the return type of a gcc2
20752    builtin and then its argument prototype would still apply.  */
20753 char pthread_create ();
20754 int
20755 main ()
20756 {
20757 pthread_create ();
20758   ;
20759   return 0;
20760 }
20761 _ACEOF
20762 rm -f conftest.$ac_objext conftest$ac_exeext
20763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20764   (eval $ac_link) 2>conftest.er1
20765   ac_status=$?
20766   grep -v '^ *+' conftest.er1 >conftest.err
20767   rm -f conftest.er1
20768   cat conftest.err >&5
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); } &&
20771          { ac_try='test -z "$ac_c_werror_flag"
20772                          || test ! -s conftest.err'
20773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774   (eval $ac_try) 2>&5
20775   ac_status=$?
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); }; } &&
20778          { ac_try='test -s conftest$ac_exeext'
20779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780   (eval $ac_try) 2>&5
20781   ac_status=$?
20782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   (exit $ac_status); }; }; then
20784   ac_cv_lib_c_r_pthread_create=yes
20785 else
20786   echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20788
20789 ac_cv_lib_c_r_pthread_create=no
20790 fi
20791 rm -f conftest.err conftest.$ac_objext \
20792       conftest$ac_exeext conftest.$ac_ext
20793 LIBS=$ac_check_lib_save_LIBS
20794 fi
20795 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20796 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20797 if test $ac_cv_lib_c_r_pthread_create = yes; then
20798   PTHREAD_LIB="-lc_r"
20799 else
20800   echo "$as_me:$LINENO: checking for pthread_create" >&5
20801 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
20802 if test "${ac_cv_func_pthread_create+set}" = set; then
20803   echo $ECHO_N "(cached) $ECHO_C" >&6
20804 else
20805   cat >conftest.$ac_ext <<_ACEOF
20806 /* confdefs.h.  */
20807 _ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h.  */
20811 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
20812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20813 #define pthread_create innocuous_pthread_create
20814
20815 /* System header to define __stub macros and hopefully few prototypes,
20816     which can conflict with char pthread_create (); below.
20817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20818     <limits.h> exists even on freestanding compilers.  */
20819
20820 #ifdef __STDC__
20821 # include <limits.h>
20822 #else
20823 # include <assert.h>
20824 #endif
20825
20826 #undef pthread_create
20827
20828 /* Override any gcc2 internal prototype to avoid an error.  */
20829 #ifdef __cplusplus
20830 extern "C"
20831 {
20832 #endif
20833 /* We use char because int might match the return type of a gcc2
20834    builtin and then its argument prototype would still apply.  */
20835 char pthread_create ();
20836 /* The GNU C library defines this for functions which it implements
20837     to always fail with ENOSYS.  Some functions are actually named
20838     something starting with __ and the normal name is an alias.  */
20839 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
20840 choke me
20841 #else
20842 char (*f) () = pthread_create;
20843 #endif
20844 #ifdef __cplusplus
20845 }
20846 #endif
20847
20848 int
20849 main ()
20850 {
20851 return f != pthread_create;
20852   ;
20853   return 0;
20854 }
20855 _ACEOF
20856 rm -f conftest.$ac_objext conftest$ac_exeext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20858   (eval $ac_link) 2>conftest.er1
20859   ac_status=$?
20860   grep -v '^ *+' conftest.er1 >conftest.err
20861   rm -f conftest.er1
20862   cat conftest.err >&5
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); } &&
20865          { ac_try='test -z "$ac_c_werror_flag"
20866                          || test ! -s conftest.err'
20867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868   (eval $ac_try) 2>&5
20869   ac_status=$?
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); }; } &&
20872          { ac_try='test -s conftest$ac_exeext'
20873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874   (eval $ac_try) 2>&5
20875   ac_status=$?
20876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877   (exit $ac_status); }; }; then
20878   ac_cv_func_pthread_create=yes
20879 else
20880   echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20882
20883 ac_cv_func_pthread_create=no
20884 fi
20885 rm -f conftest.err conftest.$ac_objext \
20886       conftest$ac_exeext conftest.$ac_ext
20887 fi
20888 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
20889 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
20890
20891
20892 fi
20893
20894
20895 fi
20896
20897
20898 fi
20899
20900
20901
20902 cat >>confdefs.h <<\_ACEOF
20903 #define FDLIBS 1
20904 _ACEOF
20905
20906
20907
20908 CFLAGS=${CFLAGS--O}
20909 LDFLAGS=${LDFLAGS--O}
20910 DB_LIBS="${SQL_LFLAGS}"
20911
20912 CPPFLAGS="$CPPFLAGS"
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927 OBJLIST=
20928
20929
20930 lld="lld"
20931 llu="llu"
20932
20933 WCFLAGS=
20934 WLDFLAGS=
20935
20936 #
20937 # Finally we set appropriate distribution specific
20938 #  variables and defaults
20939 #
20940 # PFILES are platform specific files
20941 PFILES="platforms/Makefile"
20942 PSCMD="ps -e"
20943 WIN32=
20944 MACOSX=
20945 PYTHON_LIBS_EXTRAS="-ldl"
20946 hostname=`uname -n | cut -d '.' -f 1`
20947 case "$DISTNAME" in
20948 aix)
20949         DISTVER=`uname -r`
20950         PSCMD="ps -e -o pid,comm"
20951         PFILES="${PFILES} \
20952            platforms/aix/Makefile"
20953         TAPEDRIVE="/dev/rmt0.1"
20954   ;;
20955 alpha)
20956         DISTVER=`uname -r`
20957         PTHREAD_LIB="-lpthread -lexc"
20958         if test "${CC}" = "gcc" ; then
20959            lld="lld"
20960            llu="llu"
20961         else
20962            lld="ld"
20963            llu="lu"
20964         fi
20965         TAPEDRIVE="/dev/nrmt0"
20966   ;;
20967 bsdi)
20968         DISTVER=`uname -a |awk '{print $3}'`
20969         TAPEDRIVE="/dev/nrmt0"
20970         PTHREAD_LIB="-pthread"
20971         CFLAGS="${CFLAGS} -pthread"
20972         PSCMD="ps -ax -o pid,command"
20973         lld="qd"
20974         llu="qu"
20975         PFILES="${PFILES} \
20976             platforms/bsdi/Makefile \
20977             platforms/bsdi/bacula-fd \
20978             platforms/bsdi/bacula-sd \
20979             platforms/bsdi/bacula-dir"
20980         largefile_support="yes"
20981   ;;
20982 cygwin)
20983         DISTVER=`uname -a |awk '{print $3}'`
20984         TAPEDRIVE="/dev/nrst0"
20985         WIN32=win32
20986         WCFLAGS="-mwindows"
20987         WLDFLAGS="-mwindows"
20988   ;;
20989 darwin)
20990         DISTVER=`uname -r`
20991         TAPEDRIVE="/dev/nst0"
20992         PSCMD="ps -e -o pid,command"
20993         MACOSX=macosx
20994         PFILES="${PFILES} \
20995            platforms/darwin/Makefile"
20996   ;;
20997 debian)
20998         DISTVER=`cat /etc/debian_version`
20999         TAPEDRIVE="/dev/nrst0"
21000         PSCMD="ps -e -o pid,command"
21001   ;;
21002 freebsd)
21003         DISTVER=`uname -a |awk '{print $3}'`
21004         VER=`echo $DISTVER | cut -c 1`
21005         if test x$VER = x4 ; then
21006            PTHREAD_LIB="-pthread"
21007            CFLAGS="${CFLAGS} -pthread"
21008         fi
21009         lld="qd"
21010         llu="qu"
21011         TAPEDRIVE="/dev/nrsa0"
21012         PSCMD="ps -ax -o pid,command"
21013         PFILES="${PFILES} \
21014             platforms/freebsd/Makefile \
21015             platforms/freebsd/bacula-fd \
21016             platforms/freebsd/bacula-sd \
21017             platforms/freebsd/bacula-dir"
21018         largefile_support="yes"
21019         PYTHON_LIBS_EXTRAS=
21020   ;;
21021 hpux)
21022         PSCMD="UNIX95=1 ps -e -o pid,comm"
21023         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21024         DISTVER=`uname -r`
21025         TAPEDRIVE="/dev/rmt/0hnb"
21026         PTHREAD_LIB="-lpthread"
21027         cat >>confdefs.h <<\_ACEOF
21028 #define _INCLUDE_LONGLONG 1
21029 _ACEOF
21030
21031   ;;
21032 irix)
21033         DISTVER=`uname -r`
21034         TAPEDRIVE="/dev/rmt/0cbn"
21035         PSCMD="ps -e -o pid,comm"
21036         PFILES="${PFILES} \
21037             platforms/irix/Makefile \
21038             platforms/irix/bacula-fd \
21039             platforms/irix/bacula-sd \
21040             platforms/irix/bacula-dir"
21041   ;;
21042 netbsd)
21043         DISTVER=`uname -a |awk '{print $3}'`
21044         lld="qd"
21045         llu="qu"
21046         TAPEDRIVE="/dev/nrst0"
21047         PSCMD="ps -ax -o pid,command"
21048         PTHREAD_LIB="-pthread"
21049         CFLAGS="${CFLAGS} -pthread"
21050   ;;
21051 openbsd)
21052         DISTVER=`uname -a |awk '{print $3}'`
21053         lld="qd"
21054         llu="qu"
21055         TAPEDRIVE="/dev/nrst0"
21056         PSCMD="ps -ax -o pid,command"
21057         PTHREAD_LIB="-pthread"
21058         CFLAGS="${CFLAGS} -pthread"
21059         PFILES="${PFILES} \
21060             platforms/openbsd/Makefile \
21061             platforms/openbsd/bacula-fd \
21062             platforms/openbsd/bacula-sd \
21063             platforms/openbsd/bacula-dir"
21064   ;;
21065 redhat)
21066         if test -f /etc/whitebox-release ; then
21067            f=/etc/whitebox-release
21068         else
21069            f=/etc/redhat-release
21070         fi
21071         if test `cat $f | grep release |\
21072                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21073            DISTVER="Enterprise "`cat $f | grep release |\
21074                     cut -f 6 -d ' '`
21075         else
21076             DISTVER=`cat /etc/redhat-release | grep release |\
21077                      cut -f 5 -d ' '`
21078         fi
21079         TAPEDRIVE="/dev/nst0"
21080         PSCMD="ps -e -o pid,command"
21081         PFILES="${PFILES} \
21082             platforms/redhat/Makefile \
21083             platforms/redhat/bacula-fd \
21084             platforms/redhat/bacula-sd \
21085             platforms/redhat/bacula-dir \
21086             platforms/redhat/bacula.spec \
21087             "
21088         hostname=`hostname -s`
21089   ;;
21090 mandrake)
21091         DISTVER=`cat /etc/mandrake-release | grep release |\
21092            cut -f 5 -d ' '`
21093         TAPEDRIVE="/dev/nst0"
21094         PSCMD="ps -e -o pid,command"
21095         PFILES="${PFILES} \
21096             platforms/mandrake/Makefile \
21097             platforms/mandrake/bacula-fd \
21098             platforms/mandrake/bacula-sd \
21099             platforms/mandrake/bacula-dir \
21100             platforms/mandrake/bacula.spec \
21101             "
21102   ;;
21103 gentoo)
21104         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21105         TAPEDRIVE="/dev/nst0"
21106         PSCMD="ps -e -o pid,command"
21107         PFILES="${PFILES} \
21108             platforms/gentoo/Makefile \
21109          platforms/gentoo/bacula-init \
21110             platforms/gentoo/bacula-fd \
21111             platforms/gentoo/bacula-sd \
21112             platforms/gentoo/bacula-dir"
21113   ;;
21114 slackware)
21115         DISTVER=`cat /etc/slackware-version`
21116         TAPEDRIVE="/dev/nst0"
21117         PSCMD="ps -e -o pid,command"
21118         PFILES="${PFILES} \
21119             platforms/slackware/Makefile \
21120             platforms/slackware/rc.bacula-fd \
21121             platforms/slackware/rc.bacula-sd \
21122             platforms/slackware/rc.bacula-dir\
21123             platforms/slackware/functions.bacula"
21124   ;;
21125 solaris)
21126         DISTVER=`uname -r`
21127         TAPEDRIVE="/dev/rmt/0cbn"
21128         PSCMD="ps -e -o pid,comm"
21129         PFILES="${PFILES} \
21130             platforms/solaris/Makefile \
21131             platforms/solaris/bacula-fd \
21132             platforms/solaris/bacula-sd \
21133             platforms/solaris/bacula-dir"
21134         if test x$DISTVER = x5.6 ; then
21135             cat >>confdefs.h <<\_ACEOF
21136 #define HAVE_OLD_SOCKOPT 1
21137 _ACEOF
21138
21139         fi
21140         LIBS="$LIBS -lresolv"
21141   ;;
21142 suse)
21143         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21144             cut -f 3 -d ' '`
21145         TAPEDRIVE="/dev/nst0"
21146         PSCMD="ps -e -o pid,command"
21147         PFILES="${PFILES} \
21148             platforms/suse/Makefile \
21149             platforms/suse/bacula-fd \
21150             platforms/suse/bacula-sd \
21151             platforms/suse/bacula-dir \
21152             platforms/suse/bacula \
21153             platforms/suse/bacula.spec"
21154   ;;
21155 suse5)
21156         DISTNAME=suse
21157         DISTVER=5.x
21158         TAPEDRIVE="/dev/nst0"
21159         PSCMD="ps -e -o pid,command"
21160         PFILES="${PFILES} \
21161             platforms/suse/Makefile \
21162             platforms/suse/bacula-fd \
21163             platforms/suse/bacula-sd \
21164             platforms/suse/bacula-dir"
21165   ;;
21166 unknown)
21167         DISTVER=unknown
21168         TAPEDRIVE="/dev/nst0"
21169   ;;
21170 *)
21171   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21172   ;;
21173 esac
21174
21175
21176
21177 LIBS="$PTHREAD_LIB $LIBS"
21178 if test "x$PYTHON_LIBS" != x -a "x$PYTHON_LIBS_EXTRAS" != x; then
21179   PYTHON_LIBS="$PYTHON_LIBS $PYTHON_LIBS_EXTRAS"
21180 fi
21181
21182 cat >>confdefs.h <<_ACEOF
21183 #define lld "$lld"
21184 _ACEOF
21185
21186 cat >>confdefs.h <<_ACEOF
21187 #define llu "$llu"
21188 _ACEOF
21189
21190
21191
21192
21193
21194
21195
21196
21197 MCOMMON=./autoconf/Make.common
21198
21199
21200 if test "x${subsysdir}" = "x${sbindir}" ; then
21201    echo " "
21202    echo " "
21203    echo "You have set both --sbindir and --with-subsys-dir"
21204    echo "  equal to: ${subsysdir} "
21205    echo "This is not permitted. Please reconfigure."
21206    echo " "
21207    echo "Aborting configuration ..."
21208    echo " "
21209    echo " "
21210    exit 1
21211 fi
21212
21213                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ac_config_files="$ac_config_files autoconf/Make.common Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile $PFILES"
21214           ac_config_commands="$ac_config_commands default"
21215 cat >confcache <<\_ACEOF
21216 # This file is a shell script that caches the results of configure
21217 # tests run on this system so they can be shared between configure
21218 # scripts and configure runs, see configure's option --config-cache.
21219 # It is not useful on other systems.  If it contains results you don't
21220 # want to keep, you may remove or edit it.
21221 #
21222 # config.status only pays attention to the cache file if you give it
21223 # the --recheck option to rerun configure.
21224 #
21225 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21226 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21227 # following values.
21228
21229 _ACEOF
21230
21231 # The following way of writing the cache mishandles newlines in values,
21232 # but we know of no workaround that is simple, portable, and efficient.
21233 # So, don't put newlines in cache variables' values.
21234 # Ultrix sh set writes to stderr and can't be redirected directly,
21235 # and sets the high bit in the cache file unless we assign to the vars.
21236 {
21237   (set) 2>&1 |
21238     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21239     *ac_space=\ *)
21240       # `set' does not quote correctly, so add quotes (double-quote
21241       # substitution turns \\\\ into \\, and sed turns \\ into \).
21242       sed -n \
21243         "s/'/'\\\\''/g;
21244           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21245       ;;
21246     *)
21247       # `set' quotes correctly as required by POSIX, so do not add quotes.
21248       sed -n \
21249         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21250       ;;
21251     esac;
21252 } |
21253   sed '
21254      t clear
21255      : clear
21256      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21257      t end
21258      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21259      : end' >>confcache
21260 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21261   if test -w $cache_file; then
21262     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21263     cat confcache >$cache_file
21264   else
21265     echo "not updating unwritable cache $cache_file"
21266   fi
21267 fi
21268 rm -f confcache
21269
21270 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21271 # Let make expand exec_prefix.
21272 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21273
21274 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21275 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21276 # trailing colons and then remove the whole line if VPATH becomes empty
21277 # (actually we leave an empty line to preserve line numbers).
21278 if test "x$srcdir" = x.; then
21279   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21280 s/:*\$(srcdir):*/:/;
21281 s/:*\${srcdir}:*/:/;
21282 s/:*@srcdir@:*/:/;
21283 s/^\([^=]*=[     ]*\):*/\1/;
21284 s/:*$//;
21285 s/^[^=]*=[       ]*$//;
21286 }'
21287 fi
21288
21289 DEFS=-DHAVE_CONFIG_H
21290
21291 ac_libobjs=
21292 ac_ltlibobjs=
21293 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21294   # 1. Remove the extension, and $U if already installed.
21295   ac_i=`echo "$ac_i" |
21296          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21297   # 2. Add them.
21298   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21299   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21300 done
21301 LIBOBJS=$ac_libobjs
21302
21303 LTLIBOBJS=$ac_ltlibobjs
21304
21305
21306
21307 : ${CONFIG_STATUS=./config.status}
21308 ac_clean_files_save=$ac_clean_files
21309 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21310 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21311 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21312 cat >$CONFIG_STATUS <<_ACEOF
21313 #! $SHELL
21314 # Generated by $as_me.
21315 # Run this file to recreate the current configuration.
21316 # Compiler output produced by configure, useful for debugging
21317 # configure, is in config.log if it exists.
21318
21319 debug=false
21320 ac_cs_recheck=false
21321 ac_cs_silent=false
21322 SHELL=\${CONFIG_SHELL-$SHELL}
21323 _ACEOF
21324
21325 cat >>$CONFIG_STATUS <<\_ACEOF
21326 ## --------------------- ##
21327 ## M4sh Initialization.  ##
21328 ## --------------------- ##
21329
21330 # Be Bourne compatible
21331 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21332   emulate sh
21333   NULLCMD=:
21334   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21335   # is contrary to our usage.  Disable this feature.
21336   alias -g '${1+"$@"}'='"$@"'
21337 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21338   set -o posix
21339 fi
21340 DUALCASE=1; export DUALCASE # for MKS sh
21341
21342 # Support unset when possible.
21343 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21344   as_unset=unset
21345 else
21346   as_unset=false
21347 fi
21348
21349
21350 # Work around bugs in pre-3.0 UWIN ksh.
21351 $as_unset ENV MAIL MAILPATH
21352 PS1='$ '
21353 PS2='> '
21354 PS4='+ '
21355
21356 # NLS nuisances.
21357 for as_var in \
21358   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21359   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21360   LC_TELEPHONE LC_TIME
21361 do
21362   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21363     eval $as_var=C; export $as_var
21364   else
21365     $as_unset $as_var
21366   fi
21367 done
21368
21369 # Required to use basename.
21370 if expr a : '\(a\)' >/dev/null 2>&1; then
21371   as_expr=expr
21372 else
21373   as_expr=false
21374 fi
21375
21376 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21377   as_basename=basename
21378 else
21379   as_basename=false
21380 fi
21381
21382
21383 # Name of the executable.
21384 as_me=`$as_basename "$0" ||
21385 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21386          X"$0" : 'X\(//\)$' \| \
21387          X"$0" : 'X\(/\)$' \| \
21388          .     : '\(.\)' 2>/dev/null ||
21389 echo X/"$0" |
21390     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21391           /^X\/\(\/\/\)$/{ s//\1/; q; }
21392           /^X\/\(\/\).*/{ s//\1/; q; }
21393           s/.*/./; q'`
21394
21395
21396 # PATH needs CR, and LINENO needs CR and PATH.
21397 # Avoid depending upon Character Ranges.
21398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21401 as_cr_digits='0123456789'
21402 as_cr_alnum=$as_cr_Letters$as_cr_digits
21403
21404 # The user is always right.
21405 if test "${PATH_SEPARATOR+set}" != set; then
21406   echo "#! /bin/sh" >conf$$.sh
21407   echo  "exit 0"   >>conf$$.sh
21408   chmod +x conf$$.sh
21409   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21410     PATH_SEPARATOR=';'
21411   else
21412     PATH_SEPARATOR=:
21413   fi
21414   rm -f conf$$.sh
21415 fi
21416
21417
21418   as_lineno_1=$LINENO
21419   as_lineno_2=$LINENO
21420   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21421   test "x$as_lineno_1" != "x$as_lineno_2" &&
21422   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21423   # Find who we are.  Look in the path if we contain no path at all
21424   # relative or not.
21425   case $0 in
21426     *[\\/]* ) as_myself=$0 ;;
21427     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21428 for as_dir in $PATH
21429 do
21430   IFS=$as_save_IFS
21431   test -z "$as_dir" && as_dir=.
21432   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21433 done
21434
21435        ;;
21436   esac
21437   # We did not find ourselves, most probably we were run as `sh COMMAND'
21438   # in which case we are not to be found in the path.
21439   if test "x$as_myself" = x; then
21440     as_myself=$0
21441   fi
21442   if test ! -f "$as_myself"; then
21443     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21444 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21445    { (exit 1); exit 1; }; }
21446   fi
21447   case $CONFIG_SHELL in
21448   '')
21449     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21450 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21451 do
21452   IFS=$as_save_IFS
21453   test -z "$as_dir" && as_dir=.
21454   for as_base in sh bash ksh sh5; do
21455          case $as_dir in
21456          /*)
21457            if ("$as_dir/$as_base" -c '
21458   as_lineno_1=$LINENO
21459   as_lineno_2=$LINENO
21460   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21461   test "x$as_lineno_1" != "x$as_lineno_2" &&
21462   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21463              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21464              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21465              CONFIG_SHELL=$as_dir/$as_base
21466              export CONFIG_SHELL
21467              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21468            fi;;
21469          esac
21470        done
21471 done
21472 ;;
21473   esac
21474
21475   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21476   # uniformly replaced by the line number.  The first 'sed' inserts a
21477   # line-number line before each line; the second 'sed' does the real
21478   # work.  The second script uses 'N' to pair each line-number line
21479   # with the numbered line, and appends trailing '-' during
21480   # substitution so that $LINENO is not a special case at line end.
21481   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21482   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21483   sed '=' <$as_myself |
21484     sed '
21485       N
21486       s,$,-,
21487       : loop
21488       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21489       t loop
21490       s,-$,,
21491       s,^['$as_cr_digits']*\n,,
21492     ' >$as_me.lineno &&
21493   chmod +x $as_me.lineno ||
21494     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21495 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21496    { (exit 1); exit 1; }; }
21497
21498   # Don't try to exec as it changes $[0], causing all sort of problems
21499   # (the dirname of $[0] is not the place where we might find the
21500   # original and so on.  Autoconf is especially sensible to this).
21501   . ./$as_me.lineno
21502   # Exit status is that of the last command.
21503   exit
21504 }
21505
21506
21507 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21508   *c*,-n*) ECHO_N= ECHO_C='
21509 ' ECHO_T='      ' ;;
21510   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21511   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21512 esac
21513
21514 if expr a : '\(a\)' >/dev/null 2>&1; then
21515   as_expr=expr
21516 else
21517   as_expr=false
21518 fi
21519
21520 rm -f conf$$ conf$$.exe conf$$.file
21521 echo >conf$$.file
21522 if ln -s conf$$.file conf$$ 2>/dev/null; then
21523   # We could just check for DJGPP; but this test a) works b) is more generic
21524   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21525   if test -f conf$$.exe; then
21526     # Don't use ln at all; we don't have any links
21527     as_ln_s='cp -p'
21528   else
21529     as_ln_s='ln -s'
21530   fi
21531 elif ln conf$$.file conf$$ 2>/dev/null; then
21532   as_ln_s=ln
21533 else
21534   as_ln_s='cp -p'
21535 fi
21536 rm -f conf$$ conf$$.exe conf$$.file
21537
21538 if mkdir -p . 2>/dev/null; then
21539   as_mkdir_p=:
21540 else
21541   test -d ./-p && rmdir ./-p
21542   as_mkdir_p=false
21543 fi
21544
21545 as_executable_p="test -f"
21546
21547 # Sed expression to map a string onto a valid CPP name.
21548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21549
21550 # Sed expression to map a string onto a valid variable name.
21551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21552
21553
21554 # IFS
21555 # We need space, tab and new line, in precisely that order.
21556 as_nl='
21557 '
21558 IFS="   $as_nl"
21559
21560 # CDPATH.
21561 $as_unset CDPATH
21562
21563 exec 6>&1
21564
21565 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21566 # report actual input values of CONFIG_FILES etc. instead of their
21567 # values after options handling.  Logging --version etc. is OK.
21568 exec 5>>config.log
21569 {
21570   echo
21571   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21572 ## Running $as_me. ##
21573 _ASBOX
21574 } >&5
21575 cat >&5 <<_CSEOF
21576
21577 This file was extended by $as_me, which was
21578 generated by GNU Autoconf 2.59.  Invocation command line was
21579
21580   CONFIG_FILES    = $CONFIG_FILES
21581   CONFIG_HEADERS  = $CONFIG_HEADERS
21582   CONFIG_LINKS    = $CONFIG_LINKS
21583   CONFIG_COMMANDS = $CONFIG_COMMANDS
21584   $ $0 $@
21585
21586 _CSEOF
21587 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21588 echo >&5
21589 _ACEOF
21590
21591 # Files that config.status was made for.
21592 if test -n "$ac_config_files"; then
21593   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21594 fi
21595
21596 if test -n "$ac_config_headers"; then
21597   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21598 fi
21599
21600 if test -n "$ac_config_links"; then
21601   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21602 fi
21603
21604 if test -n "$ac_config_commands"; then
21605   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21606 fi
21607
21608 cat >>$CONFIG_STATUS <<\_ACEOF
21609
21610 ac_cs_usage="\
21611 \`$as_me' instantiates files from templates according to the
21612 current configuration.
21613
21614 Usage: $0 [OPTIONS] [FILE]...
21615
21616   -h, --help       print this help, then exit
21617   -V, --version    print version number, then exit
21618   -q, --quiet      do not print progress messages
21619   -d, --debug      don't remove temporary files
21620       --recheck    update $as_me by reconfiguring in the same conditions
21621   --file=FILE[:TEMPLATE]
21622                    instantiate the configuration file FILE
21623   --header=FILE[:TEMPLATE]
21624                    instantiate the configuration header FILE
21625
21626 Configuration files:
21627 $config_files
21628
21629 Configuration headers:
21630 $config_headers
21631
21632 Configuration commands:
21633 $config_commands
21634
21635 Report bugs to <bug-autoconf@gnu.org>."
21636 _ACEOF
21637
21638 cat >>$CONFIG_STATUS <<_ACEOF
21639 ac_cs_version="\\
21640 config.status
21641 configured by $0, generated by GNU Autoconf 2.59,
21642   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21643
21644 Copyright (C) 2003 Free Software Foundation, Inc.
21645 This config.status script is free software; the Free Software Foundation
21646 gives unlimited permission to copy, distribute and modify it."
21647 srcdir=$srcdir
21648 INSTALL="$INSTALL"
21649 _ACEOF
21650
21651 cat >>$CONFIG_STATUS <<\_ACEOF
21652 # If no file are specified by the user, then we need to provide default
21653 # value.  By we need to know if files were specified by the user.
21654 ac_need_defaults=:
21655 while test $# != 0
21656 do
21657   case $1 in
21658   --*=*)
21659     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21660     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21661     ac_shift=:
21662     ;;
21663   -*)
21664     ac_option=$1
21665     ac_optarg=$2
21666     ac_shift=shift
21667     ;;
21668   *) # This is not an option, so the user has probably given explicit
21669      # arguments.
21670      ac_option=$1
21671      ac_need_defaults=false;;
21672   esac
21673
21674   case $ac_option in
21675   # Handling of the options.
21676 _ACEOF
21677 cat >>$CONFIG_STATUS <<\_ACEOF
21678   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21679     ac_cs_recheck=: ;;
21680   --version | --vers* | -V )
21681     echo "$ac_cs_version"; exit 0 ;;
21682   --he | --h)
21683     # Conflict between --help and --header
21684     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21685 Try \`$0 --help' for more information." >&5
21686 echo "$as_me: error: ambiguous option: $1
21687 Try \`$0 --help' for more information." >&2;}
21688    { (exit 1); exit 1; }; };;
21689   --help | --hel | -h )
21690     echo "$ac_cs_usage"; exit 0 ;;
21691   --debug | --d* | -d )
21692     debug=: ;;
21693   --file | --fil | --fi | --f )
21694     $ac_shift
21695     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21696     ac_need_defaults=false;;
21697   --header | --heade | --head | --hea )
21698     $ac_shift
21699     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21700     ac_need_defaults=false;;
21701   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21702   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21703     ac_cs_silent=: ;;
21704
21705   # This is an error.
21706   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21707 Try \`$0 --help' for more information." >&5
21708 echo "$as_me: error: unrecognized option: $1
21709 Try \`$0 --help' for more information." >&2;}
21710    { (exit 1); exit 1; }; } ;;
21711
21712   *) ac_config_targets="$ac_config_targets $1" ;;
21713
21714   esac
21715   shift
21716 done
21717
21718 ac_configure_extra_args=
21719
21720 if $ac_cs_silent; then
21721   exec 6>/dev/null
21722   ac_configure_extra_args="$ac_configure_extra_args --silent"
21723 fi
21724
21725 _ACEOF
21726 cat >>$CONFIG_STATUS <<_ACEOF
21727 if \$ac_cs_recheck; then
21728   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21729   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21730 fi
21731
21732 _ACEOF
21733
21734
21735
21736
21737
21738 cat >>$CONFIG_STATUS <<\_ACEOF
21739 for ac_config_target in $ac_config_targets
21740 do
21741   case "$ac_config_target" in
21742   # Handling of arguments.
21743   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21744   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21745   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21746   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21747   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21748   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21749   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21750   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21751   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21752   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21753   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21754   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21755   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21756   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21757   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21758   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21759   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21760   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21761   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21762   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21763   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21764   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
21765   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
21766   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
21767   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
21768   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
21769   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21770   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21771   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21772   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21773   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21774   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21775   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21776   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21777   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
21778   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
21779   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21780   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21781   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21782   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21783   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21784   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21785   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21786   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21787   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21788   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
21789   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
21790   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
21791   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
21792   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
21793   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
21794   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
21795   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
21796   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
21797   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
21798   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
21799   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
21800   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
21801   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
21802   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
21803   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
21804   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
21805   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
21806   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
21807   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
21808   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
21809   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
21810   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
21811   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
21812   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
21813   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
21814   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
21815   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
21816   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
21817   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
21818   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
21819   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
21820   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
21821   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
21822   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
21823   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
21824   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
21825   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
21826   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
21827   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
21828   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
21829   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21830   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
21831   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
21832   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
21833   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
21834   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
21835   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
21836   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
21837   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21838   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
21839   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21840 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21841    { (exit 1); exit 1; }; };;
21842   esac
21843 done
21844
21845 # If the user did not use the arguments to specify the items to instantiate,
21846 # then the envvar interface is used.  Set only those that are not.
21847 # We use the long form for the default assignment because of an extremely
21848 # bizarre bug on SunOS 4.1.3.
21849 if $ac_need_defaults; then
21850   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21851   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21852   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21853 fi
21854
21855 # Have a temporary directory for convenience.  Make it in the build tree
21856 # simply because there is no reason to put it here, and in addition,
21857 # creating and moving files from /tmp can sometimes cause problems.
21858 # Create a temporary directory, and hook for its removal unless debugging.
21859 $debug ||
21860 {
21861   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21862   trap '{ (exit 1); exit 1; }' 1 2 13 15
21863 }
21864
21865 # Create a (secure) tmp directory for tmp files.
21866
21867 {
21868   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21869   test -n "$tmp" && test -d "$tmp"
21870 }  ||
21871 {
21872   tmp=./confstat$$-$RANDOM
21873   (umask 077 && mkdir $tmp)
21874 } ||
21875 {
21876    echo "$me: cannot create a temporary directory in ." >&2
21877    { (exit 1); exit 1; }
21878 }
21879
21880 _ACEOF
21881
21882 cat >>$CONFIG_STATUS <<_ACEOF
21883
21884 #
21885 # CONFIG_FILES section.
21886 #
21887
21888 # No need to generate the scripts if there are no CONFIG_FILES.
21889 # This happens for instance when ./config.status config.h
21890 if test -n "\$CONFIG_FILES"; then
21891   # Protect against being on the right side of a sed subst in config.status.
21892   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21893    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21894 s,@SHELL@,$SHELL,;t t
21895 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21896 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21897 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21898 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21899 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21900 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21901 s,@exec_prefix@,$exec_prefix,;t t
21902 s,@prefix@,$prefix,;t t
21903 s,@program_transform_name@,$program_transform_name,;t t
21904 s,@bindir@,$bindir,;t t
21905 s,@sbindir@,$sbindir,;t t
21906 s,@libexecdir@,$libexecdir,;t t
21907 s,@datadir@,$datadir,;t t
21908 s,@sysconfdir@,$sysconfdir,;t t
21909 s,@sharedstatedir@,$sharedstatedir,;t t
21910 s,@localstatedir@,$localstatedir,;t t
21911 s,@libdir@,$libdir,;t t
21912 s,@includedir@,$includedir,;t t
21913 s,@oldincludedir@,$oldincludedir,;t t
21914 s,@infodir@,$infodir,;t t
21915 s,@mandir@,$mandir,;t t
21916 s,@build_alias@,$build_alias,;t t
21917 s,@host_alias@,$host_alias,;t t
21918 s,@target_alias@,$target_alias,;t t
21919 s,@DEFS@,$DEFS,;t t
21920 s,@ECHO_C@,$ECHO_C,;t t
21921 s,@ECHO_N@,$ECHO_N,;t t
21922 s,@ECHO_T@,$ECHO_T,;t t
21923 s,@LIBS@,$LIBS,;t t
21924 s,@BUILD_DIR@,$BUILD_DIR,;t t
21925 s,@TRUEPRG@,$TRUEPRG,;t t
21926 s,@FALSEPRG@,$FALSEPRG,;t t
21927 s,@VERSION@,$VERSION,;t t
21928 s,@DATE@,$DATE,;t t
21929 s,@LSMDATE@,$LSMDATE,;t t
21930 s,@CC@,$CC,;t t
21931 s,@CFLAGS@,$CFLAGS,;t t
21932 s,@LDFLAGS@,$LDFLAGS,;t t
21933 s,@CPPFLAGS@,$CPPFLAGS,;t t
21934 s,@ac_ct_CC@,$ac_ct_CC,;t t
21935 s,@EXEEXT@,$EXEEXT,;t t
21936 s,@OBJEXT@,$OBJEXT,;t t
21937 s,@CXX@,$CXX,;t t
21938 s,@CXXFLAGS@,$CXXFLAGS,;t t
21939 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21940 s,@CPP@,$CPP,;t t
21941 s,@EGREP@,$EGREP,;t t
21942 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21943 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21944 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21945 s,@RANLIB@,$RANLIB,;t t
21946 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21947 s,@MV@,$MV,;t t
21948 s,@RM@,$RM,;t t
21949 s,@CP@,$CP,;t t
21950 s,@SED@,$SED,;t t
21951 s,@ECHO@,$ECHO,;t t
21952 s,@CMP@,$CMP,;t t
21953 s,@TBL@,$TBL,;t t
21954 s,@AR@,$AR,;t t
21955 s,@OPENSSL@,$OPENSSL,;t t
21956 s,@MTX@,$MTX,;t t
21957 s,@DF@,$DF,;t t
21958 s,@MKISOFS@,$MKISOFS,;t t
21959 s,@PYTHON@,$PYTHON,;t t
21960 s,@GROWISOFS@,$GROWISOFS,;t t
21961 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
21962 s,@PKGCONFIG@,$PKGCONFIG,;t t
21963 s,@WXCONFIG@,$WXCONFIG,;t t
21964 s,@WXFLAGS@,$WXFLAGS,;t t
21965 s,@CDRECORD@,$CDRECORD,;t t
21966 s,@PIDOF@,$PIDOF,;t t
21967 s,@AWK@,$AWK,;t t
21968 s,@ARFLAGS@,$ARFLAGS,;t t
21969 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
21970 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
21971 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
21972 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21973 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
21974 s,@build@,$build,;t t
21975 s,@build_cpu@,$build_cpu,;t t
21976 s,@build_vendor@,$build_vendor,;t t
21977 s,@build_os@,$build_os,;t t
21978 s,@host@,$host,;t t
21979 s,@host_cpu@,$host_cpu,;t t
21980 s,@host_vendor@,$host_vendor,;t t
21981 s,@host_os@,$host_os,;t t
21982 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
21983 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
21984 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
21985 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
21986 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
21987 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
21988 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
21989 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
21990 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
21991 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
21992 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
21993 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
21994 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
21995 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
21996 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
21997 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
21998 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
21999 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22000 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22001 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22002 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22003 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22004 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22005 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22006 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22007 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22008 s,@MSGFMT@,$MSGFMT,;t t
22009 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22010 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22011 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22012 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22013 s,@GNOME_DIR@,$GNOME_DIR,;t t
22014 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22015 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22016 s,@WX_DIR@,$WX_DIR,;t t
22017 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22018 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22019 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22020 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22021 s,@STATIC_FD@,$STATIC_FD,;t t
22022 s,@STATIC_SD@,$STATIC_SD,;t t
22023 s,@STATIC_DIR@,$STATIC_DIR,;t t
22024 s,@STATIC_CONS@,$STATIC_CONS,;t t
22025 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22026 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22027 s,@ALL_DIRS@,$ALL_DIRS,;t t
22028 s,@CONS_INC@,$CONS_INC,;t t
22029 s,@CONS_OBJ@,$CONS_OBJ,;t t
22030 s,@CONS_SRC@,$CONS_SRC,;t t
22031 s,@CONS_LIBS@,$CONS_LIBS,;t t
22032 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22033 s,@READLINE_SRC@,$READLINE_SRC,;t t
22034 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22035 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22036 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22037 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22038 s,@working_dir@,$working_dir,;t t
22039 s,@scriptdir@,$scriptdir,;t t
22040 s,@dump_email@,$dump_email,;t t
22041 s,@job_email@,$job_email,;t t
22042 s,@smtp_host@,$smtp_host,;t t
22043 s,@piddir@,$piddir,;t t
22044 s,@subsysdir@,$subsysdir,;t t
22045 s,@baseport@,$baseport,;t t
22046 s,@dir_port@,$dir_port,;t t
22047 s,@fd_port@,$fd_port,;t t
22048 s,@sd_port@,$sd_port,;t t
22049 s,@dir_password@,$dir_password,;t t
22050 s,@fd_password@,$fd_password,;t t
22051 s,@sd_password@,$sd_password,;t t
22052 s,@mon_dir_password@,$mon_dir_password,;t t
22053 s,@mon_fd_password@,$mon_fd_password,;t t
22054 s,@mon_sd_password@,$mon_sd_password,;t t
22055 s,@dir_user@,$dir_user,;t t
22056 s,@dir_group@,$dir_group,;t t
22057 s,@sd_user@,$sd_user,;t t
22058 s,@sd_group@,$sd_group,;t t
22059 s,@fd_user@,$fd_user,;t t
22060 s,@fd_group@,$fd_group,;t t
22061 s,@SBINPERM@,$SBINPERM,;t t
22062 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22063 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22064 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22065 s,@cats@,$cats,;t t
22066 s,@DB_NAME@,$DB_NAME,;t t
22067 s,@GETCONF@,$GETCONF,;t t
22068 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22069 s,@X_CFLAGS@,$X_CFLAGS,;t t
22070 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22071 s,@X_LIBS@,$X_LIBS,;t t
22072 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22073 s,@LIBOBJS@,$LIBOBJS,;t t
22074 s,@ALLOCA@,$ALLOCA,;t t
22075 s,@FDLIBS@,$FDLIBS,;t t
22076 s,@DEBUG@,$DEBUG,;t t
22077 s,@DINCLUDE@,$DINCLUDE,;t t
22078 s,@DLIB@,$DLIB,;t t
22079 s,@DB_LIBS@,$DB_LIBS,;t t
22080 s,@WCFLAGS@,$WCFLAGS,;t t
22081 s,@WLDFLAGS@,$WLDFLAGS,;t t
22082 s,@OBJLIST@,$OBJLIST,;t t
22083 s,@hostname@,$hostname,;t t
22084 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22085 s,@PSCMD@,$PSCMD,;t t
22086 s,@WIN32@,$WIN32,;t t
22087 s,@MACOSX@,$MACOSX,;t t
22088 s,@DISTNAME@,$DISTNAME,;t t
22089 s,@DISTVER@,$DISTVER,;t t
22090 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22091 /@MCOMMON@/r $MCOMMON
22092 s,@MCOMMON@,,;t t
22093 CEOF
22094
22095 _ACEOF
22096
22097   cat >>$CONFIG_STATUS <<\_ACEOF
22098   # Split the substitutions into bite-sized pieces for seds with
22099   # small command number limits, like on Digital OSF/1 and HP-UX.
22100   ac_max_sed_lines=48
22101   ac_sed_frag=1 # Number of current file.
22102   ac_beg=1 # First line for current file.
22103   ac_end=$ac_max_sed_lines # Line after last line for current file.
22104   ac_more_lines=:
22105   ac_sed_cmds=
22106   while $ac_more_lines; do
22107     if test $ac_beg -gt 1; then
22108       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22109     else
22110       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22111     fi
22112     if test ! -s $tmp/subs.frag; then
22113       ac_more_lines=false
22114     else
22115       # The purpose of the label and of the branching condition is to
22116       # speed up the sed processing (if there are no `@' at all, there
22117       # is no need to browse any of the substitutions).
22118       # These are the two extra sed commands mentioned above.
22119       (echo ':t
22120   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22121       if test -z "$ac_sed_cmds"; then
22122         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22123       else
22124         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22125       fi
22126       ac_sed_frag=`expr $ac_sed_frag + 1`
22127       ac_beg=$ac_end
22128       ac_end=`expr $ac_end + $ac_max_sed_lines`
22129     fi
22130   done
22131   if test -z "$ac_sed_cmds"; then
22132     ac_sed_cmds=cat
22133   fi
22134 fi # test -n "$CONFIG_FILES"
22135
22136 _ACEOF
22137 cat >>$CONFIG_STATUS <<\_ACEOF
22138 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22139   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22140   case $ac_file in
22141   - | *:- | *:-:* ) # input from stdin
22142         cat >$tmp/stdin
22143         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22144         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22145   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22146         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22147   * )   ac_file_in=$ac_file.in ;;
22148   esac
22149
22150   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22151   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22153          X"$ac_file" : 'X\(//\)[^/]' \| \
22154          X"$ac_file" : 'X\(//\)$' \| \
22155          X"$ac_file" : 'X\(/\)' \| \
22156          .     : '\(.\)' 2>/dev/null ||
22157 echo X"$ac_file" |
22158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22159           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22160           /^X\(\/\/\)$/{ s//\1/; q; }
22161           /^X\(\/\).*/{ s//\1/; q; }
22162           s/.*/./; q'`
22163   { if $as_mkdir_p; then
22164     mkdir -p "$ac_dir"
22165   else
22166     as_dir="$ac_dir"
22167     as_dirs=
22168     while test ! -d "$as_dir"; do
22169       as_dirs="$as_dir $as_dirs"
22170       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22172          X"$as_dir" : 'X\(//\)[^/]' \| \
22173          X"$as_dir" : 'X\(//\)$' \| \
22174          X"$as_dir" : 'X\(/\)' \| \
22175          .     : '\(.\)' 2>/dev/null ||
22176 echo X"$as_dir" |
22177     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22178           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22179           /^X\(\/\/\)$/{ s//\1/; q; }
22180           /^X\(\/\).*/{ s//\1/; q; }
22181           s/.*/./; q'`
22182     done
22183     test ! -n "$as_dirs" || mkdir $as_dirs
22184   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22185 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22186    { (exit 1); exit 1; }; }; }
22187
22188   ac_builddir=.
22189
22190 if test "$ac_dir" != .; then
22191   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22192   # A "../" for each directory in $ac_dir_suffix.
22193   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22194 else
22195   ac_dir_suffix= ac_top_builddir=
22196 fi
22197
22198 case $srcdir in
22199   .)  # No --srcdir option.  We are building in place.
22200     ac_srcdir=.
22201     if test -z "$ac_top_builddir"; then
22202        ac_top_srcdir=.
22203     else
22204        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22205     fi ;;
22206   [\\/]* | ?:[\\/]* )  # Absolute path.
22207     ac_srcdir=$srcdir$ac_dir_suffix;
22208     ac_top_srcdir=$srcdir ;;
22209   *) # Relative path.
22210     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22211     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22212 esac
22213
22214 # Do not use `cd foo && pwd` to compute absolute paths, because
22215 # the directories may not exist.
22216 case `pwd` in
22217 .) ac_abs_builddir="$ac_dir";;
22218 *)
22219   case "$ac_dir" in
22220   .) ac_abs_builddir=`pwd`;;
22221   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22222   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22223   esac;;
22224 esac
22225 case $ac_abs_builddir in
22226 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22227 *)
22228   case ${ac_top_builddir}. in
22229   .) ac_abs_top_builddir=$ac_abs_builddir;;
22230   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22231   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22232   esac;;
22233 esac
22234 case $ac_abs_builddir in
22235 .) ac_abs_srcdir=$ac_srcdir;;
22236 *)
22237   case $ac_srcdir in
22238   .) ac_abs_srcdir=$ac_abs_builddir;;
22239   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22240   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22241   esac;;
22242 esac
22243 case $ac_abs_builddir in
22244 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22245 *)
22246   case $ac_top_srcdir in
22247   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22248   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22249   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22250   esac;;
22251 esac
22252
22253
22254   case $INSTALL in
22255   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22256   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22257   esac
22258
22259   if test x"$ac_file" != x-; then
22260     { echo "$as_me:$LINENO: creating $ac_file" >&5
22261 echo "$as_me: creating $ac_file" >&6;}
22262     rm -f "$ac_file"
22263   fi
22264   # Let's still pretend it is `configure' which instantiates (i.e., don't
22265   # use $as_me), people would be surprised to read:
22266   #    /* config.h.  Generated by config.status.  */
22267   if test x"$ac_file" = x-; then
22268     configure_input=
22269   else
22270     configure_input="$ac_file.  "
22271   fi
22272   configure_input=$configure_input"Generated from `echo $ac_file_in |
22273                                      sed 's,.*/,,'` by configure."
22274
22275   # First look for the input files in the build tree, otherwise in the
22276   # src tree.
22277   ac_file_inputs=`IFS=:
22278     for f in $ac_file_in; do
22279       case $f in
22280       -) echo $tmp/stdin ;;
22281       [\\/$]*)
22282          # Absolute (can't be DOS-style, as IFS=:)
22283          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22284 echo "$as_me: error: cannot find input file: $f" >&2;}
22285    { (exit 1); exit 1; }; }
22286          echo "$f";;
22287       *) # Relative
22288          if test -f "$f"; then
22289            # Build tree
22290            echo "$f"
22291          elif test -f "$srcdir/$f"; then
22292            # Source tree
22293            echo "$srcdir/$f"
22294          else
22295            # /dev/null tree
22296            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22297 echo "$as_me: error: cannot find input file: $f" >&2;}
22298    { (exit 1); exit 1; }; }
22299          fi;;
22300       esac
22301     done` || { (exit 1); exit 1; }
22302 _ACEOF
22303 cat >>$CONFIG_STATUS <<_ACEOF
22304   sed "$ac_vpsub
22305 $extrasub
22306 _ACEOF
22307 cat >>$CONFIG_STATUS <<\_ACEOF
22308 :t
22309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22310 s,@configure_input@,$configure_input,;t t
22311 s,@srcdir@,$ac_srcdir,;t t
22312 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22313 s,@top_srcdir@,$ac_top_srcdir,;t t
22314 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22315 s,@builddir@,$ac_builddir,;t t
22316 s,@abs_builddir@,$ac_abs_builddir,;t t
22317 s,@top_builddir@,$ac_top_builddir,;t t
22318 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22319 s,@INSTALL@,$ac_INSTALL,;t t
22320 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22321   rm -f $tmp/stdin
22322   if test x"$ac_file" != x-; then
22323     mv $tmp/out $ac_file
22324   else
22325     cat $tmp/out
22326     rm -f $tmp/out
22327   fi
22328
22329 done
22330 _ACEOF
22331 cat >>$CONFIG_STATUS <<\_ACEOF
22332
22333 #
22334 # CONFIG_HEADER section.
22335 #
22336
22337 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22338 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22339 #
22340 # ac_d sets the value in "#define NAME VALUE" lines.
22341 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22342 ac_dB='[         ].*$,\1#\2'
22343 ac_dC=' '
22344 ac_dD=',;t'
22345 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22346 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22347 ac_uB='$,\1#\2define\3'
22348 ac_uC=' '
22349 ac_uD=',;t'
22350
22351 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22352   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22353   case $ac_file in
22354   - | *:- | *:-:* ) # input from stdin
22355         cat >$tmp/stdin
22356         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22357         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22358   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22359         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22360   * )   ac_file_in=$ac_file.in ;;
22361   esac
22362
22363   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22364 echo "$as_me: creating $ac_file" >&6;}
22365
22366   # First look for the input files in the build tree, otherwise in the
22367   # src tree.
22368   ac_file_inputs=`IFS=:
22369     for f in $ac_file_in; do
22370       case $f in
22371       -) echo $tmp/stdin ;;
22372       [\\/$]*)
22373          # Absolute (can't be DOS-style, as IFS=:)
22374          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22375 echo "$as_me: error: cannot find input file: $f" >&2;}
22376    { (exit 1); exit 1; }; }
22377          # Do quote $f, to prevent DOS paths from being IFS'd.
22378          echo "$f";;
22379       *) # Relative
22380          if test -f "$f"; then
22381            # Build tree
22382            echo "$f"
22383          elif test -f "$srcdir/$f"; then
22384            # Source tree
22385            echo "$srcdir/$f"
22386          else
22387            # /dev/null tree
22388            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22389 echo "$as_me: error: cannot find input file: $f" >&2;}
22390    { (exit 1); exit 1; }; }
22391          fi;;
22392       esac
22393     done` || { (exit 1); exit 1; }
22394   # Remove the trailing spaces.
22395   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22396
22397 _ACEOF
22398
22399 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22400 # `conftest.undefs', that substitutes the proper values into
22401 # config.h.in to produce config.h.  The first handles `#define'
22402 # templates, and the second `#undef' templates.
22403 # And first: Protect against being on the right side of a sed subst in
22404 # config.status.  Protect against being in an unquoted here document
22405 # in config.status.
22406 rm -f conftest.defines conftest.undefs
22407 # Using a here document instead of a string reduces the quoting nightmare.
22408 # Putting comments in sed scripts is not portable.
22409 #
22410 # `end' is used to avoid that the second main sed command (meant for
22411 # 0-ary CPP macros) applies to n-ary macro definitions.
22412 # See the Autoconf documentation for `clear'.
22413 cat >confdef2sed.sed <<\_ACEOF
22414 s/[\\&,]/\\&/g
22415 s,[\\$`],\\&,g
22416 t clear
22417 : clear
22418 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22419 t end
22420 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22421 : end
22422 _ACEOF
22423 # If some macros were called several times there might be several times
22424 # the same #defines, which is useless.  Nevertheless, we may not want to
22425 # sort them, since we want the *last* AC-DEFINE to be honored.
22426 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22427 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22428 rm -f confdef2sed.sed
22429
22430 # This sed command replaces #undef with comments.  This is necessary, for
22431 # example, in the case of _POSIX_SOURCE, which is predefined and required
22432 # on some systems where configure will not decide to define it.
22433 cat >>conftest.undefs <<\_ACEOF
22434 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22435 _ACEOF
22436
22437 # Break up conftest.defines because some shells have a limit on the size
22438 # of here documents, and old seds have small limits too (100 cmds).
22439 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22440 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22441 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22442 echo '  :' >>$CONFIG_STATUS
22443 rm -f conftest.tail
22444 while grep . conftest.defines >/dev/null
22445 do
22446   # Write a limited-size here document to $tmp/defines.sed.
22447   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22448   # Speed up: don't consider the non `#define' lines.
22449   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22450   # Work around the forget-to-reset-the-flag bug.
22451   echo 't clr' >>$CONFIG_STATUS
22452   echo ': clr' >>$CONFIG_STATUS
22453   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22454   echo 'CEOF
22455   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22456   rm -f $tmp/in
22457   mv $tmp/out $tmp/in
22458 ' >>$CONFIG_STATUS
22459   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22460   rm -f conftest.defines
22461   mv conftest.tail conftest.defines
22462 done
22463 rm -f conftest.defines
22464 echo '  fi # grep' >>$CONFIG_STATUS
22465 echo >>$CONFIG_STATUS
22466
22467 # Break up conftest.undefs because some shells have a limit on the size
22468 # of here documents, and old seds have small limits too (100 cmds).
22469 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22470 rm -f conftest.tail
22471 while grep . conftest.undefs >/dev/null
22472 do
22473   # Write a limited-size here document to $tmp/undefs.sed.
22474   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22475   # Speed up: don't consider the non `#undef'
22476   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22477   # Work around the forget-to-reset-the-flag bug.
22478   echo 't clr' >>$CONFIG_STATUS
22479   echo ': clr' >>$CONFIG_STATUS
22480   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22481   echo 'CEOF
22482   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22483   rm -f $tmp/in
22484   mv $tmp/out $tmp/in
22485 ' >>$CONFIG_STATUS
22486   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22487   rm -f conftest.undefs
22488   mv conftest.tail conftest.undefs
22489 done
22490 rm -f conftest.undefs
22491
22492 cat >>$CONFIG_STATUS <<\_ACEOF
22493   # Let's still pretend it is `configure' which instantiates (i.e., don't
22494   # use $as_me), people would be surprised to read:
22495   #    /* config.h.  Generated by config.status.  */
22496   if test x"$ac_file" = x-; then
22497     echo "/* Generated by configure.  */" >$tmp/config.h
22498   else
22499     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22500   fi
22501   cat $tmp/in >>$tmp/config.h
22502   rm -f $tmp/in
22503   if test x"$ac_file" != x-; then
22504     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22505       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22506 echo "$as_me: $ac_file is unchanged" >&6;}
22507     else
22508       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22510          X"$ac_file" : 'X\(//\)[^/]' \| \
22511          X"$ac_file" : 'X\(//\)$' \| \
22512          X"$ac_file" : 'X\(/\)' \| \
22513          .     : '\(.\)' 2>/dev/null ||
22514 echo X"$ac_file" |
22515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22516           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22517           /^X\(\/\/\)$/{ s//\1/; q; }
22518           /^X\(\/\).*/{ s//\1/; q; }
22519           s/.*/./; q'`
22520       { if $as_mkdir_p; then
22521     mkdir -p "$ac_dir"
22522   else
22523     as_dir="$ac_dir"
22524     as_dirs=
22525     while test ! -d "$as_dir"; do
22526       as_dirs="$as_dir $as_dirs"
22527       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22529          X"$as_dir" : 'X\(//\)[^/]' \| \
22530          X"$as_dir" : 'X\(//\)$' \| \
22531          X"$as_dir" : 'X\(/\)' \| \
22532          .     : '\(.\)' 2>/dev/null ||
22533 echo X"$as_dir" |
22534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22535           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22536           /^X\(\/\/\)$/{ s//\1/; q; }
22537           /^X\(\/\).*/{ s//\1/; q; }
22538           s/.*/./; q'`
22539     done
22540     test ! -n "$as_dirs" || mkdir $as_dirs
22541   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22542 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22543    { (exit 1); exit 1; }; }; }
22544
22545       rm -f $ac_file
22546       mv $tmp/config.h $ac_file
22547     fi
22548   else
22549     cat $tmp/config.h
22550     rm -f $tmp/config.h
22551   fi
22552 done
22553 _ACEOF
22554 cat >>$CONFIG_STATUS <<\_ACEOF
22555
22556 #
22557 # CONFIG_COMMANDS section.
22558 #
22559 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22560   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22561   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22562   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22563 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22564          X"$ac_dest" : 'X\(//\)[^/]' \| \
22565          X"$ac_dest" : 'X\(//\)$' \| \
22566          X"$ac_dest" : 'X\(/\)' \| \
22567          .     : '\(.\)' 2>/dev/null ||
22568 echo X"$ac_dest" |
22569     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22570           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22571           /^X\(\/\/\)$/{ s//\1/; q; }
22572           /^X\(\/\).*/{ s//\1/; q; }
22573           s/.*/./; q'`
22574   { if $as_mkdir_p; then
22575     mkdir -p "$ac_dir"
22576   else
22577     as_dir="$ac_dir"
22578     as_dirs=
22579     while test ! -d "$as_dir"; do
22580       as_dirs="$as_dir $as_dirs"
22581       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22583          X"$as_dir" : 'X\(//\)[^/]' \| \
22584          X"$as_dir" : 'X\(//\)$' \| \
22585          X"$as_dir" : 'X\(/\)' \| \
22586          .     : '\(.\)' 2>/dev/null ||
22587 echo X"$as_dir" |
22588     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22589           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22590           /^X\(\/\/\)$/{ s//\1/; q; }
22591           /^X\(\/\).*/{ s//\1/; q; }
22592           s/.*/./; q'`
22593     done
22594     test ! -n "$as_dirs" || mkdir $as_dirs
22595   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22596 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22597    { (exit 1); exit 1; }; }; }
22598
22599   ac_builddir=.
22600
22601 if test "$ac_dir" != .; then
22602   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22603   # A "../" for each directory in $ac_dir_suffix.
22604   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22605 else
22606   ac_dir_suffix= ac_top_builddir=
22607 fi
22608
22609 case $srcdir in
22610   .)  # No --srcdir option.  We are building in place.
22611     ac_srcdir=.
22612     if test -z "$ac_top_builddir"; then
22613        ac_top_srcdir=.
22614     else
22615        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22616     fi ;;
22617   [\\/]* | ?:[\\/]* )  # Absolute path.
22618     ac_srcdir=$srcdir$ac_dir_suffix;
22619     ac_top_srcdir=$srcdir ;;
22620   *) # Relative path.
22621     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22622     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22623 esac
22624
22625 # Do not use `cd foo && pwd` to compute absolute paths, because
22626 # the directories may not exist.
22627 case `pwd` in
22628 .) ac_abs_builddir="$ac_dir";;
22629 *)
22630   case "$ac_dir" in
22631   .) ac_abs_builddir=`pwd`;;
22632   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22633   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22634   esac;;
22635 esac
22636 case $ac_abs_builddir in
22637 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22638 *)
22639   case ${ac_top_builddir}. in
22640   .) ac_abs_top_builddir=$ac_abs_builddir;;
22641   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22642   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22643   esac;;
22644 esac
22645 case $ac_abs_builddir in
22646 .) ac_abs_srcdir=$ac_srcdir;;
22647 *)
22648   case $ac_srcdir in
22649   .) ac_abs_srcdir=$ac_abs_builddir;;
22650   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22651   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22652   esac;;
22653 esac
22654 case $ac_abs_builddir in
22655 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22656 *)
22657   case $ac_top_srcdir in
22658   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22659   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22660   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22661   esac;;
22662 esac
22663
22664
22665   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22666 echo "$as_me: executing $ac_dest commands" >&6;}
22667   case $ac_dest in
22668     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22669  ;;
22670   esac
22671 done
22672 _ACEOF
22673
22674 cat >>$CONFIG_STATUS <<\_ACEOF
22675
22676 { (exit 0); exit 0; }
22677 _ACEOF
22678 chmod +x $CONFIG_STATUS
22679 ac_clean_files=$ac_clean_files_save
22680
22681
22682 # configure is writing to config.log, and then calls config.status.
22683 # config.status does its own redirection, appending to config.log.
22684 # Unfortunately, on DOS this fails, as config.log is still kept open
22685 # by configure, so config.status won't be able to write to it; its
22686 # output is simply discarded.  So we exec the FD to /dev/null,
22687 # effectively closing config.log, so it can be properly (re)opened and
22688 # appended to by config.status.  When coming back to configure, we
22689 # need to make the FD available again.
22690 if test "$no_create" != yes; then
22691   ac_cs_success=:
22692   ac_config_status_args=
22693   test "$silent" = yes &&
22694     ac_config_status_args="$ac_config_status_args --quiet"
22695   exec 5>/dev/null
22696   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22697   exec 5>>config.log
22698   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22699   # would make configure fail if this is the last instruction.
22700   $ac_cs_success || { (exit 1); exit 1; }
22701 fi
22702
22703
22704 cd scripts
22705 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22706 chmod 755 dvd-writepart dvd-freespace
22707 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22708 cd ..
22709
22710 c=src/cats
22711
22712 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
22713 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
22714
22715 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
22716 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
22717
22718 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
22719 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
22720
22721 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
22722 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
22723
22724 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
22725 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
22726
22727 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22728 chmod 755 $c/sqlite
22729 chmod 755 $c/mysql
22730
22731 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22732    largefile_support="yes"
22733 fi
22734
22735 #
22736 # A whole lot of hand springs to get the compiler version.
22737 #  This is because gcc changed the output in version 3.0
22738 #
22739 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22740 if test "x${CCVERSION}" = "x" ; then
22741   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22742 fi
22743 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22744 if test x"${CXXVERSION}" = x ; then
22745   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22746 fi
22747
22748 if test "x${subsysdir}" = "x${sbindir}" ; then
22749    echo " "
22750    echo " "
22751    echo "You have set --sbindir and --with-subsys-dir"
22752    echo "  both equal to: ${subsysdir} "
22753    echo "  This is not permitted. Please reconfigure."
22754    echo " "
22755    echo "Aborting configuration ..."
22756    echo " "
22757    echo " "
22758    exit 1
22759 fi
22760
22761 if test "x${db_name}" = "xInternal" ; then
22762    echo " "
22763    echo " "
22764    echo "You have not specified either --enable-client-only or one of the"
22765    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
22766    echo "  This is not permitted. Please reconfigure."
22767    echo " "
22768    echo "Aborting the configuration ..."
22769    echo " "
22770    echo " "
22771    exit 1
22772 fi
22773
22774 echo "
22775 Configuration on `date`:
22776
22777   Host:                       $host -- ${DISTNAME} ${DISTVER}
22778   Bacula version:             ${VERSION} (${DATE})
22779   Source code location:       ${srcdir}
22780   Install binaries:           ${sbindir}
22781   Install config files:       ${sysconfdir}
22782   Scripts directory:          ${scriptdir}
22783   Working directory:          ${working_dir}
22784   PID directory:              ${piddir}
22785   Subsys directory:           ${subsysdir}
22786   Man directory:              ${mandir}
22787   C Compiler:                 ${CC} ${CCVERSION}
22788   C++ Compiler:               ${CXX} ${CXXVERSION}
22789   Compiler flags:             ${WCFLAGS} ${CFLAGS}
22790   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
22791   Libraries:                  ${LIBS}
22792   Statically Linked Tools:    ${support_static_tools}
22793   Statically Linked FD:       ${support_static_fd}
22794   Statically Linked SD:       ${support_static_sd}
22795   Statically Linked DIR:      ${support_static_dir}
22796   Statically Linked CONS:     ${support_static_cons}
22797   Database type:              ${db_name}
22798   Database lib:               ${DB_LIBS}
22799
22800   Job Output Email:           ${job_email}
22801   Traceback Email:            ${dump_email}
22802   SMTP Host Address:          ${smtp_host}
22803
22804   Director Port:              ${dir_port}
22805   File daemon Port:           ${fd_port}
22806   Storage daemon Port:        ${sd_port}
22807
22808   Director User:              ${dir_user}
22809   Director Group:             ${dir_group}
22810   Storage Daemon User:        ${sd_user}
22811   Storage DaemonGroup:        ${sd_group}
22812   File Daemon User:           ${fd_user}
22813   File Daemon Group:          ${fd_group}
22814
22815   SQL binaries Directory      ${SQL_BINDIR}
22816
22817   Large file support:         $largefile_support
22818   Bacula conio support:       ${got_conio} ${CONS_LIBS}
22819   readline support:           ${got_readline} ${PRTREADLINE_SRC}
22820   TCP Wrappers support:       ${TCPW_MSG}
22821   TLS support:                ${support_tls}
22822   ZLIB support:               ${have_zlib}
22823   enable-smartalloc:          ${support_smartalloc}
22824   enable-gnome:               ${support_gnome} ${gnome_version}
22825   enable-wx-console:          ${support_wx_console} ${wx_version}
22826   enable-tray-monitor:        ${support_tray_monitor}
22827   client-only:                ${build_client_only}
22828   ACL support:                ${have_acl}
22829   Python support:             ${support_python} ${PYTHON_LIBS}
22830
22831   " > config.out
22832
22833 cat config.out