]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Remove bimagemgr
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG 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 "mkisofs", so it can be a program name with args.
3810 set dummy mkisofs; 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_MKISOFS+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   case $MKISOFS in
3817   [\\/]* | ?:[\\/]*)
3818   ac_cv_path_MKISOFS="$MKISOFS" # 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_MKISOFS="$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_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3836   ;;
3837 esac
3838 fi
3839 MKISOFS=$ac_cv_path_MKISOFS
3840
3841 if test -n "$MKISOFS"; then
3842   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3843 echo "${ECHO_T}$MKISOFS" >&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 "python", so it can be a program name with args.
3850 set dummy python; 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_PYTHON+set}" = set; then
3854   echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856   case $PYTHON in
3857   [\\/]* | ?:[\\/]*)
3858   ac_cv_path_PYTHON="$PYTHON" # 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_PYTHON="$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_PYTHON" && ac_cv_path_PYTHON="python"
3876   ;;
3877 esac
3878 fi
3879 PYTHON=$ac_cv_path_PYTHON
3880
3881 if test -n "$PYTHON"; then
3882   echo "$as_me:$LINENO: result: $PYTHON" >&5
3883 echo "${ECHO_T}$PYTHON" >&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 "growisofs", so it can be a program name with args.
3890 set dummy growisofs; 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_GROWISOFS+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   case $GROWISOFS in
3897   [\\/]* | ?:[\\/]*)
3898   ac_cv_path_GROWISOFS="$GROWISOFS" # 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_GROWISOFS="$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_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3916   ;;
3917 esac
3918 fi
3919 GROWISOFS=$ac_cv_path_GROWISOFS
3920
3921 if test -n "$GROWISOFS"; then
3922   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3923 echo "${ECHO_T}$GROWISOFS" >&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 "dvd+rw-mediainfo", so it can be a program name with args.
3930 set dummy dvd+rw-mediainfo; 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_DVDRWMEDIAINFO+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   case $DVDRWMEDIAINFO in
3937   [\\/]* | ?:[\\/]*)
3938   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # 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_DVDRWMEDIAINFO="$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_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3956   ;;
3957 esac
3958 fi
3959 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3960
3961 if test -n "$DVDRWMEDIAINFO"; then
3962   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3963 echo "${ECHO_T}$DVDRWMEDIAINFO" >&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 "pkg-config", so it can be a program name with args.
3970 set dummy pkg-config; 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_PKGCONFIG+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   case $PKGCONFIG in
3977   [\\/]* | ?:[\\/]*)
3978   ac_cv_path_PKGCONFIG="$PKGCONFIG" # 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_PKGCONFIG="$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_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3996   ;;
3997 esac
3998 fi
3999 PKGCONFIG=$ac_cv_path_PKGCONFIG
4000
4001 if test -n "$PKGCONFIG"; then
4002   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4003 echo "${ECHO_T}$PKGCONFIG" >&6
4004 else
4005   echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4007 fi
4008
4009
4010 if test "x$WXCONFIG" = x; then
4011   WXCONFIG=wx-config
4012 fi
4013 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4014 set dummy ${WXCONFIG}; ac_word=$2
4015 echo "$as_me:$LINENO: checking for $ac_word" >&5
4016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4017 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   case $WXCONFIG in
4021   [\\/]* | ?:[\\/]*)
4022   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4023   ;;
4024   *)
4025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4027 do
4028   IFS=$as_save_IFS
4029   test -z "$as_dir" && as_dir=.
4030   for ac_exec_ext in '' $ac_executable_extensions; do
4031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4034     break 2
4035   fi
4036 done
4037 done
4038
4039   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4040   ;;
4041 esac
4042 fi
4043 WXCONFIG=$ac_cv_path_WXCONFIG
4044
4045 if test -n "$WXCONFIG"; then
4046   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4047 echo "${ECHO_T}$WXCONFIG" >&6
4048 else
4049   echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4051 fi
4052
4053
4054 # Extract the first word of "cdrecord", so it can be a program name with args.
4055 set dummy cdrecord; ac_word=$2
4056 echo "$as_me:$LINENO: checking for $ac_word" >&5
4057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4058 if test "${ac_cv_path_CDRECORD+set}" = set; then
4059   echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061   case $CDRECORD in
4062   [\\/]* | ?:[\\/]*)
4063   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4064   ;;
4065   *)
4066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4068 do
4069   IFS=$as_save_IFS
4070   test -z "$as_dir" && as_dir=.
4071   for ac_exec_ext in '' $ac_executable_extensions; do
4072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075     break 2
4076   fi
4077 done
4078 done
4079
4080   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4081   ;;
4082 esac
4083 fi
4084 CDRECORD=$ac_cv_path_CDRECORD
4085
4086 if test -n "$CDRECORD"; then
4087   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4088 echo "${ECHO_T}$CDRECORD" >&6
4089 else
4090   echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6
4092 fi
4093
4094 # Extract the first word of "pidof", so it can be a program name with args.
4095 set dummy pidof; 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_PIDOF+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   case $PIDOF in
4102   [\\/]* | ?:[\\/]*)
4103   ac_cv_path_PIDOF="$PIDOF" # 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_PIDOF="$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_PIDOF" && ac_cv_path_PIDOF="pidof"
4121   ;;
4122 esac
4123 fi
4124 PIDOF=$ac_cv_path_PIDOF
4125
4126 if test -n "$PIDOF"; then
4127   echo "$as_me:$LINENO: result: $PIDOF" >&5
4128 echo "${ECHO_T}$PIDOF" >&6
4129 else
4130   echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4132 fi
4133
4134 for ac_prog in gawk mawk nawk awk
4135 do
4136   # Extract the first word of "$ac_prog", so it can be a program name with args.
4137 set dummy $ac_prog; ac_word=$2
4138 echo "$as_me:$LINENO: checking for $ac_word" >&5
4139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4140 if test "${ac_cv_prog_AWK+set}" = set; then
4141   echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143   if test -n "$AWK"; then
4144   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4145 else
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_prog_AWK="$ac_prog"
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 fi
4161 fi
4162 AWK=$ac_cv_prog_AWK
4163 if test -n "$AWK"; then
4164   echo "$as_me:$LINENO: result: $AWK" >&5
4165 echo "${ECHO_T}$AWK" >&6
4166 else
4167   echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4169 fi
4170
4171   test -n "$AWK" && break
4172 done
4173
4174 # Some AWK programs fail, so test it and warn the user
4175 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4176       { if ((prog == $2) || (("(" prog ")") == $2) ||
4177            (("" prog "") == $2) ||
4178            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4179 else
4180   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4181    The regex engine of $AWK is too broken to be used you
4182    might want to install GNU AWK.
4183    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4184 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4185    The regex engine of $AWK is too broken to be used you
4186    might want to install GNU AWK.
4187    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4188    { (exit 1); exit 1; }; }
4189 fi
4190 THE_AWK=$AWK
4191 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4192 set dummy $THE_AWK; ac_word=$2
4193 echo "$as_me:$LINENO: checking for $ac_word" >&5
4194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4195 if test "${ac_cv_path_AWK+set}" = set; then
4196   echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198   case $AWK in
4199   [\\/]* | ?:[\\/]*)
4200   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4201   ;;
4202   *)
4203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206   IFS=$as_save_IFS
4207   test -z "$as_dir" && as_dir=.
4208   for ac_exec_ext in '' $ac_executable_extensions; do
4209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212     break 2
4213   fi
4214 done
4215 done
4216
4217   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4218   ;;
4219 esac
4220 fi
4221 AWK=$ac_cv_path_AWK
4222
4223 if test -n "$AWK"; then
4224   echo "$as_me:$LINENO: result: $AWK" >&5
4225 echo "${ECHO_T}$AWK" >&6
4226 else
4227   echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6
4229 fi
4230
4231
4232 test -n "$ARFLAG" || ARFLAGS="cr"
4233
4234
4235 MAKE_SHELL=/bin/sh
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245 # Make sure we can run config.sub.
4246 $ac_config_sub sun4 >/dev/null 2>&1 ||
4247   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4248 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4249    { (exit 1); exit 1; }; }
4250
4251 echo "$as_me:$LINENO: checking build system type" >&5
4252 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4253 if test "${ac_cv_build+set}" = set; then
4254   echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256   ac_cv_build_alias=$build_alias
4257 test -z "$ac_cv_build_alias" &&
4258   ac_cv_build_alias=`$ac_config_guess`
4259 test -z "$ac_cv_build_alias" &&
4260   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4261 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4262    { (exit 1); exit 1; }; }
4263 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4264   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4265 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4266    { (exit 1); exit 1; }; }
4267
4268 fi
4269 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4270 echo "${ECHO_T}$ac_cv_build" >&6
4271 build=$ac_cv_build
4272 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4273 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4274 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4275
4276
4277
4278 echo "$as_me:$LINENO: checking host system type" >&5
4279 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4280 if test "${ac_cv_host+set}" = set; then
4281   echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283   ac_cv_host_alias=$host_alias
4284 test -z "$ac_cv_host_alias" &&
4285   ac_cv_host_alias=$ac_cv_build_alias
4286 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4287   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4288 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4289    { (exit 1); exit 1; }; }
4290
4291 fi
4292 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4293 echo "${ECHO_T}$ac_cv_host" >&6
4294 host=$ac_cv_host
4295 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4296 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4297 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4298
4299
4300 case $host_os in
4301   *cygwin* ) CYGWIN=yes;;
4302          * ) CYGWIN=no;;
4303 esac
4304
4305 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4306 then
4307
4308
4309 if $TRUEPRG; then
4310   HAVE_SUN_OS_TRUE=
4311   HAVE_SUN_OS_FALSE='#'
4312 else
4313   HAVE_SUN_OS_TRUE='#'
4314   HAVE_SUN_OS_FALSE=
4315 fi
4316         cat >>confdefs.h <<\_ACEOF
4317 #define HAVE_SUN_OS 1
4318 _ACEOF
4319
4320 else
4321
4322
4323 if $FALSEPRG; then
4324   HAVE_SUN_OS_TRUE=
4325   HAVE_SUN_OS_FALSE='#'
4326 else
4327   HAVE_SUN_OS_TRUE='#'
4328   HAVE_SUN_OS_FALSE=
4329 fi
4330 fi
4331
4332 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4333 then
4334
4335
4336 if $TRUEPRG; then
4337   HAVE_OSF1_OS_TRUE=
4338   HAVE_OSF1_OS_FALSE='#'
4339 else
4340   HAVE_OSF1_OS_TRUE='#'
4341   HAVE_OSF1_OS_FALSE=
4342 fi
4343         cat >>confdefs.h <<\_ACEOF
4344 #define HAVE_OSF1_OS 1
4345 _ACEOF
4346
4347 else
4348
4349
4350 if $FALSEPRG; then
4351   HAVE_OSF1_OS_TRUE=
4352   HAVE_OSF1_OS_FALSE='#'
4353 else
4354   HAVE_OSF1_OS_TRUE='#'
4355   HAVE_OSF1_OS_FALSE=
4356 fi
4357 fi
4358
4359 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4360 then
4361
4362
4363 if $TRUEPRG; then
4364   HAVE_AIX_OS_TRUE=
4365   HAVE_AIX_OS_FALSE='#'
4366 else
4367   HAVE_AIX_OS_TRUE='#'
4368   HAVE_AIX_OS_FALSE=
4369 fi
4370         cat >>confdefs.h <<\_ACEOF
4371 #define HAVE_AIX_OS 1
4372 _ACEOF
4373
4374 else
4375
4376
4377 if $FALSEPRG; then
4378   HAVE_AIX_OS_TRUE=
4379   HAVE_AIX_OS_FALSE='#'
4380 else
4381   HAVE_AIX_OS_TRUE='#'
4382   HAVE_AIX_OS_FALSE=
4383 fi
4384 fi
4385
4386 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4387 then
4388
4389
4390 if $TRUEPRG; then
4391   HAVE_HPUX_OS_TRUE=
4392   HAVE_HPUX_OS_FALSE='#'
4393 else
4394   HAVE_HPUX_OS_TRUE='#'
4395   HAVE_HPUX_OS_FALSE=
4396 fi
4397         cat >>confdefs.h <<\_ACEOF
4398 #define HAVE_HPUX_OS 1
4399 _ACEOF
4400
4401 else
4402
4403
4404 if $FALSEPRG; then
4405   HAVE_HPUX_OS_TRUE=
4406   HAVE_HPUX_OS_FALSE='#'
4407 else
4408   HAVE_HPUX_OS_TRUE='#'
4409   HAVE_HPUX_OS_FALSE=
4410 fi
4411 fi
4412
4413 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4414 then
4415
4416
4417 if $TRUEPRG; then
4418   HAVE_LINUX_OS_TRUE=
4419   HAVE_LINUX_OS_FALSE='#'
4420 else
4421   HAVE_LINUX_OS_TRUE='#'
4422   HAVE_LINUX_OS_FALSE=
4423 fi
4424         cat >>confdefs.h <<\_ACEOF
4425 #define HAVE_LINUX_OS 1
4426 _ACEOF
4427
4428 else
4429
4430
4431 if $FALSEPRG; then
4432   HAVE_LINUX_OS_TRUE=
4433   HAVE_LINUX_OS_FALSE='#'
4434 else
4435   HAVE_LINUX_OS_TRUE='#'
4436   HAVE_LINUX_OS_FALSE=
4437 fi
4438 fi
4439
4440 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4441 then
4442
4443
4444 if $TRUEPRG; then
4445   HAVE_FREEBSD_OS_TRUE=
4446   HAVE_FREEBSD_OS_FALSE='#'
4447 else
4448   HAVE_FREEBSD_OS_TRUE='#'
4449   HAVE_FREEBSD_OS_FALSE=
4450 fi
4451         cat >>confdefs.h <<\_ACEOF
4452 #define HAVE_FREEBSD_OS 1
4453 _ACEOF
4454
4455 else
4456
4457
4458 if $FALSEPRG; then
4459   HAVE_FREEBSD_OS_TRUE=
4460   HAVE_FREEBSD_OS_FALSE='#'
4461 else
4462   HAVE_FREEBSD_OS_TRUE='#'
4463   HAVE_FREEBSD_OS_FALSE=
4464 fi
4465 fi
4466
4467 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4468 then
4469
4470
4471 if $TRUEPRG; then
4472   HAVE_NETBSD_OS_TRUE=
4473   HAVE_NETBSD_OS_FALSE='#'
4474 else
4475   HAVE_NETBSD_OS_TRUE='#'
4476   HAVE_NETBSD_OS_FALSE=
4477 fi
4478         cat >>confdefs.h <<\_ACEOF
4479 #define HAVE_NETBSD_OS 1
4480 _ACEOF
4481
4482 else
4483
4484
4485 if $FALSEPRG; then
4486   HAVE_NETBSD_OS_TRUE=
4487   HAVE_NETBSD_OS_FALSE='#'
4488 else
4489   HAVE_NETBSD_OS_TRUE='#'
4490   HAVE_NETBSD_OS_FALSE=
4491 fi
4492 fi
4493
4494 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4495 then
4496
4497
4498 if $TRUEPRG; then
4499   HAVE_OPENBSD_OS_TRUE=
4500   HAVE_OPENBSD_OS_FALSE='#'
4501 else
4502   HAVE_OPENBSD_OS_TRUE='#'
4503   HAVE_OPENBSD_OS_FALSE=
4504 fi
4505         cat >>confdefs.h <<\_ACEOF
4506 #define HAVE_OPENBSD_OS 1
4507 _ACEOF
4508
4509 else
4510
4511
4512 if $FALSEPRG; then
4513   HAVE_OPENBSD_OS_TRUE=
4514   HAVE_OPENBSD_OS_FALSE='#'
4515 else
4516   HAVE_OPENBSD_OS_TRUE='#'
4517   HAVE_OPENBSD_OS_FALSE=
4518 fi
4519 fi
4520
4521 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4522 then
4523
4524
4525 if $TRUEPRG; then
4526   HAVE_BSDI_OS_TRUE=
4527   HAVE_BSDI_OS_FALSE='#'
4528 else
4529   HAVE_BSDI_OS_TRUE='#'
4530   HAVE_BSDI_OS_FALSE=
4531 fi
4532         cat >>confdefs.h <<\_ACEOF
4533 #define HAVE_BSDI_OS 1
4534 _ACEOF
4535
4536 else
4537
4538
4539 if $FALSEPRG; then
4540   HAVE_BSDI_OS_TRUE=
4541   HAVE_BSDI_OS_FALSE='#'
4542 else
4543   HAVE_BSDI_OS_TRUE='#'
4544   HAVE_BSDI_OS_FALSE=
4545 fi
4546 fi
4547
4548 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4549 then
4550
4551
4552 if $TRUEPRG; then
4553   HAVE_SGI_OS_TRUE=
4554   HAVE_SGI_OS_FALSE='#'
4555 else
4556   HAVE_SGI_OS_TRUE='#'
4557   HAVE_SGI_OS_FALSE=
4558 fi
4559         cat >>confdefs.h <<\_ACEOF
4560 #define HAVE_SGI_OS 1
4561 _ACEOF
4562
4563 else
4564
4565
4566 if $FALSEPRG; then
4567   HAVE_SGI_OS_TRUE=
4568   HAVE_SGI_OS_FALSE='#'
4569 else
4570   HAVE_SGI_OS_TRUE='#'
4571   HAVE_SGI_OS_FALSE=
4572 fi
4573 fi
4574
4575 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4576 then
4577
4578
4579 if $TRUEPRG; then
4580   HAVE_IRIX_OS_TRUE=
4581   HAVE_IRIX_OS_FALSE='#'
4582 else
4583   HAVE_IRIX_OS_TRUE='#'
4584   HAVE_IRIX_OS_FALSE=
4585 fi
4586         cat >>confdefs.h <<\_ACEOF
4587 #define HAVE_IRIX_OS 1
4588 _ACEOF
4589
4590 else
4591
4592
4593 if $FALSEPRG; then
4594   HAVE_IRIX_OS_TRUE=
4595   HAVE_IRIX_OS_FALSE='#'
4596 else
4597   HAVE_IRIX_OS_TRUE='#'
4598   HAVE_IRIX_OS_FALSE=
4599 fi
4600 fi
4601
4602 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4603 then
4604
4605
4606 if $TRUEPRG; then
4607   HAVE_DARWIN_OS_TRUE=
4608   HAVE_DARWIN_OS_FALSE='#'
4609 else
4610   HAVE_DARWIN_OS_TRUE='#'
4611   HAVE_DARWIN_OS_FALSE=
4612 fi
4613     cat >>confdefs.h <<\_ACEOF
4614 #define HAVE_DARWIN_OS 1
4615 _ACEOF
4616
4617 else
4618
4619
4620 if $FALSEPRG; then
4621   HAVE_DARWIN_OS_TRUE=
4622   HAVE_DARWIN_OS_FALSE='#'
4623 else
4624   HAVE_DARWIN_OS_TRUE='#'
4625   HAVE_DARWIN_OS_FALSE=
4626 fi
4627 fi
4628
4629
4630 # -----------------------------------------------------------
4631 # ----------------------------------------------------------
4632 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4633 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4634 if test "x$DISTNAME" != "x"
4635 then
4636         echo "distname set to $DISTNAME"
4637 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4638 then
4639         DISTNAME=alpha
4640 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4641 then
4642         DISTNAME=aix
4643 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4644 then
4645         DISTNAME=hpux
4646 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4647 then
4648         DISTNAME=solaris
4649 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4650 then
4651         DISTNAME=freebsd
4652 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4653 then
4654         DISTNAME=netbsd
4655 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4656 then
4657         DISTNAME=openbsd
4658 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4659 then
4660         DISTNAME=irix
4661 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4662 then
4663         DISTNAME=bsdi
4664 elif test -f /etc/SuSE-release
4665 then
4666         DISTNAME=suse
4667 elif test -d /etc/SuSEconfig
4668 then
4669         DISTNAME=suse5
4670 elif test -f /etc/mandrake-release
4671 then
4672         DISTNAME=mandrake
4673 elif test -f /etc/whitebox-release
4674 then
4675        DISTNAME=redhat
4676 elif test -f /etc/redhat-release
4677 then
4678         DISTNAME=redhat
4679 elif test -f /etc/gentoo-release
4680 then
4681         DISTNAME=gentoo
4682 elif test -f /etc/debian_version
4683 then
4684         DISTNAME=debian
4685 elif test -f /etc/slackware-version
4686 then
4687         DISTNAME=slackware
4688 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4689 then
4690     DISTNAME=darwin
4691 elif test -f /etc/engarde-version
4692 then
4693         DISTNAME=engarde
4694 elif test "$CYGWIN" = yes
4695 then
4696         DISTNAME=cygwin
4697         cat >>confdefs.h <<\_ACEOF
4698 #define HAVE_CYGWIN 1
4699 _ACEOF
4700
4701 else
4702         DISTNAME=unknown
4703 fi
4704 echo "$as_me:$LINENO: result: done" >&5
4705 echo "${ECHO_T}done" >&6
4706
4707
4708 # -----------------------------------------------------------
4709 # ----------------------------------------------------------
4710
4711
4712
4713 if false; then
4714   INSIDE_GNOME_COMMON_TRUE=
4715   INSIDE_GNOME_COMMON_FALSE='#'
4716 else
4717   INSIDE_GNOME_COMMON_TRUE='#'
4718   INSIDE_GNOME_COMMON_FALSE=
4719 fi
4720
4721         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4722
4723         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4724
4725
4726 # ------------------------------------------------------------------
4727 #  If the user has not set --prefix, we set our default to nothing.
4728 #  In this case, if the user has not set --sysconfdir, we set it
4729 #  to the package default of /etc/bacula.  If either --prefix or
4730 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4731 # ------------------------------------------------------------------
4732 if test x${prefix} = xNONE ; then
4733     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4734         sysconfdir=/etc/bacula
4735     fi
4736     prefix=
4737 fi
4738 sysconfdir=`eval echo ${sysconfdir}`
4739
4740 # -------------------------------------------------------------------------
4741 #  If the user has not set --exec-prefix, we default to ${prefix}
4742 # -------------------------------------------------------------------------
4743 if test x${exec_prefix} = xNONE ; then
4744     exec_prefix=${prefix}
4745 fi
4746
4747 # ------------------------------------------------------------------
4748 # If the user has not set --sbindir, we set our default as /sbin
4749 # ------------------------------------------------------------------
4750 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4751     sbindir=${exec_prefix}/sbin
4752 fi
4753 sbindir=`eval echo ${sbindir}`
4754
4755 # -------------------------------------------------------------------------
4756 #  If the user has not set --mandir, we default to /usr/share/man
4757 # -------------------------------------------------------------------------
4758 if test x$mandir = x'${prefix}/man' ; then
4759    mandir=/usr/share/man
4760 fi
4761
4762
4763 # ------------------------------------------------------------------
4764 # All list of languages for which a translation exist. Each
4765 #  language is separated by a space.
4766 # ------------------------------------------------------------------
4767 ALL_LINGUAS=""
4768
4769 for ac_prog in msgfmt
4770 do
4771   # Extract the first word of "$ac_prog", so it can be a program name with args.
4772 set dummy $ac_prog; ac_word=$2
4773 echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4775 if test "${ac_cv_path_MSGFMT+set}" = set; then
4776   echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778   case $MSGFMT in
4779   [\\/]* | ?:[\\/]*)
4780   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4781   ;;
4782   *)
4783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786   IFS=$as_save_IFS
4787   test -z "$as_dir" && as_dir=.
4788   for ac_exec_ext in '' $ac_executable_extensions; do
4789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4790     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792     break 2
4793   fi
4794 done
4795 done
4796
4797   ;;
4798 esac
4799 fi
4800 MSGFMT=$ac_cv_path_MSGFMT
4801
4802 if test -n "$MSGFMT"; then
4803   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4804 echo "${ECHO_T}$MSGFMT" >&6
4805 else
4806   echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6
4808 fi
4809
4810   test -n "$MSGFMT" && break
4811 done
4812 test -n "$MSGFMT" || MSGFMT="no"
4813
4814 if test "$MSGFMT" = "no"
4815 then
4816    echo 'msgfmt program not found, disabling NLS !'
4817    USE_NLS=no
4818    USE_INCLUDED_LIBINTL=no
4819 #else
4820 #   AM_GNU_GETTEXT
4821 fi
4822
4823
4824 support_mysql=no
4825 support_sqlite=no
4826 support_sqlite3=no
4827 support_postgresql=no
4828 support_smartalloc=yes
4829 support_readline=yes
4830 support_conio=yes
4831 support_gnome=no
4832 support_wx_console=no
4833 support_tls=no
4834 gnome_version=
4835 wx_version=
4836 support_static_tools=no
4837 support_static_fd=no
4838 support_static_sd=no
4839 support_static_dir=no
4840 support_static_cons=no
4841 support_python=no
4842 build_client_only=no
4843 cats=
4844 db_name=Internal
4845 DB_NAME=bdb
4846
4847
4848 # -------------------------------------------
4849 # gnome (default off)
4850 # -------------------------------------------
4851 # Check whether --enable-gnome or --disable-gnome was given.
4852 if test "${enable_gnome+set}" = set; then
4853   enableval="$enable_gnome"
4854   if test x$enableval = xyes; then
4855     support_gnome=yes
4856   fi
4857 fi;
4858
4859 GNOME_DIR=
4860 if test x$support_gnome = xyes; then
4861   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4862   pkg=$?
4863   if test $pkg = 0; then
4864      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4865      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4866      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4867      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4868
4869
4870
4871
4872      GNOME_DIR=src/gnome2-console
4873      gnome_version="Version 2.x"
4874   else
4875      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
4876 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
4877    { (exit 1); exit 1; }; }
4878   fi
4879 fi
4880
4881
4882
4883 # -------------------------------------------
4884 # wx-console (default off)
4885 # -------------------------------------------
4886 # Check whether --enable-wx-console or --disable-wx-console was given.
4887 if test "${enable_wx_console+set}" = set; then
4888   enableval="$enable_wx_console"
4889   if test x$enableval = xyes; then
4890     support_wx_console=yes
4891   fi
4892 fi;
4893
4894 WX_DIR=
4895 if test x$support_wx_console = xyes; then
4896   abc=`$WXCONFIG $WXFLAGS --cppflags`
4897   pkg=$?
4898   if test $pkg = 0; then
4899      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
4900      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
4901      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
4902
4903
4904
4905      WX_DIR=src/wx-console
4906   else
4907      echo " "
4908      echo "wx-config program not found. wx-console disabled."
4909      echo " "
4910      support_wx_console=no
4911   fi
4912 fi
4913
4914
4915
4916 # -------------------------------------------
4917 # tray-monitor (default off)
4918 # -------------------------------------------
4919 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4920 if test "${enable_tray_monitor+set}" = set; then
4921   enableval="$enable_tray_monitor"
4922   if test x$enableval = xyes; then
4923     support_tray_monitor=yes
4924   fi
4925 fi;
4926
4927 TRAY_MONITOR_DIR=
4928 if test x$support_tray_monitor = xyes; then
4929   abc=`$PKGCONFIG --exists gtk+-2.0`
4930   pkg=$?
4931   if test $pkg = 0; then
4932      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4933      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4934
4935
4936      TRAY_MONITOR_DIR=src/tray-monitor
4937      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4938      pkg=$?
4939      if test $pkg = 0; then
4940         cat >>confdefs.h <<\_ACEOF
4941 #define HAVE_GTK_2_4 1
4942 _ACEOF
4943
4944      fi
4945   fi
4946 fi
4947
4948
4949 # -------------------------------------------
4950 # smartalloc (default off)
4951 # -------------------------------------------
4952 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4953 if test "${enable_smartalloc+set}" = set; then
4954   enableval="$enable_smartalloc"
4955   if test x$enableval = xno; then
4956     support_smartalloc=no
4957   fi
4958 fi;
4959
4960 if test x$support_smartalloc = xyes; then
4961    cat >>confdefs.h <<\_ACEOF
4962 #define SMARTALLOC 1
4963 _ACEOF
4964
4965 fi
4966
4967 # -------------------------------------------
4968 # static-tools (default off)
4969 # -------------------------------------------
4970 # Check whether --enable-static-tools or --disable-static-tools was given.
4971 if test "${enable_static_tools+set}" = set; then
4972   enableval="$enable_static_tools"
4973   if test x$enableval = xyes; then
4974      support_static_tools=yes
4975    fi
4976 fi;
4977
4978 TTOOL_LDFLAGS=
4979 if test x$support_static_tools = xyes; then
4980    TTOOL_LDFLAGS="-static"
4981 fi
4982
4983
4984 # -------------------------------------------
4985 # static-fd    (default off)
4986 # -------------------------------------------
4987 # Check whether --enable-static-fd or --disable-static-fd was given.
4988 if test "${enable_static_fd+set}" = set; then
4989   enableval="$enable_static_fd"
4990   if test x$enableval = xyes; then
4991      support_static_fd=yes
4992    fi
4993 fi;
4994
4995 STATIC_FD=
4996 if test x$support_static_fd = xyes; then
4997    STATIC_FD="static-bacula-fd"
4998 fi
4999
5000
5001 # -------------------------------------------
5002 # static-sd    (default off)
5003 # -------------------------------------------
5004 # Check whether --enable-static-sd or --disable-static-sd was given.
5005 if test "${enable_static_sd+set}" = set; then
5006   enableval="$enable_static_sd"
5007   if test x$enableval = xyes; then
5008      support_static_sd=yes
5009    fi
5010 fi;
5011
5012 STATIC_SD=
5013 if test x$support_static_sd = xyes; then
5014    STATIC_SD="static-bacula-sd"
5015 fi
5016
5017
5018 # -------------------------------------------
5019 # static-dir   (default off)
5020 # -------------------------------------------
5021 # Check whether --enable-static-dir or --disable-static-dir was given.
5022 if test "${enable_static_dir+set}" = set; then
5023   enableval="$enable_static_dir"
5024   if test x$enableval = xyes; then
5025      support_static_dir=yes
5026    fi
5027 fi;
5028
5029 STATIC_DIR=
5030 if test x$support_static_dir = xyes; then
5031    STATIC_DIR="static-bacula-dir"
5032 fi
5033
5034
5035 # -------------------------------------------
5036 # static-cons  (default off)
5037 # -------------------------------------------
5038 # Check whether --enable-static-cons or --disable-static-cons was given.
5039 if test "${enable_static_cons+set}" = set; then
5040   enableval="$enable_static_cons"
5041   if test x$enableval = xyes; then
5042      support_static_cons=yes
5043    fi
5044 fi;
5045
5046 STATIC_CONS=
5047 STATIC_GNOME_CONS=
5048 STATIC_WX_CONS=
5049 if test x$support_static_cons = xyes; then
5050    STATIC_CONS="static-bconsole"
5051    STATIC_GNOME_CONS="static-gnome-console"
5052    STATIC_WX_CONS="static-wx-console"
5053 fi
5054
5055
5056
5057
5058 # -------------------------------------------
5059 # client_only  (default off)
5060 # -------------------------------------------
5061 # Check whether --enable-client-only or --disable-client-only was given.
5062 if test "${enable_client_only+set}" = set; then
5063   enableval="$enable_client_only"
5064   if test x$enableval = xyes; then
5065      build_client_only=yes
5066     db_name=None
5067     DB_NAME=none
5068    fi
5069 fi;
5070 if test x$build_client_only = xno; then
5071    ALL_DIRS="subdirs"
5072 else
5073    ALL_DIRS=""
5074 fi
5075
5076
5077 # ---------------------------------------------------
5078 # Check for conio (Bacula readline substitute)(
5079 # ---------------------------------------------------
5080 # this allows you to turn it completely off
5081 # Check whether --enable-conio or --disable-conio was given.
5082 if test "${enable_conio+set}" = set; then
5083   enableval="$enable_conio"
5084   if test x$enableval = xno; then
5085     support_conio=no
5086   fi
5087 fi;
5088
5089 got_conio="no"
5090 if test x$support_conio = xyes; then
5091    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5092 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5093 if test "${ac_cv_header_stdc+set}" = set; then
5094   echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096   cat >conftest.$ac_ext <<_ACEOF
5097 /* confdefs.h.  */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h.  */
5102 #include <stdlib.h>
5103 #include <stdarg.h>
5104 #include <string.h>
5105 #include <float.h>
5106
5107 int
5108 main ()
5109 {
5110
5111   ;
5112   return 0;
5113 }
5114 _ACEOF
5115 rm -f conftest.$ac_objext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117   (eval $ac_compile) 2>conftest.er1
5118   ac_status=$?
5119   grep -v '^ *+' conftest.er1 >conftest.err
5120   rm -f conftest.er1
5121   cat conftest.err >&5
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); } &&
5124          { ac_try='test -z "$ac_c_werror_flag"
5125                          || test ! -s conftest.err'
5126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127   (eval $ac_try) 2>&5
5128   ac_status=$?
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); }; } &&
5131          { ac_try='test -s conftest.$ac_objext'
5132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133   (eval $ac_try) 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); }; }; then
5137   ac_cv_header_stdc=yes
5138 else
5139   echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5141
5142 ac_cv_header_stdc=no
5143 fi
5144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5145
5146 if test $ac_cv_header_stdc = yes; then
5147   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5148   cat >conftest.$ac_ext <<_ACEOF
5149 /* confdefs.h.  */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h.  */
5154 #include <string.h>
5155
5156 _ACEOF
5157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5158   $EGREP "memchr" >/dev/null 2>&1; then
5159   :
5160 else
5161   ac_cv_header_stdc=no
5162 fi
5163 rm -f conftest*
5164
5165 fi
5166
5167 if test $ac_cv_header_stdc = yes; then
5168   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5169   cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h.  */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h.  */
5175 #include <stdlib.h>
5176
5177 _ACEOF
5178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5179   $EGREP "free" >/dev/null 2>&1; then
5180   :
5181 else
5182   ac_cv_header_stdc=no
5183 fi
5184 rm -f conftest*
5185
5186 fi
5187
5188 if test $ac_cv_header_stdc = yes; then
5189   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5190   if test "$cross_compiling" = yes; then
5191   :
5192 else
5193   cat >conftest.$ac_ext <<_ACEOF
5194 /* confdefs.h.  */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h.  */
5199 #include <ctype.h>
5200 #if ((' ' & 0x0FF) == 0x020)
5201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5203 #else
5204 # define ISLOWER(c) \
5205                    (('a' <= (c) && (c) <= 'i') \
5206                      || ('j' <= (c) && (c) <= 'r') \
5207                      || ('s' <= (c) && (c) <= 'z'))
5208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5209 #endif
5210
5211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5212 int
5213 main ()
5214 {
5215   int i;
5216   for (i = 0; i < 256; i++)
5217     if (XOR (islower (i), ISLOWER (i))
5218         || toupper (i) != TOUPPER (i))
5219       exit(2);
5220   exit (0);
5221 }
5222 _ACEOF
5223 rm -f conftest$ac_exeext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225   (eval $ac_link) 2>&5
5226   ac_status=$?
5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230   (eval $ac_try) 2>&5
5231   ac_status=$?
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); }; }; then
5234   :
5235 else
5236   echo "$as_me: program exited with status $ac_status" >&5
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5239
5240 ( exit $ac_status )
5241 ac_cv_header_stdc=no
5242 fi
5243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5244 fi
5245 fi
5246 fi
5247 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5248 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5249 if test $ac_cv_header_stdc = yes; then
5250
5251 cat >>confdefs.h <<\_ACEOF
5252 #define STDC_HEADERS 1
5253 _ACEOF
5254
5255 fi
5256
5257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5268                   inttypes.h stdint.h unistd.h
5269 do
5270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5271 echo "$as_me:$LINENO: checking for $ac_header" >&5
5272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5274   echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276   cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h.  */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h.  */
5282 $ac_includes_default
5283
5284 #include <$ac_header>
5285 _ACEOF
5286 rm -f conftest.$ac_objext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288   (eval $ac_compile) 2>conftest.er1
5289   ac_status=$?
5290   grep -v '^ *+' conftest.er1 >conftest.err
5291   rm -f conftest.er1
5292   cat conftest.err >&5
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); } &&
5295          { ac_try='test -z "$ac_c_werror_flag"
5296                          || test ! -s conftest.err'
5297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298   (eval $ac_try) 2>&5
5299   ac_status=$?
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); }; } &&
5302          { ac_try='test -s conftest.$ac_objext'
5303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304   (eval $ac_try) 2>&5
5305   ac_status=$?
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); }; }; then
5308   eval "$as_ac_Header=yes"
5309 else
5310   echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5312
5313 eval "$as_ac_Header=no"
5314 fi
5315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5316 fi
5317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5320   cat >>confdefs.h <<_ACEOF
5321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5322 _ACEOF
5323
5324 fi
5325
5326 done
5327
5328
5329 if test "${ac_cv_header_termcap_h+set}" = set; then
5330   echo "$as_me:$LINENO: checking for termcap.h" >&5
5331 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5332 if test "${ac_cv_header_termcap_h+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 fi
5335 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5336 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5337 else
5338   # Is the header compilable?
5339 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5340 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h.  */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h.  */
5347 $ac_includes_default
5348 #include <termcap.h>
5349 _ACEOF
5350 rm -f conftest.$ac_objext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352   (eval $ac_compile) 2>conftest.er1
5353   ac_status=$?
5354   grep -v '^ *+' conftest.er1 >conftest.err
5355   rm -f conftest.er1
5356   cat conftest.err >&5
5357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358   (exit $ac_status); } &&
5359          { ac_try='test -z "$ac_c_werror_flag"
5360                          || test ! -s conftest.err'
5361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362   (eval $ac_try) 2>&5
5363   ac_status=$?
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); }; } &&
5366          { ac_try='test -s conftest.$ac_objext'
5367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368   (eval $ac_try) 2>&5
5369   ac_status=$?
5370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371   (exit $ac_status); }; }; then
5372   ac_header_compiler=yes
5373 else
5374   echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5376
5377 ac_header_compiler=no
5378 fi
5379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5381 echo "${ECHO_T}$ac_header_compiler" >&6
5382
5383 # Is the header present?
5384 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5385 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5386 cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h.  */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h.  */
5392 #include <termcap.h>
5393 _ACEOF
5394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5395   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5396   ac_status=$?
5397   grep -v '^ *+' conftest.er1 >conftest.err
5398   rm -f conftest.er1
5399   cat conftest.err >&5
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } >/dev/null; then
5402   if test -s conftest.err; then
5403     ac_cpp_err=$ac_c_preproc_warn_flag
5404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5405   else
5406     ac_cpp_err=
5407   fi
5408 else
5409   ac_cpp_err=yes
5410 fi
5411 if test -z "$ac_cpp_err"; then
5412   ac_header_preproc=yes
5413 else
5414   echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417   ac_header_preproc=no
5418 fi
5419 rm -f conftest.err conftest.$ac_ext
5420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5421 echo "${ECHO_T}$ac_header_preproc" >&6
5422
5423 # So?  What about this header?
5424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5425   yes:no: )
5426     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5427 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5428     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5429 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5430     ac_header_preproc=yes
5431     ;;
5432   no:yes:* )
5433     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5434 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5435     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5436 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5437     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5438 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5439     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5440 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5441     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5442 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5443     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5444 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5445     (
5446       cat <<\_ASBOX
5447 ## ------------------------------------------ ##
5448 ## Report this to the AC_PACKAGE_NAME lists.  ##
5449 ## ------------------------------------------ ##
5450 _ASBOX
5451     ) |
5452       sed "s/^/$as_me: WARNING:     /" >&2
5453     ;;
5454 esac
5455 echo "$as_me:$LINENO: checking for termcap.h" >&5
5456 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5457 if test "${ac_cv_header_termcap_h+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460   ac_cv_header_termcap_h=$ac_header_preproc
5461 fi
5462 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5463 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5464
5465 fi
5466 if test $ac_cv_header_termcap_h = yes; then
5467    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5468 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5469 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   ac_check_lib_save_LIBS=$LIBS
5473 LIBS="-ltermcap  $LIBS"
5474 cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h.  */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h.  */
5480
5481 /* Override any gcc2 internal prototype to avoid an error.  */
5482 #ifdef __cplusplus
5483 extern "C"
5484 #endif
5485 /* We use char because int might match the return type of a gcc2
5486    builtin and then its argument prototype would still apply.  */
5487 char tgetent ();
5488 int
5489 main ()
5490 {
5491 tgetent ();
5492   ;
5493   return 0;
5494 }
5495 _ACEOF
5496 rm -f conftest.$ac_objext conftest$ac_exeext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5498   (eval $ac_link) 2>conftest.er1
5499   ac_status=$?
5500   grep -v '^ *+' conftest.er1 >conftest.err
5501   rm -f conftest.er1
5502   cat conftest.err >&5
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); } &&
5505          { ac_try='test -z "$ac_c_werror_flag"
5506                          || test ! -s conftest.err'
5507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508   (eval $ac_try) 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); }; } &&
5512          { ac_try='test -s conftest$ac_exeext'
5513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514   (eval $ac_try) 2>&5
5515   ac_status=$?
5516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517   (exit $ac_status); }; }; then
5518   ac_cv_lib_termcap_tgetent=yes
5519 else
5520   echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5522
5523 ac_cv_lib_termcap_tgetent=no
5524 fi
5525 rm -f conftest.err conftest.$ac_objext \
5526       conftest$ac_exeext conftest.$ac_ext
5527 LIBS=$ac_check_lib_save_LIBS
5528 fi
5529 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5530 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5531 if test $ac_cv_lib_termcap_tgetent = yes; then
5532    CONS_LIBS="-ltermcap"
5533          CONS_OBJ="conio.o"
5534          CONS_SRC="conio.c"
5535          got_conio="yes"
5536          support_readline=no
5537
5538 cat >>confdefs.h <<\_ACEOF
5539 #define HAVE_CONIO 1
5540 _ACEOF
5541
5542
5543 else
5544    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5545 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5546 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   ac_check_lib_save_LIBS=$LIBS
5550 LIBS="-lncurses  $LIBS"
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h.  */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h.  */
5557
5558 /* Override any gcc2 internal prototype to avoid an error.  */
5559 #ifdef __cplusplus
5560 extern "C"
5561 #endif
5562 /* We use char because int might match the return type of a gcc2
5563    builtin and then its argument prototype would still apply.  */
5564 char tgetent ();
5565 int
5566 main ()
5567 {
5568 tgetent ();
5569   ;
5570   return 0;
5571 }
5572 _ACEOF
5573 rm -f conftest.$ac_objext conftest$ac_exeext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5575   (eval $ac_link) 2>conftest.er1
5576   ac_status=$?
5577   grep -v '^ *+' conftest.er1 >conftest.err
5578   rm -f conftest.er1
5579   cat conftest.err >&5
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); } &&
5582          { ac_try='test -z "$ac_c_werror_flag"
5583                          || test ! -s conftest.err'
5584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585   (eval $ac_try) 2>&5
5586   ac_status=$?
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); }; } &&
5589          { ac_try='test -s conftest$ac_exeext'
5590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591   (eval $ac_try) 2>&5
5592   ac_status=$?
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); }; }; then
5595   ac_cv_lib_ncurses_tgetent=yes
5596 else
5597   echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5599
5600 ac_cv_lib_ncurses_tgetent=no
5601 fi
5602 rm -f conftest.err conftest.$ac_objext \
5603       conftest$ac_exeext conftest.$ac_ext
5604 LIBS=$ac_check_lib_save_LIBS
5605 fi
5606 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5607 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5608 if test $ac_cv_lib_ncurses_tgetent = yes; then
5609    CONS_LIBS="-lncurses"
5610            CONS_OBJ="conio.o"
5611            CONS_SRC="conio.c"
5612            got_conio="yes"
5613            support_readline=no
5614
5615 cat >>confdefs.h <<\_ACEOF
5616 #define HAVE_CONIO 1
5617 _ACEOF
5618
5619
5620 fi
5621
5622
5623 fi
5624
5625
5626 else
5627
5628
5629 for ac_header in curses.h
5630 do
5631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5633   echo "$as_me:$LINENO: checking for $ac_header" >&5
5634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5636   echo $ECHO_N "(cached) $ECHO_C" >&6
5637 fi
5638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5640 else
5641   # Is the header compilable?
5642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5644 cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h.  */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h.  */
5650 $ac_includes_default
5651 #include <$ac_header>
5652 _ACEOF
5653 rm -f conftest.$ac_objext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655   (eval $ac_compile) 2>conftest.er1
5656   ac_status=$?
5657   grep -v '^ *+' conftest.er1 >conftest.err
5658   rm -f conftest.er1
5659   cat conftest.err >&5
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); } &&
5662          { ac_try='test -z "$ac_c_werror_flag"
5663                          || test ! -s conftest.err'
5664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665   (eval $ac_try) 2>&5
5666   ac_status=$?
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); }; } &&
5669          { ac_try='test -s conftest.$ac_objext'
5670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671   (eval $ac_try) 2>&5
5672   ac_status=$?
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); }; }; then
5675   ac_header_compiler=yes
5676 else
5677   echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5679
5680 ac_header_compiler=no
5681 fi
5682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5684 echo "${ECHO_T}$ac_header_compiler" >&6
5685
5686 # Is the header present?
5687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5689 cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h.  */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h.  */
5695 #include <$ac_header>
5696 _ACEOF
5697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5698   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5699   ac_status=$?
5700   grep -v '^ *+' conftest.er1 >conftest.err
5701   rm -f conftest.er1
5702   cat conftest.err >&5
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); } >/dev/null; then
5705   if test -s conftest.err; then
5706     ac_cpp_err=$ac_c_preproc_warn_flag
5707     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5708   else
5709     ac_cpp_err=
5710   fi
5711 else
5712   ac_cpp_err=yes
5713 fi
5714 if test -z "$ac_cpp_err"; then
5715   ac_header_preproc=yes
5716 else
5717   echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720   ac_header_preproc=no
5721 fi
5722 rm -f conftest.err conftest.$ac_ext
5723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5724 echo "${ECHO_T}$ac_header_preproc" >&6
5725
5726 # So?  What about this header?
5727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5728   yes:no: )
5729     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5733     ac_header_preproc=yes
5734     ;;
5735   no:yes:* )
5736     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5738     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5739 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5740     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5742     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5743 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5746     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5748     (
5749       cat <<\_ASBOX
5750 ## ------------------------------------------ ##
5751 ## Report this to the AC_PACKAGE_NAME lists.  ##
5752 ## ------------------------------------------ ##
5753 _ASBOX
5754     ) |
5755       sed "s/^/$as_me: WARNING:     /" >&2
5756     ;;
5757 esac
5758 echo "$as_me:$LINENO: checking for $ac_header" >&5
5759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5761   echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763   eval "$as_ac_Header=\$ac_header_preproc"
5764 fi
5765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5767
5768 fi
5769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5770   cat >>confdefs.h <<_ACEOF
5771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5772 _ACEOF
5773
5774 fi
5775
5776 done
5777
5778          echo "$as_me:$LINENO: checking for term.h" >&5
5779 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5780 if test "${ac_cv_header_term_h+set}" = set; then
5781   echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783   cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h.  */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h.  */
5789 #if HAVE_CURSES_H
5790 #include <curses.h>
5791 #endif
5792
5793
5794 #include <term.h>
5795 _ACEOF
5796 rm -f conftest.$ac_objext
5797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5798   (eval $ac_compile) 2>conftest.er1
5799   ac_status=$?
5800   grep -v '^ *+' conftest.er1 >conftest.err
5801   rm -f conftest.er1
5802   cat conftest.err >&5
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); } &&
5805          { ac_try='test -z "$ac_c_werror_flag"
5806                          || test ! -s conftest.err'
5807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808   (eval $ac_try) 2>&5
5809   ac_status=$?
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); }; } &&
5812          { ac_try='test -s conftest.$ac_objext'
5813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814   (eval $ac_try) 2>&5
5815   ac_status=$?
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); }; }; then
5818   ac_cv_header_term_h=yes
5819 else
5820   echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5822
5823 ac_cv_header_term_h=no
5824 fi
5825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5826 fi
5827 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5828 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5829 if test $ac_cv_header_term_h = yes; then
5830    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5831 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5832 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   ac_check_lib_save_LIBS=$LIBS
5836 LIBS="-lcurses  $LIBS"
5837 cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h.  */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h.  */
5843
5844 /* Override any gcc2 internal prototype to avoid an error.  */
5845 #ifdef __cplusplus
5846 extern "C"
5847 #endif
5848 /* We use char because int might match the return type of a gcc2
5849    builtin and then its argument prototype would still apply.  */
5850 char tgetent ();
5851 int
5852 main ()
5853 {
5854 tgetent ();
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext conftest$ac_exeext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5861   (eval $ac_link) 2>conftest.er1
5862   ac_status=$?
5863   grep -v '^ *+' conftest.er1 >conftest.err
5864   rm -f conftest.er1
5865   cat conftest.err >&5
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } &&
5868          { ac_try='test -z "$ac_c_werror_flag"
5869                          || test ! -s conftest.err'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; } &&
5875          { ac_try='test -s conftest$ac_exeext'
5876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877   (eval $ac_try) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; }; then
5881   ac_cv_lib_curses_tgetent=yes
5882 else
5883   echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 ac_cv_lib_curses_tgetent=no
5887 fi
5888 rm -f conftest.err conftest.$ac_objext \
5889       conftest$ac_exeext conftest.$ac_ext
5890 LIBS=$ac_check_lib_save_LIBS
5891 fi
5892 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5893 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5894 if test $ac_cv_lib_curses_tgetent = yes; then
5895    CONS_LIBS="-lcurses"
5896                    CONS_OBJ="conio.o"
5897                    CONS_SRC="conio.c"
5898                    got_conio="yes"
5899                    support_readline=no
5900
5901 cat >>confdefs.h <<\_ACEOF
5902 #define HAVE_CONIO 1
5903 _ACEOF
5904
5905
5906 fi
5907
5908
5909 else
5910    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5911 fi
5912
5913
5914
5915 fi
5916
5917
5918 fi
5919
5920
5921 # ---------------------------------------------------
5922 # Check for readline support/directory (default off)
5923 # ---------------------------------------------------
5924 # this allows you to turn it completely off
5925 # Check whether --enable-readline or --disable-readline was given.
5926 if test "${enable_readline+set}" = set; then
5927   enableval="$enable_readline"
5928   if test x$enableval = xno; then
5929     support_readline=no
5930   fi
5931 fi;
5932
5933 got_readline="no"
5934 READLINE_SRC=
5935 if test x$support_readline = xyes; then
5936
5937 # Check whether --with-readline or --without-readline was given.
5938 if test "${with_readline+set}" = set; then
5939   withval="$with_readline"
5940
5941         case "$with_readline" in
5942         no) : ;;
5943         yes|*)
5944           if test "$with_readline" != "yes"; then
5945             CONS_INC="-I${with_readline}"
5946             CONS_LDFLAGS="-L$with_readline"
5947           else
5948              with_readline="/usr/include/readline"
5949           fi
5950           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5952   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5953 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5955   echo $ECHO_N "(cached) $ECHO_C" >&6
5956 fi
5957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5959 else
5960   # Is the header compilable?
5961 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5962 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h.  */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h.  */
5969 $ac_includes_default
5970 #include <${with_readline}/readline.h>
5971 _ACEOF
5972 rm -f conftest.$ac_objext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974   (eval $ac_compile) 2>conftest.er1
5975   ac_status=$?
5976   grep -v '^ *+' conftest.er1 >conftest.err
5977   rm -f conftest.er1
5978   cat conftest.err >&5
5979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980   (exit $ac_status); } &&
5981          { ac_try='test -z "$ac_c_werror_flag"
5982                          || test ! -s conftest.err'
5983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984   (eval $ac_try) 2>&5
5985   ac_status=$?
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); }; } &&
5988          { ac_try='test -s conftest.$ac_objext'
5989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990   (eval $ac_try) 2>&5
5991   ac_status=$?
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); }; }; then
5994   ac_header_compiler=yes
5995 else
5996   echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5998
5999 ac_header_compiler=no
6000 fi
6001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6003 echo "${ECHO_T}$ac_header_compiler" >&6
6004
6005 # Is the header present?
6006 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6007 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h.  */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h.  */
6014 #include <${with_readline}/readline.h>
6015 _ACEOF
6016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6017   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6018   ac_status=$?
6019   grep -v '^ *+' conftest.er1 >conftest.err
6020   rm -f conftest.er1
6021   cat conftest.err >&5
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); } >/dev/null; then
6024   if test -s conftest.err; then
6025     ac_cpp_err=$ac_c_preproc_warn_flag
6026     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6027   else
6028     ac_cpp_err=
6029   fi
6030 else
6031   ac_cpp_err=yes
6032 fi
6033 if test -z "$ac_cpp_err"; then
6034   ac_header_preproc=yes
6035 else
6036   echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6038
6039   ac_header_preproc=no
6040 fi
6041 rm -f conftest.err conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6043 echo "${ECHO_T}$ac_header_preproc" >&6
6044
6045 # So?  What about this header?
6046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6047   yes:no: )
6048     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6049 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6050     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6051 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6052     ac_header_preproc=yes
6053     ;;
6054   no:yes:* )
6055     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6056 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6057     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6058 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6059     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6060 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6061     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6062 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6063     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6064 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6065     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6066 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6067     (
6068       cat <<\_ASBOX
6069 ## ------------------------------------------ ##
6070 ## Report this to the AC_PACKAGE_NAME lists.  ##
6071 ## ------------------------------------------ ##
6072 _ASBOX
6073     ) |
6074       sed "s/^/$as_me: WARNING:     /" >&2
6075     ;;
6076 esac
6077 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6078 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6080   echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082   eval "$as_ac_Header=\$ac_header_preproc"
6083 fi
6084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6086
6087 fi
6088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6089    cat >>confdefs.h <<\_ACEOF
6090 #define HAVE_READLINE 1
6091 _ACEOF
6092
6093                CONS_LIBS="-lreadline -ltermcap"
6094                got_readline="yes"
6095
6096 else
6097    echo " "
6098                echo "readline.h not found. readline turned off ..."
6099                echo " "
6100
6101
6102 fi
6103
6104
6105           ;;
6106         esac
6107
6108 else
6109
6110        # check for standard readline library
6111        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6112   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6113 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6114 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6115   echo $ECHO_N "(cached) $ECHO_C" >&6
6116 fi
6117 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6118 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6119 else
6120   # Is the header compilable?
6121 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6122 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h.  */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h.  */
6129 $ac_includes_default
6130 #include </usr/include/readline/readline.h>
6131 _ACEOF
6132 rm -f conftest.$ac_objext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6134   (eval $ac_compile) 2>conftest.er1
6135   ac_status=$?
6136   grep -v '^ *+' conftest.er1 >conftest.err
6137   rm -f conftest.er1
6138   cat conftest.err >&5
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } &&
6141          { ac_try='test -z "$ac_c_werror_flag"
6142                          || test ! -s conftest.err'
6143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144   (eval $ac_try) 2>&5
6145   ac_status=$?
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); }; } &&
6148          { ac_try='test -s conftest.$ac_objext'
6149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150   (eval $ac_try) 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); }; }; then
6154   ac_header_compiler=yes
6155 else
6156   echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6158
6159 ac_header_compiler=no
6160 fi
6161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6162 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6163 echo "${ECHO_T}$ac_header_compiler" >&6
6164
6165 # Is the header present?
6166 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6167 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174 #include </usr/include/readline/readline.h>
6175 _ACEOF
6176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6177   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6178   ac_status=$?
6179   grep -v '^ *+' conftest.er1 >conftest.err
6180   rm -f conftest.er1
6181   cat conftest.err >&5
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); } >/dev/null; then
6184   if test -s conftest.err; then
6185     ac_cpp_err=$ac_c_preproc_warn_flag
6186     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6187   else
6188     ac_cpp_err=
6189   fi
6190 else
6191   ac_cpp_err=yes
6192 fi
6193 if test -z "$ac_cpp_err"; then
6194   ac_header_preproc=yes
6195 else
6196   echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6198
6199   ac_header_preproc=no
6200 fi
6201 rm -f conftest.err conftest.$ac_ext
6202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6203 echo "${ECHO_T}$ac_header_preproc" >&6
6204
6205 # So?  What about this header?
6206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6207   yes:no: )
6208     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6209 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6210     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6211 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6212     ac_header_preproc=yes
6213     ;;
6214   no:yes:* )
6215     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6216 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6217     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6218 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6219     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6220 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6221     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6222 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6223     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6224 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6225     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6226 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6227     (
6228       cat <<\_ASBOX
6229 ## ------------------------------------------ ##
6230 ## Report this to the AC_PACKAGE_NAME lists.  ##
6231 ## ------------------------------------------ ##
6232 _ASBOX
6233     ) |
6234       sed "s/^/$as_me: WARNING:     /" >&2
6235     ;;
6236 esac
6237 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6238 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6239 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6240   echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6243 fi
6244 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6245 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6246
6247 fi
6248 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6249    cat >>confdefs.h <<\_ACEOF
6250 #define HAVE_READLINE 1
6251 _ACEOF
6252
6253            got_readline="yes"
6254            CONS_INC="-I/usr/include/readline"
6255            CONS_LIBS="-lreadline -ltermcap"
6256
6257 else
6258
6259            # Did not find standard library, so try Bacula's default
6260             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6262   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6263 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6265   echo $ECHO_N "(cached) $ECHO_C" >&6
6266 fi
6267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6269 else
6270   # Is the header compilable?
6271 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6272 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6273 cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h.  */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h.  */
6279 $ac_includes_default
6280 #include <${TOP_DIR}/depkgs/readline/readline.h>
6281 _ACEOF
6282 rm -f conftest.$ac_objext
6283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6284   (eval $ac_compile) 2>conftest.er1
6285   ac_status=$?
6286   grep -v '^ *+' conftest.er1 >conftest.err
6287   rm -f conftest.er1
6288   cat conftest.err >&5
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } &&
6291          { ac_try='test -z "$ac_c_werror_flag"
6292                          || test ! -s conftest.err'
6293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294   (eval $ac_try) 2>&5
6295   ac_status=$?
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); }; } &&
6298          { ac_try='test -s conftest.$ac_objext'
6299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300   (eval $ac_try) 2>&5
6301   ac_status=$?
6302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303   (exit $ac_status); }; }; then
6304   ac_header_compiler=yes
6305 else
6306   echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6308
6309 ac_header_compiler=no
6310 fi
6311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6313 echo "${ECHO_T}$ac_header_compiler" >&6
6314
6315 # Is the header present?
6316 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6317 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6318 cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h.  */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h.  */
6324 #include <${TOP_DIR}/depkgs/readline/readline.h>
6325 _ACEOF
6326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6328   ac_status=$?
6329   grep -v '^ *+' conftest.er1 >conftest.err
6330   rm -f conftest.er1
6331   cat conftest.err >&5
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); } >/dev/null; then
6334   if test -s conftest.err; then
6335     ac_cpp_err=$ac_c_preproc_warn_flag
6336     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6337   else
6338     ac_cpp_err=
6339   fi
6340 else
6341   ac_cpp_err=yes
6342 fi
6343 if test -z "$ac_cpp_err"; then
6344   ac_header_preproc=yes
6345 else
6346   echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6348
6349   ac_header_preproc=no
6350 fi
6351 rm -f conftest.err conftest.$ac_ext
6352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6353 echo "${ECHO_T}$ac_header_preproc" >&6
6354
6355 # So?  What about this header?
6356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6357   yes:no: )
6358     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6359 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6360     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6361 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6362     ac_header_preproc=yes
6363     ;;
6364   no:yes:* )
6365     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6366 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6367     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6368 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6369     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6370 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6371     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6372 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6373     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6374 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6375     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6376 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6377     (
6378       cat <<\_ASBOX
6379 ## ------------------------------------------ ##
6380 ## Report this to the AC_PACKAGE_NAME lists.  ##
6381 ## ------------------------------------------ ##
6382 _ASBOX
6383     ) |
6384       sed "s/^/$as_me: WARNING:     /" >&2
6385     ;;
6386 esac
6387 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6388 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6390   echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392   eval "$as_ac_Header=\$ac_header_preproc"
6393 fi
6394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6396
6397 fi
6398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6399    cat >>confdefs.h <<\_ACEOF
6400 #define HAVE_READLINE 1
6401 _ACEOF
6402
6403                  got_readline="yes"
6404                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6405                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6406                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6407                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6408
6409 else
6410    echo " "
6411                 echo "readline.h not found. readline turned off ..."
6412                 echo " "
6413
6414
6415 fi
6416
6417
6418
6419
6420 fi
6421
6422
6423
6424
6425 fi;
6426 fi
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437 # Minimal stuff for readline Makefile configuration
6438 MAKE_SHELL=/bin/sh
6439
6440 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6441 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6442 if test "${ac_cv_header_stat_broken+set}" = set; then
6443   echo $ECHO_N "(cached) $ECHO_C" >&6
6444 else
6445   cat >conftest.$ac_ext <<_ACEOF
6446 /* confdefs.h.  */
6447 _ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h.  */
6451 #include <sys/types.h>
6452 #include <sys/stat.h>
6453
6454 #if defined(S_ISBLK) && defined(S_IFDIR)
6455 # if S_ISBLK (S_IFDIR)
6456 You lose.
6457 # endif
6458 #endif
6459
6460 #if defined(S_ISBLK) && defined(S_IFCHR)
6461 # if S_ISBLK (S_IFCHR)
6462 You lose.
6463 # endif
6464 #endif
6465
6466 #if defined(S_ISLNK) && defined(S_IFREG)
6467 # if S_ISLNK (S_IFREG)
6468 You lose.
6469 # endif
6470 #endif
6471
6472 #if defined(S_ISSOCK) && defined(S_IFREG)
6473 # if S_ISSOCK (S_IFREG)
6474 You lose.
6475 # endif
6476 #endif
6477
6478 _ACEOF
6479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6480   $EGREP "You lose" >/dev/null 2>&1; then
6481   ac_cv_header_stat_broken=yes
6482 else
6483   ac_cv_header_stat_broken=no
6484 fi
6485 rm -f conftest*
6486
6487 fi
6488 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6489 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6490 if test $ac_cv_header_stat_broken = yes; then
6491
6492 cat >>confdefs.h <<\_ACEOF
6493 #define STAT_MACROS_BROKEN 1
6494 _ACEOF
6495
6496 fi
6497
6498
6499
6500
6501
6502
6503 ac_header_dirent=no
6504 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6505   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6506 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6507 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6509   echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511   cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h.  */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h.  */
6517 #include <sys/types.h>
6518 #include <$ac_hdr>
6519
6520 int
6521 main ()
6522 {
6523 if ((DIR *) 0)
6524 return 0;
6525   ;
6526   return 0;
6527 }
6528 _ACEOF
6529 rm -f conftest.$ac_objext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531   (eval $ac_compile) 2>conftest.er1
6532   ac_status=$?
6533   grep -v '^ *+' conftest.er1 >conftest.err
6534   rm -f conftest.er1
6535   cat conftest.err >&5
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); } &&
6538          { ac_try='test -z "$ac_c_werror_flag"
6539                          || test ! -s conftest.err'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; } &&
6545          { ac_try='test -s conftest.$ac_objext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   eval "$as_ac_Header=yes"
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 eval "$as_ac_Header=no"
6557 fi
6558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6559 fi
6560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6563   cat >>confdefs.h <<_ACEOF
6564 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6565 _ACEOF
6566
6567 ac_header_dirent=$ac_hdr; break
6568 fi
6569
6570 done
6571 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6572 if test $ac_header_dirent = dirent.h; then
6573   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6574 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6575 if test "${ac_cv_search_opendir+set}" = set; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578   ac_func_search_save_LIBS=$LIBS
6579 ac_cv_search_opendir=no
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h.  */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h.  */
6586
6587 /* Override any gcc2 internal prototype to avoid an error.  */
6588 #ifdef __cplusplus
6589 extern "C"
6590 #endif
6591 /* We use char because int might match the return type of a gcc2
6592    builtin and then its argument prototype would still apply.  */
6593 char opendir ();
6594 int
6595 main ()
6596 {
6597 opendir ();
6598   ;
6599   return 0;
6600 }
6601 _ACEOF
6602 rm -f conftest.$ac_objext conftest$ac_exeext
6603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604   (eval $ac_link) 2>conftest.er1
6605   ac_status=$?
6606   grep -v '^ *+' conftest.er1 >conftest.err
6607   rm -f conftest.er1
6608   cat conftest.err >&5
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); } &&
6611          { ac_try='test -z "$ac_c_werror_flag"
6612                          || test ! -s conftest.err'
6613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614   (eval $ac_try) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); }; } &&
6618          { ac_try='test -s conftest$ac_exeext'
6619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620   (eval $ac_try) 2>&5
6621   ac_status=$?
6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623   (exit $ac_status); }; }; then
6624   ac_cv_search_opendir="none required"
6625 else
6626   echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6628
6629 fi
6630 rm -f conftest.err conftest.$ac_objext \
6631       conftest$ac_exeext conftest.$ac_ext
6632 if test "$ac_cv_search_opendir" = no; then
6633   for ac_lib in dir; do
6634     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6635     cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h.  */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h.  */
6641
6642 /* Override any gcc2 internal prototype to avoid an error.  */
6643 #ifdef __cplusplus
6644 extern "C"
6645 #endif
6646 /* We use char because int might match the return type of a gcc2
6647    builtin and then its argument prototype would still apply.  */
6648 char opendir ();
6649 int
6650 main ()
6651 {
6652 opendir ();
6653   ;
6654   return 0;
6655 }
6656 _ACEOF
6657 rm -f conftest.$ac_objext conftest$ac_exeext
6658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6659   (eval $ac_link) 2>conftest.er1
6660   ac_status=$?
6661   grep -v '^ *+' conftest.er1 >conftest.err
6662   rm -f conftest.er1
6663   cat conftest.err >&5
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); } &&
6666          { ac_try='test -z "$ac_c_werror_flag"
6667                          || test ! -s conftest.err'
6668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669   (eval $ac_try) 2>&5
6670   ac_status=$?
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); }; } &&
6673          { ac_try='test -s conftest$ac_exeext'
6674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675   (eval $ac_try) 2>&5
6676   ac_status=$?
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); }; }; then
6679   ac_cv_search_opendir="-l$ac_lib"
6680 break
6681 else
6682   echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6684
6685 fi
6686 rm -f conftest.err conftest.$ac_objext \
6687       conftest$ac_exeext conftest.$ac_ext
6688   done
6689 fi
6690 LIBS=$ac_func_search_save_LIBS
6691 fi
6692 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6693 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6694 if test "$ac_cv_search_opendir" != no; then
6695   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6696
6697 fi
6698
6699 else
6700   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6701 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6702 if test "${ac_cv_search_opendir+set}" = set; then
6703   echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705   ac_func_search_save_LIBS=$LIBS
6706 ac_cv_search_opendir=no
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h.  */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h.  */
6713
6714 /* Override any gcc2 internal prototype to avoid an error.  */
6715 #ifdef __cplusplus
6716 extern "C"
6717 #endif
6718 /* We use char because int might match the return type of a gcc2
6719    builtin and then its argument prototype would still apply.  */
6720 char opendir ();
6721 int
6722 main ()
6723 {
6724 opendir ();
6725   ;
6726   return 0;
6727 }
6728 _ACEOF
6729 rm -f conftest.$ac_objext conftest$ac_exeext
6730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6731   (eval $ac_link) 2>conftest.er1
6732   ac_status=$?
6733   grep -v '^ *+' conftest.er1 >conftest.err
6734   rm -f conftest.er1
6735   cat conftest.err >&5
6736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); } &&
6738          { ac_try='test -z "$ac_c_werror_flag"
6739                          || test ! -s conftest.err'
6740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741   (eval $ac_try) 2>&5
6742   ac_status=$?
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); }; } &&
6745          { ac_try='test -s conftest$ac_exeext'
6746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747   (eval $ac_try) 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); }; }; then
6751   ac_cv_search_opendir="none required"
6752 else
6753   echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6755
6756 fi
6757 rm -f conftest.err conftest.$ac_objext \
6758       conftest$ac_exeext conftest.$ac_ext
6759 if test "$ac_cv_search_opendir" = no; then
6760   for ac_lib in x; do
6761     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6762     cat >conftest.$ac_ext <<_ACEOF
6763 /* confdefs.h.  */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h.  */
6768
6769 /* Override any gcc2 internal prototype to avoid an error.  */
6770 #ifdef __cplusplus
6771 extern "C"
6772 #endif
6773 /* We use char because int might match the return type of a gcc2
6774    builtin and then its argument prototype would still apply.  */
6775 char opendir ();
6776 int
6777 main ()
6778 {
6779 opendir ();
6780   ;
6781   return 0;
6782 }
6783 _ACEOF
6784 rm -f conftest.$ac_objext conftest$ac_exeext
6785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6786   (eval $ac_link) 2>conftest.er1
6787   ac_status=$?
6788   grep -v '^ *+' conftest.er1 >conftest.err
6789   rm -f conftest.er1
6790   cat conftest.err >&5
6791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792   (exit $ac_status); } &&
6793          { ac_try='test -z "$ac_c_werror_flag"
6794                          || test ! -s conftest.err'
6795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796   (eval $ac_try) 2>&5
6797   ac_status=$?
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); }; } &&
6800          { ac_try='test -s conftest$ac_exeext'
6801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802   (eval $ac_try) 2>&5
6803   ac_status=$?
6804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805   (exit $ac_status); }; }; then
6806   ac_cv_search_opendir="-l$ac_lib"
6807 break
6808 else
6809   echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6811
6812 fi
6813 rm -f conftest.err conftest.$ac_objext \
6814       conftest$ac_exeext conftest.$ac_ext
6815   done
6816 fi
6817 LIBS=$ac_func_search_save_LIBS
6818 fi
6819 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6820 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6821 if test "$ac_cv_search_opendir" != no; then
6822   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6823
6824 fi
6825
6826 fi
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6837 do
6838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6839 echo "$as_me:$LINENO: checking for $ac_func" >&5
6840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6841 if eval "test \"\${$as_ac_var+set}\" = set"; then
6842   echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844   cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h.  */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h.  */
6850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6852 #define $ac_func innocuous_$ac_func
6853
6854 /* System header to define __stub macros and hopefully few prototypes,
6855     which can conflict with char $ac_func (); below.
6856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6857     <limits.h> exists even on freestanding compilers.  */
6858
6859 #ifdef __STDC__
6860 # include <limits.h>
6861 #else
6862 # include <assert.h>
6863 #endif
6864
6865 #undef $ac_func
6866
6867 /* Override any gcc2 internal prototype to avoid an error.  */
6868 #ifdef __cplusplus
6869 extern "C"
6870 {
6871 #endif
6872 /* We use char because int might match the return type of a gcc2
6873    builtin and then its argument prototype would still apply.  */
6874 char $ac_func ();
6875 /* The GNU C library defines this for functions which it implements
6876     to always fail with ENOSYS.  Some functions are actually named
6877     something starting with __ and the normal name is an alias.  */
6878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6879 choke me
6880 #else
6881 char (*f) () = $ac_func;
6882 #endif
6883 #ifdef __cplusplus
6884 }
6885 #endif
6886
6887 int
6888 main ()
6889 {
6890 return f != $ac_func;
6891   ;
6892   return 0;
6893 }
6894 _ACEOF
6895 rm -f conftest.$ac_objext conftest$ac_exeext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6897   (eval $ac_link) 2>conftest.er1
6898   ac_status=$?
6899   grep -v '^ *+' conftest.er1 >conftest.err
6900   rm -f conftest.er1
6901   cat conftest.err >&5
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); } &&
6904          { ac_try='test -z "$ac_c_werror_flag"
6905                          || test ! -s conftest.err'
6906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907   (eval $ac_try) 2>&5
6908   ac_status=$?
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); }; } &&
6911          { ac_try='test -s conftest$ac_exeext'
6912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913   (eval $ac_try) 2>&5
6914   ac_status=$?
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); }; }; then
6917   eval "$as_ac_var=yes"
6918 else
6919   echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6921
6922 eval "$as_ac_var=no"
6923 fi
6924 rm -f conftest.err conftest.$ac_objext \
6925       conftest$ac_exeext conftest.$ac_ext
6926 fi
6927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6929 if test `eval echo '${'$as_ac_var'}'` = yes; then
6930   cat >>confdefs.h <<_ACEOF
6931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6932 _ACEOF
6933
6934 fi
6935 done
6936
6937
6938
6939 for ac_func in nanosleep nl_langinfo
6940 do
6941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6942 echo "$as_me:$LINENO: checking for $ac_func" >&5
6943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6944 if eval "test \"\${$as_ac_var+set}\" = set"; then
6945   echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947   cat >conftest.$ac_ext <<_ACEOF
6948 /* confdefs.h.  */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h.  */
6953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6955 #define $ac_func innocuous_$ac_func
6956
6957 /* System header to define __stub macros and hopefully few prototypes,
6958     which can conflict with char $ac_func (); below.
6959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6960     <limits.h> exists even on freestanding compilers.  */
6961
6962 #ifdef __STDC__
6963 # include <limits.h>
6964 #else
6965 # include <assert.h>
6966 #endif
6967
6968 #undef $ac_func
6969
6970 /* Override any gcc2 internal prototype to avoid an error.  */
6971 #ifdef __cplusplus
6972 extern "C"
6973 {
6974 #endif
6975 /* We use char because int might match the return type of a gcc2
6976    builtin and then its argument prototype would still apply.  */
6977 char $ac_func ();
6978 /* The GNU C library defines this for functions which it implements
6979     to always fail with ENOSYS.  Some functions are actually named
6980     something starting with __ and the normal name is an alias.  */
6981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6982 choke me
6983 #else
6984 char (*f) () = $ac_func;
6985 #endif
6986 #ifdef __cplusplus
6987 }
6988 #endif
6989
6990 int
6991 main ()
6992 {
6993 return f != $ac_func;
6994   ;
6995   return 0;
6996 }
6997 _ACEOF
6998 rm -f conftest.$ac_objext conftest$ac_exeext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7000   (eval $ac_link) 2>conftest.er1
7001   ac_status=$?
7002   grep -v '^ *+' conftest.er1 >conftest.err
7003   rm -f conftest.er1
7004   cat conftest.err >&5
7005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006   (exit $ac_status); } &&
7007          { ac_try='test -z "$ac_c_werror_flag"
7008                          || test ! -s conftest.err'
7009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010   (eval $ac_try) 2>&5
7011   ac_status=$?
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); }; } &&
7014          { ac_try='test -s conftest$ac_exeext'
7015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016   (eval $ac_try) 2>&5
7017   ac_status=$?
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); }; }; then
7020   eval "$as_ac_var=yes"
7021 else
7022   echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7024
7025 eval "$as_ac_var=no"
7026 fi
7027 rm -f conftest.err conftest.$ac_objext \
7028       conftest$ac_exeext conftest.$ac_ext
7029 fi
7030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7032 if test `eval echo '${'$as_ac_var'}'` = yes; then
7033   cat >>confdefs.h <<_ACEOF
7034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7035 _ACEOF
7036
7037 fi
7038 done
7039
7040
7041 for ac_header in varargs.h
7042 do
7043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7045   echo "$as_me:$LINENO: checking for $ac_header" >&5
7046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7048   echo $ECHO_N "(cached) $ECHO_C" >&6
7049 fi
7050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7052 else
7053   # Is the header compilable?
7054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7056 cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h.  */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h.  */
7062 $ac_includes_default
7063 #include <$ac_header>
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067   (eval $ac_compile) 2>conftest.er1
7068   ac_status=$?
7069   grep -v '^ *+' conftest.er1 >conftest.err
7070   rm -f conftest.er1
7071   cat conftest.err >&5
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); } &&
7074          { ac_try='test -z "$ac_c_werror_flag"
7075                          || test ! -s conftest.err'
7076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077   (eval $ac_try) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); }; } &&
7081          { ac_try='test -s conftest.$ac_objext'
7082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083   (eval $ac_try) 2>&5
7084   ac_status=$?
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); }; }; then
7087   ac_header_compiler=yes
7088 else
7089   echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092 ac_header_compiler=no
7093 fi
7094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7096 echo "${ECHO_T}$ac_header_compiler" >&6
7097
7098 # Is the header present?
7099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7101 cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h.  */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h.  */
7107 #include <$ac_header>
7108 _ACEOF
7109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7111   ac_status=$?
7112   grep -v '^ *+' conftest.er1 >conftest.err
7113   rm -f conftest.er1
7114   cat conftest.err >&5
7115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116   (exit $ac_status); } >/dev/null; then
7117   if test -s conftest.err; then
7118     ac_cpp_err=$ac_c_preproc_warn_flag
7119     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7120   else
7121     ac_cpp_err=
7122   fi
7123 else
7124   ac_cpp_err=yes
7125 fi
7126 if test -z "$ac_cpp_err"; then
7127   ac_header_preproc=yes
7128 else
7129   echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132   ac_header_preproc=no
7133 fi
7134 rm -f conftest.err conftest.$ac_ext
7135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7136 echo "${ECHO_T}$ac_header_preproc" >&6
7137
7138 # So?  What about this header?
7139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7140   yes:no: )
7141     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7145     ac_header_preproc=yes
7146     ;;
7147   no:yes:* )
7148     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7150     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7151 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7152     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7154     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7155 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7158     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7160     (
7161       cat <<\_ASBOX
7162 ## ------------------------------------------ ##
7163 ## Report this to the AC_PACKAGE_NAME lists.  ##
7164 ## ------------------------------------------ ##
7165 _ASBOX
7166     ) |
7167       sed "s/^/$as_me: WARNING:     /" >&2
7168     ;;
7169 esac
7170 echo "$as_me:$LINENO: checking for $ac_header" >&5
7171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7173   echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175   eval "$as_ac_Header=\$ac_header_preproc"
7176 fi
7177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7179
7180 fi
7181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7182   cat >>confdefs.h <<_ACEOF
7183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7184 _ACEOF
7185
7186 fi
7187
7188 done
7189
7190
7191 # End of readline/conio stuff
7192 # -----------------------------------------------------------------------
7193
7194 # -----------------------------------------------------------------------
7195 #  Check for Python support
7196 #
7197 echo "$as_me:$LINENO: checking for Python support" >&5
7198 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7199
7200 # Check whether --with-python or --without-python was given.
7201 if test "${with_python+set}" = set; then
7202   withval="$with_python"
7203
7204   PYTHON_INCDIR=
7205   PYTHON_LIBS=
7206   if test "$withval" != "no"; then
7207      if test "$withval" = "yes"; then
7208         if test -f /usr/include/python2.2/Python.h; then
7209            PYTHON_INCDIR=-I/usr/include/python2.2
7210            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7211         elif test -f /usr/include/python2.3/Python.h; then
7212            PYTHON_INCDIR=-I/usr/include/python2.3
7213            PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7214         elif test -f /usr/include/python2.4/Python.h; then
7215            PYTHON_INCDIR=-I/usr/include/python2.4
7216            PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7217         elif test -f $prefix/include/Python.h; then
7218            PYTHON_INCDIR=-I$prefix/include
7219            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7220         else
7221            echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6
7223            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7224 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7225    { (exit 1); exit 1; }; }
7226         fi
7227      else
7228         if test -f $withval/Python.h; then
7229            PYTHON_INCDIR=-I$withval
7230            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7231         elif test -f $withval/include/Python.h; then
7232            PYTHON_INCDIR=-I$withval/include
7233            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7234         else
7235            echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6
7237            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7238 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7239    { (exit 1); exit 1; }; }
7240         fi
7241      fi
7242      cat >>confdefs.h <<\_ACEOF
7243 #define HAVE_PYTHON 1
7244 _ACEOF
7245
7246      echo "$as_me:$LINENO: result: yes" >&5
7247 echo "${ECHO_T}yes" >&6
7248      support_python=yes
7249
7250   else
7251      echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6
7253   fi
7254
7255 else
7256
7257   echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6
7259
7260 fi;
7261
7262
7263
7264
7265 #
7266 # Find where sockets are (especially for Solaris)
7267 # Do this before the TCP Wrappers test since tcp wrappers
7268 # uses the socket library and some linkers are stupid.
7269 #
7270 echo "$as_me:$LINENO: checking for socket" >&5
7271 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7272 if test "${ac_cv_func_socket+set}" = set; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275   cat >conftest.$ac_ext <<_ACEOF
7276 /* confdefs.h.  */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h.  */
7281 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7283 #define socket innocuous_socket
7284
7285 /* System header to define __stub macros and hopefully few prototypes,
7286     which can conflict with char socket (); below.
7287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7288     <limits.h> exists even on freestanding compilers.  */
7289
7290 #ifdef __STDC__
7291 # include <limits.h>
7292 #else
7293 # include <assert.h>
7294 #endif
7295
7296 #undef socket
7297
7298 /* Override any gcc2 internal prototype to avoid an error.  */
7299 #ifdef __cplusplus
7300 extern "C"
7301 {
7302 #endif
7303 /* We use char because int might match the return type of a gcc2
7304    builtin and then its argument prototype would still apply.  */
7305 char socket ();
7306 /* The GNU C library defines this for functions which it implements
7307     to always fail with ENOSYS.  Some functions are actually named
7308     something starting with __ and the normal name is an alias.  */
7309 #if defined (__stub_socket) || defined (__stub___socket)
7310 choke me
7311 #else
7312 char (*f) () = socket;
7313 #endif
7314 #ifdef __cplusplus
7315 }
7316 #endif
7317
7318 int
7319 main ()
7320 {
7321 return f != socket;
7322   ;
7323   return 0;
7324 }
7325 _ACEOF
7326 rm -f conftest.$ac_objext conftest$ac_exeext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7328   (eval $ac_link) 2>conftest.er1
7329   ac_status=$?
7330   grep -v '^ *+' conftest.er1 >conftest.err
7331   rm -f conftest.er1
7332   cat conftest.err >&5
7333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334   (exit $ac_status); } &&
7335          { ac_try='test -z "$ac_c_werror_flag"
7336                          || test ! -s conftest.err'
7337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338   (eval $ac_try) 2>&5
7339   ac_status=$?
7340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341   (exit $ac_status); }; } &&
7342          { ac_try='test -s conftest$ac_exeext'
7343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344   (eval $ac_try) 2>&5
7345   ac_status=$?
7346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347   (exit $ac_status); }; }; then
7348   ac_cv_func_socket=yes
7349 else
7350   echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7352
7353 ac_cv_func_socket=no
7354 fi
7355 rm -f conftest.err conftest.$ac_objext \
7356       conftest$ac_exeext conftest.$ac_ext
7357 fi
7358 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7359 echo "${ECHO_T}$ac_cv_func_socket" >&6
7360 if test $ac_cv_func_socket = yes; then
7361   echo "$as_me:$LINENO: result: using libc's socket" >&5
7362 echo "${ECHO_T}using libc's socket" >&6
7363 else
7364
7365 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7366 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7367 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7368   echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370   ac_check_lib_save_LIBS=$LIBS
7371 LIBS="-lxnet  $LIBS"
7372 cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h.  */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h.  */
7378
7379 /* Override any gcc2 internal prototype to avoid an error.  */
7380 #ifdef __cplusplus
7381 extern "C"
7382 #endif
7383 /* We use char because int might match the return type of a gcc2
7384    builtin and then its argument prototype would still apply.  */
7385 char socket ();
7386 int
7387 main ()
7388 {
7389 socket ();
7390   ;
7391   return 0;
7392 }
7393 _ACEOF
7394 rm -f conftest.$ac_objext conftest$ac_exeext
7395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7396   (eval $ac_link) 2>conftest.er1
7397   ac_status=$?
7398   grep -v '^ *+' conftest.er1 >conftest.err
7399   rm -f conftest.er1
7400   cat conftest.err >&5
7401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402   (exit $ac_status); } &&
7403          { ac_try='test -z "$ac_c_werror_flag"
7404                          || test ! -s conftest.err'
7405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406   (eval $ac_try) 2>&5
7407   ac_status=$?
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); }; } &&
7410          { ac_try='test -s conftest$ac_exeext'
7411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412   (eval $ac_try) 2>&5
7413   ac_status=$?
7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415   (exit $ac_status); }; }; then
7416   ac_cv_lib_xnet_socket=yes
7417 else
7418   echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7420
7421 ac_cv_lib_xnet_socket=no
7422 fi
7423 rm -f conftest.err conftest.$ac_objext \
7424       conftest$ac_exeext conftest.$ac_ext
7425 LIBS=$ac_check_lib_save_LIBS
7426 fi
7427 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7428 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7429 if test $ac_cv_lib_xnet_socket = yes; then
7430   cat >>confdefs.h <<_ACEOF
7431 #define HAVE_LIBXNET 1
7432 _ACEOF
7433
7434   LIBS="-lxnet $LIBS"
7435
7436 fi
7437
7438
7439 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7440 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7441 if test "${ac_cv_lib_socket_socket+set}" = set; then
7442   echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444   ac_check_lib_save_LIBS=$LIBS
7445 LIBS="-lsocket  $LIBS"
7446 cat >conftest.$ac_ext <<_ACEOF
7447 /* confdefs.h.  */
7448 _ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h.  */
7452
7453 /* Override any gcc2 internal prototype to avoid an error.  */
7454 #ifdef __cplusplus
7455 extern "C"
7456 #endif
7457 /* We use char because int might match the return type of a gcc2
7458    builtin and then its argument prototype would still apply.  */
7459 char socket ();
7460 int
7461 main ()
7462 {
7463 socket ();
7464   ;
7465   return 0;
7466 }
7467 _ACEOF
7468 rm -f conftest.$ac_objext conftest$ac_exeext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7470   (eval $ac_link) 2>conftest.er1
7471   ac_status=$?
7472   grep -v '^ *+' conftest.er1 >conftest.err
7473   rm -f conftest.er1
7474   cat conftest.err >&5
7475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); } &&
7477          { ac_try='test -z "$ac_c_werror_flag"
7478                          || test ! -s conftest.err'
7479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480   (eval $ac_try) 2>&5
7481   ac_status=$?
7482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483   (exit $ac_status); }; } &&
7484          { ac_try='test -s conftest$ac_exeext'
7485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486   (eval $ac_try) 2>&5
7487   ac_status=$?
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); }; }; then
7490   ac_cv_lib_socket_socket=yes
7491 else
7492   echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495 ac_cv_lib_socket_socket=no
7496 fi
7497 rm -f conftest.err conftest.$ac_objext \
7498       conftest$ac_exeext conftest.$ac_ext
7499 LIBS=$ac_check_lib_save_LIBS
7500 fi
7501 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7502 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7503 if test $ac_cv_lib_socket_socket = yes; then
7504   cat >>confdefs.h <<_ACEOF
7505 #define HAVE_LIBSOCKET 1
7506 _ACEOF
7507
7508   LIBS="-lsocket $LIBS"
7509
7510 fi
7511
7512
7513 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7514 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7515 if test "${ac_cv_lib_inet_socket+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   ac_check_lib_save_LIBS=$LIBS
7519 LIBS="-linet  $LIBS"
7520 cat >conftest.$ac_ext <<_ACEOF
7521 /* confdefs.h.  */
7522 _ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h.  */
7526
7527 /* Override any gcc2 internal prototype to avoid an error.  */
7528 #ifdef __cplusplus
7529 extern "C"
7530 #endif
7531 /* We use char because int might match the return type of a gcc2
7532    builtin and then its argument prototype would still apply.  */
7533 char socket ();
7534 int
7535 main ()
7536 {
7537 socket ();
7538   ;
7539   return 0;
7540 }
7541 _ACEOF
7542 rm -f conftest.$ac_objext conftest$ac_exeext
7543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7544   (eval $ac_link) 2>conftest.er1
7545   ac_status=$?
7546   grep -v '^ *+' conftest.er1 >conftest.err
7547   rm -f conftest.er1
7548   cat conftest.err >&5
7549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550   (exit $ac_status); } &&
7551          { ac_try='test -z "$ac_c_werror_flag"
7552                          || test ! -s conftest.err'
7553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554   (eval $ac_try) 2>&5
7555   ac_status=$?
7556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557   (exit $ac_status); }; } &&
7558          { ac_try='test -s conftest$ac_exeext'
7559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560   (eval $ac_try) 2>&5
7561   ac_status=$?
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); }; }; then
7564   ac_cv_lib_inet_socket=yes
7565 else
7566   echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7568
7569 ac_cv_lib_inet_socket=no
7570 fi
7571 rm -f conftest.err conftest.$ac_objext \
7572       conftest$ac_exeext conftest.$ac_ext
7573 LIBS=$ac_check_lib_save_LIBS
7574 fi
7575 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7576 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7577 if test $ac_cv_lib_inet_socket = yes; then
7578   cat >>confdefs.h <<_ACEOF
7579 #define HAVE_LIBINET 1
7580 _ACEOF
7581
7582   LIBS="-linet $LIBS"
7583
7584 fi
7585
7586 fi
7587
7588
7589
7590 # -----------------------------------------------------------
7591 # Check whether user wants TCP wrappers support (default off)
7592 # -----------------------------------------------------------
7593 TCPW_MSG="no"
7594
7595 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7596 if test "${with_tcp_wrappers+set}" = set; then
7597   withval="$with_tcp_wrappers"
7598
7599     if test "x$withval" != "xno" ; then
7600        saved_LIBS="$LIBS"
7601        LIBS="$saved_LIBS -lwrap"
7602        echo "$as_me:$LINENO: checking for libwrap" >&5
7603 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7604        cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h.  */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h.  */
7610  #include <tcpd.h>
7611              int deny_severity = 0;
7612              int allow_severity = 0;
7613              struct request_info *req;
7614 int
7615 main ()
7616 {
7617  hosts_access(req);
7618   ;
7619   return 0;
7620 }
7621 _ACEOF
7622 rm -f conftest.$ac_objext conftest$ac_exeext
7623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7624   (eval $ac_link) 2>conftest.er1
7625   ac_status=$?
7626   grep -v '^ *+' conftest.er1 >conftest.err
7627   rm -f conftest.er1
7628   cat conftest.err >&5
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); } &&
7631          { ac_try='test -z "$ac_c_werror_flag"
7632                          || test ! -s conftest.err'
7633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634   (eval $ac_try) 2>&5
7635   ac_status=$?
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); }; } &&
7638          { ac_try='test -s conftest$ac_exeext'
7639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640   (eval $ac_try) 2>&5
7641   ac_status=$?
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); }; }; then
7644
7645             echo "$as_me:$LINENO: result: yes" >&5
7646 echo "${ECHO_T}yes" >&6
7647             cat >>confdefs.h <<\_ACEOF
7648 #define HAVE_LIBWRAP 1
7649 _ACEOF
7650
7651             TCPW_MSG="yes"
7652
7653 else
7654   echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7656
7657
7658             LIBS="$saved_LIBS -lwrap -lnsl"
7659             cat >conftest.$ac_ext <<_ACEOF
7660 /* confdefs.h.  */
7661 _ACEOF
7662 cat confdefs.h >>conftest.$ac_ext
7663 cat >>conftest.$ac_ext <<_ACEOF
7664 /* end confdefs.h.  */
7665  #include <tcpd.h>
7666                  int deny_severity = 0;
7667                  int allow_severity = 0;
7668                  struct request_info *req;
7669 int
7670 main ()
7671 {
7672  hosts_access(req);
7673   ;
7674   return 0;
7675 }
7676 _ACEOF
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679   (eval $ac_link) 2>conftest.er1
7680   ac_status=$?
7681   grep -v '^ *+' conftest.er1 >conftest.err
7682   rm -f conftest.er1
7683   cat conftest.err >&5
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); } &&
7686          { ac_try='test -z "$ac_c_werror_flag"
7687                          || test ! -s conftest.err'
7688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689   (eval $ac_try) 2>&5
7690   ac_status=$?
7691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   (exit $ac_status); }; } &&
7693          { ac_try='test -s conftest$ac_exeext'
7694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695   (eval $ac_try) 2>&5
7696   ac_status=$?
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); }; }; then
7699
7700                  echo "$as_me:$LINENO: result: yes" >&5
7701 echo "${ECHO_T}yes" >&6
7702                  cat >>confdefs.h <<\_ACEOF
7703 #define HAVE_LIBWRAP 1
7704 _ACEOF
7705
7706                  TCPW_MSG="yes"
7707
7708 else
7709   echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7711
7712 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7713 echo "$as_me: error: *** libwrap missing" >&2;}
7714    { (exit 1); exit 1; }; }
7715
7716 fi
7717 rm -f conftest.err conftest.$ac_objext \
7718       conftest$ac_exeext conftest.$ac_ext
7719
7720 fi
7721 rm -f conftest.err conftest.$ac_objext \
7722       conftest$ac_exeext conftest.$ac_ext
7723     fi
7724
7725
7726 fi;
7727
7728 # -----------------------------------------------------------
7729 # Check whether OpenSSL is available
7730 # -----------------------------------------------------------
7731 echo "$as_me:$LINENO: checking for OpenSSL" >&5
7732 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7733
7734 # Check whether --with-openssl or --without-openssl was given.
7735 if test "${with_openssl+set}" = set; then
7736   withval="$with_openssl"
7737   with_openssl_directory=${withval}
7738 fi;
7739
7740 if test "x$with_openssl_directory" != "x"; then
7741         OPENSSL_LIBS="-lssl -lcrypto"
7742         OPENSSL_INC=""
7743
7744         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
7745                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
7746                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
7747         fi
7748
7749         saved_LIBS="$LIBS"
7750         saved_CFLAGS="$CFLAGS"
7751         LIBS="$saved_LIBS $OPENSSL_LIBS"
7752         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
7753
7754         cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h.  */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h.  */
7760  #include <openssl/ssl.h>
7761 int
7762 main ()
7763 {
7764  CRYPTO_set_id_callback(NULL);
7765   ;
7766   return 0;
7767 }
7768 _ACEOF
7769 rm -f conftest.$ac_objext conftest$ac_exeext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7771   (eval $ac_link) 2>conftest.er1
7772   ac_status=$?
7773   grep -v '^ *+' conftest.er1 >conftest.err
7774   rm -f conftest.er1
7775   cat conftest.err >&5
7776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777   (exit $ac_status); } &&
7778          { ac_try='test -z "$ac_c_werror_flag"
7779                          || test ! -s conftest.err'
7780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781   (eval $ac_try) 2>&5
7782   ac_status=$?
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); }; } &&
7785          { ac_try='test -s conftest$ac_exeext'
7786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787   (eval $ac_try) 2>&5
7788   ac_status=$?
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); }; }; then
7791    support_tls="yes"
7792 else
7793   echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7795
7796  support_tls="no"
7797
7798 fi
7799 rm -f conftest.err conftest.$ac_objext \
7800       conftest$ac_exeext conftest.$ac_ext
7801
7802         LIBS="$saved_LIBS"
7803         CFLAGS="$saved_CFLAGS"
7804
7805         if test "$support_tls" = "yes"; then
7806
7807 cat >>confdefs.h <<\_ACEOF
7808 #define HAVE_OPENSSL 1
7809 _ACEOF
7810
7811
7812 cat >>confdefs.h <<\_ACEOF
7813 #define HAVE_TLS 1
7814 _ACEOF
7815
7816         fi
7817 else
7818         support_tls="no"
7819         OPENSSL_LIBS=""
7820         OPENSSL_INC=""
7821 fi
7822
7823 echo "$as_me:$LINENO: result: $support_tls" >&5
7824 echo "${ECHO_T}$support_tls" >&6
7825
7826
7827
7828
7829
7830 # ------------------------------------------
7831 # Where to place working dir
7832 # ------------------------------------------
7833 working_dir=`eval echo ${prefix}/var/bacula/working`
7834
7835 # Check whether --with-working-dir or --without-working-dir was given.
7836 if test "${with_working_dir+set}" = set; then
7837   withval="$with_working_dir"
7838
7839        if test "x$withval" != "xno" ; then
7840               working_dir=$withval
7841        fi
7842
7843
7844 fi;
7845
7846
7847
7848
7849 # ------------------------------------------
7850 # Where to place scriptdir (script files)
7851 # ------------------------------------------
7852 scriptdir=`eval echo ${sysconfdir}`
7853
7854 # Check whether --with-scriptdir or --without-scriptdir was given.
7855 if test "${with_scriptdir+set}" = set; then
7856   withval="$with_scriptdir"
7857
7858        if test "x$withval" != "xno" ; then
7859               scriptdir=$withval
7860        fi
7861
7862
7863 fi;
7864
7865
7866
7867
7868 # ------------------------------------------
7869 # Where to send dump email
7870 # ------------------------------------------
7871 dump_email=root@localhost
7872
7873 # Check whether --with-dump-email or --without-dump-email was given.
7874 if test "${with_dump_email+set}" = set; then
7875   withval="$with_dump_email"
7876
7877        if test "x$withval" != "xno" ; then
7878               dump_email=$withval
7879        fi
7880
7881
7882 fi;
7883
7884
7885
7886 # ------------------------------------------
7887 # Where to send job email
7888 # ------------------------------------------
7889 job_email=root@localhost
7890
7891 # Check whether --with-job-email or --without-job-email was given.
7892 if test "${with_job_email+set}" = set; then
7893   withval="$with_job_email"
7894
7895        if test "x$withval" != "xno" ; then
7896               job_email=$withval
7897        fi
7898
7899
7900 fi;
7901
7902
7903
7904 # ------------------------------------------
7905 # Where to find smtp host
7906 # ------------------------------------------
7907 smtp_host=localhost
7908
7909 # Check whether --with-smtp_host or --without-smtp_host was given.
7910 if test "${with_smtp_host+set}" = set; then
7911   withval="$with_smtp_host"
7912
7913        if test "x$withval" != "xno" ; then
7914               smtp_host=$withval
7915        fi
7916
7917
7918 fi;
7919
7920
7921
7922
7923 # ------------------------------------
7924 # Where to place pid files
7925 # ------------------------------------
7926 piddir=/var/run
7927
7928 # Check whether --with-pid-dir or --without-pid-dir was given.
7929 if test "${with_pid_dir+set}" = set; then
7930   withval="$with_pid_dir"
7931
7932         if test "x$withval" != "xno" ; then
7933             piddir=$withval
7934         fi
7935
7936
7937 fi;
7938
7939 cat >>confdefs.h <<_ACEOF
7940 #define _PATH_BACULA_PIDDIR "$piddir"
7941 _ACEOF
7942
7943
7944
7945
7946 # ------------------------------------
7947 # Where to place subsys "lock file"
7948 # ------------------------------------
7949 subsysdir=/var/run/subsys
7950
7951 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7952 if test "${with_subsys_dir+set}" = set; then
7953   withval="$with_subsys_dir"
7954
7955         if test "x$withval" != "xno" ; then
7956             subsysdir=$withval
7957         fi
7958
7959
7960 fi;
7961
7962
7963
7964
7965
7966 # ------------------------------------
7967 # Where to start assigning ports
7968 # ------------------------------------
7969 baseport=9101
7970
7971 # Check whether --with-baseport or --without-baseport was given.
7972 if test "${with_baseport+set}" = set; then
7973   withval="$with_baseport"
7974
7975         if test "x$withval" != "xno" ; then
7976              baseport=$withval
7977         fi
7978
7979
7980 fi;
7981
7982
7983 dir_port=`expr $baseport`
7984 fd_port=`expr $baseport + 1`
7985 sd_port=`expr $fd_port + 1`
7986
7987
7988
7989
7990
7991
7992 # ------------------------------------------
7993 # Generate passwords
7994 # ------------------------------------------
7995 dir_password=
7996
7997 # Check whether --with-dir-password or --without-dir-password was given.
7998 if test "${with_dir_password+set}" = set; then
7999   withval="$with_dir_password"
8000
8001        if test "x$withval" != "xno" ; then
8002            dir_password=$withval
8003        fi
8004
8005
8006 fi;
8007
8008 if test "x$dir_password" = "x" ; then
8009    if test "x$OPENSSL" = "xnone" ; then
8010 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8011       key=`autoconf/randpass 33`
8012    else
8013       key=`openssl rand -base64 33`
8014    fi
8015    dir_password=$key
8016 fi
8017
8018 fd_password=
8019
8020 # Check whether --with-fd-password or --without-fd-password was given.
8021 if test "${with_fd_password+set}" = set; then
8022   withval="$with_fd_password"
8023
8024        if test "x$withval" != "xno" ; then
8025            fd_password=$withval
8026        fi
8027
8028
8029 fi;
8030
8031 if test "x$fd_password" = "x" ; then
8032    if test "x$OPENSSL" = "xnone" ; then
8033 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8034       key=`autoconf/randpass 37`
8035    else
8036       key=`openssl rand -base64 33`
8037    fi
8038    fd_password=$key
8039 fi
8040
8041 sd_password=
8042
8043 # Check whether --with-sd-password or --without-sd-password was given.
8044 if test "${with_sd_password+set}" = set; then
8045   withval="$with_sd_password"
8046
8047        if test "x$withval" != "xno" ; then
8048            sd_password=$withval
8049        fi
8050
8051
8052 fi;
8053
8054 if test "x$sd_password" = "x" ; then
8055    if test "x$OPENSSL" = "xnone" ; then
8056 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8057       key=`autoconf/randpass 41`
8058    else
8059       key=`openssl rand -base64 33`
8060    fi
8061    sd_password=$key
8062 fi
8063
8064 mon_dir_password=
8065
8066 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8067 if test "${with_mon_dir_password+set}" = set; then
8068   withval="$with_mon_dir_password"
8069
8070        if test "x$withval" != "xno" ; then
8071            mon_dir_password=$withval
8072        fi
8073
8074
8075 fi;
8076
8077 if test "x$mon_dir_password" = "x" ; then
8078    if test "x$OPENSSL" = "xnone" ; then
8079 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8080       key=`autoconf/randpass 33`
8081    else
8082       key=`openssl rand -base64 33`
8083    fi
8084    mon_dir_password=$key
8085 fi
8086
8087 mon_fd_password=
8088
8089 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8090 if test "${with_mon_fd_password+set}" = set; then
8091   withval="$with_mon_fd_password"
8092
8093        if test "x$withval" != "xno" ; then
8094            mon_fd_password=$withval
8095        fi
8096
8097
8098 fi;
8099
8100 if test "x$mon_fd_password" = "x" ; then
8101    if test "x$OPENSSL" = "xnone" ; then
8102 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8103       key=`autoconf/randpass 37`
8104    else
8105       key=`openssl rand -base64 33`
8106    fi
8107    mon_fd_password=$key
8108 fi
8109
8110 mon_sd_password=
8111
8112 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8113 if test "${with_mon_sd_password+set}" = set; then
8114   withval="$with_mon_sd_password"
8115
8116        if test "x$withval" != "xno" ; then
8117            mon_sd_password=$withval
8118        fi
8119
8120
8121 fi;
8122
8123 if test "x$mon_sd_password" = "x" ; then
8124    if test "x$OPENSSL" = "xnone" ; then
8125 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8126       key=`autoconf/randpass 41`
8127    else
8128       key=`openssl rand -base64 33`
8129    fi
8130    mon_sd_password=$key
8131 fi
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141 #
8142 # Handle users and groups for each daemon
8143 #
8144 dir_user=
8145
8146 # Check whether --with-dir_user or --without-dir_user was given.
8147 if test "${with_dir_user+set}" = set; then
8148   withval="$with_dir_user"
8149
8150         if test "x$withval" != "x" ; then
8151              dir_user=$withval
8152         fi
8153
8154
8155 fi;
8156
8157 dir_group=
8158
8159 # Check whether --with-dir_group or --without-dir_group was given.
8160 if test "${with_dir_group+set}" = set; then
8161   withval="$with_dir_group"
8162
8163         if test "x$withval" != "x" ; then
8164              dir_group=$withval
8165         fi
8166
8167
8168 fi;
8169
8170 sd_user=
8171
8172 # Check whether --with-sd_user or --without-sd_user was given.
8173 if test "${with_sd_user+set}" = set; then
8174   withval="$with_sd_user"
8175
8176         if test "x$withval" != "x" ; then
8177              sd_user=$withval
8178         fi
8179
8180
8181 fi;
8182
8183 sd_group=
8184
8185 # Check whether --with-sd_group or --without-sd_group was given.
8186 if test "${with_sd_group+set}" = set; then
8187   withval="$with_sd_group"
8188
8189         if test "x$withval" != "x" ; then
8190              sd_group=$withval
8191         fi
8192
8193
8194 fi;
8195
8196 fd_user=
8197
8198 # Check whether --with-fd_user or --without-fd_user was given.
8199 if test "${with_fd_user+set}" = set; then
8200   withval="$with_fd_user"
8201
8202         if test "x$withval" != "x" ; then
8203              fd_user=$withval
8204         fi
8205
8206
8207 fi;
8208
8209 fd_group=
8210
8211 # Check whether --with-fd_group or --without-fd_group was given.
8212 if test "${with_fd_group+set}" = set; then
8213   withval="$with_fd_group"
8214
8215         if test "x$withval" != "x" ; then
8216              fd_group=$withval
8217         fi
8218
8219
8220 fi;
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232 #
8233 # allow setting default executable permissions
8234 #
8235 SBINPERM=0754
8236
8237 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8238 if test "${with_sbin_perm+set}" = set; then
8239   withval="$with_sbin_perm"
8240
8241         if test "x$withval" != "x" ; then
8242             SBINPERM=$withval
8243         fi
8244
8245
8246 fi;
8247
8248
8249
8250 # ------------------------------------------------
8251 # Bacula check for various SQL database engines
8252 # ------------------------------------------------
8253
8254 db_found=no
8255 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8256 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8257
8258 # Check whether --with-postgresql or --without-postgresql was given.
8259 if test "${with_postgresql+set}" = set; then
8260   withval="$with_postgresql"
8261
8262   if test "$withval" != "no"; then
8263       if test "$db_found" = "yes"; then
8264           echo "$as_me:$LINENO: result: error" >&5
8265 echo "${ECHO_T}error" >&6
8266           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8267 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8268    { (exit 1); exit 1; }; };
8269       fi
8270       if test "$withval" = "yes"; then
8271           if test -f /usr/local/include/libpq-fe.h; then
8272               POSTGRESQL_INCDIR=/usr/local/include
8273               POSTGRESQL_LIBDIR=/usr/local/lib
8274               POSTGRESQL_BINDIR=/usr/local/bin
8275           elif test -f /usr/include/libpq-fe.h; then
8276               POSTGRESQL_INCDIR=/usr/include
8277               POSTGRESQL_LIBDIR=/usr/lib
8278               POSTGRESQL_BINDIR=/usr/bin
8279           elif test -f /usr/include/pgsql/libpq-fe.h; then
8280               POSTGRESQL_INCDIR=/usr/include/pgsql
8281               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8282               POSTGRESQL_BINDIR=/usr/bin
8283           elif test -f /usr/include/postgresql/libpq-fe.h; then
8284               POSTGRESQL_INCDIR=/usr/include/postgresql
8285               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8286               POSTGRESQL_BINDIR=/usr/bin
8287           else
8288               echo "$as_me:$LINENO: result: no" >&5
8289 echo "${ECHO_T}no" >&6
8290               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8291 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8292    { (exit 1); exit 1; }; }
8293           fi
8294       elif test -f $withval/include/libpq-fe.h; then
8295           POSTGRESQL_INCDIR=$withval/include
8296           POSTGRESQL_LIBDIR=$withval/lib
8297           POSTGRESQL_BINDIR=$withval/bin
8298       elif test -f $withval/include/postgresql/libpq-fe.h; then
8299           POSTGRESQL_INCDIR=$withval/include/postgresql
8300           POSTGRESQL_LIBDIR=$withval/lib
8301           POSTGRESQL_BINDIR=$withval/bin
8302       else
8303           echo "$as_me:$LINENO: result: no" >&5
8304 echo "${ECHO_T}no" >&6
8305           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8306 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8307    { (exit 1); exit 1; }; }
8308       fi
8309       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8310       echo "$as_me:$LINENO: checking for crypt" >&5
8311 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8312 if test "${ac_cv_func_crypt+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   cat >conftest.$ac_ext <<_ACEOF
8316 /* confdefs.h.  */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h.  */
8321 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8323 #define crypt innocuous_crypt
8324
8325 /* System header to define __stub macros and hopefully few prototypes,
8326     which can conflict with char crypt (); below.
8327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8328     <limits.h> exists even on freestanding compilers.  */
8329
8330 #ifdef __STDC__
8331 # include <limits.h>
8332 #else
8333 # include <assert.h>
8334 #endif
8335
8336 #undef crypt
8337
8338 /* Override any gcc2 internal prototype to avoid an error.  */
8339 #ifdef __cplusplus
8340 extern "C"
8341 {
8342 #endif
8343 /* We use char because int might match the return type of a gcc2
8344    builtin and then its argument prototype would still apply.  */
8345 char crypt ();
8346 /* The GNU C library defines this for functions which it implements
8347     to always fail with ENOSYS.  Some functions are actually named
8348     something starting with __ and the normal name is an alias.  */
8349 #if defined (__stub_crypt) || defined (__stub___crypt)
8350 choke me
8351 #else
8352 char (*f) () = crypt;
8353 #endif
8354 #ifdef __cplusplus
8355 }
8356 #endif
8357
8358 int
8359 main ()
8360 {
8361 return f != crypt;
8362   ;
8363   return 0;
8364 }
8365 _ACEOF
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368   (eval $ac_link) 2>conftest.er1
8369   ac_status=$?
8370   grep -v '^ *+' conftest.er1 >conftest.err
8371   rm -f conftest.er1
8372   cat conftest.err >&5
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); } &&
8375          { ac_try='test -z "$ac_c_werror_flag"
8376                          || test ! -s conftest.err'
8377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378   (eval $ac_try) 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); }; } &&
8382          { ac_try='test -s conftest$ac_exeext'
8383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384   (eval $ac_try) 2>&5
8385   ac_status=$?
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); }; }; then
8388   ac_cv_func_crypt=yes
8389 else
8390   echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8392
8393 ac_cv_func_crypt=no
8394 fi
8395 rm -f conftest.err conftest.$ac_objext \
8396       conftest$ac_exeext conftest.$ac_ext
8397 fi
8398 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8399 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8400 if test $ac_cv_func_crypt = yes; then
8401   :
8402 else
8403   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8404 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8405 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408   ac_check_lib_save_LIBS=$LIBS
8409 LIBS="-lcrypt  $LIBS"
8410 cat >conftest.$ac_ext <<_ACEOF
8411 /* confdefs.h.  */
8412 _ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h.  */
8416
8417 /* Override any gcc2 internal prototype to avoid an error.  */
8418 #ifdef __cplusplus
8419 extern "C"
8420 #endif
8421 /* We use char because int might match the return type of a gcc2
8422    builtin and then its argument prototype would still apply.  */
8423 char crypt ();
8424 int
8425 main ()
8426 {
8427 crypt ();
8428   ;
8429   return 0;
8430 }
8431 _ACEOF
8432 rm -f conftest.$ac_objext conftest$ac_exeext
8433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8434   (eval $ac_link) 2>conftest.er1
8435   ac_status=$?
8436   grep -v '^ *+' conftest.er1 >conftest.err
8437   rm -f conftest.er1
8438   cat conftest.err >&5
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); } &&
8441          { ac_try='test -z "$ac_c_werror_flag"
8442                          || test ! -s conftest.err'
8443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444   (eval $ac_try) 2>&5
8445   ac_status=$?
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); }; } &&
8448          { ac_try='test -s conftest$ac_exeext'
8449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450   (eval $ac_try) 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); }; }; then
8454   ac_cv_lib_crypt_crypt=yes
8455 else
8456   echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
8459 ac_cv_lib_crypt_crypt=no
8460 fi
8461 rm -f conftest.err conftest.$ac_objext \
8462       conftest$ac_exeext conftest.$ac_ext
8463 LIBS=$ac_check_lib_save_LIBS
8464 fi
8465 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8466 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8467 if test $ac_cv_lib_crypt_crypt = yes; then
8468   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8469 fi
8470
8471 fi
8472
8473       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8474       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8475       SQL_BINDIR=$POSTGRESQL_BINDIR
8476       cat >>confdefs.h <<\_ACEOF
8477 #define HAVE_POSTGRESQL 1
8478 _ACEOF
8479
8480       echo "$as_me:$LINENO: result: yes" >&5
8481 echo "${ECHO_T}yes" >&6
8482       db_found=yes
8483       support_postgresql=yes
8484       db_name=PostgreSQL
8485       DB_NAME=postgresql
8486   else
8487       echo "$as_me:$LINENO: result: no" >&5
8488 echo "${ECHO_T}no" >&6
8489   fi
8490
8491 else
8492
8493   echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6
8495
8496 fi;
8497
8498
8499
8500
8501
8502
8503
8504 db_found=no
8505 echo "$as_me:$LINENO: checking for MySQL support" >&5
8506 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8507
8508 # Check whether --with-mysql or --without-mysql was given.
8509 if test "${with_mysql+set}" = set; then
8510   withval="$with_mysql"
8511
8512   if test "$withval" != "no"; then
8513         if test "$withval" = "yes"; then
8514                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8515                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8516                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8517                         MYSQL_BINDIR=/usr/local/mysql/bin
8518                 elif test -f /usr/include/mysql/mysql.h; then
8519                         MYSQL_INCDIR=/usr/include/mysql
8520                         MYSQL_LIBDIR=/usr/lib/mysql
8521                         MYSQL_BINDIR=/usr/bin
8522                 elif test -f /usr/include/mysql.h; then
8523                         MYSQL_INCDIR=/usr/include
8524                         MYSQL_LIBDIR=/usr/lib
8525                         MYSQL_BINDIR=/usr/bin
8526                 elif test -f /usr/local/include/mysql/mysql.h; then
8527                         MYSQL_INCDIR=/usr/local/include/mysql
8528                         MYSQL_LIBDIR=/usr/local/lib/mysql
8529                         MYSQL_BINDIR=/usr/local/bin
8530                 elif test -f /usr/local/include/mysql.h; then
8531                         MYSQL_INCDIR=/usr/local/include
8532                         MYSQL_LIBDIR=/usr/local/lib
8533                         MYSQL_BINDIR=/usr/local/bin
8534                 else
8535                    echo "$as_me:$LINENO: result: no" >&5
8536 echo "${ECHO_T}no" >&6
8537                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8538 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8539    { (exit 1); exit 1; }; }
8540                 fi
8541         else
8542                 if test -f $withval/include/mysql/mysql.h; then
8543                         MYSQL_INCDIR=$withval/include/mysql
8544                         MYSQL_LIBDIR=$withval/lib/mysql
8545                         MYSQL_BINDIR=$withval/bin
8546                 elif test -f $withval/include/mysql.h; then
8547                         MYSQL_INCDIR=$withval/include
8548                         MYSQL_LIBDIR=$withval/lib
8549                         MYSQL_BINDIR=$withval/bin
8550                 else
8551                    echo "$as_me:$LINENO: result: no" >&5
8552 echo "${ECHO_T}no" >&6
8553                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8554 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8555    { (exit 1); exit 1; }; }
8556                 fi
8557         fi
8558     SQL_INCLUDE=-I$MYSQL_INCDIR
8559     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8560        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8561        cat >>confdefs.h <<\_ACEOF
8562 #define HAVE_THREAD_SAFE_MYSQL 1
8563 _ACEOF
8564
8565     else
8566        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8567     fi
8568     SQL_BINDIR=$MYSQL_BINDIR
8569
8570     cat >>confdefs.h <<\_ACEOF
8571 #define HAVE_MYSQL 1
8572 _ACEOF
8573
8574     echo "$as_me:$LINENO: result: yes" >&5
8575 echo "${ECHO_T}yes" >&6
8576     db_found=yes
8577     support_mysql=yes
8578     db_name=MySQL
8579     DB_NAME=mysql
8580
8581   else
8582         echo "$as_me:$LINENO: result: no" >&5
8583 echo "${ECHO_T}no" >&6
8584   fi
8585
8586
8587 fi;
8588
8589
8590 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8591 if test "${with_embedded_mysql+set}" = set; then
8592   withval="$with_embedded_mysql"
8593
8594   if test "$withval" != "no"; then
8595         if test "$withval" = "yes"; then
8596                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8597                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8598                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8599                         MYSQL_BINDIR=/usr/local/mysql/bin
8600                 elif test -f /usr/include/mysql/mysql.h; then
8601                         MYSQL_INCDIR=/usr/include/mysql
8602                         MYSQL_LIBDIR=/usr/lib/mysql
8603                         MYSQL_BINDIR=/usr/bin
8604                 elif test -f /usr/include/mysql.h; then
8605                         MYSQL_INCDIR=/usr/include
8606                         MYSQL_LIBDIR=/usr/lib
8607                         MYSQL_BINDIR=/usr/bin
8608                 elif test -f /usr/local/include/mysql/mysql.h; then
8609                         MYSQL_INCDIR=/usr/local/include/mysql
8610                         MYSQL_LIBDIR=/usr/local/lib/mysql
8611                         MYSQL_BINDIR=/usr/local/bin
8612                 elif test -f /usr/local/include/mysql.h; then
8613                         MYSQL_INCDIR=/usr/local/include
8614                         MYSQL_LIBDIR=/usr/local/lib
8615                         MYSQL_BINDIR=/usr/local/bin
8616                 else
8617                    echo "$as_me:$LINENO: result: no" >&5
8618 echo "${ECHO_T}no" >&6
8619                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8620 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8621    { (exit 1); exit 1; }; }
8622                 fi
8623         else
8624                 if test -f $withval/include/mysql/mysql.h; then
8625                         MYSQL_INCDIR=$withval/include/mysql
8626                         MYSQL_LIBDIR=$withval/lib/mysql
8627                         MYSQL_BINDIR=$withval/bin
8628                 elif test -f $withval/include/mysql.h; then
8629                         MYSQL_INCDIR=$withval/include
8630                         MYSQL_LIBDIR=$withval/lib
8631                         MYSQL_BINDIR=$withval/bin
8632                 else
8633                    echo "$as_me:$LINENO: result: no" >&5
8634 echo "${ECHO_T}no" >&6
8635                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8636 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8637    { (exit 1); exit 1; }; }
8638                 fi
8639         fi
8640     SQL_INCLUDE=-I$MYSQL_INCDIR
8641     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8642     SQL_BINDIR=$MYSQL_BINDIR
8643
8644     cat >>confdefs.h <<\_ACEOF
8645 #define HAVE_MYSQL 1
8646 _ACEOF
8647
8648     cat >>confdefs.h <<\_ACEOF
8649 #define HAVE_EMBEDDED_MYSQL 1
8650 _ACEOF
8651
8652     echo "$as_me:$LINENO: result: yes" >&5
8653 echo "${ECHO_T}yes" >&6
8654     db_found=yes
8655     support_mysql=yes
8656     db_name=MySQL
8657     DB_NAME=mysql
8658
8659   else
8660         echo "$as_me:$LINENO: result: no" >&5
8661 echo "${ECHO_T}no" >&6
8662   fi
8663
8664
8665 fi;
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675 db_found=no
8676 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
8677 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
8678
8679 # Check whether --with-sqlite3 or --without-sqlite3 was given.
8680 if test "${with_sqlite3+set}" = set; then
8681   withval="$with_sqlite3"
8682
8683   if test "$withval" != "no"; then
8684      if test "$withval" = "yes"; then
8685         if test -f /usr/local/include/sqlite3.h; then
8686            SQLITE_INCDIR=/usr/local/include
8687            SQLITE_LIBDIR=/usr/local/lib
8688            SQLITE_BINDIR=/usr/local/bin
8689         elif test -f /usr/include/sqlite3.h; then
8690            SQLITE_INCDIR=/usr/include
8691            SQLITE_LIBDIR=/usr/lib
8692            SQLITE_BINDIR=/usr/bin
8693         elif test -f $prefix/include/sqlite3.h; then
8694            SQLITE_INCDIR=$prefix/include
8695            SQLITE_LIBDIR=$prefix/lib
8696            SQLITE_BINDIR=$prefix/bin
8697         else
8698            echo "$as_me:$LINENO: result: no" >&5
8699 echo "${ECHO_T}no" >&6
8700            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
8701 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
8702    { (exit 1); exit 1; }; }
8703         fi
8704      else
8705         if test -f $withval/sqlite3.h; then
8706            SQLITE_INCDIR=$withval
8707            SQLITE_LIBDIR=$withval
8708            SQLITE_BINDIR=$withval
8709         elif test -f $withval/include/sqlite3.h; then
8710            SQLITE_INCDIR=$withval/include
8711            SQLITE_LIBDIR=$withval/lib
8712            SQLITE_BINDIR=$withval/bin
8713         else
8714            echo "$as_me:$LINENO: result: no" >&5
8715 echo "${ECHO_T}no" >&6
8716            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
8717 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
8718    { (exit 1); exit 1; }; }
8719         fi
8720      fi
8721      SQL_INCLUDE=-I$SQLITE_INCDIR
8722      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
8723      SQL_BINDIR=$SQLITE_BINDIR
8724
8725      cat >>confdefs.h <<\_ACEOF
8726 #define HAVE_SQLITE3 1
8727 _ACEOF
8728
8729      echo "$as_me:$LINENO: result: yes" >&5
8730 echo "${ECHO_T}yes" >&6
8731      db_found=yes
8732      support_sqlite3=yes
8733      db_name=SQLite3
8734      DB_NAME=sqlite3
8735
8736   else
8737      echo "$as_me:$LINENO: result: no" >&5
8738 echo "${ECHO_T}no" >&6
8739   fi
8740
8741 else
8742
8743   echo "$as_me:$LINENO: result: no" >&5
8744 echo "${ECHO_T}no" >&6
8745
8746 fi;
8747
8748
8749
8750
8751
8752
8753
8754 db_found=no
8755 echo "$as_me:$LINENO: checking for SQLite support" >&5
8756 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8757
8758 # Check whether --with-sqlite or --without-sqlite was given.
8759 if test "${with_sqlite+set}" = set; then
8760   withval="$with_sqlite"
8761
8762   if test "$withval" != "no"; then
8763      if test "$withval" = "yes"; then
8764         if test -f /usr/local/include/sqlite.h; then
8765            SQLITE_INCDIR=/usr/local/include
8766            SQLITE_LIBDIR=/usr/local/lib
8767            SQLITE_BINDIR=/usr/local/bin
8768         elif test -f /usr/include/sqlite.h; then
8769            SQLITE_INCDIR=/usr/include
8770            SQLITE_LIBDIR=/usr/lib
8771            SQLITE_BINDIR=/usr/bin
8772         elif test -f $prefix/include/sqlite.h; then
8773            SQLITE_INCDIR=$prefix/include
8774            SQLITE_LIBDIR=$prefix/lib
8775            SQLITE_BINDIR=$prefix/bin
8776         else
8777            echo "$as_me:$LINENO: result: no" >&5
8778 echo "${ECHO_T}no" >&6
8779            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8780 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8781    { (exit 1); exit 1; }; }
8782         fi
8783      else
8784         if test -f $withval/sqlite.h; then
8785            SQLITE_INCDIR=$withval
8786            SQLITE_LIBDIR=$withval
8787            SQLITE_BINDIR=$withval
8788         elif test -f $withval/include/sqlite.h; then
8789            SQLITE_INCDIR=$withval/include
8790            SQLITE_LIBDIR=$withval/lib
8791            SQLITE_BINDIR=$withval/bin
8792         else
8793            echo "$as_me:$LINENO: result: no" >&5
8794 echo "${ECHO_T}no" >&6
8795            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8796 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8797    { (exit 1); exit 1; }; }
8798         fi
8799      fi
8800      SQL_INCLUDE=-I$SQLITE_INCDIR
8801      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8802      SQL_BINDIR=$SQLITE_BINDIR
8803
8804      cat >>confdefs.h <<\_ACEOF
8805 #define HAVE_SQLITE 1
8806 _ACEOF
8807
8808      echo "$as_me:$LINENO: result: yes" >&5
8809 echo "${ECHO_T}yes" >&6
8810      db_found=yes
8811      support_sqlite=yes
8812      db_name=SQLite
8813      DB_NAME=sqlite
8814
8815   else
8816      echo "$as_me:$LINENO: result: no" >&5
8817 echo "${ECHO_T}no" >&6
8818   fi
8819
8820 else
8821
8822   echo "$as_me:$LINENO: result: no" >&5
8823 echo "${ECHO_T}no" >&6
8824
8825 fi;
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835 cat >>confdefs.h <<\_ACEOF
8836 #define PROTOTYPES 1
8837 _ACEOF
8838
8839
8840 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8841     if test -z "$CCOPTS"; then
8842         CCOPTS='-g -O2 -Wall'
8843     fi
8844     CFLAGS="$CCOPTS"
8845 fi
8846
8847
8848
8849
8850 largefile_support="no"
8851
8852    # Check whether --enable-largefile or --disable-largefile was given.
8853 if test "${enable_largefile+set}" = set; then
8854   enableval="$enable_largefile"
8855
8856 fi;
8857    if test "$enable_largefile" != no; then
8858      if test -n "$ac_tool_prefix"; then
8859   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8860 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8861 echo "$as_me:$LINENO: checking for $ac_word" >&5
8862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8863 if test "${ac_cv_prog_GETCONF+set}" = set; then
8864   echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866   if test -n "$GETCONF"; then
8867   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8868 else
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8871 do
8872   IFS=$as_save_IFS
8873   test -z "$as_dir" && as_dir=.
8874   for ac_exec_ext in '' $ac_executable_extensions; do
8875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8876     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8878     break 2
8879   fi
8880 done
8881 done
8882
8883 fi
8884 fi
8885 GETCONF=$ac_cv_prog_GETCONF
8886 if test -n "$GETCONF"; then
8887   echo "$as_me:$LINENO: result: $GETCONF" >&5
8888 echo "${ECHO_T}$GETCONF" >&6
8889 else
8890   echo "$as_me:$LINENO: result: no" >&5
8891 echo "${ECHO_T}no" >&6
8892 fi
8893
8894 fi
8895 if test -z "$ac_cv_prog_GETCONF"; then
8896   ac_ct_GETCONF=$GETCONF
8897   # Extract the first word of "getconf", so it can be a program name with args.
8898 set dummy getconf; ac_word=$2
8899 echo "$as_me:$LINENO: checking for $ac_word" >&5
8900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8901 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8902   echo $ECHO_N "(cached) $ECHO_C" >&6
8903 else
8904   if test -n "$ac_ct_GETCONF"; then
8905   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8906 else
8907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908 for as_dir in $PATH
8909 do
8910   IFS=$as_save_IFS
8911   test -z "$as_dir" && as_dir=.
8912   for ac_exec_ext in '' $ac_executable_extensions; do
8913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8914     ac_cv_prog_ac_ct_GETCONF="getconf"
8915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8916     break 2
8917   fi
8918 done
8919 done
8920
8921 fi
8922 fi
8923 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8924 if test -n "$ac_ct_GETCONF"; then
8925   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8926 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8927 else
8928   echo "$as_me:$LINENO: result: no" >&5
8929 echo "${ECHO_T}no" >&6
8930 fi
8931
8932   GETCONF=$ac_ct_GETCONF
8933 else
8934   GETCONF="$ac_cv_prog_GETCONF"
8935 fi
8936
8937      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8938 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8939 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8940   echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8943         ac_cv_sys_largefile_CFLAGS=no
8944         case "$host_os" in
8945            # IRIX 6.2 and later require cc -n32.
8946            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8947              if test "$GCC" != yes; then
8948                ac_cv_sys_largefile_CFLAGS=-n32
8949              fi
8950              ac_save_CC="$CC"
8951              CC="$CC $ac_cv_sys_largefile_CFLAGS"
8952              cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h.  */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h.  */
8958
8959 int
8960 main ()
8961 {
8962
8963   ;
8964   return 0;
8965 }
8966 _ACEOF
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8969   (eval $ac_link) 2>conftest.er1
8970   ac_status=$?
8971   grep -v '^ *+' conftest.er1 >conftest.err
8972   rm -f conftest.er1
8973   cat conftest.err >&5
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } &&
8976          { ac_try='test -z "$ac_c_werror_flag"
8977                          || test ! -s conftest.err'
8978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979   (eval $ac_try) 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); }; } &&
8983          { ac_try='test -s conftest$ac_exeext'
8984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985   (eval $ac_try) 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); }; }; then
8989   :
8990 else
8991   echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994 ac_cv_sys_largefile_CFLAGS=no
8995 fi
8996 rm -f conftest.err conftest.$ac_objext \
8997       conftest$ac_exeext conftest.$ac_ext
8998              CC="$ac_save_CC"
8999            esac
9000       }
9001 fi
9002 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9003 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9004      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9005 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9006 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9007   echo $ECHO_N "(cached) $ECHO_C" >&6
9008 else
9009   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9010         ac_cv_sys_largefile_LDFLAGS=no
9011
9012       }
9013 fi
9014 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9015 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9016      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9017 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9018 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9022         ac_cv_sys_largefile_LIBS=no
9023
9024       }
9025 fi
9026 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9027 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9028
9029      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9030        case "$ac_flag" in
9031        no) ;;
9032        -D_FILE_OFFSET_BITS=*) ;;
9033        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9034        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9035        -D?* | -I?*)
9036          case "$ac_flag" in
9037    no) ;;
9038    ?*)
9039      case "$CPPFLAGS" in
9040      '') CPPFLAGS="$ac_flag" ;;
9041      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9042      esac ;;
9043    esac ;;
9044        *)
9045          case "$ac_flag" in
9046    no) ;;
9047    ?*)
9048      case "$CFLAGS" in
9049      '') CFLAGS="$ac_flag" ;;
9050      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9051      esac ;;
9052    esac ;;
9053        esac
9054      done
9055      case "$ac_cv_sys_largefile_LDFLAGS" in
9056    no) ;;
9057    ?*)
9058      case "$LDFLAGS" in
9059      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9060      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9061      esac ;;
9062    esac
9063      case "$ac_cv_sys_largefile_LIBS" in
9064    no) ;;
9065    ?*)
9066      case "$LIBS" in
9067      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9068      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9069      esac ;;
9070    esac
9071      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9072 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9073 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9074   echo $ECHO_N "(cached) $ECHO_C" >&6
9075 else
9076   ac_cv_sys_file_offset_bits=no
9077       ac_cv_sys_file_offset_bits=64
9078       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9079         case "$ac_flag" in
9080         -D_FILE_OFFSET_BITS)
9081           ac_cv_sys_file_offset_bits=1 ;;
9082         -D_FILE_OFFSET_BITS=*)
9083           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9084         esac
9085       done
9086
9087 fi
9088 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9089 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9090    if test "$ac_cv_sys_file_offset_bits" != no; then
9091
9092 cat >>confdefs.h <<_ACEOF
9093 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9094 _ACEOF
9095
9096    fi
9097      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9098 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9099 if test "${ac_cv_sys_largefile_source+set}" = set; then
9100   echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9102   ac_cv_sys_largefile_source=no
9103       ac_cv_sys_largefile_source=1
9104       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9105         case "$ac_flag" in
9106         -D_LARGEFILE_SOURCE)
9107           ac_cv_sys_largefile_source=1 ;;
9108         -D_LARGEFILE_SOURCE=*)
9109           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9110         esac
9111       done
9112
9113 fi
9114 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9115 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9116    if test "$ac_cv_sys_largefile_source" != no; then
9117
9118 cat >>confdefs.h <<_ACEOF
9119 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9120 _ACEOF
9121
9122    fi
9123      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9124 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9125 if test "${ac_cv_sys_large_files+set}" = set; then
9126   echo $ECHO_N "(cached) $ECHO_C" >&6
9127 else
9128   ac_cv_sys_large_files=no
9129       ac_cv_sys_large_files=1
9130       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9131         case "$ac_flag" in
9132         -D_LARGE_FILES)
9133           ac_cv_sys_large_files=1 ;;
9134         -D_LARGE_FILES=*)
9135           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9136         esac
9137       done
9138
9139 fi
9140 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9141 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9142    if test "$ac_cv_sys_large_files" != no; then
9143
9144 cat >>confdefs.h <<_ACEOF
9145 #define _LARGE_FILES $ac_cv_sys_large_files
9146 _ACEOF
9147
9148    fi
9149    fi
9150
9151
9152
9153 echo "$as_me:$LINENO: checking for X" >&5
9154 echo $ECHO_N "checking for X... $ECHO_C" >&6
9155
9156
9157 # Check whether --with-x or --without-x was given.
9158 if test "${with_x+set}" = set; then
9159   withval="$with_x"
9160
9161 fi;
9162 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9163 if test "x$with_x" = xno; then
9164   # The user explicitly disabled X.
9165   have_x=disabled
9166 else
9167   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9168     # Both variables are already set.
9169     have_x=yes
9170   else
9171     if test "${ac_cv_have_x+set}" = set; then
9172   echo $ECHO_N "(cached) $ECHO_C" >&6
9173 else
9174   # One or both of the vars are not set, and there is no cached value.
9175 ac_x_includes=no ac_x_libraries=no
9176 rm -fr conftest.dir
9177 if mkdir conftest.dir; then
9178   cd conftest.dir
9179   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9180   cat >Imakefile <<'_ACEOF'
9181 acfindx:
9182         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9183 _ACEOF
9184   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9185     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9186     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9187     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9188     for ac_extension in a so sl; do
9189       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9190          test -f $ac_im_libdir/libX11.$ac_extension; then
9191         ac_im_usrlibdir=$ac_im_libdir; break
9192       fi
9193     done
9194     # Screen out bogus values from the imake configuration.  They are
9195     # bogus both because they are the default anyway, and because
9196     # using them would break gcc on systems where it needs fixed includes.
9197     case $ac_im_incroot in
9198         /usr/include) ;;
9199         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9200     esac
9201     case $ac_im_usrlibdir in
9202         /usr/lib | /lib) ;;
9203         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9204     esac
9205   fi
9206   cd ..
9207   rm -fr conftest.dir
9208 fi
9209
9210 # Standard set of common directories for X headers.
9211 # Check X11 before X11Rn because it is often a symlink to the current release.
9212 ac_x_header_dirs='
9213 /usr/X11/include
9214 /usr/X11R6/include
9215 /usr/X11R5/include
9216 /usr/X11R4/include
9217
9218 /usr/include/X11
9219 /usr/include/X11R6
9220 /usr/include/X11R5
9221 /usr/include/X11R4
9222
9223 /usr/local/X11/include
9224 /usr/local/X11R6/include
9225 /usr/local/X11R5/include
9226 /usr/local/X11R4/include
9227
9228 /usr/local/include/X11
9229 /usr/local/include/X11R6
9230 /usr/local/include/X11R5
9231 /usr/local/include/X11R4
9232
9233 /usr/X386/include
9234 /usr/x386/include
9235 /usr/XFree86/include/X11
9236
9237 /usr/include
9238 /usr/local/include
9239 /usr/unsupported/include
9240 /usr/athena/include
9241 /usr/local/x11r5/include
9242 /usr/lpp/Xamples/include
9243
9244 /usr/openwin/include
9245 /usr/openwin/share/include'
9246
9247 if test "$ac_x_includes" = no; then
9248   # Guess where to find include files, by looking for Intrinsic.h.
9249   # First, try using that file with no special directory specified.
9250   cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h.  */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h.  */
9256 #include <X11/Intrinsic.h>
9257 _ACEOF
9258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9259   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9260   ac_status=$?
9261   grep -v '^ *+' conftest.er1 >conftest.err
9262   rm -f conftest.er1
9263   cat conftest.err >&5
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); } >/dev/null; then
9266   if test -s conftest.err; then
9267     ac_cpp_err=$ac_c_preproc_warn_flag
9268     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9269   else
9270     ac_cpp_err=
9271   fi
9272 else
9273   ac_cpp_err=yes
9274 fi
9275 if test -z "$ac_cpp_err"; then
9276   # We can compile using X headers with no special include directory.
9277 ac_x_includes=
9278 else
9279   echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9281
9282   for ac_dir in $ac_x_header_dirs; do
9283   if test -r "$ac_dir/X11/Intrinsic.h"; then
9284     ac_x_includes=$ac_dir
9285     break
9286   fi
9287 done
9288 fi
9289 rm -f conftest.err conftest.$ac_ext
9290 fi # $ac_x_includes = no
9291
9292 if test "$ac_x_libraries" = no; then
9293   # Check for the libraries.
9294   # See if we find them without any special options.
9295   # Don't add to $LIBS permanently.
9296   ac_save_LIBS=$LIBS
9297   LIBS="-lXt $LIBS"
9298   cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h.  */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h.  */
9304 #include <X11/Intrinsic.h>
9305 int
9306 main ()
9307 {
9308 XtMalloc (0)
9309   ;
9310   return 0;
9311 }
9312 _ACEOF
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9315   (eval $ac_link) 2>conftest.er1
9316   ac_status=$?
9317   grep -v '^ *+' conftest.er1 >conftest.err
9318   rm -f conftest.er1
9319   cat conftest.err >&5
9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321   (exit $ac_status); } &&
9322          { ac_try='test -z "$ac_c_werror_flag"
9323                          || test ! -s conftest.err'
9324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325   (eval $ac_try) 2>&5
9326   ac_status=$?
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   (exit $ac_status); }; } &&
9329          { ac_try='test -s conftest$ac_exeext'
9330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331   (eval $ac_try) 2>&5
9332   ac_status=$?
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); }; }; then
9335   LIBS=$ac_save_LIBS
9336 # We can link X programs with no special library path.
9337 ac_x_libraries=
9338 else
9339   echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9341
9342 LIBS=$ac_save_LIBS
9343 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9344 do
9345   # Don't even attempt the hair of trying to link an X program!
9346   for ac_extension in a so sl; do
9347     if test -r $ac_dir/libXt.$ac_extension; then
9348       ac_x_libraries=$ac_dir
9349       break 2
9350     fi
9351   done
9352 done
9353 fi
9354 rm -f conftest.err conftest.$ac_objext \
9355       conftest$ac_exeext conftest.$ac_ext
9356 fi # $ac_x_libraries = no
9357
9358 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9359   # Didn't find X anywhere.  Cache the known absence of X.
9360   ac_cv_have_x="have_x=no"
9361 else
9362   # Record where we found X for the cache.
9363   ac_cv_have_x="have_x=yes \
9364                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9365 fi
9366 fi
9367
9368   fi
9369   eval "$ac_cv_have_x"
9370 fi # $with_x != no
9371
9372 if test "$have_x" != yes; then
9373   echo "$as_me:$LINENO: result: $have_x" >&5
9374 echo "${ECHO_T}$have_x" >&6
9375   no_x=yes
9376 else
9377   # If each of the values was on the command line, it overrides each guess.
9378   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9379   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9380   # Update the cache value to reflect the command line values.
9381   ac_cv_have_x="have_x=yes \
9382                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9383   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9384 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9385 fi
9386
9387 if test "$no_x" = yes; then
9388   # Not all programs may use this symbol, but it does not hurt to define it.
9389
9390 cat >>confdefs.h <<\_ACEOF
9391 #define X_DISPLAY_MISSING 1
9392 _ACEOF
9393
9394   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9395 else
9396   if test -n "$x_includes"; then
9397     X_CFLAGS="$X_CFLAGS -I$x_includes"
9398   fi
9399
9400   # It would also be nice to do this for all -L options, not just this one.
9401   if test -n "$x_libraries"; then
9402     X_LIBS="$X_LIBS -L$x_libraries"
9403     # For Solaris; some versions of Sun CC require a space after -R and
9404     # others require no space.  Words are not sufficient . . . .
9405     case `(uname -sr) 2>/dev/null` in
9406     "SunOS 5"*)
9407       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9408 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9409       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9410       cat >conftest.$ac_ext <<_ACEOF
9411 /* confdefs.h.  */
9412 _ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h.  */
9416
9417 int
9418 main ()
9419 {
9420
9421   ;
9422   return 0;
9423 }
9424 _ACEOF
9425 rm -f conftest.$ac_objext conftest$ac_exeext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427   (eval $ac_link) 2>conftest.er1
9428   ac_status=$?
9429   grep -v '^ *+' conftest.er1 >conftest.err
9430   rm -f conftest.er1
9431   cat conftest.err >&5
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); } &&
9434          { ac_try='test -z "$ac_c_werror_flag"
9435                          || test ! -s conftest.err'
9436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437   (eval $ac_try) 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); }; } &&
9441          { ac_try='test -s conftest$ac_exeext'
9442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443   (eval $ac_try) 2>&5
9444   ac_status=$?
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); }; }; then
9447   ac_R_nospace=yes
9448 else
9449   echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9451
9452 ac_R_nospace=no
9453 fi
9454 rm -f conftest.err conftest.$ac_objext \
9455       conftest$ac_exeext conftest.$ac_ext
9456       if test $ac_R_nospace = yes; then
9457         echo "$as_me:$LINENO: result: no" >&5
9458 echo "${ECHO_T}no" >&6
9459         X_LIBS="$X_LIBS -R$x_libraries"
9460       else
9461         LIBS="$ac_xsave_LIBS -R $x_libraries"
9462         cat >conftest.$ac_ext <<_ACEOF
9463 /* confdefs.h.  */
9464 _ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h.  */
9468
9469 int
9470 main ()
9471 {
9472
9473   ;
9474   return 0;
9475 }
9476 _ACEOF
9477 rm -f conftest.$ac_objext conftest$ac_exeext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9479   (eval $ac_link) 2>conftest.er1
9480   ac_status=$?
9481   grep -v '^ *+' conftest.er1 >conftest.err
9482   rm -f conftest.er1
9483   cat conftest.err >&5
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); } &&
9486          { ac_try='test -z "$ac_c_werror_flag"
9487                          || test ! -s conftest.err'
9488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489   (eval $ac_try) 2>&5
9490   ac_status=$?
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); }; } &&
9493          { ac_try='test -s conftest$ac_exeext'
9494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495   (eval $ac_try) 2>&5
9496   ac_status=$?
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); }; }; then
9499   ac_R_space=yes
9500 else
9501   echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 ac_R_space=no
9505 fi
9506 rm -f conftest.err conftest.$ac_objext \
9507       conftest$ac_exeext conftest.$ac_ext
9508         if test $ac_R_space = yes; then
9509           echo "$as_me:$LINENO: result: yes" >&5
9510 echo "${ECHO_T}yes" >&6
9511           X_LIBS="$X_LIBS -R $x_libraries"
9512         else
9513           echo "$as_me:$LINENO: result: neither works" >&5
9514 echo "${ECHO_T}neither works" >&6
9515         fi
9516       fi
9517       LIBS=$ac_xsave_LIBS
9518     esac
9519   fi
9520
9521   # Check for system-dependent libraries X programs must link with.
9522   # Do this before checking for the system-independent R6 libraries
9523   # (-lICE), since we may need -lsocket or whatever for X linking.
9524
9525   if test "$ISC" = yes; then
9526     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9527   else
9528     # Martyn Johnson says this is needed for Ultrix, if the X
9529     # libraries were built with DECnet support.  And Karl Berry says
9530     # the Alpha needs dnet_stub (dnet does not exist).
9531     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9532     cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h.  */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h.  */
9538
9539 /* Override any gcc2 internal prototype to avoid an error.  */
9540 #ifdef __cplusplus
9541 extern "C"
9542 #endif
9543 /* We use char because int might match the return type of a gcc2
9544    builtin and then its argument prototype would still apply.  */
9545 char XOpenDisplay ();
9546 int
9547 main ()
9548 {
9549 XOpenDisplay ();
9550   ;
9551   return 0;
9552 }
9553 _ACEOF
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556   (eval $ac_link) 2>conftest.er1
9557   ac_status=$?
9558   grep -v '^ *+' conftest.er1 >conftest.err
9559   rm -f conftest.er1
9560   cat conftest.err >&5
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); } &&
9563          { ac_try='test -z "$ac_c_werror_flag"
9564                          || test ! -s conftest.err'
9565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566   (eval $ac_try) 2>&5
9567   ac_status=$?
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); }; } &&
9570          { ac_try='test -s conftest$ac_exeext'
9571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572   (eval $ac_try) 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); }; }; then
9576   :
9577 else
9578   echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9582 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9583 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9584   echo $ECHO_N "(cached) $ECHO_C" >&6
9585 else
9586   ac_check_lib_save_LIBS=$LIBS
9587 LIBS="-ldnet  $LIBS"
9588 cat >conftest.$ac_ext <<_ACEOF
9589 /* confdefs.h.  */
9590 _ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h.  */
9594
9595 /* Override any gcc2 internal prototype to avoid an error.  */
9596 #ifdef __cplusplus
9597 extern "C"
9598 #endif
9599 /* We use char because int might match the return type of a gcc2
9600    builtin and then its argument prototype would still apply.  */
9601 char dnet_ntoa ();
9602 int
9603 main ()
9604 {
9605 dnet_ntoa ();
9606   ;
9607   return 0;
9608 }
9609 _ACEOF
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612   (eval $ac_link) 2>conftest.er1
9613   ac_status=$?
9614   grep -v '^ *+' conftest.er1 >conftest.err
9615   rm -f conftest.er1
9616   cat conftest.err >&5
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); } &&
9619          { ac_try='test -z "$ac_c_werror_flag"
9620                          || test ! -s conftest.err'
9621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622   (eval $ac_try) 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); }; } &&
9626          { ac_try='test -s conftest$ac_exeext'
9627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628   (eval $ac_try) 2>&5
9629   ac_status=$?
9630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631   (exit $ac_status); }; }; then
9632   ac_cv_lib_dnet_dnet_ntoa=yes
9633 else
9634   echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9636
9637 ac_cv_lib_dnet_dnet_ntoa=no
9638 fi
9639 rm -f conftest.err conftest.$ac_objext \
9640       conftest$ac_exeext conftest.$ac_ext
9641 LIBS=$ac_check_lib_save_LIBS
9642 fi
9643 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9644 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9645 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9646   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9647 fi
9648
9649     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9650       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9651 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9652 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9653   echo $ECHO_N "(cached) $ECHO_C" >&6
9654 else
9655   ac_check_lib_save_LIBS=$LIBS
9656 LIBS="-ldnet_stub  $LIBS"
9657 cat >conftest.$ac_ext <<_ACEOF
9658 /* confdefs.h.  */
9659 _ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h.  */
9663
9664 /* Override any gcc2 internal prototype to avoid an error.  */
9665 #ifdef __cplusplus
9666 extern "C"
9667 #endif
9668 /* We use char because int might match the return type of a gcc2
9669    builtin and then its argument prototype would still apply.  */
9670 char dnet_ntoa ();
9671 int
9672 main ()
9673 {
9674 dnet_ntoa ();
9675   ;
9676   return 0;
9677 }
9678 _ACEOF
9679 rm -f conftest.$ac_objext conftest$ac_exeext
9680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9681   (eval $ac_link) 2>conftest.er1
9682   ac_status=$?
9683   grep -v '^ *+' conftest.er1 >conftest.err
9684   rm -f conftest.er1
9685   cat conftest.err >&5
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   (exit $ac_status); } &&
9688          { ac_try='test -z "$ac_c_werror_flag"
9689                          || test ! -s conftest.err'
9690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691   (eval $ac_try) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; } &&
9695          { ac_try='test -s conftest$ac_exeext'
9696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697   (eval $ac_try) 2>&5
9698   ac_status=$?
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); }; }; then
9701   ac_cv_lib_dnet_stub_dnet_ntoa=yes
9702 else
9703   echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9705
9706 ac_cv_lib_dnet_stub_dnet_ntoa=no
9707 fi
9708 rm -f conftest.err conftest.$ac_objext \
9709       conftest$ac_exeext conftest.$ac_ext
9710 LIBS=$ac_check_lib_save_LIBS
9711 fi
9712 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9713 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9714 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9715   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9716 fi
9717
9718     fi
9719 fi
9720 rm -f conftest.err conftest.$ac_objext \
9721       conftest$ac_exeext conftest.$ac_ext
9722     LIBS="$ac_xsave_LIBS"
9723
9724     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9725     # to get the SysV transport functions.
9726     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9727     # needs -lnsl.
9728     # The nsl library prevents programs from opening the X display
9729     # on Irix 5.2, according to T.E. Dickey.
9730     # The functions gethostbyname, getservbyname, and inet_addr are
9731     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9732     echo "$as_me:$LINENO: checking for gethostbyname" >&5
9733 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9734 if test "${ac_cv_func_gethostbyname+set}" = set; then
9735   echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737   cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9745 #define gethostbyname innocuous_gethostbyname
9746
9747 /* System header to define __stub macros and hopefully few prototypes,
9748     which can conflict with char gethostbyname (); below.
9749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9750     <limits.h> exists even on freestanding compilers.  */
9751
9752 #ifdef __STDC__
9753 # include <limits.h>
9754 #else
9755 # include <assert.h>
9756 #endif
9757
9758 #undef gethostbyname
9759
9760 /* Override any gcc2 internal prototype to avoid an error.  */
9761 #ifdef __cplusplus
9762 extern "C"
9763 {
9764 #endif
9765 /* We use char because int might match the return type of a gcc2
9766    builtin and then its argument prototype would still apply.  */
9767 char gethostbyname ();
9768 /* The GNU C library defines this for functions which it implements
9769     to always fail with ENOSYS.  Some functions are actually named
9770     something starting with __ and the normal name is an alias.  */
9771 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9772 choke me
9773 #else
9774 char (*f) () = gethostbyname;
9775 #endif
9776 #ifdef __cplusplus
9777 }
9778 #endif
9779
9780 int
9781 main ()
9782 {
9783 return f != gethostbyname;
9784   ;
9785   return 0;
9786 }
9787 _ACEOF
9788 rm -f conftest.$ac_objext conftest$ac_exeext
9789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9790   (eval $ac_link) 2>conftest.er1
9791   ac_status=$?
9792   grep -v '^ *+' conftest.er1 >conftest.err
9793   rm -f conftest.er1
9794   cat conftest.err >&5
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); } &&
9797          { ac_try='test -z "$ac_c_werror_flag"
9798                          || test ! -s conftest.err'
9799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800   (eval $ac_try) 2>&5
9801   ac_status=$?
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); }; } &&
9804          { ac_try='test -s conftest$ac_exeext'
9805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806   (eval $ac_try) 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); }; }; then
9810   ac_cv_func_gethostbyname=yes
9811 else
9812   echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9814
9815 ac_cv_func_gethostbyname=no
9816 fi
9817 rm -f conftest.err conftest.$ac_objext \
9818       conftest$ac_exeext conftest.$ac_ext
9819 fi
9820 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9821 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9822
9823     if test $ac_cv_func_gethostbyname = no; then
9824       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9825 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9826 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9827   echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829   ac_check_lib_save_LIBS=$LIBS
9830 LIBS="-lnsl  $LIBS"
9831 cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837
9838 /* Override any gcc2 internal prototype to avoid an error.  */
9839 #ifdef __cplusplus
9840 extern "C"
9841 #endif
9842 /* We use char because int might match the return type of a gcc2
9843    builtin and then its argument prototype would still apply.  */
9844 char gethostbyname ();
9845 int
9846 main ()
9847 {
9848 gethostbyname ();
9849   ;
9850   return 0;
9851 }
9852 _ACEOF
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855   (eval $ac_link) 2>conftest.er1
9856   ac_status=$?
9857   grep -v '^ *+' conftest.er1 >conftest.err
9858   rm -f conftest.er1
9859   cat conftest.err >&5
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); } &&
9862          { ac_try='test -z "$ac_c_werror_flag"
9863                          || test ! -s conftest.err'
9864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865   (eval $ac_try) 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; } &&
9869          { ac_try='test -s conftest$ac_exeext'
9870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871   (eval $ac_try) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; }; then
9875   ac_cv_lib_nsl_gethostbyname=yes
9876 else
9877   echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880 ac_cv_lib_nsl_gethostbyname=no
9881 fi
9882 rm -f conftest.err conftest.$ac_objext \
9883       conftest$ac_exeext conftest.$ac_ext
9884 LIBS=$ac_check_lib_save_LIBS
9885 fi
9886 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9887 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9888 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9889   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9890 fi
9891
9892       if test $ac_cv_lib_nsl_gethostbyname = no; then
9893         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9894 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9895 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9896   echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898   ac_check_lib_save_LIBS=$LIBS
9899 LIBS="-lbsd  $LIBS"
9900 cat >conftest.$ac_ext <<_ACEOF
9901 /* confdefs.h.  */
9902 _ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h.  */
9906
9907 /* Override any gcc2 internal prototype to avoid an error.  */
9908 #ifdef __cplusplus
9909 extern "C"
9910 #endif
9911 /* We use char because int might match the return type of a gcc2
9912    builtin and then its argument prototype would still apply.  */
9913 char gethostbyname ();
9914 int
9915 main ()
9916 {
9917 gethostbyname ();
9918   ;
9919   return 0;
9920 }
9921 _ACEOF
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9924   (eval $ac_link) 2>conftest.er1
9925   ac_status=$?
9926   grep -v '^ *+' conftest.er1 >conftest.err
9927   rm -f conftest.er1
9928   cat conftest.err >&5
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); } &&
9931          { ac_try='test -z "$ac_c_werror_flag"
9932                          || test ! -s conftest.err'
9933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934   (eval $ac_try) 2>&5
9935   ac_status=$?
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); }; } &&
9938          { ac_try='test -s conftest$ac_exeext'
9939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940   (eval $ac_try) 2>&5
9941   ac_status=$?
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); }; }; then
9944   ac_cv_lib_bsd_gethostbyname=yes
9945 else
9946   echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9948
9949 ac_cv_lib_bsd_gethostbyname=no
9950 fi
9951 rm -f conftest.err conftest.$ac_objext \
9952       conftest$ac_exeext conftest.$ac_ext
9953 LIBS=$ac_check_lib_save_LIBS
9954 fi
9955 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9956 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9957 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9958   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9959 fi
9960
9961       fi
9962     fi
9963
9964     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9965     # socket/setsockopt and other routines are undefined under SCO ODT
9966     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9967     # on later versions), says Simon Leinen: it contains gethostby*
9968     # variants that don't use the name server (or something).  -lsocket
9969     # must be given before -lnsl if both are needed.  We assume that
9970     # if connect needs -lnsl, so does gethostbyname.
9971     echo "$as_me:$LINENO: checking for connect" >&5
9972 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9973 if test "${ac_cv_func_connect+set}" = set; then
9974   echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976   cat >conftest.$ac_ext <<_ACEOF
9977 /* confdefs.h.  */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h.  */
9982 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9984 #define connect innocuous_connect
9985
9986 /* System header to define __stub macros and hopefully few prototypes,
9987     which can conflict with char connect (); below.
9988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9989     <limits.h> exists even on freestanding compilers.  */
9990
9991 #ifdef __STDC__
9992 # include <limits.h>
9993 #else
9994 # include <assert.h>
9995 #endif
9996
9997 #undef connect
9998
9999 /* Override any gcc2 internal prototype to avoid an error.  */
10000 #ifdef __cplusplus
10001 extern "C"
10002 {
10003 #endif
10004 /* We use char because int might match the return type of a gcc2
10005    builtin and then its argument prototype would still apply.  */
10006 char connect ();
10007 /* The GNU C library defines this for functions which it implements
10008     to always fail with ENOSYS.  Some functions are actually named
10009     something starting with __ and the normal name is an alias.  */
10010 #if defined (__stub_connect) || defined (__stub___connect)
10011 choke me
10012 #else
10013 char (*f) () = connect;
10014 #endif
10015 #ifdef __cplusplus
10016 }
10017 #endif
10018
10019 int
10020 main ()
10021 {
10022 return f != connect;
10023   ;
10024   return 0;
10025 }
10026 _ACEOF
10027 rm -f conftest.$ac_objext conftest$ac_exeext
10028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10029   (eval $ac_link) 2>conftest.er1
10030   ac_status=$?
10031   grep -v '^ *+' conftest.er1 >conftest.err
10032   rm -f conftest.er1
10033   cat conftest.err >&5
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); } &&
10036          { ac_try='test -z "$ac_c_werror_flag"
10037                          || test ! -s conftest.err'
10038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039   (eval $ac_try) 2>&5
10040   ac_status=$?
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); }; } &&
10043          { ac_try='test -s conftest$ac_exeext'
10044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045   (eval $ac_try) 2>&5
10046   ac_status=$?
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); }; }; then
10049   ac_cv_func_connect=yes
10050 else
10051   echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 ac_cv_func_connect=no
10055 fi
10056 rm -f conftest.err conftest.$ac_objext \
10057       conftest$ac_exeext conftest.$ac_ext
10058 fi
10059 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10060 echo "${ECHO_T}$ac_cv_func_connect" >&6
10061
10062     if test $ac_cv_func_connect = no; then
10063       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10064 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10065 if test "${ac_cv_lib_socket_connect+set}" = set; then
10066   echo $ECHO_N "(cached) $ECHO_C" >&6
10067 else
10068   ac_check_lib_save_LIBS=$LIBS
10069 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10070 cat >conftest.$ac_ext <<_ACEOF
10071 /* confdefs.h.  */
10072 _ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h.  */
10076
10077 /* Override any gcc2 internal prototype to avoid an error.  */
10078 #ifdef __cplusplus
10079 extern "C"
10080 #endif
10081 /* We use char because int might match the return type of a gcc2
10082    builtin and then its argument prototype would still apply.  */
10083 char connect ();
10084 int
10085 main ()
10086 {
10087 connect ();
10088   ;
10089   return 0;
10090 }
10091 _ACEOF
10092 rm -f conftest.$ac_objext conftest$ac_exeext
10093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094   (eval $ac_link) 2>conftest.er1
10095   ac_status=$?
10096   grep -v '^ *+' conftest.er1 >conftest.err
10097   rm -f conftest.er1
10098   cat conftest.err >&5
10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100   (exit $ac_status); } &&
10101          { ac_try='test -z "$ac_c_werror_flag"
10102                          || test ! -s conftest.err'
10103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104   (eval $ac_try) 2>&5
10105   ac_status=$?
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); }; } &&
10108          { ac_try='test -s conftest$ac_exeext'
10109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110   (eval $ac_try) 2>&5
10111   ac_status=$?
10112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113   (exit $ac_status); }; }; then
10114   ac_cv_lib_socket_connect=yes
10115 else
10116   echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10118
10119 ac_cv_lib_socket_connect=no
10120 fi
10121 rm -f conftest.err conftest.$ac_objext \
10122       conftest$ac_exeext conftest.$ac_ext
10123 LIBS=$ac_check_lib_save_LIBS
10124 fi
10125 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10126 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10127 if test $ac_cv_lib_socket_connect = yes; then
10128   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10129 fi
10130
10131     fi
10132
10133     # Guillermo Gomez says -lposix is necessary on A/UX.
10134     echo "$as_me:$LINENO: checking for remove" >&5
10135 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10136 if test "${ac_cv_func_remove+set}" = set; then
10137   echo $ECHO_N "(cached) $ECHO_C" >&6
10138 else
10139   cat >conftest.$ac_ext <<_ACEOF
10140 /* confdefs.h.  */
10141 _ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h.  */
10145 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10147 #define remove innocuous_remove
10148
10149 /* System header to define __stub macros and hopefully few prototypes,
10150     which can conflict with char remove (); below.
10151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10152     <limits.h> exists even on freestanding compilers.  */
10153
10154 #ifdef __STDC__
10155 # include <limits.h>
10156 #else
10157 # include <assert.h>
10158 #endif
10159
10160 #undef remove
10161
10162 /* Override any gcc2 internal prototype to avoid an error.  */
10163 #ifdef __cplusplus
10164 extern "C"
10165 {
10166 #endif
10167 /* We use char because int might match the return type of a gcc2
10168    builtin and then its argument prototype would still apply.  */
10169 char remove ();
10170 /* The GNU C library defines this for functions which it implements
10171     to always fail with ENOSYS.  Some functions are actually named
10172     something starting with __ and the normal name is an alias.  */
10173 #if defined (__stub_remove) || defined (__stub___remove)
10174 choke me
10175 #else
10176 char (*f) () = remove;
10177 #endif
10178 #ifdef __cplusplus
10179 }
10180 #endif
10181
10182 int
10183 main ()
10184 {
10185 return f != remove;
10186   ;
10187   return 0;
10188 }
10189 _ACEOF
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10192   (eval $ac_link) 2>conftest.er1
10193   ac_status=$?
10194   grep -v '^ *+' conftest.er1 >conftest.err
10195   rm -f conftest.er1
10196   cat conftest.err >&5
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); } &&
10199          { ac_try='test -z "$ac_c_werror_flag"
10200                          || test ! -s conftest.err'
10201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202   (eval $ac_try) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; } &&
10206          { ac_try='test -s conftest$ac_exeext'
10207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208   (eval $ac_try) 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); }; }; then
10212   ac_cv_func_remove=yes
10213 else
10214   echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10216
10217 ac_cv_func_remove=no
10218 fi
10219 rm -f conftest.err conftest.$ac_objext \
10220       conftest$ac_exeext conftest.$ac_ext
10221 fi
10222 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10223 echo "${ECHO_T}$ac_cv_func_remove" >&6
10224
10225     if test $ac_cv_func_remove = no; then
10226       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10227 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10228 if test "${ac_cv_lib_posix_remove+set}" = set; then
10229   echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231   ac_check_lib_save_LIBS=$LIBS
10232 LIBS="-lposix  $LIBS"
10233 cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h.  */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h.  */
10239
10240 /* Override any gcc2 internal prototype to avoid an error.  */
10241 #ifdef __cplusplus
10242 extern "C"
10243 #endif
10244 /* We use char because int might match the return type of a gcc2
10245    builtin and then its argument prototype would still apply.  */
10246 char remove ();
10247 int
10248 main ()
10249 {
10250 remove ();
10251   ;
10252   return 0;
10253 }
10254 _ACEOF
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10257   (eval $ac_link) 2>conftest.er1
10258   ac_status=$?
10259   grep -v '^ *+' conftest.er1 >conftest.err
10260   rm -f conftest.er1
10261   cat conftest.err >&5
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); } &&
10264          { ac_try='test -z "$ac_c_werror_flag"
10265                          || test ! -s conftest.err'
10266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267   (eval $ac_try) 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); }; } &&
10271          { ac_try='test -s conftest$ac_exeext'
10272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273   (eval $ac_try) 2>&5
10274   ac_status=$?
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); }; }; then
10277   ac_cv_lib_posix_remove=yes
10278 else
10279   echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10281
10282 ac_cv_lib_posix_remove=no
10283 fi
10284 rm -f conftest.err conftest.$ac_objext \
10285       conftest$ac_exeext conftest.$ac_ext
10286 LIBS=$ac_check_lib_save_LIBS
10287 fi
10288 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10289 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10290 if test $ac_cv_lib_posix_remove = yes; then
10291   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10292 fi
10293
10294     fi
10295
10296     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10297     echo "$as_me:$LINENO: checking for shmat" >&5
10298 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10299 if test "${ac_cv_func_shmat+set}" = set; then
10300   echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302   cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h.  */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h.  */
10308 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10310 #define shmat innocuous_shmat
10311
10312 /* System header to define __stub macros and hopefully few prototypes,
10313     which can conflict with char shmat (); below.
10314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10315     <limits.h> exists even on freestanding compilers.  */
10316
10317 #ifdef __STDC__
10318 # include <limits.h>
10319 #else
10320 # include <assert.h>
10321 #endif
10322
10323 #undef shmat
10324
10325 /* Override any gcc2 internal prototype to avoid an error.  */
10326 #ifdef __cplusplus
10327 extern "C"
10328 {
10329 #endif
10330 /* We use char because int might match the return type of a gcc2
10331    builtin and then its argument prototype would still apply.  */
10332 char shmat ();
10333 /* The GNU C library defines this for functions which it implements
10334     to always fail with ENOSYS.  Some functions are actually named
10335     something starting with __ and the normal name is an alias.  */
10336 #if defined (__stub_shmat) || defined (__stub___shmat)
10337 choke me
10338 #else
10339 char (*f) () = shmat;
10340 #endif
10341 #ifdef __cplusplus
10342 }
10343 #endif
10344
10345 int
10346 main ()
10347 {
10348 return f != shmat;
10349   ;
10350   return 0;
10351 }
10352 _ACEOF
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10355   (eval $ac_link) 2>conftest.er1
10356   ac_status=$?
10357   grep -v '^ *+' conftest.er1 >conftest.err
10358   rm -f conftest.er1
10359   cat conftest.err >&5
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); } &&
10362          { ac_try='test -z "$ac_c_werror_flag"
10363                          || test ! -s conftest.err'
10364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365   (eval $ac_try) 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); }; } &&
10369          { ac_try='test -s conftest$ac_exeext'
10370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371   (eval $ac_try) 2>&5
10372   ac_status=$?
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); }; }; then
10375   ac_cv_func_shmat=yes
10376 else
10377   echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380 ac_cv_func_shmat=no
10381 fi
10382 rm -f conftest.err conftest.$ac_objext \
10383       conftest$ac_exeext conftest.$ac_ext
10384 fi
10385 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10386 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10387
10388     if test $ac_cv_func_shmat = no; then
10389       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10390 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10391 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10392   echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394   ac_check_lib_save_LIBS=$LIBS
10395 LIBS="-lipc  $LIBS"
10396 cat >conftest.$ac_ext <<_ACEOF
10397 /* confdefs.h.  */
10398 _ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h.  */
10402
10403 /* Override any gcc2 internal prototype to avoid an error.  */
10404 #ifdef __cplusplus
10405 extern "C"
10406 #endif
10407 /* We use char because int might match the return type of a gcc2
10408    builtin and then its argument prototype would still apply.  */
10409 char shmat ();
10410 int
10411 main ()
10412 {
10413 shmat ();
10414   ;
10415   return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420   (eval $ac_link) 2>conftest.er1
10421   ac_status=$?
10422   grep -v '^ *+' conftest.er1 >conftest.err
10423   rm -f conftest.er1
10424   cat conftest.err >&5
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); } &&
10427          { ac_try='test -z "$ac_c_werror_flag"
10428                          || test ! -s conftest.err'
10429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430   (eval $ac_try) 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); }; } &&
10434          { ac_try='test -s conftest$ac_exeext'
10435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436   (eval $ac_try) 2>&5
10437   ac_status=$?
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); }; }; then
10440   ac_cv_lib_ipc_shmat=yes
10441 else
10442   echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10444
10445 ac_cv_lib_ipc_shmat=no
10446 fi
10447 rm -f conftest.err conftest.$ac_objext \
10448       conftest$ac_exeext conftest.$ac_ext
10449 LIBS=$ac_check_lib_save_LIBS
10450 fi
10451 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10452 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10453 if test $ac_cv_lib_ipc_shmat = yes; then
10454   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10455 fi
10456
10457     fi
10458   fi
10459
10460   # Check for libraries that X11R6 Xt/Xaw programs need.
10461   ac_save_LDFLAGS=$LDFLAGS
10462   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10463   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10464   # check for ICE first), but we must link in the order -lSM -lICE or
10465   # we get undefined symbols.  So assume we have SM if we have ICE.
10466   # These have to be linked with before -lX11, unlike the other
10467   # libraries we check for below, so use a different variable.
10468   # John Interrante, Karl Berry
10469   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10470 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10471 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10472   echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474   ac_check_lib_save_LIBS=$LIBS
10475 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10476 cat >conftest.$ac_ext <<_ACEOF
10477 /* confdefs.h.  */
10478 _ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h.  */
10482
10483 /* Override any gcc2 internal prototype to avoid an error.  */
10484 #ifdef __cplusplus
10485 extern "C"
10486 #endif
10487 /* We use char because int might match the return type of a gcc2
10488    builtin and then its argument prototype would still apply.  */
10489 char IceConnectionNumber ();
10490 int
10491 main ()
10492 {
10493 IceConnectionNumber ();
10494   ;
10495   return 0;
10496 }
10497 _ACEOF
10498 rm -f conftest.$ac_objext conftest$ac_exeext
10499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500   (eval $ac_link) 2>conftest.er1
10501   ac_status=$?
10502   grep -v '^ *+' conftest.er1 >conftest.err
10503   rm -f conftest.er1
10504   cat conftest.err >&5
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); } &&
10507          { ac_try='test -z "$ac_c_werror_flag"
10508                          || test ! -s conftest.err'
10509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510   (eval $ac_try) 2>&5
10511   ac_status=$?
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); }; } &&
10514          { ac_try='test -s conftest$ac_exeext'
10515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516   (eval $ac_try) 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); }; }; then
10520   ac_cv_lib_ICE_IceConnectionNumber=yes
10521 else
10522   echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10524
10525 ac_cv_lib_ICE_IceConnectionNumber=no
10526 fi
10527 rm -f conftest.err conftest.$ac_objext \
10528       conftest$ac_exeext conftest.$ac_ext
10529 LIBS=$ac_check_lib_save_LIBS
10530 fi
10531 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10532 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10533 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10534   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10535 fi
10536
10537   LDFLAGS=$ac_save_LDFLAGS
10538
10539 fi
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569 for ac_header in \
10570         assert.h \
10571         fcntl.h \
10572         grp.h \
10573         pwd.h \
10574         libc.h \
10575         limits.h \
10576         stdarg.h \
10577         stdlib.h \
10578         stdint.h \
10579         string.h \
10580         termios.h \
10581         termcap.h \
10582         term.h \
10583         unistd.h \
10584         sys/bitypes.h \
10585         sys/byteorder.h \
10586         sys/ioctl.h \
10587         sys/select.h \
10588         sys/sockio.h \
10589         sys/time.h \
10590         sys/socket.h \
10591         arpa/nameser.h \
10592         resolv.h \
10593         mtio.h \
10594         sys/mtio.h \
10595         sys/tape.h \
10596         regex.h \
10597
10598 do
10599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10601   echo "$as_me:$LINENO: checking for $ac_header" >&5
10602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10604   echo $ECHO_N "(cached) $ECHO_C" >&6
10605 fi
10606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10608 else
10609   # Is the header compilable?
10610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10612 cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h.  */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h.  */
10618 $ac_includes_default
10619 #include <$ac_header>
10620 _ACEOF
10621 rm -f conftest.$ac_objext
10622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10623   (eval $ac_compile) 2>conftest.er1
10624   ac_status=$?
10625   grep -v '^ *+' conftest.er1 >conftest.err
10626   rm -f conftest.er1
10627   cat conftest.err >&5
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); } &&
10630          { ac_try='test -z "$ac_c_werror_flag"
10631                          || test ! -s conftest.err'
10632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633   (eval $ac_try) 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; } &&
10637          { ac_try='test -s conftest.$ac_objext'
10638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639   (eval $ac_try) 2>&5
10640   ac_status=$?
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); }; }; then
10643   ac_header_compiler=yes
10644 else
10645   echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10647
10648 ac_header_compiler=no
10649 fi
10650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10652 echo "${ECHO_T}$ac_header_compiler" >&6
10653
10654 # Is the header present?
10655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10657 cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h.  */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h.  */
10663 #include <$ac_header>
10664 _ACEOF
10665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10666   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10667   ac_status=$?
10668   grep -v '^ *+' conftest.er1 >conftest.err
10669   rm -f conftest.er1
10670   cat conftest.err >&5
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); } >/dev/null; then
10673   if test -s conftest.err; then
10674     ac_cpp_err=$ac_c_preproc_warn_flag
10675     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10676   else
10677     ac_cpp_err=
10678   fi
10679 else
10680   ac_cpp_err=yes
10681 fi
10682 if test -z "$ac_cpp_err"; then
10683   ac_header_preproc=yes
10684 else
10685   echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10687
10688   ac_header_preproc=no
10689 fi
10690 rm -f conftest.err conftest.$ac_ext
10691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10692 echo "${ECHO_T}$ac_header_preproc" >&6
10693
10694 # So?  What about this header?
10695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10696   yes:no: )
10697     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10701     ac_header_preproc=yes
10702     ;;
10703   no:yes:* )
10704     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10706     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10707 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10708     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10710     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10711 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10714     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10716     (
10717       cat <<\_ASBOX
10718 ## ------------------------------------------ ##
10719 ## Report this to the AC_PACKAGE_NAME lists.  ##
10720 ## ------------------------------------------ ##
10721 _ASBOX
10722     ) |
10723       sed "s/^/$as_me: WARNING:     /" >&2
10724     ;;
10725 esac
10726 echo "$as_me:$LINENO: checking for $ac_header" >&5
10727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10729   echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731   eval "$as_ac_Header=\$ac_header_preproc"
10732 fi
10733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10735
10736 fi
10737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10738   cat >>confdefs.h <<_ACEOF
10739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10740 _ACEOF
10741
10742 fi
10743
10744 done
10745
10746 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10747 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10748 if test "${ac_cv_header_stdc+set}" = set; then
10749   echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751   cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h.  */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h.  */
10757 #include <stdlib.h>
10758 #include <stdarg.h>
10759 #include <string.h>
10760 #include <float.h>
10761
10762 int
10763 main ()
10764 {
10765
10766   ;
10767   return 0;
10768 }
10769 _ACEOF
10770 rm -f conftest.$ac_objext
10771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10772   (eval $ac_compile) 2>conftest.er1
10773   ac_status=$?
10774   grep -v '^ *+' conftest.er1 >conftest.err
10775   rm -f conftest.er1
10776   cat conftest.err >&5
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); } &&
10779          { ac_try='test -z "$ac_c_werror_flag"
10780                          || test ! -s conftest.err'
10781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782   (eval $ac_try) 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); }; } &&
10786          { ac_try='test -s conftest.$ac_objext'
10787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788   (eval $ac_try) 2>&5
10789   ac_status=$?
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); }; }; then
10792   ac_cv_header_stdc=yes
10793 else
10794   echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10796
10797 ac_cv_header_stdc=no
10798 fi
10799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10800
10801 if test $ac_cv_header_stdc = yes; then
10802   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10803   cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h.  */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h.  */
10809 #include <string.h>
10810
10811 _ACEOF
10812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10813   $EGREP "memchr" >/dev/null 2>&1; then
10814   :
10815 else
10816   ac_cv_header_stdc=no
10817 fi
10818 rm -f conftest*
10819
10820 fi
10821
10822 if test $ac_cv_header_stdc = yes; then
10823   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10824   cat >conftest.$ac_ext <<_ACEOF
10825 /* confdefs.h.  */
10826 _ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h.  */
10830 #include <stdlib.h>
10831
10832 _ACEOF
10833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10834   $EGREP "free" >/dev/null 2>&1; then
10835   :
10836 else
10837   ac_cv_header_stdc=no
10838 fi
10839 rm -f conftest*
10840
10841 fi
10842
10843 if test $ac_cv_header_stdc = yes; then
10844   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10845   if test "$cross_compiling" = yes; then
10846   :
10847 else
10848   cat >conftest.$ac_ext <<_ACEOF
10849 /* confdefs.h.  */
10850 _ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h.  */
10854 #include <ctype.h>
10855 #if ((' ' & 0x0FF) == 0x020)
10856 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10857 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10858 #else
10859 # define ISLOWER(c) \
10860                    (('a' <= (c) && (c) <= 'i') \
10861                      || ('j' <= (c) && (c) <= 'r') \
10862                      || ('s' <= (c) && (c) <= 'z'))
10863 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10864 #endif
10865
10866 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10867 int
10868 main ()
10869 {
10870   int i;
10871   for (i = 0; i < 256; i++)
10872     if (XOR (islower (i), ISLOWER (i))
10873         || toupper (i) != TOUPPER (i))
10874       exit(2);
10875   exit (0);
10876 }
10877 _ACEOF
10878 rm -f conftest$ac_exeext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10880   (eval $ac_link) 2>&5
10881   ac_status=$?
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885   (eval $ac_try) 2>&5
10886   ac_status=$?
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); }; }; then
10889   :
10890 else
10891   echo "$as_me: program exited with status $ac_status" >&5
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10894
10895 ( exit $ac_status )
10896 ac_cv_header_stdc=no
10897 fi
10898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10899 fi
10900 fi
10901 fi
10902 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10903 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10904 if test $ac_cv_header_stdc = yes; then
10905
10906 cat >>confdefs.h <<\_ACEOF
10907 #define STDC_HEADERS 1
10908 _ACEOF
10909
10910 fi
10911
10912 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10913 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10914 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10915   echo $ECHO_N "(cached) $ECHO_C" >&6
10916 else
10917   cat >conftest.$ac_ext <<_ACEOF
10918 /* confdefs.h.  */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h.  */
10923 #include <sys/types.h>
10924 int
10925 main ()
10926 {
10927 return makedev(0, 0);
10928   ;
10929   return 0;
10930 }
10931 _ACEOF
10932 rm -f conftest.$ac_objext conftest$ac_exeext
10933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10934   (eval $ac_link) 2>conftest.er1
10935   ac_status=$?
10936   grep -v '^ *+' conftest.er1 >conftest.err
10937   rm -f conftest.er1
10938   cat conftest.err >&5
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } &&
10941          { ac_try='test -z "$ac_c_werror_flag"
10942                          || test ! -s conftest.err'
10943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944   (eval $ac_try) 2>&5
10945   ac_status=$?
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); }; } &&
10948          { ac_try='test -s conftest$ac_exeext'
10949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950   (eval $ac_try) 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; }; then
10954   ac_cv_header_sys_types_h_makedev=yes
10955 else
10956   echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10958
10959 ac_cv_header_sys_types_h_makedev=no
10960 fi
10961 rm -f conftest.err conftest.$ac_objext \
10962       conftest$ac_exeext conftest.$ac_ext
10963
10964 fi
10965 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10966 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10967
10968 if test $ac_cv_header_sys_types_h_makedev = no; then
10969 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10970   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10971 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10972 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10973   echo $ECHO_N "(cached) $ECHO_C" >&6
10974 fi
10975 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10976 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10977 else
10978   # Is the header compilable?
10979 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10980 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10981 cat >conftest.$ac_ext <<_ACEOF
10982 /* confdefs.h.  */
10983 _ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h.  */
10987 $ac_includes_default
10988 #include <sys/mkdev.h>
10989 _ACEOF
10990 rm -f conftest.$ac_objext
10991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10992   (eval $ac_compile) 2>conftest.er1
10993   ac_status=$?
10994   grep -v '^ *+' conftest.er1 >conftest.err
10995   rm -f conftest.er1
10996   cat conftest.err >&5
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } &&
10999          { ac_try='test -z "$ac_c_werror_flag"
11000                          || test ! -s conftest.err'
11001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002   (eval $ac_try) 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); }; } &&
11006          { ac_try='test -s conftest.$ac_objext'
11007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008   (eval $ac_try) 2>&5
11009   ac_status=$?
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); }; }; then
11012   ac_header_compiler=yes
11013 else
11014   echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11016
11017 ac_header_compiler=no
11018 fi
11019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11021 echo "${ECHO_T}$ac_header_compiler" >&6
11022
11023 # Is the header present?
11024 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11025 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11026 cat >conftest.$ac_ext <<_ACEOF
11027 /* confdefs.h.  */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h.  */
11032 #include <sys/mkdev.h>
11033 _ACEOF
11034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11036   ac_status=$?
11037   grep -v '^ *+' conftest.er1 >conftest.err
11038   rm -f conftest.er1
11039   cat conftest.err >&5
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); } >/dev/null; then
11042   if test -s conftest.err; then
11043     ac_cpp_err=$ac_c_preproc_warn_flag
11044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11045   else
11046     ac_cpp_err=
11047   fi
11048 else
11049   ac_cpp_err=yes
11050 fi
11051 if test -z "$ac_cpp_err"; then
11052   ac_header_preproc=yes
11053 else
11054   echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11056
11057   ac_header_preproc=no
11058 fi
11059 rm -f conftest.err conftest.$ac_ext
11060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11061 echo "${ECHO_T}$ac_header_preproc" >&6
11062
11063 # So?  What about this header?
11064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11065   yes:no: )
11066     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11067 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11068     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11069 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11070     ac_header_preproc=yes
11071     ;;
11072   no:yes:* )
11073     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11074 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11075     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11076 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11077     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11078 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11079     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11080 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11081     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11082 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11083     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11084 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11085     (
11086       cat <<\_ASBOX
11087 ## ------------------------------------------ ##
11088 ## Report this to the AC_PACKAGE_NAME lists.  ##
11089 ## ------------------------------------------ ##
11090 _ASBOX
11091     ) |
11092       sed "s/^/$as_me: WARNING:     /" >&2
11093     ;;
11094 esac
11095 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11096 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11097 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11101 fi
11102 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11103 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11104
11105 fi
11106 if test $ac_cv_header_sys_mkdev_h = yes; then
11107
11108 cat >>confdefs.h <<\_ACEOF
11109 #define MAJOR_IN_MKDEV 1
11110 _ACEOF
11111
11112 fi
11113
11114
11115
11116   if test $ac_cv_header_sys_mkdev_h = no; then
11117     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11118   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11119 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11120 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11121   echo $ECHO_N "(cached) $ECHO_C" >&6
11122 fi
11123 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11124 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11125 else
11126   # Is the header compilable?
11127 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11128 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11129 cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h.  */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h.  */
11135 $ac_includes_default
11136 #include <sys/sysmacros.h>
11137 _ACEOF
11138 rm -f conftest.$ac_objext
11139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11140   (eval $ac_compile) 2>conftest.er1
11141   ac_status=$?
11142   grep -v '^ *+' conftest.er1 >conftest.err
11143   rm -f conftest.er1
11144   cat conftest.err >&5
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); } &&
11147          { ac_try='test -z "$ac_c_werror_flag"
11148                          || test ! -s conftest.err'
11149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150   (eval $ac_try) 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); }; } &&
11154          { ac_try='test -s conftest.$ac_objext'
11155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156   (eval $ac_try) 2>&5
11157   ac_status=$?
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); }; }; then
11160   ac_header_compiler=yes
11161 else
11162   echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11164
11165 ac_header_compiler=no
11166 fi
11167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11169 echo "${ECHO_T}$ac_header_compiler" >&6
11170
11171 # Is the header present?
11172 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11173 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11174 cat >conftest.$ac_ext <<_ACEOF
11175 /* confdefs.h.  */
11176 _ACEOF
11177 cat confdefs.h >>conftest.$ac_ext
11178 cat >>conftest.$ac_ext <<_ACEOF
11179 /* end confdefs.h.  */
11180 #include <sys/sysmacros.h>
11181 _ACEOF
11182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11183   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11184   ac_status=$?
11185   grep -v '^ *+' conftest.er1 >conftest.err
11186   rm -f conftest.er1
11187   cat conftest.err >&5
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); } >/dev/null; then
11190   if test -s conftest.err; then
11191     ac_cpp_err=$ac_c_preproc_warn_flag
11192     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11193   else
11194     ac_cpp_err=
11195   fi
11196 else
11197   ac_cpp_err=yes
11198 fi
11199 if test -z "$ac_cpp_err"; then
11200   ac_header_preproc=yes
11201 else
11202   echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11204
11205   ac_header_preproc=no
11206 fi
11207 rm -f conftest.err conftest.$ac_ext
11208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11209 echo "${ECHO_T}$ac_header_preproc" >&6
11210
11211 # So?  What about this header?
11212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11213   yes:no: )
11214     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11215 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11216     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11217 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11218     ac_header_preproc=yes
11219     ;;
11220   no:yes:* )
11221     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11222 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11223     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11224 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11225     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11226 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11227     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11228 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11229     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11230 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11231     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11232 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11233     (
11234       cat <<\_ASBOX
11235 ## ------------------------------------------ ##
11236 ## Report this to the AC_PACKAGE_NAME lists.  ##
11237 ## ------------------------------------------ ##
11238 _ASBOX
11239     ) |
11240       sed "s/^/$as_me: WARNING:     /" >&2
11241     ;;
11242 esac
11243 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11244 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11245 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11246   echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11249 fi
11250 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11251 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11252
11253 fi
11254 if test $ac_cv_header_sys_sysmacros_h = yes; then
11255
11256 cat >>confdefs.h <<\_ACEOF
11257 #define MAJOR_IN_SYSMACROS 1
11258 _ACEOF
11259
11260 fi
11261
11262
11263   fi
11264 fi
11265
11266
11267
11268
11269
11270
11271 ac_header_dirent=no
11272 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11273   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11274 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11275 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11277   echo $ECHO_N "(cached) $ECHO_C" >&6
11278 else
11279   cat >conftest.$ac_ext <<_ACEOF
11280 /* confdefs.h.  */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h.  */
11285 #include <sys/types.h>
11286 #include <$ac_hdr>
11287
11288 int
11289 main ()
11290 {
11291 if ((DIR *) 0)
11292 return 0;
11293   ;
11294   return 0;
11295 }
11296 _ACEOF
11297 rm -f conftest.$ac_objext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11299   (eval $ac_compile) 2>conftest.er1
11300   ac_status=$?
11301   grep -v '^ *+' conftest.er1 >conftest.err
11302   rm -f conftest.er1
11303   cat conftest.err >&5
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); } &&
11306          { ac_try='test -z "$ac_c_werror_flag"
11307                          || test ! -s conftest.err'
11308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309   (eval $ac_try) 2>&5
11310   ac_status=$?
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); }; } &&
11313          { ac_try='test -s conftest.$ac_objext'
11314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315   (eval $ac_try) 2>&5
11316   ac_status=$?
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); }; }; then
11319   eval "$as_ac_Header=yes"
11320 else
11321   echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11323
11324 eval "$as_ac_Header=no"
11325 fi
11326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11327 fi
11328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11331   cat >>confdefs.h <<_ACEOF
11332 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11333 _ACEOF
11334
11335 ac_header_dirent=$ac_hdr; break
11336 fi
11337
11338 done
11339 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11340 if test $ac_header_dirent = dirent.h; then
11341   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11342 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11343 if test "${ac_cv_search_opendir+set}" = set; then
11344   echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346   ac_func_search_save_LIBS=$LIBS
11347 ac_cv_search_opendir=no
11348 cat >conftest.$ac_ext <<_ACEOF
11349 /* confdefs.h.  */
11350 _ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h.  */
11354
11355 /* Override any gcc2 internal prototype to avoid an error.  */
11356 #ifdef __cplusplus
11357 extern "C"
11358 #endif
11359 /* We use char because int might match the return type of a gcc2
11360    builtin and then its argument prototype would still apply.  */
11361 char opendir ();
11362 int
11363 main ()
11364 {
11365 opendir ();
11366   ;
11367   return 0;
11368 }
11369 _ACEOF
11370 rm -f conftest.$ac_objext conftest$ac_exeext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11372   (eval $ac_link) 2>conftest.er1
11373   ac_status=$?
11374   grep -v '^ *+' conftest.er1 >conftest.err
11375   rm -f conftest.er1
11376   cat conftest.err >&5
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); } &&
11379          { ac_try='test -z "$ac_c_werror_flag"
11380                          || test ! -s conftest.err'
11381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382   (eval $ac_try) 2>&5
11383   ac_status=$?
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); }; } &&
11386          { ac_try='test -s conftest$ac_exeext'
11387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388   (eval $ac_try) 2>&5
11389   ac_status=$?
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); }; }; then
11392   ac_cv_search_opendir="none required"
11393 else
11394   echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11396
11397 fi
11398 rm -f conftest.err conftest.$ac_objext \
11399       conftest$ac_exeext conftest.$ac_ext
11400 if test "$ac_cv_search_opendir" = no; then
11401   for ac_lib in dir; do
11402     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11403     cat >conftest.$ac_ext <<_ACEOF
11404 /* confdefs.h.  */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h.  */
11409
11410 /* Override any gcc2 internal prototype to avoid an error.  */
11411 #ifdef __cplusplus
11412 extern "C"
11413 #endif
11414 /* We use char because int might match the return type of a gcc2
11415    builtin and then its argument prototype would still apply.  */
11416 char opendir ();
11417 int
11418 main ()
11419 {
11420 opendir ();
11421   ;
11422   return 0;
11423 }
11424 _ACEOF
11425 rm -f conftest.$ac_objext conftest$ac_exeext
11426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11427   (eval $ac_link) 2>conftest.er1
11428   ac_status=$?
11429   grep -v '^ *+' conftest.er1 >conftest.err
11430   rm -f conftest.er1
11431   cat conftest.err >&5
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); } &&
11434          { ac_try='test -z "$ac_c_werror_flag"
11435                          || test ! -s conftest.err'
11436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437   (eval $ac_try) 2>&5
11438   ac_status=$?
11439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440   (exit $ac_status); }; } &&
11441          { ac_try='test -s conftest$ac_exeext'
11442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443   (eval $ac_try) 2>&5
11444   ac_status=$?
11445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446   (exit $ac_status); }; }; then
11447   ac_cv_search_opendir="-l$ac_lib"
11448 break
11449 else
11450   echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11452
11453 fi
11454 rm -f conftest.err conftest.$ac_objext \
11455       conftest$ac_exeext conftest.$ac_ext
11456   done
11457 fi
11458 LIBS=$ac_func_search_save_LIBS
11459 fi
11460 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11461 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11462 if test "$ac_cv_search_opendir" != no; then
11463   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11464
11465 fi
11466
11467 else
11468   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11469 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11470 if test "${ac_cv_search_opendir+set}" = set; then
11471   echo $ECHO_N "(cached) $ECHO_C" >&6
11472 else
11473   ac_func_search_save_LIBS=$LIBS
11474 ac_cv_search_opendir=no
11475 cat >conftest.$ac_ext <<_ACEOF
11476 /* confdefs.h.  */
11477 _ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h.  */
11481
11482 /* Override any gcc2 internal prototype to avoid an error.  */
11483 #ifdef __cplusplus
11484 extern "C"
11485 #endif
11486 /* We use char because int might match the return type of a gcc2
11487    builtin and then its argument prototype would still apply.  */
11488 char opendir ();
11489 int
11490 main ()
11491 {
11492 opendir ();
11493   ;
11494   return 0;
11495 }
11496 _ACEOF
11497 rm -f conftest.$ac_objext conftest$ac_exeext
11498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11499   (eval $ac_link) 2>conftest.er1
11500   ac_status=$?
11501   grep -v '^ *+' conftest.er1 >conftest.err
11502   rm -f conftest.er1
11503   cat conftest.err >&5
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); } &&
11506          { ac_try='test -z "$ac_c_werror_flag"
11507                          || test ! -s conftest.err'
11508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509   (eval $ac_try) 2>&5
11510   ac_status=$?
11511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); }; } &&
11513          { ac_try='test -s conftest$ac_exeext'
11514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515   (eval $ac_try) 2>&5
11516   ac_status=$?
11517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518   (exit $ac_status); }; }; then
11519   ac_cv_search_opendir="none required"
11520 else
11521   echo "$as_me: failed program was:" >&5
11522 sed 's/^/| /' conftest.$ac_ext >&5
11523
11524 fi
11525 rm -f conftest.err conftest.$ac_objext \
11526       conftest$ac_exeext conftest.$ac_ext
11527 if test "$ac_cv_search_opendir" = no; then
11528   for ac_lib in x; do
11529     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11530     cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h.  */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h.  */
11536
11537 /* Override any gcc2 internal prototype to avoid an error.  */
11538 #ifdef __cplusplus
11539 extern "C"
11540 #endif
11541 /* We use char because int might match the return type of a gcc2
11542    builtin and then its argument prototype would still apply.  */
11543 char opendir ();
11544 int
11545 main ()
11546 {
11547 opendir ();
11548   ;
11549   return 0;
11550 }
11551 _ACEOF
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11554   (eval $ac_link) 2>conftest.er1
11555   ac_status=$?
11556   grep -v '^ *+' conftest.er1 >conftest.err
11557   rm -f conftest.er1
11558   cat conftest.err >&5
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); } &&
11561          { ac_try='test -z "$ac_c_werror_flag"
11562                          || test ! -s conftest.err'
11563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564   (eval $ac_try) 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); }; } &&
11568          { ac_try='test -s conftest$ac_exeext'
11569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570   (eval $ac_try) 2>&5
11571   ac_status=$?
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); }; }; then
11574   ac_cv_search_opendir="-l$ac_lib"
11575 break
11576 else
11577   echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11579
11580 fi
11581 rm -f conftest.err conftest.$ac_objext \
11582       conftest$ac_exeext conftest.$ac_ext
11583   done
11584 fi
11585 LIBS=$ac_func_search_save_LIBS
11586 fi
11587 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11588 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11589 if test "$ac_cv_search_opendir" != no; then
11590   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11591
11592 fi
11593
11594 fi
11595
11596 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11597 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11598 if test "${ac_cv_header_stat_broken+set}" = set; then
11599   echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601   cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h.  */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h.  */
11607 #include <sys/types.h>
11608 #include <sys/stat.h>
11609
11610 #if defined(S_ISBLK) && defined(S_IFDIR)
11611 # if S_ISBLK (S_IFDIR)
11612 You lose.
11613 # endif
11614 #endif
11615
11616 #if defined(S_ISBLK) && defined(S_IFCHR)
11617 # if S_ISBLK (S_IFCHR)
11618 You lose.
11619 # endif
11620 #endif
11621
11622 #if defined(S_ISLNK) && defined(S_IFREG)
11623 # if S_ISLNK (S_IFREG)
11624 You lose.
11625 # endif
11626 #endif
11627
11628 #if defined(S_ISSOCK) && defined(S_IFREG)
11629 # if S_ISSOCK (S_IFREG)
11630 You lose.
11631 # endif
11632 #endif
11633
11634 _ACEOF
11635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11636   $EGREP "You lose" >/dev/null 2>&1; then
11637   ac_cv_header_stat_broken=yes
11638 else
11639   ac_cv_header_stat_broken=no
11640 fi
11641 rm -f conftest*
11642
11643 fi
11644 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11645 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11646 if test $ac_cv_header_stat_broken = yes; then
11647
11648 cat >>confdefs.h <<\_ACEOF
11649 #define STAT_MACROS_BROKEN 1
11650 _ACEOF
11651
11652 fi
11653
11654 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11655 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11656 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11657   echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659   cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h.  */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h.  */
11665 #include <sys/types.h>
11666 #include <sys/wait.h>
11667 #ifndef WEXITSTATUS
11668 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11669 #endif
11670 #ifndef WIFEXITED
11671 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11672 #endif
11673
11674 int
11675 main ()
11676 {
11677   int s;
11678   wait (&s);
11679   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11680   ;
11681   return 0;
11682 }
11683 _ACEOF
11684 rm -f conftest.$ac_objext
11685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11686   (eval $ac_compile) 2>conftest.er1
11687   ac_status=$?
11688   grep -v '^ *+' conftest.er1 >conftest.err
11689   rm -f conftest.er1
11690   cat conftest.err >&5
11691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); } &&
11693          { ac_try='test -z "$ac_c_werror_flag"
11694                          || test ! -s conftest.err'
11695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696   (eval $ac_try) 2>&5
11697   ac_status=$?
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); }; } &&
11700          { ac_try='test -s conftest.$ac_objext'
11701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702   (eval $ac_try) 2>&5
11703   ac_status=$?
11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705   (exit $ac_status); }; }; then
11706   ac_cv_header_sys_wait_h=yes
11707 else
11708   echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11710
11711 ac_cv_header_sys_wait_h=no
11712 fi
11713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11714 fi
11715 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11716 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11717 if test $ac_cv_header_sys_wait_h = yes; then
11718
11719 cat >>confdefs.h <<\_ACEOF
11720 #define HAVE_SYS_WAIT_H 1
11721 _ACEOF
11722
11723 fi
11724
11725 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11726 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11727 if test "${ac_cv_header_time+set}" = set; then
11728   echo $ECHO_N "(cached) $ECHO_C" >&6
11729 else
11730   cat >conftest.$ac_ext <<_ACEOF
11731 /* confdefs.h.  */
11732 _ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h.  */
11736 #include <sys/types.h>
11737 #include <sys/time.h>
11738 #include <time.h>
11739
11740 int
11741 main ()
11742 {
11743 if ((struct tm *) 0)
11744 return 0;
11745   ;
11746   return 0;
11747 }
11748 _ACEOF
11749 rm -f conftest.$ac_objext
11750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11751   (eval $ac_compile) 2>conftest.er1
11752   ac_status=$?
11753   grep -v '^ *+' conftest.er1 >conftest.err
11754   rm -f conftest.er1
11755   cat conftest.err >&5
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); } &&
11758          { ac_try='test -z "$ac_c_werror_flag"
11759                          || test ! -s conftest.err'
11760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761   (eval $ac_try) 2>&5
11762   ac_status=$?
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); }; } &&
11765          { ac_try='test -s conftest.$ac_objext'
11766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767   (eval $ac_try) 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); }; }; then
11771   ac_cv_header_time=yes
11772 else
11773   echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11775
11776 ac_cv_header_time=no
11777 fi
11778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11779 fi
11780 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11781 echo "${ECHO_T}$ac_cv_header_time" >&6
11782 if test $ac_cv_header_time = yes; then
11783
11784 cat >>confdefs.h <<\_ACEOF
11785 #define TIME_WITH_SYS_TIME 1
11786 _ACEOF
11787
11788 fi
11789
11790
11791 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11792 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11793 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11794   echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796   cat >conftest.$ac_ext <<_ACEOF
11797 /* confdefs.h.  */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h.  */
11802 $ac_includes_default
11803 int
11804 main ()
11805 {
11806 static struct stat ac_aggr;
11807 if (ac_aggr.st_blksize)
11808 return 0;
11809   ;
11810   return 0;
11811 }
11812 _ACEOF
11813 rm -f conftest.$ac_objext
11814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11815   (eval $ac_compile) 2>conftest.er1
11816   ac_status=$?
11817   grep -v '^ *+' conftest.er1 >conftest.err
11818   rm -f conftest.er1
11819   cat conftest.err >&5
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); } &&
11822          { ac_try='test -z "$ac_c_werror_flag"
11823                          || test ! -s conftest.err'
11824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825   (eval $ac_try) 2>&5
11826   ac_status=$?
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); }; } &&
11829          { ac_try='test -s conftest.$ac_objext'
11830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831   (eval $ac_try) 2>&5
11832   ac_status=$?
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); }; }; then
11835   ac_cv_member_struct_stat_st_blksize=yes
11836 else
11837   echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840 cat >conftest.$ac_ext <<_ACEOF
11841 /* confdefs.h.  */
11842 _ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h.  */
11846 $ac_includes_default
11847 int
11848 main ()
11849 {
11850 static struct stat ac_aggr;
11851 if (sizeof ac_aggr.st_blksize)
11852 return 0;
11853   ;
11854   return 0;
11855 }
11856 _ACEOF
11857 rm -f conftest.$ac_objext
11858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11859   (eval $ac_compile) 2>conftest.er1
11860   ac_status=$?
11861   grep -v '^ *+' conftest.er1 >conftest.err
11862   rm -f conftest.er1
11863   cat conftest.err >&5
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); } &&
11866          { ac_try='test -z "$ac_c_werror_flag"
11867                          || test ! -s conftest.err'
11868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869   (eval $ac_try) 2>&5
11870   ac_status=$?
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); }; } &&
11873          { ac_try='test -s conftest.$ac_objext'
11874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875   (eval $ac_try) 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); }; }; then
11879   ac_cv_member_struct_stat_st_blksize=yes
11880 else
11881   echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11883
11884 ac_cv_member_struct_stat_st_blksize=no
11885 fi
11886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11887 fi
11888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11889 fi
11890 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11891 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11892 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11893
11894 cat >>confdefs.h <<_ACEOF
11895 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11896 _ACEOF
11897
11898
11899 cat >>confdefs.h <<\_ACEOF
11900 #define HAVE_ST_BLKSIZE 1
11901 _ACEOF
11902
11903 fi
11904
11905
11906 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11907 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11908 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11909   echo $ECHO_N "(cached) $ECHO_C" >&6
11910 else
11911   cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h.  */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h.  */
11917 $ac_includes_default
11918 int
11919 main ()
11920 {
11921 static struct stat ac_aggr;
11922 if (ac_aggr.st_blocks)
11923 return 0;
11924   ;
11925   return 0;
11926 }
11927 _ACEOF
11928 rm -f conftest.$ac_objext
11929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11930   (eval $ac_compile) 2>conftest.er1
11931   ac_status=$?
11932   grep -v '^ *+' conftest.er1 >conftest.err
11933   rm -f conftest.er1
11934   cat conftest.err >&5
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); } &&
11937          { ac_try='test -z "$ac_c_werror_flag"
11938                          || test ! -s conftest.err'
11939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940   (eval $ac_try) 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); }; } &&
11944          { ac_try='test -s conftest.$ac_objext'
11945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946   (eval $ac_try) 2>&5
11947   ac_status=$?
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); }; }; then
11950   ac_cv_member_struct_stat_st_blocks=yes
11951 else
11952   echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11954
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h.  */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h.  */
11961 $ac_includes_default
11962 int
11963 main ()
11964 {
11965 static struct stat ac_aggr;
11966 if (sizeof ac_aggr.st_blocks)
11967 return 0;
11968   ;
11969   return 0;
11970 }
11971 _ACEOF
11972 rm -f conftest.$ac_objext
11973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11974   (eval $ac_compile) 2>conftest.er1
11975   ac_status=$?
11976   grep -v '^ *+' conftest.er1 >conftest.err
11977   rm -f conftest.er1
11978   cat conftest.err >&5
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); } &&
11981          { ac_try='test -z "$ac_c_werror_flag"
11982                          || test ! -s conftest.err'
11983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984   (eval $ac_try) 2>&5
11985   ac_status=$?
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); }; } &&
11988          { ac_try='test -s conftest.$ac_objext'
11989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990   (eval $ac_try) 2>&5
11991   ac_status=$?
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); }; }; then
11994   ac_cv_member_struct_stat_st_blocks=yes
11995 else
11996   echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
11998
11999 ac_cv_member_struct_stat_st_blocks=no
12000 fi
12001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12002 fi
12003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12004 fi
12005 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12006 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12007 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12008
12009 cat >>confdefs.h <<_ACEOF
12010 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12011 _ACEOF
12012
12013
12014 cat >>confdefs.h <<\_ACEOF
12015 #define HAVE_ST_BLOCKS 1
12016 _ACEOF
12017
12018 else
12019   case $LIBOBJS in
12020     "fileblocks.$ac_objext"   | \
12021   *" fileblocks.$ac_objext"   | \
12022     "fileblocks.$ac_objext "* | \
12023   *" fileblocks.$ac_objext "* ) ;;
12024   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12025 esac
12026
12027 fi
12028
12029
12030 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12031 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12032 if test "${ac_cv_struct_tm+set}" = set; then
12033   echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035   cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041 #include <sys/types.h>
12042 #include <time.h>
12043
12044 int
12045 main ()
12046 {
12047 struct tm *tp; tp->tm_sec;
12048   ;
12049   return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12054   (eval $ac_compile) 2>conftest.er1
12055   ac_status=$?
12056   grep -v '^ *+' conftest.er1 >conftest.err
12057   rm -f conftest.er1
12058   cat conftest.err >&5
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); } &&
12061          { ac_try='test -z "$ac_c_werror_flag"
12062                          || test ! -s conftest.err'
12063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064   (eval $ac_try) 2>&5
12065   ac_status=$?
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); }; } &&
12068          { ac_try='test -s conftest.$ac_objext'
12069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070   (eval $ac_try) 2>&5
12071   ac_status=$?
12072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073   (exit $ac_status); }; }; then
12074   ac_cv_struct_tm=time.h
12075 else
12076   echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12078
12079 ac_cv_struct_tm=sys/time.h
12080 fi
12081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12082 fi
12083 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12084 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12085 if test $ac_cv_struct_tm = sys/time.h; then
12086
12087 cat >>confdefs.h <<\_ACEOF
12088 #define TM_IN_SYS_TIME 1
12089 _ACEOF
12090
12091 fi
12092
12093 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12094 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12095 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12096   echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098   cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h.  */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h.  */
12104 #include <sys/types.h>
12105 #include <$ac_cv_struct_tm>
12106
12107
12108 int
12109 main ()
12110 {
12111 static struct tm ac_aggr;
12112 if (ac_aggr.tm_zone)
12113 return 0;
12114   ;
12115   return 0;
12116 }
12117 _ACEOF
12118 rm -f conftest.$ac_objext
12119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12120   (eval $ac_compile) 2>conftest.er1
12121   ac_status=$?
12122   grep -v '^ *+' conftest.er1 >conftest.err
12123   rm -f conftest.er1
12124   cat conftest.err >&5
12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126   (exit $ac_status); } &&
12127          { ac_try='test -z "$ac_c_werror_flag"
12128                          || test ! -s conftest.err'
12129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130   (eval $ac_try) 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; } &&
12134          { ac_try='test -s conftest.$ac_objext'
12135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136   (eval $ac_try) 2>&5
12137   ac_status=$?
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); }; }; then
12140   ac_cv_member_struct_tm_tm_zone=yes
12141 else
12142   echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145 cat >conftest.$ac_ext <<_ACEOF
12146 /* confdefs.h.  */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h.  */
12151 #include <sys/types.h>
12152 #include <$ac_cv_struct_tm>
12153
12154
12155 int
12156 main ()
12157 {
12158 static struct tm ac_aggr;
12159 if (sizeof ac_aggr.tm_zone)
12160 return 0;
12161   ;
12162   return 0;
12163 }
12164 _ACEOF
12165 rm -f conftest.$ac_objext
12166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12167   (eval $ac_compile) 2>conftest.er1
12168   ac_status=$?
12169   grep -v '^ *+' conftest.er1 >conftest.err
12170   rm -f conftest.er1
12171   cat conftest.err >&5
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); } &&
12174          { ac_try='test -z "$ac_c_werror_flag"
12175                          || test ! -s conftest.err'
12176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177   (eval $ac_try) 2>&5
12178   ac_status=$?
12179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180   (exit $ac_status); }; } &&
12181          { ac_try='test -s conftest.$ac_objext'
12182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183   (eval $ac_try) 2>&5
12184   ac_status=$?
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); }; }; then
12187   ac_cv_member_struct_tm_tm_zone=yes
12188 else
12189   echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12191
12192 ac_cv_member_struct_tm_tm_zone=no
12193 fi
12194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12195 fi
12196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12197 fi
12198 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12199 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12200 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12201
12202 cat >>confdefs.h <<_ACEOF
12203 #define HAVE_STRUCT_TM_TM_ZONE 1
12204 _ACEOF
12205
12206
12207 fi
12208
12209 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12210
12211 cat >>confdefs.h <<\_ACEOF
12212 #define HAVE_TM_ZONE 1
12213 _ACEOF
12214
12215 else
12216   echo "$as_me:$LINENO: checking for tzname" >&5
12217 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12218 if test "${ac_cv_var_tzname+set}" = set; then
12219   echo $ECHO_N "(cached) $ECHO_C" >&6
12220 else
12221   cat >conftest.$ac_ext <<_ACEOF
12222 /* confdefs.h.  */
12223 _ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h.  */
12227 #include <time.h>
12228 #ifndef tzname /* For SGI.  */
12229 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12230 #endif
12231
12232 int
12233 main ()
12234 {
12235 atoi(*tzname);
12236   ;
12237   return 0;
12238 }
12239 _ACEOF
12240 rm -f conftest.$ac_objext conftest$ac_exeext
12241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12242   (eval $ac_link) 2>conftest.er1
12243   ac_status=$?
12244   grep -v '^ *+' conftest.er1 >conftest.err
12245   rm -f conftest.er1
12246   cat conftest.err >&5
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); } &&
12249          { ac_try='test -z "$ac_c_werror_flag"
12250                          || test ! -s conftest.err'
12251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252   (eval $ac_try) 2>&5
12253   ac_status=$?
12254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); }; } &&
12256          { ac_try='test -s conftest$ac_exeext'
12257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12258   (eval $ac_try) 2>&5
12259   ac_status=$?
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); }; }; then
12262   ac_cv_var_tzname=yes
12263 else
12264   echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12266
12267 ac_cv_var_tzname=no
12268 fi
12269 rm -f conftest.err conftest.$ac_objext \
12270       conftest$ac_exeext conftest.$ac_ext
12271 fi
12272 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12273 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12274   if test $ac_cv_var_tzname = yes; then
12275
12276 cat >>confdefs.h <<\_ACEOF
12277 #define HAVE_TZNAME 1
12278 _ACEOF
12279
12280   fi
12281 fi
12282
12283
12284 echo "$as_me:$LINENO: checking for utime.h" >&5
12285 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12286 if test "${ba_cv_header_utime_h+set}" = set; then
12287   echo $ECHO_N "(cached) $ECHO_C" >&6
12288 else
12289   cat >conftest.$ac_ext <<_ACEOF
12290 /* confdefs.h.  */
12291 _ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h.  */
12295
12296 #include <sys/types.h>
12297 #include <utime.h>
12298 int
12299 main ()
12300 {
12301 struct utimbuf foo
12302   ;
12303   return 0;
12304 }
12305 _ACEOF
12306 rm -f conftest.$ac_objext
12307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12308   (eval $ac_compile) 2>conftest.er1
12309   ac_status=$?
12310   grep -v '^ *+' conftest.er1 >conftest.err
12311   rm -f conftest.er1
12312   cat conftest.err >&5
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); } &&
12315          { ac_try='test -z "$ac_c_werror_flag"
12316                          || test ! -s conftest.err'
12317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318   (eval $ac_try) 2>&5
12319   ac_status=$?
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); }; } &&
12322          { ac_try='test -s conftest.$ac_objext'
12323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324   (eval $ac_try) 2>&5
12325   ac_status=$?
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); }; }; then
12328   ba_cv_header_utime_h=yes
12329 else
12330   echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12332
12333 ba_cv_header_utime_h=no
12334 fi
12335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12336 fi
12337 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12338 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12339 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12340 #define HAVE_UTIME_H 1
12341 _ACEOF
12342
12343
12344 echo "$as_me:$LINENO: checking for socklen_t" >&5
12345 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12346 if test "${ba_cv_header_socklen_t+set}" = set; then
12347   echo $ECHO_N "(cached) $ECHO_C" >&6
12348 else
12349   cat >conftest.$ac_ext <<_ACEOF
12350 /* confdefs.h.  */
12351 _ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h.  */
12355
12356 #include <sys/types.h>
12357 #include <sys/socket.h>
12358 int
12359 main ()
12360 {
12361 socklen_t x
12362   ;
12363   return 0;
12364 }
12365 _ACEOF
12366 rm -f conftest.$ac_objext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12368   (eval $ac_compile) 2>conftest.er1
12369   ac_status=$?
12370   grep -v '^ *+' conftest.er1 >conftest.err
12371   rm -f conftest.er1
12372   cat conftest.err >&5
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); } &&
12375          { ac_try='test -z "$ac_c_werror_flag"
12376                          || test ! -s conftest.err'
12377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378   (eval $ac_try) 2>&5
12379   ac_status=$?
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); }; } &&
12382          { ac_try='test -s conftest.$ac_objext'
12383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384   (eval $ac_try) 2>&5
12385   ac_status=$?
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); }; }; then
12388   ba_cv_header_socklen_t=yes
12389 else
12390   echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12392
12393 ba_cv_header_socklen_t=no
12394 fi
12395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12396 fi
12397 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12398 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12399 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12400 #define HAVE_SOCKLEN_T 1
12401 _ACEOF
12402
12403
12404 echo "$as_me:$LINENO: checking for bigendian" >&5
12405 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12406 if test "${ba_cv_bigendian+set}" = set; then
12407   echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409   if test "$cross_compiling" = yes; then
12410   ba_cv_bigendian=no
12411 else
12412   cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h.  */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h.  */
12418 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12419 _ACEOF
12420 rm -f conftest$ac_exeext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12422   (eval $ac_link) 2>&5
12423   ac_status=$?
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427   (eval $ac_try) 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; }; then
12431   ba_cv_bigendian=yes
12432 else
12433   echo "$as_me: program exited with status $ac_status" >&5
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 ( exit $ac_status )
12438 ba_cv_bigendian=no
12439 fi
12440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12441 fi
12442 fi
12443 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12444 echo "${ECHO_T}$ba_cv_bigendian" >&6
12445 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12446 #define HAVE_BIGENDIAN 1
12447 _ACEOF
12448
12449
12450
12451 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12452 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12453 if test "${ac_cv_c_const+set}" = set; then
12454   echo $ECHO_N "(cached) $ECHO_C" >&6
12455 else
12456   cat >conftest.$ac_ext <<_ACEOF
12457 /* confdefs.h.  */
12458 _ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h.  */
12462
12463 int
12464 main ()
12465 {
12466 /* FIXME: Include the comments suggested by Paul. */
12467 #ifndef __cplusplus
12468   /* Ultrix mips cc rejects this.  */
12469   typedef int charset[2];
12470   const charset x;
12471   /* SunOS 4.1.1 cc rejects this.  */
12472   char const *const *ccp;
12473   char **p;
12474   /* NEC SVR4.0.2 mips cc rejects this.  */
12475   struct point {int x, y;};
12476   static struct point const zero = {0,0};
12477   /* AIX XL C 1.02.0.0 rejects this.
12478      It does not let you subtract one const X* pointer from another in
12479      an arm of an if-expression whose if-part is not a constant
12480      expression */
12481   const char *g = "string";
12482   ccp = &g + (g ? g-g : 0);
12483   /* HPUX 7.0 cc rejects these. */
12484   ++ccp;
12485   p = (char**) ccp;
12486   ccp = (char const *const *) p;
12487   { /* SCO 3.2v4 cc rejects this.  */
12488     char *t;
12489     char const *s = 0 ? (char *) 0 : (char const *) 0;
12490
12491     *t++ = 0;
12492   }
12493   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12494     int x[] = {25, 17};
12495     const int *foo = &x[0];
12496     ++foo;
12497   }
12498   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12499     typedef const int *iptr;
12500     iptr p = 0;
12501     ++p;
12502   }
12503   { /* AIX XL C 1.02.0.0 rejects this saying
12504        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12505     struct s { int j; const int *ap[3]; };
12506     struct s *b; b->j = 5;
12507   }
12508   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12509     const int foo = 10;
12510   }
12511 #endif
12512
12513   ;
12514   return 0;
12515 }
12516 _ACEOF
12517 rm -f conftest.$ac_objext
12518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12519   (eval $ac_compile) 2>conftest.er1
12520   ac_status=$?
12521   grep -v '^ *+' conftest.er1 >conftest.err
12522   rm -f conftest.er1
12523   cat conftest.err >&5
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); } &&
12526          { ac_try='test -z "$ac_c_werror_flag"
12527                          || test ! -s conftest.err'
12528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529   (eval $ac_try) 2>&5
12530   ac_status=$?
12531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532   (exit $ac_status); }; } &&
12533          { ac_try='test -s conftest.$ac_objext'
12534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535   (eval $ac_try) 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); }; }; then
12539   ac_cv_c_const=yes
12540 else
12541   echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12543
12544 ac_cv_c_const=no
12545 fi
12546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12547 fi
12548 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12549 echo "${ECHO_T}$ac_cv_c_const" >&6
12550 if test $ac_cv_c_const = no; then
12551
12552 cat >>confdefs.h <<\_ACEOF
12553 #define const
12554 _ACEOF
12555
12556 fi
12557
12558
12559
12560 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12561 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12562 fstype=no
12563 # The order of these tests is important.
12564 cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h.  */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h.  */
12570 #include <sys/statvfs.h>
12571 #include <sys/fstyp.h>
12572 _ACEOF
12573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12574   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12575   ac_status=$?
12576   grep -v '^ *+' conftest.er1 >conftest.err
12577   rm -f conftest.er1
12578   cat conftest.err >&5
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); } >/dev/null; then
12581   if test -s conftest.err; then
12582     ac_cpp_err=$ac_c_preproc_warn_flag
12583     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12584   else
12585     ac_cpp_err=
12586   fi
12587 else
12588   ac_cpp_err=yes
12589 fi
12590 if test -z "$ac_cpp_err"; then
12591   cat >>confdefs.h <<\_ACEOF
12592 #define FSTYPE_STATVFS 1
12593 _ACEOF
12594  fstype=SVR4
12595 else
12596   echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12598
12599
12600 fi
12601 rm -f conftest.err conftest.$ac_ext
12602 if test $fstype = no; then
12603 cat >conftest.$ac_ext <<_ACEOF
12604 /* confdefs.h.  */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h.  */
12609 #include <sys/statfs.h>
12610 #include <sys/fstyp.h>
12611 _ACEOF
12612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12613   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12614   ac_status=$?
12615   grep -v '^ *+' conftest.er1 >conftest.err
12616   rm -f conftest.er1
12617   cat conftest.err >&5
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); } >/dev/null; then
12620   if test -s conftest.err; then
12621     ac_cpp_err=$ac_c_preproc_warn_flag
12622     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12623   else
12624     ac_cpp_err=
12625   fi
12626 else
12627   ac_cpp_err=yes
12628 fi
12629 if test -z "$ac_cpp_err"; then
12630   cat >>confdefs.h <<\_ACEOF
12631 #define FSTYPE_USG_STATFS 1
12632 _ACEOF
12633  fstype=SVR3
12634 else
12635   echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12637
12638
12639 fi
12640 rm -f conftest.err conftest.$ac_ext
12641 fi
12642 if test $fstype = no; then
12643 cat >conftest.$ac_ext <<_ACEOF
12644 /* confdefs.h.  */
12645 _ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h.  */
12649 #include <sys/statfs.h>
12650 #include <sys/vmount.h>
12651 _ACEOF
12652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12654   ac_status=$?
12655   grep -v '^ *+' conftest.er1 >conftest.err
12656   rm -f conftest.er1
12657   cat conftest.err >&5
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } >/dev/null; then
12660   if test -s conftest.err; then
12661     ac_cpp_err=$ac_c_preproc_warn_flag
12662     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12663   else
12664     ac_cpp_err=
12665   fi
12666 else
12667   ac_cpp_err=yes
12668 fi
12669 if test -z "$ac_cpp_err"; then
12670   cat >>confdefs.h <<\_ACEOF
12671 #define FSTYPE_AIX_STATFS 1
12672 _ACEOF
12673  fstype=AIX
12674 else
12675   echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12677
12678
12679 fi
12680 rm -f conftest.err conftest.$ac_ext
12681 fi
12682 if test $fstype = no; then
12683 cat >conftest.$ac_ext <<_ACEOF
12684 /* confdefs.h.  */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h.  */
12689 #include <mntent.h>
12690 _ACEOF
12691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12693   ac_status=$?
12694   grep -v '^ *+' conftest.er1 >conftest.err
12695   rm -f conftest.er1
12696   cat conftest.err >&5
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); } >/dev/null; then
12699   if test -s conftest.err; then
12700     ac_cpp_err=$ac_c_preproc_warn_flag
12701     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12702   else
12703     ac_cpp_err=
12704   fi
12705 else
12706   ac_cpp_err=yes
12707 fi
12708 if test -z "$ac_cpp_err"; then
12709   cat >>confdefs.h <<\_ACEOF
12710 #define FSTYPE_MNTENT 1
12711 _ACEOF
12712  fstype=4.3BSD
12713 else
12714   echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12716
12717
12718 fi
12719 rm -f conftest.err conftest.$ac_ext
12720 fi
12721 if test $fstype = no; then
12722 cat >conftest.$ac_ext <<_ACEOF
12723 /* confdefs.h.  */
12724 _ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h.  */
12728 #include <sys/mount.h>
12729
12730 _ACEOF
12731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12732   $EGREP "f_type;" >/dev/null 2>&1; then
12733   cat >>confdefs.h <<\_ACEOF
12734 #define FSTYPE_STATFS 1
12735 _ACEOF
12736  fstype=4.4BSD/OSF1
12737 fi
12738 rm -f conftest*
12739
12740 fi
12741 if test $fstype = no; then
12742 cat >conftest.$ac_ext <<_ACEOF
12743 /* confdefs.h.  */
12744 _ACEOF
12745 cat confdefs.h >>conftest.$ac_ext
12746 cat >>conftest.$ac_ext <<_ACEOF
12747 /* end confdefs.h.  */
12748 #include <sys/mount.h>
12749 #include <sys/fs_types.h>
12750 _ACEOF
12751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12752   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12753   ac_status=$?
12754   grep -v '^ *+' conftest.er1 >conftest.err
12755   rm -f conftest.er1
12756   cat conftest.err >&5
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); } >/dev/null; then
12759   if test -s conftest.err; then
12760     ac_cpp_err=$ac_c_preproc_warn_flag
12761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12762   else
12763     ac_cpp_err=
12764   fi
12765 else
12766   ac_cpp_err=yes
12767 fi
12768 if test -z "$ac_cpp_err"; then
12769   cat >>confdefs.h <<\_ACEOF
12770 #define FSTYPE_GETMNT 1
12771 _ACEOF
12772  fstype=Ultrix
12773 else
12774   echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12776
12777
12778 fi
12779 rm -f conftest.err conftest.$ac_ext
12780 fi
12781 echo "$as_me:$LINENO: result: $fstype" >&5
12782 echo "${ECHO_T}$fstype" >&6
12783
12784 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12785 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12786 if test "${ac_cv_type_signal+set}" = set; then
12787   echo $ECHO_N "(cached) $ECHO_C" >&6
12788 else
12789   cat >conftest.$ac_ext <<_ACEOF
12790 /* confdefs.h.  */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h.  */
12795 #include <sys/types.h>
12796 #include <signal.h>
12797 #ifdef signal
12798 # undef signal
12799 #endif
12800 #ifdef __cplusplus
12801 extern "C" void (*signal (int, void (*)(int)))(int);
12802 #else
12803 void (*signal ()) ();
12804 #endif
12805
12806 int
12807 main ()
12808 {
12809 int i;
12810   ;
12811   return 0;
12812 }
12813 _ACEOF
12814 rm -f conftest.$ac_objext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12816   (eval $ac_compile) 2>conftest.er1
12817   ac_status=$?
12818   grep -v '^ *+' conftest.er1 >conftest.err
12819   rm -f conftest.er1
12820   cat conftest.err >&5
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); } &&
12823          { ac_try='test -z "$ac_c_werror_flag"
12824                          || test ! -s conftest.err'
12825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826   (eval $ac_try) 2>&5
12827   ac_status=$?
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); }; } &&
12830          { ac_try='test -s conftest.$ac_objext'
12831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832   (eval $ac_try) 2>&5
12833   ac_status=$?
12834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835   (exit $ac_status); }; }; then
12836   ac_cv_type_signal=void
12837 else
12838   echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12840
12841 ac_cv_type_signal=int
12842 fi
12843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12844 fi
12845 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12846 echo "${ECHO_T}$ac_cv_type_signal" >&6
12847
12848 cat >>confdefs.h <<_ACEOF
12849 #define RETSIGTYPE $ac_cv_type_signal
12850 _ACEOF
12851
12852
12853
12854 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12855 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12856 if test "${bash_cv_signal_vintage+set}" = set; then
12857   echo $ECHO_N "(cached) $ECHO_C" >&6
12858 else
12859
12860   cat >conftest.$ac_ext <<_ACEOF
12861 /* confdefs.h.  */
12862 _ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h.  */
12866 #include <signal.h>
12867 int
12868 main ()
12869 {
12870
12871     sigset_t ss;
12872     struct sigaction sa;
12873     sigemptyset(&ss); sigsuspend(&ss);
12874     sigaction(SIGINT, &sa, (struct sigaction *) 0);
12875     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12876
12877   ;
12878   return 0;
12879 }
12880 _ACEOF
12881 rm -f conftest.$ac_objext conftest$ac_exeext
12882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12883   (eval $ac_link) 2>conftest.er1
12884   ac_status=$?
12885   grep -v '^ *+' conftest.er1 >conftest.err
12886   rm -f conftest.er1
12887   cat conftest.err >&5
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); } &&
12890          { ac_try='test -z "$ac_c_werror_flag"
12891                          || test ! -s conftest.err'
12892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893   (eval $ac_try) 2>&5
12894   ac_status=$?
12895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); }; } &&
12897          { ac_try='test -s conftest$ac_exeext'
12898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899   (eval $ac_try) 2>&5
12900   ac_status=$?
12901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); }; }; then
12903   bash_cv_signal_vintage=posix
12904 else
12905   echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12907
12908
12909     cat >conftest.$ac_ext <<_ACEOF
12910 /* confdefs.h.  */
12911 _ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h.  */
12915 #include <signal.h>
12916 int
12917 main ()
12918 {
12919
12920         int mask = sigmask(SIGINT);
12921         sigsetmask(mask); sigblock(mask); sigpause(mask);
12922
12923   ;
12924   return 0;
12925 }
12926 _ACEOF
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12929   (eval $ac_link) 2>conftest.er1
12930   ac_status=$?
12931   grep -v '^ *+' conftest.er1 >conftest.err
12932   rm -f conftest.er1
12933   cat conftest.err >&5
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); } &&
12936          { ac_try='test -z "$ac_c_werror_flag"
12937                          || test ! -s conftest.err'
12938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939   (eval $ac_try) 2>&5
12940   ac_status=$?
12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); }; } &&
12943          { ac_try='test -s conftest$ac_exeext'
12944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945   (eval $ac_try) 2>&5
12946   ac_status=$?
12947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); }; }; then
12949   bash_cv_signal_vintage=4.2bsd
12950 else
12951   echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12953
12954
12955       cat >conftest.$ac_ext <<_ACEOF
12956 /* confdefs.h.  */
12957 _ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h.  */
12961
12962         #include <signal.h>
12963         RETSIGTYPE foo() { }
12964 int
12965 main ()
12966 {
12967
12968                 int mask = sigmask(SIGINT);
12969                 sigset(SIGINT, foo); sigrelse(SIGINT);
12970                 sighold(SIGINT); sigpause(SIGINT);
12971
12972   ;
12973   return 0;
12974 }
12975 _ACEOF
12976 rm -f conftest.$ac_objext conftest$ac_exeext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978   (eval $ac_link) 2>conftest.er1
12979   ac_status=$?
12980   grep -v '^ *+' conftest.er1 >conftest.err
12981   rm -f conftest.er1
12982   cat conftest.err >&5
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); } &&
12985          { ac_try='test -z "$ac_c_werror_flag"
12986                          || test ! -s conftest.err'
12987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988   (eval $ac_try) 2>&5
12989   ac_status=$?
12990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991   (exit $ac_status); }; } &&
12992          { ac_try='test -s conftest$ac_exeext'
12993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994   (eval $ac_try) 2>&5
12995   ac_status=$?
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); }; }; then
12998   bash_cv_signal_vintage=svr3
12999 else
13000   echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13002
13003 bash_cv_signal_vintage=v7
13004
13005 fi
13006 rm -f conftest.err conftest.$ac_objext \
13007       conftest$ac_exeext conftest.$ac_ext
13008
13009 fi
13010 rm -f conftest.err conftest.$ac_objext \
13011       conftest$ac_exeext conftest.$ac_ext
13012
13013 fi
13014 rm -f conftest.err conftest.$ac_objext \
13015       conftest$ac_exeext conftest.$ac_ext
13016
13017 fi
13018
13019 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13020 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13021 if test "$bash_cv_signal_vintage" = posix; then
13022 cat >>confdefs.h <<\_ACEOF
13023 #define HAVE_POSIX_SIGNALS 1
13024 _ACEOF
13025
13026 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13027 cat >>confdefs.h <<\_ACEOF
13028 #define HAVE_BSD_SIGNALS 1
13029 _ACEOF
13030
13031 elif test "$bash_cv_signal_vintage" = svr3; then
13032 cat >>confdefs.h <<\_ACEOF
13033 #define HAVE_USG_SIGHOLD 1
13034 _ACEOF
13035
13036 fi
13037
13038 echo "$as_me:$LINENO: checking for mode_t" >&5
13039 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13040 if test "${ac_cv_type_mode_t+set}" = set; then
13041   echo $ECHO_N "(cached) $ECHO_C" >&6
13042 else
13043   cat >conftest.$ac_ext <<_ACEOF
13044 /* confdefs.h.  */
13045 _ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h.  */
13049 $ac_includes_default
13050 int
13051 main ()
13052 {
13053 if ((mode_t *) 0)
13054   return 0;
13055 if (sizeof (mode_t))
13056   return 0;
13057   ;
13058   return 0;
13059 }
13060 _ACEOF
13061 rm -f conftest.$ac_objext
13062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13063   (eval $ac_compile) 2>conftest.er1
13064   ac_status=$?
13065   grep -v '^ *+' conftest.er1 >conftest.err
13066   rm -f conftest.er1
13067   cat conftest.err >&5
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); } &&
13070          { ac_try='test -z "$ac_c_werror_flag"
13071                          || test ! -s conftest.err'
13072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073   (eval $ac_try) 2>&5
13074   ac_status=$?
13075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076   (exit $ac_status); }; } &&
13077          { ac_try='test -s conftest.$ac_objext'
13078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079   (eval $ac_try) 2>&5
13080   ac_status=$?
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); }; }; then
13083   ac_cv_type_mode_t=yes
13084 else
13085   echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.$ac_ext >&5
13087
13088 ac_cv_type_mode_t=no
13089 fi
13090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13091 fi
13092 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13093 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13094 if test $ac_cv_type_mode_t = yes; then
13095   :
13096 else
13097
13098 cat >>confdefs.h <<_ACEOF
13099 #define mode_t int
13100 _ACEOF
13101
13102 fi
13103
13104 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13105 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13106 if test "${ac_cv_type_uid_t+set}" = set; then
13107   echo $ECHO_N "(cached) $ECHO_C" >&6
13108 else
13109   cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h.  */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h.  */
13115 #include <sys/types.h>
13116
13117 _ACEOF
13118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13119   $EGREP "uid_t" >/dev/null 2>&1; then
13120   ac_cv_type_uid_t=yes
13121 else
13122   ac_cv_type_uid_t=no
13123 fi
13124 rm -f conftest*
13125
13126 fi
13127 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13128 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13129 if test $ac_cv_type_uid_t = no; then
13130
13131 cat >>confdefs.h <<\_ACEOF
13132 #define uid_t int
13133 _ACEOF
13134
13135
13136 cat >>confdefs.h <<\_ACEOF
13137 #define gid_t int
13138 _ACEOF
13139
13140 fi
13141
13142 echo "$as_me:$LINENO: checking for size_t" >&5
13143 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13144 if test "${ac_cv_type_size_t+set}" = set; then
13145   echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147   cat >conftest.$ac_ext <<_ACEOF
13148 /* confdefs.h.  */
13149 _ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h.  */
13153 $ac_includes_default
13154 int
13155 main ()
13156 {
13157 if ((size_t *) 0)
13158   return 0;
13159 if (sizeof (size_t))
13160   return 0;
13161   ;
13162   return 0;
13163 }
13164 _ACEOF
13165 rm -f conftest.$ac_objext
13166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13167   (eval $ac_compile) 2>conftest.er1
13168   ac_status=$?
13169   grep -v '^ *+' conftest.er1 >conftest.err
13170   rm -f conftest.er1
13171   cat conftest.err >&5
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); } &&
13174          { ac_try='test -z "$ac_c_werror_flag"
13175                          || test ! -s conftest.err'
13176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177   (eval $ac_try) 2>&5
13178   ac_status=$?
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); }; } &&
13181          { ac_try='test -s conftest.$ac_objext'
13182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183   (eval $ac_try) 2>&5
13184   ac_status=$?
13185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); }; }; then
13187   ac_cv_type_size_t=yes
13188 else
13189   echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13191
13192 ac_cv_type_size_t=no
13193 fi
13194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13195 fi
13196 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13197 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13198 if test $ac_cv_type_size_t = yes; then
13199   :
13200 else
13201
13202 cat >>confdefs.h <<_ACEOF
13203 #define size_t unsigned
13204 _ACEOF
13205
13206 fi
13207
13208 echo "$as_me:$LINENO: checking for pid_t" >&5
13209 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13210 if test "${ac_cv_type_pid_t+set}" = set; then
13211   echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213   cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h.  */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h.  */
13219 $ac_includes_default
13220 int
13221 main ()
13222 {
13223 if ((pid_t *) 0)
13224   return 0;
13225 if (sizeof (pid_t))
13226   return 0;
13227   ;
13228   return 0;
13229 }
13230 _ACEOF
13231 rm -f conftest.$ac_objext
13232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13233   (eval $ac_compile) 2>conftest.er1
13234   ac_status=$?
13235   grep -v '^ *+' conftest.er1 >conftest.err
13236   rm -f conftest.er1
13237   cat conftest.err >&5
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); } &&
13240          { ac_try='test -z "$ac_c_werror_flag"
13241                          || test ! -s conftest.err'
13242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243   (eval $ac_try) 2>&5
13244   ac_status=$?
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); }; } &&
13247          { ac_try='test -s conftest.$ac_objext'
13248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249   (eval $ac_try) 2>&5
13250   ac_status=$?
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); }; }; then
13253   ac_cv_type_pid_t=yes
13254 else
13255   echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13257
13258 ac_cv_type_pid_t=no
13259 fi
13260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13261 fi
13262 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13263 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13264 if test $ac_cv_type_pid_t = yes; then
13265   :
13266 else
13267
13268 cat >>confdefs.h <<_ACEOF
13269 #define pid_t int
13270 _ACEOF
13271
13272 fi
13273
13274 echo "$as_me:$LINENO: checking for off_t" >&5
13275 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13276 if test "${ac_cv_type_off_t+set}" = set; then
13277   echo $ECHO_N "(cached) $ECHO_C" >&6
13278 else
13279   cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h.  */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h.  */
13285 $ac_includes_default
13286 int
13287 main ()
13288 {
13289 if ((off_t *) 0)
13290   return 0;
13291 if (sizeof (off_t))
13292   return 0;
13293   ;
13294   return 0;
13295 }
13296 _ACEOF
13297 rm -f conftest.$ac_objext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13299   (eval $ac_compile) 2>conftest.er1
13300   ac_status=$?
13301   grep -v '^ *+' conftest.er1 >conftest.err
13302   rm -f conftest.er1
13303   cat conftest.err >&5
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); } &&
13306          { ac_try='test -z "$ac_c_werror_flag"
13307                          || test ! -s conftest.err'
13308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309   (eval $ac_try) 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); }; } &&
13313          { ac_try='test -s conftest.$ac_objext'
13314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315   (eval $ac_try) 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); }; }; then
13319   ac_cv_type_off_t=yes
13320 else
13321   echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 ac_cv_type_off_t=no
13325 fi
13326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13327 fi
13328 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13329 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13330 if test $ac_cv_type_off_t = yes; then
13331   :
13332 else
13333
13334 cat >>confdefs.h <<_ACEOF
13335 #define off_t long
13336 _ACEOF
13337
13338 fi
13339
13340 echo "$as_me:$LINENO: checking for ino_t" >&5
13341 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13342 if test "${ac_cv_type_ino_t+set}" = set; then
13343   echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345   cat >conftest.$ac_ext <<_ACEOF
13346 /* confdefs.h.  */
13347 _ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h.  */
13351 $ac_includes_default
13352 int
13353 main ()
13354 {
13355 if ((ino_t *) 0)
13356   return 0;
13357 if (sizeof (ino_t))
13358   return 0;
13359   ;
13360   return 0;
13361 }
13362 _ACEOF
13363 rm -f conftest.$ac_objext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13365   (eval $ac_compile) 2>conftest.er1
13366   ac_status=$?
13367   grep -v '^ *+' conftest.er1 >conftest.err
13368   rm -f conftest.er1
13369   cat conftest.err >&5
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); } &&
13372          { ac_try='test -z "$ac_c_werror_flag"
13373                          || test ! -s conftest.err'
13374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375   (eval $ac_try) 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); }; } &&
13379          { ac_try='test -s conftest.$ac_objext'
13380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381   (eval $ac_try) 2>&5
13382   ac_status=$?
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); }; }; then
13385   ac_cv_type_ino_t=yes
13386 else
13387   echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13389
13390 ac_cv_type_ino_t=no
13391 fi
13392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13393 fi
13394 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13395 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13396 if test $ac_cv_type_ino_t = yes; then
13397   :
13398 else
13399
13400 cat >>confdefs.h <<_ACEOF
13401 #define ino_t unsigned long
13402 _ACEOF
13403
13404 fi
13405
13406 echo "$as_me:$LINENO: checking for dev_t" >&5
13407 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13408 if test "${ac_cv_type_dev_t+set}" = set; then
13409   echo $ECHO_N "(cached) $ECHO_C" >&6
13410 else
13411   cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h.  */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h.  */
13417 $ac_includes_default
13418 int
13419 main ()
13420 {
13421 if ((dev_t *) 0)
13422   return 0;
13423 if (sizeof (dev_t))
13424   return 0;
13425   ;
13426   return 0;
13427 }
13428 _ACEOF
13429 rm -f conftest.$ac_objext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13431   (eval $ac_compile) 2>conftest.er1
13432   ac_status=$?
13433   grep -v '^ *+' conftest.er1 >conftest.err
13434   rm -f conftest.er1
13435   cat conftest.err >&5
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); } &&
13438          { ac_try='test -z "$ac_c_werror_flag"
13439                          || test ! -s conftest.err'
13440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441   (eval $ac_try) 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; } &&
13445          { ac_try='test -s conftest.$ac_objext'
13446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447   (eval $ac_try) 2>&5
13448   ac_status=$?
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); }; }; then
13451   ac_cv_type_dev_t=yes
13452 else
13453   echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13455
13456 ac_cv_type_dev_t=no
13457 fi
13458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13459 fi
13460 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13461 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13462 if test $ac_cv_type_dev_t = yes; then
13463   :
13464 else
13465
13466 cat >>confdefs.h <<_ACEOF
13467 #define dev_t unsigned long
13468 _ACEOF
13469
13470 fi
13471
13472 echo "$as_me:$LINENO: checking for daddr_t" >&5
13473 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13474 if test "${ac_cv_type_daddr_t+set}" = set; then
13475   echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477   cat >conftest.$ac_ext <<_ACEOF
13478 /* confdefs.h.  */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h.  */
13483 $ac_includes_default
13484 int
13485 main ()
13486 {
13487 if ((daddr_t *) 0)
13488   return 0;
13489 if (sizeof (daddr_t))
13490   return 0;
13491   ;
13492   return 0;
13493 }
13494 _ACEOF
13495 rm -f conftest.$ac_objext
13496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13497   (eval $ac_compile) 2>conftest.er1
13498   ac_status=$?
13499   grep -v '^ *+' conftest.er1 >conftest.err
13500   rm -f conftest.er1
13501   cat conftest.err >&5
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); } &&
13504          { ac_try='test -z "$ac_c_werror_flag"
13505                          || test ! -s conftest.err'
13506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507   (eval $ac_try) 2>&5
13508   ac_status=$?
13509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510   (exit $ac_status); }; } &&
13511          { ac_try='test -s conftest.$ac_objext'
13512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513   (eval $ac_try) 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); }; }; then
13517   ac_cv_type_daddr_t=yes
13518 else
13519   echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13521
13522 ac_cv_type_daddr_t=no
13523 fi
13524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13525 fi
13526 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13527 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13528 if test $ac_cv_type_daddr_t = yes; then
13529   :
13530 else
13531
13532 cat >>confdefs.h <<_ACEOF
13533 #define daddr_t long
13534 _ACEOF
13535
13536 fi
13537
13538 echo "$as_me:$LINENO: checking for major_t" >&5
13539 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13540 if test "${ac_cv_type_major_t+set}" = set; then
13541   echo $ECHO_N "(cached) $ECHO_C" >&6
13542 else
13543   cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h.  */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h.  */
13549 $ac_includes_default
13550 int
13551 main ()
13552 {
13553 if ((major_t *) 0)
13554   return 0;
13555 if (sizeof (major_t))
13556   return 0;
13557   ;
13558   return 0;
13559 }
13560 _ACEOF
13561 rm -f conftest.$ac_objext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13563   (eval $ac_compile) 2>conftest.er1
13564   ac_status=$?
13565   grep -v '^ *+' conftest.er1 >conftest.err
13566   rm -f conftest.er1
13567   cat conftest.err >&5
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); } &&
13570          { ac_try='test -z "$ac_c_werror_flag"
13571                          || test ! -s conftest.err'
13572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573   (eval $ac_try) 2>&5
13574   ac_status=$?
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); }; } &&
13577          { ac_try='test -s conftest.$ac_objext'
13578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579   (eval $ac_try) 2>&5
13580   ac_status=$?
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); }; }; then
13583   ac_cv_type_major_t=yes
13584 else
13585   echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588 ac_cv_type_major_t=no
13589 fi
13590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13591 fi
13592 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13593 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13594 if test $ac_cv_type_major_t = yes; then
13595   :
13596 else
13597
13598 cat >>confdefs.h <<_ACEOF
13599 #define major_t int
13600 _ACEOF
13601
13602 fi
13603
13604 echo "$as_me:$LINENO: checking for minor_t" >&5
13605 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13606 if test "${ac_cv_type_minor_t+set}" = set; then
13607   echo $ECHO_N "(cached) $ECHO_C" >&6
13608 else
13609   cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h.  */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h.  */
13615 $ac_includes_default
13616 int
13617 main ()
13618 {
13619 if ((minor_t *) 0)
13620   return 0;
13621 if (sizeof (minor_t))
13622   return 0;
13623   ;
13624   return 0;
13625 }
13626 _ACEOF
13627 rm -f conftest.$ac_objext
13628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13629   (eval $ac_compile) 2>conftest.er1
13630   ac_status=$?
13631   grep -v '^ *+' conftest.er1 >conftest.err
13632   rm -f conftest.er1
13633   cat conftest.err >&5
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); } &&
13636          { ac_try='test -z "$ac_c_werror_flag"
13637                          || test ! -s conftest.err'
13638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639   (eval $ac_try) 2>&5
13640   ac_status=$?
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); }; } &&
13643          { ac_try='test -s conftest.$ac_objext'
13644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645   (eval $ac_try) 2>&5
13646   ac_status=$?
13647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648   (exit $ac_status); }; }; then
13649   ac_cv_type_minor_t=yes
13650 else
13651   echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13653
13654 ac_cv_type_minor_t=no
13655 fi
13656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13657 fi
13658 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13659 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13660 if test $ac_cv_type_minor_t = yes; then
13661   :
13662 else
13663
13664 cat >>confdefs.h <<_ACEOF
13665 #define minor_t int
13666 _ACEOF
13667
13668 fi
13669
13670 echo "$as_me:$LINENO: checking for ssize_t" >&5
13671 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13672 if test "${ac_cv_type_ssize_t+set}" = set; then
13673   echo $ECHO_N "(cached) $ECHO_C" >&6
13674 else
13675   cat >conftest.$ac_ext <<_ACEOF
13676 /* confdefs.h.  */
13677 _ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h.  */
13681 $ac_includes_default
13682 int
13683 main ()
13684 {
13685 if ((ssize_t *) 0)
13686   return 0;
13687 if (sizeof (ssize_t))
13688   return 0;
13689   ;
13690   return 0;
13691 }
13692 _ACEOF
13693 rm -f conftest.$ac_objext
13694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13695   (eval $ac_compile) 2>conftest.er1
13696   ac_status=$?
13697   grep -v '^ *+' conftest.er1 >conftest.err
13698   rm -f conftest.er1
13699   cat conftest.err >&5
13700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701   (exit $ac_status); } &&
13702          { ac_try='test -z "$ac_c_werror_flag"
13703                          || test ! -s conftest.err'
13704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705   (eval $ac_try) 2>&5
13706   ac_status=$?
13707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); }; } &&
13709          { ac_try='test -s conftest.$ac_objext'
13710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711   (eval $ac_try) 2>&5
13712   ac_status=$?
13713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714   (exit $ac_status); }; }; then
13715   ac_cv_type_ssize_t=yes
13716 else
13717   echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13719
13720 ac_cv_type_ssize_t=no
13721 fi
13722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13723 fi
13724 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13725 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13726 if test $ac_cv_type_ssize_t = yes; then
13727   :
13728 else
13729
13730 cat >>confdefs.h <<_ACEOF
13731 #define ssize_t int
13732 _ACEOF
13733
13734 fi
13735
13736 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13737 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13738 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13739   echo $ECHO_N "(cached) $ECHO_C" >&6
13740 else
13741   cat >conftest.$ac_ext <<_ACEOF
13742 /* confdefs.h.  */
13743 _ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h.  */
13747 $ac_includes_default
13748 int
13749 main ()
13750 {
13751 static struct stat ac_aggr;
13752 if (ac_aggr.st_blocks)
13753 return 0;
13754   ;
13755   return 0;
13756 }
13757 _ACEOF
13758 rm -f conftest.$ac_objext
13759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13760   (eval $ac_compile) 2>conftest.er1
13761   ac_status=$?
13762   grep -v '^ *+' conftest.er1 >conftest.err
13763   rm -f conftest.er1
13764   cat conftest.err >&5
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); } &&
13767          { ac_try='test -z "$ac_c_werror_flag"
13768                          || test ! -s conftest.err'
13769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770   (eval $ac_try) 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; } &&
13774          { ac_try='test -s conftest.$ac_objext'
13775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776   (eval $ac_try) 2>&5
13777   ac_status=$?
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); }; }; then
13780   ac_cv_member_struct_stat_st_blocks=yes
13781 else
13782   echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13784
13785 cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h.  */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h.  */
13791 $ac_includes_default
13792 int
13793 main ()
13794 {
13795 static struct stat ac_aggr;
13796 if (sizeof ac_aggr.st_blocks)
13797 return 0;
13798   ;
13799   return 0;
13800 }
13801 _ACEOF
13802 rm -f conftest.$ac_objext
13803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13804   (eval $ac_compile) 2>conftest.er1
13805   ac_status=$?
13806   grep -v '^ *+' conftest.er1 >conftest.err
13807   rm -f conftest.er1
13808   cat conftest.err >&5
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); } &&
13811          { ac_try='test -z "$ac_c_werror_flag"
13812                          || test ! -s conftest.err'
13813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814   (eval $ac_try) 2>&5
13815   ac_status=$?
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); }; } &&
13818          { ac_try='test -s conftest.$ac_objext'
13819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820   (eval $ac_try) 2>&5
13821   ac_status=$?
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); }; }; then
13824   ac_cv_member_struct_stat_st_blocks=yes
13825 else
13826   echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13828
13829 ac_cv_member_struct_stat_st_blocks=no
13830 fi
13831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13832 fi
13833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13834 fi
13835 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13836 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13837 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13838
13839 cat >>confdefs.h <<_ACEOF
13840 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13841 _ACEOF
13842
13843
13844 cat >>confdefs.h <<\_ACEOF
13845 #define HAVE_ST_BLOCKS 1
13846 _ACEOF
13847
13848 else
13849   case $LIBOBJS in
13850     "fileblocks.$ac_objext"   | \
13851   *" fileblocks.$ac_objext"   | \
13852     "fileblocks.$ac_objext "* | \
13853   *" fileblocks.$ac_objext "* ) ;;
13854   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
13855 esac
13856
13857 fi
13858
13859
13860
13861 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13862 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13863 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13864   echo $ECHO_N "(cached) $ECHO_C" >&6
13865 else
13866   cat >conftest.$ac_ext <<_ACEOF
13867 /* confdefs.h.  */
13868 _ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h.  */
13872 $ac_includes_default
13873 int
13874 main ()
13875 {
13876 static struct stat ac_aggr;
13877 if (ac_aggr.st_rdev)
13878 return 0;
13879   ;
13880   return 0;
13881 }
13882 _ACEOF
13883 rm -f conftest.$ac_objext
13884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13885   (eval $ac_compile) 2>conftest.er1
13886   ac_status=$?
13887   grep -v '^ *+' conftest.er1 >conftest.err
13888   rm -f conftest.er1
13889   cat conftest.err >&5
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); } &&
13892          { ac_try='test -z "$ac_c_werror_flag"
13893                          || test ! -s conftest.err'
13894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895   (eval $ac_try) 2>&5
13896   ac_status=$?
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); }; } &&
13899          { ac_try='test -s conftest.$ac_objext'
13900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901   (eval $ac_try) 2>&5
13902   ac_status=$?
13903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); }; }; then
13905   ac_cv_member_struct_stat_st_rdev=yes
13906 else
13907   echo "$as_me: failed program was:" >&5
13908 sed 's/^/| /' conftest.$ac_ext >&5
13909
13910 cat >conftest.$ac_ext <<_ACEOF
13911 /* confdefs.h.  */
13912 _ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h.  */
13916 $ac_includes_default
13917 int
13918 main ()
13919 {
13920 static struct stat ac_aggr;
13921 if (sizeof ac_aggr.st_rdev)
13922 return 0;
13923   ;
13924   return 0;
13925 }
13926 _ACEOF
13927 rm -f conftest.$ac_objext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13929   (eval $ac_compile) 2>conftest.er1
13930   ac_status=$?
13931   grep -v '^ *+' conftest.er1 >conftest.err
13932   rm -f conftest.er1
13933   cat conftest.err >&5
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); } &&
13936          { ac_try='test -z "$ac_c_werror_flag"
13937                          || test ! -s conftest.err'
13938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939   (eval $ac_try) 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); }; } &&
13943          { ac_try='test -s conftest.$ac_objext'
13944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945   (eval $ac_try) 2>&5
13946   ac_status=$?
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); }; }; then
13949   ac_cv_member_struct_stat_st_rdev=yes
13950 else
13951   echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13953
13954 ac_cv_member_struct_stat_st_rdev=no
13955 fi
13956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13957 fi
13958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13959 fi
13960 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13961 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13962 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13963
13964 cat >>confdefs.h <<_ACEOF
13965 #define HAVE_STRUCT_STAT_ST_RDEV 1
13966 _ACEOF
13967
13968
13969 cat >>confdefs.h <<\_ACEOF
13970 #define HAVE_ST_RDEV 1
13971 _ACEOF
13972
13973 fi
13974
13975
13976 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13977 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13978 if test "${ac_cv_struct_tm+set}" = set; then
13979   echo $ECHO_N "(cached) $ECHO_C" >&6
13980 else
13981   cat >conftest.$ac_ext <<_ACEOF
13982 /* confdefs.h.  */
13983 _ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h.  */
13987 #include <sys/types.h>
13988 #include <time.h>
13989
13990 int
13991 main ()
13992 {
13993 struct tm *tp; tp->tm_sec;
13994   ;
13995   return 0;
13996 }
13997 _ACEOF
13998 rm -f conftest.$ac_objext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000   (eval $ac_compile) 2>conftest.er1
14001   ac_status=$?
14002   grep -v '^ *+' conftest.er1 >conftest.err
14003   rm -f conftest.er1
14004   cat conftest.err >&5
14005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006   (exit $ac_status); } &&
14007          { ac_try='test -z "$ac_c_werror_flag"
14008                          || test ! -s conftest.err'
14009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010   (eval $ac_try) 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); }; } &&
14014          { ac_try='test -s conftest.$ac_objext'
14015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016   (eval $ac_try) 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); }; }; then
14020   ac_cv_struct_tm=time.h
14021 else
14022   echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14024
14025 ac_cv_struct_tm=sys/time.h
14026 fi
14027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14028 fi
14029 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14030 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14031 if test $ac_cv_struct_tm = sys/time.h; then
14032
14033 cat >>confdefs.h <<\_ACEOF
14034 #define TM_IN_SYS_TIME 1
14035 _ACEOF
14036
14037 fi
14038
14039 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14040 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14041 if test "${ac_cv_c_const+set}" = set; then
14042   echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044   cat >conftest.$ac_ext <<_ACEOF
14045 /* confdefs.h.  */
14046 _ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h.  */
14050
14051 int
14052 main ()
14053 {
14054 /* FIXME: Include the comments suggested by Paul. */
14055 #ifndef __cplusplus
14056   /* Ultrix mips cc rejects this.  */
14057   typedef int charset[2];
14058   const charset x;
14059   /* SunOS 4.1.1 cc rejects this.  */
14060   char const *const *ccp;
14061   char **p;
14062   /* NEC SVR4.0.2 mips cc rejects this.  */
14063   struct point {int x, y;};
14064   static struct point const zero = {0,0};
14065   /* AIX XL C 1.02.0.0 rejects this.
14066      It does not let you subtract one const X* pointer from another in
14067      an arm of an if-expression whose if-part is not a constant
14068      expression */
14069   const char *g = "string";
14070   ccp = &g + (g ? g-g : 0);
14071   /* HPUX 7.0 cc rejects these. */
14072   ++ccp;
14073   p = (char**) ccp;
14074   ccp = (char const *const *) p;
14075   { /* SCO 3.2v4 cc rejects this.  */
14076     char *t;
14077     char const *s = 0 ? (char *) 0 : (char const *) 0;
14078
14079     *t++ = 0;
14080   }
14081   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14082     int x[] = {25, 17};
14083     const int *foo = &x[0];
14084     ++foo;
14085   }
14086   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14087     typedef const int *iptr;
14088     iptr p = 0;
14089     ++p;
14090   }
14091   { /* AIX XL C 1.02.0.0 rejects this saying
14092        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14093     struct s { int j; const int *ap[3]; };
14094     struct s *b; b->j = 5;
14095   }
14096   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14097     const int foo = 10;
14098   }
14099 #endif
14100
14101   ;
14102   return 0;
14103 }
14104 _ACEOF
14105 rm -f conftest.$ac_objext
14106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14107   (eval $ac_compile) 2>conftest.er1
14108   ac_status=$?
14109   grep -v '^ *+' conftest.er1 >conftest.err
14110   rm -f conftest.er1
14111   cat conftest.err >&5
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); } &&
14114          { ac_try='test -z "$ac_c_werror_flag"
14115                          || test ! -s conftest.err'
14116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117   (eval $ac_try) 2>&5
14118   ac_status=$?
14119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120   (exit $ac_status); }; } &&
14121          { ac_try='test -s conftest.$ac_objext'
14122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123   (eval $ac_try) 2>&5
14124   ac_status=$?
14125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126   (exit $ac_status); }; }; then
14127   ac_cv_c_const=yes
14128 else
14129   echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14131
14132 ac_cv_c_const=no
14133 fi
14134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14135 fi
14136 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14137 echo "${ECHO_T}$ac_cv_c_const" >&6
14138 if test $ac_cv_c_const = no; then
14139
14140 cat >>confdefs.h <<\_ACEOF
14141 #define const
14142 _ACEOF
14143
14144 fi
14145
14146
14147
14148 echo "$as_me:$LINENO: checking for char" >&5
14149 echo $ECHO_N "checking for char... $ECHO_C" >&6
14150 if test "${ac_cv_type_char+set}" = set; then
14151   echo $ECHO_N "(cached) $ECHO_C" >&6
14152 else
14153   cat >conftest.$ac_ext <<_ACEOF
14154 /* confdefs.h.  */
14155 _ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h.  */
14159 $ac_includes_default
14160 int
14161 main ()
14162 {
14163 if ((char *) 0)
14164   return 0;
14165 if (sizeof (char))
14166   return 0;
14167   ;
14168   return 0;
14169 }
14170 _ACEOF
14171 rm -f conftest.$ac_objext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14173   (eval $ac_compile) 2>conftest.er1
14174   ac_status=$?
14175   grep -v '^ *+' conftest.er1 >conftest.err
14176   rm -f conftest.er1
14177   cat conftest.err >&5
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); } &&
14180          { ac_try='test -z "$ac_c_werror_flag"
14181                          || test ! -s conftest.err'
14182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183   (eval $ac_try) 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); }; } &&
14187          { ac_try='test -s conftest.$ac_objext'
14188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189   (eval $ac_try) 2>&5
14190   ac_status=$?
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); }; }; then
14193   ac_cv_type_char=yes
14194 else
14195   echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14197
14198 ac_cv_type_char=no
14199 fi
14200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14201 fi
14202 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14203 echo "${ECHO_T}$ac_cv_type_char" >&6
14204
14205 echo "$as_me:$LINENO: checking size of char" >&5
14206 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14207 if test "${ac_cv_sizeof_char+set}" = set; then
14208   echo $ECHO_N "(cached) $ECHO_C" >&6
14209 else
14210   if test "$ac_cv_type_char" = yes; then
14211   # The cast to unsigned long works around a bug in the HP C Compiler
14212   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14213   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14214   # This bug is HP SR number 8606223364.
14215   if test "$cross_compiling" = yes; then
14216   # Depending upon the size, compute the lo and hi bounds.
14217 cat >conftest.$ac_ext <<_ACEOF
14218 /* confdefs.h.  */
14219 _ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h.  */
14223 $ac_includes_default
14224 int
14225 main ()
14226 {
14227 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14228 test_array [0] = 0
14229
14230   ;
14231   return 0;
14232 }
14233 _ACEOF
14234 rm -f conftest.$ac_objext
14235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14236   (eval $ac_compile) 2>conftest.er1
14237   ac_status=$?
14238   grep -v '^ *+' conftest.er1 >conftest.err
14239   rm -f conftest.er1
14240   cat conftest.err >&5
14241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242   (exit $ac_status); } &&
14243          { ac_try='test -z "$ac_c_werror_flag"
14244                          || test ! -s conftest.err'
14245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246   (eval $ac_try) 2>&5
14247   ac_status=$?
14248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249   (exit $ac_status); }; } &&
14250          { ac_try='test -s conftest.$ac_objext'
14251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252   (eval $ac_try) 2>&5
14253   ac_status=$?
14254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255   (exit $ac_status); }; }; then
14256   ac_lo=0 ac_mid=0
14257   while :; do
14258     cat >conftest.$ac_ext <<_ACEOF
14259 /* confdefs.h.  */
14260 _ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h.  */
14264 $ac_includes_default
14265 int
14266 main ()
14267 {
14268 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14269 test_array [0] = 0
14270
14271   ;
14272   return 0;
14273 }
14274 _ACEOF
14275 rm -f conftest.$ac_objext
14276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14277   (eval $ac_compile) 2>conftest.er1
14278   ac_status=$?
14279   grep -v '^ *+' conftest.er1 >conftest.err
14280   rm -f conftest.er1
14281   cat conftest.err >&5
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); } &&
14284          { ac_try='test -z "$ac_c_werror_flag"
14285                          || test ! -s conftest.err'
14286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287   (eval $ac_try) 2>&5
14288   ac_status=$?
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); }; } &&
14291          { ac_try='test -s conftest.$ac_objext'
14292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293   (eval $ac_try) 2>&5
14294   ac_status=$?
14295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296   (exit $ac_status); }; }; then
14297   ac_hi=$ac_mid; break
14298 else
14299   echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.$ac_ext >&5
14301
14302 ac_lo=`expr $ac_mid + 1`
14303                     if test $ac_lo -le $ac_mid; then
14304                       ac_lo= ac_hi=
14305                       break
14306                     fi
14307                     ac_mid=`expr 2 '*' $ac_mid + 1`
14308 fi
14309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14310   done
14311 else
14312   echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14314
14315 cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h.  */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h.  */
14321 $ac_includes_default
14322 int
14323 main ()
14324 {
14325 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14326 test_array [0] = 0
14327
14328   ;
14329   return 0;
14330 }
14331 _ACEOF
14332 rm -f conftest.$ac_objext
14333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14334   (eval $ac_compile) 2>conftest.er1
14335   ac_status=$?
14336   grep -v '^ *+' conftest.er1 >conftest.err
14337   rm -f conftest.er1
14338   cat conftest.err >&5
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); } &&
14341          { ac_try='test -z "$ac_c_werror_flag"
14342                          || test ! -s conftest.err'
14343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344   (eval $ac_try) 2>&5
14345   ac_status=$?
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); }; } &&
14348          { ac_try='test -s conftest.$ac_objext'
14349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350   (eval $ac_try) 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); }; }; then
14354   ac_hi=-1 ac_mid=-1
14355   while :; do
14356     cat >conftest.$ac_ext <<_ACEOF
14357 /* confdefs.h.  */
14358 _ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h.  */
14362 $ac_includes_default
14363 int
14364 main ()
14365 {
14366 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14367 test_array [0] = 0
14368
14369   ;
14370   return 0;
14371 }
14372 _ACEOF
14373 rm -f conftest.$ac_objext
14374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14375   (eval $ac_compile) 2>conftest.er1
14376   ac_status=$?
14377   grep -v '^ *+' conftest.er1 >conftest.err
14378   rm -f conftest.er1
14379   cat conftest.err >&5
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); } &&
14382          { ac_try='test -z "$ac_c_werror_flag"
14383                          || test ! -s conftest.err'
14384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385   (eval $ac_try) 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); }; } &&
14389          { ac_try='test -s conftest.$ac_objext'
14390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391   (eval $ac_try) 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); }; }; then
14395   ac_lo=$ac_mid; break
14396 else
14397   echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14399
14400 ac_hi=`expr '(' $ac_mid ')' - 1`
14401                        if test $ac_mid -le $ac_hi; then
14402                          ac_lo= ac_hi=
14403                          break
14404                        fi
14405                        ac_mid=`expr 2 '*' $ac_mid`
14406 fi
14407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14408   done
14409 else
14410   echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14412
14413 ac_lo= ac_hi=
14414 fi
14415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14416 fi
14417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14418 # Binary search between lo and hi bounds.
14419 while test "x$ac_lo" != "x$ac_hi"; do
14420   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14421   cat >conftest.$ac_ext <<_ACEOF
14422 /* confdefs.h.  */
14423 _ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h.  */
14427 $ac_includes_default
14428 int
14429 main ()
14430 {
14431 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14432 test_array [0] = 0
14433
14434   ;
14435   return 0;
14436 }
14437 _ACEOF
14438 rm -f conftest.$ac_objext
14439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14440   (eval $ac_compile) 2>conftest.er1
14441   ac_status=$?
14442   grep -v '^ *+' conftest.er1 >conftest.err
14443   rm -f conftest.er1
14444   cat conftest.err >&5
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); } &&
14447          { ac_try='test -z "$ac_c_werror_flag"
14448                          || test ! -s conftest.err'
14449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450   (eval $ac_try) 2>&5
14451   ac_status=$?
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); }; } &&
14454          { ac_try='test -s conftest.$ac_objext'
14455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456   (eval $ac_try) 2>&5
14457   ac_status=$?
14458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459   (exit $ac_status); }; }; then
14460   ac_hi=$ac_mid
14461 else
14462   echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14464
14465 ac_lo=`expr '(' $ac_mid ')' + 1`
14466 fi
14467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14468 done
14469 case $ac_lo in
14470 ?*) ac_cv_sizeof_char=$ac_lo;;
14471 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14472 See \`config.log' for more details." >&5
14473 echo "$as_me: error: cannot compute sizeof (char), 77
14474 See \`config.log' for more details." >&2;}
14475    { (exit 1); exit 1; }; } ;;
14476 esac
14477 else
14478   if test "$cross_compiling" = yes; then
14479   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14480 See \`config.log' for more details." >&5
14481 echo "$as_me: error: cannot run test program while cross compiling
14482 See \`config.log' for more details." >&2;}
14483    { (exit 1); exit 1; }; }
14484 else
14485   cat >conftest.$ac_ext <<_ACEOF
14486 /* confdefs.h.  */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h.  */
14491 $ac_includes_default
14492 long longval () { return (long) (sizeof (char)); }
14493 unsigned long ulongval () { return (long) (sizeof (char)); }
14494 #include <stdio.h>
14495 #include <stdlib.h>
14496 int
14497 main ()
14498 {
14499
14500   FILE *f = fopen ("conftest.val", "w");
14501   if (! f)
14502     exit (1);
14503   if (((long) (sizeof (char))) < 0)
14504     {
14505       long i = longval ();
14506       if (i != ((long) (sizeof (char))))
14507         exit (1);
14508       fprintf (f, "%ld\n", i);
14509     }
14510   else
14511     {
14512       unsigned long i = ulongval ();
14513       if (i != ((long) (sizeof (char))))
14514         exit (1);
14515       fprintf (f, "%lu\n", i);
14516     }
14517   exit (ferror (f) || fclose (f) != 0);
14518
14519   ;
14520   return 0;
14521 }
14522 _ACEOF
14523 rm -f conftest$ac_exeext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14525   (eval $ac_link) 2>&5
14526   ac_status=$?
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530   (eval $ac_try) 2>&5
14531   ac_status=$?
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); }; }; then
14534   ac_cv_sizeof_char=`cat conftest.val`
14535 else
14536   echo "$as_me: program exited with status $ac_status" >&5
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14539
14540 ( exit $ac_status )
14541 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14542 See \`config.log' for more details." >&5
14543 echo "$as_me: error: cannot compute sizeof (char), 77
14544 See \`config.log' for more details." >&2;}
14545    { (exit 1); exit 1; }; }
14546 fi
14547 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14548 fi
14549 fi
14550 rm -f conftest.val
14551 else
14552   ac_cv_sizeof_char=0
14553 fi
14554 fi
14555 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14556 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14557 cat >>confdefs.h <<_ACEOF
14558 #define SIZEOF_CHAR $ac_cv_sizeof_char
14559 _ACEOF
14560
14561
14562 echo "$as_me:$LINENO: checking for short int" >&5
14563 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14564 if test "${ac_cv_type_short_int+set}" = set; then
14565   echo $ECHO_N "(cached) $ECHO_C" >&6
14566 else
14567   cat >conftest.$ac_ext <<_ACEOF
14568 /* confdefs.h.  */
14569 _ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h.  */
14573 $ac_includes_default
14574 int
14575 main ()
14576 {
14577 if ((short int *) 0)
14578   return 0;
14579 if (sizeof (short int))
14580   return 0;
14581   ;
14582   return 0;
14583 }
14584 _ACEOF
14585 rm -f conftest.$ac_objext
14586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14587   (eval $ac_compile) 2>conftest.er1
14588   ac_status=$?
14589   grep -v '^ *+' conftest.er1 >conftest.err
14590   rm -f conftest.er1
14591   cat conftest.err >&5
14592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593   (exit $ac_status); } &&
14594          { ac_try='test -z "$ac_c_werror_flag"
14595                          || test ! -s conftest.err'
14596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597   (eval $ac_try) 2>&5
14598   ac_status=$?
14599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600   (exit $ac_status); }; } &&
14601          { ac_try='test -s conftest.$ac_objext'
14602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603   (eval $ac_try) 2>&5
14604   ac_status=$?
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); }; }; then
14607   ac_cv_type_short_int=yes
14608 else
14609   echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14611
14612 ac_cv_type_short_int=no
14613 fi
14614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14615 fi
14616 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14617 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14618
14619 echo "$as_me:$LINENO: checking size of short int" >&5
14620 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14621 if test "${ac_cv_sizeof_short_int+set}" = set; then
14622   echo $ECHO_N "(cached) $ECHO_C" >&6
14623 else
14624   if test "$ac_cv_type_short_int" = yes; then
14625   # The cast to unsigned long works around a bug in the HP C Compiler
14626   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14627   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14628   # This bug is HP SR number 8606223364.
14629   if test "$cross_compiling" = yes; then
14630   # Depending upon the size, compute the lo and hi bounds.
14631 cat >conftest.$ac_ext <<_ACEOF
14632 /* confdefs.h.  */
14633 _ACEOF
14634 cat confdefs.h >>conftest.$ac_ext
14635 cat >>conftest.$ac_ext <<_ACEOF
14636 /* end confdefs.h.  */
14637 $ac_includes_default
14638 int
14639 main ()
14640 {
14641 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14642 test_array [0] = 0
14643
14644   ;
14645   return 0;
14646 }
14647 _ACEOF
14648 rm -f conftest.$ac_objext
14649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14650   (eval $ac_compile) 2>conftest.er1
14651   ac_status=$?
14652   grep -v '^ *+' conftest.er1 >conftest.err
14653   rm -f conftest.er1
14654   cat conftest.err >&5
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); } &&
14657          { ac_try='test -z "$ac_c_werror_flag"
14658                          || test ! -s conftest.err'
14659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660   (eval $ac_try) 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); }; } &&
14664          { ac_try='test -s conftest.$ac_objext'
14665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666   (eval $ac_try) 2>&5
14667   ac_status=$?
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); }; }; then
14670   ac_lo=0 ac_mid=0
14671   while :; do
14672     cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h.  */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h.  */
14678 $ac_includes_default
14679 int
14680 main ()
14681 {
14682 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14683 test_array [0] = 0
14684
14685   ;
14686   return 0;
14687 }
14688 _ACEOF
14689 rm -f conftest.$ac_objext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14691   (eval $ac_compile) 2>conftest.er1
14692   ac_status=$?
14693   grep -v '^ *+' conftest.er1 >conftest.err
14694   rm -f conftest.er1
14695   cat conftest.err >&5
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); } &&
14698          { ac_try='test -z "$ac_c_werror_flag"
14699                          || test ! -s conftest.err'
14700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701   (eval $ac_try) 2>&5
14702   ac_status=$?
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); }; } &&
14705          { ac_try='test -s conftest.$ac_objext'
14706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707   (eval $ac_try) 2>&5
14708   ac_status=$?
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); }; }; then
14711   ac_hi=$ac_mid; break
14712 else
14713   echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14715
14716 ac_lo=`expr $ac_mid + 1`
14717                     if test $ac_lo -le $ac_mid; then
14718                       ac_lo= ac_hi=
14719                       break
14720                     fi
14721                     ac_mid=`expr 2 '*' $ac_mid + 1`
14722 fi
14723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14724   done
14725 else
14726   echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14728
14729 cat >conftest.$ac_ext <<_ACEOF
14730 /* confdefs.h.  */
14731 _ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h.  */
14735 $ac_includes_default
14736 int
14737 main ()
14738 {
14739 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
14740 test_array [0] = 0
14741
14742   ;
14743   return 0;
14744 }
14745 _ACEOF
14746 rm -f conftest.$ac_objext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14748   (eval $ac_compile) 2>conftest.er1
14749   ac_status=$?
14750   grep -v '^ *+' conftest.er1 >conftest.err
14751   rm -f conftest.er1
14752   cat conftest.err >&5
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); } &&
14755          { ac_try='test -z "$ac_c_werror_flag"
14756                          || test ! -s conftest.err'
14757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758   (eval $ac_try) 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; } &&
14762          { ac_try='test -s conftest.$ac_objext'
14763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764   (eval $ac_try) 2>&5
14765   ac_status=$?
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); }; }; then
14768   ac_hi=-1 ac_mid=-1
14769   while :; do
14770     cat >conftest.$ac_ext <<_ACEOF
14771 /* confdefs.h.  */
14772 _ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h.  */
14776 $ac_includes_default
14777 int
14778 main ()
14779 {
14780 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
14781 test_array [0] = 0
14782
14783   ;
14784   return 0;
14785 }
14786 _ACEOF
14787 rm -f conftest.$ac_objext
14788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14789   (eval $ac_compile) 2>conftest.er1
14790   ac_status=$?
14791   grep -v '^ *+' conftest.er1 >conftest.err
14792   rm -f conftest.er1
14793   cat conftest.err >&5
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); } &&
14796          { ac_try='test -z "$ac_c_werror_flag"
14797                          || test ! -s conftest.err'
14798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799   (eval $ac_try) 2>&5
14800   ac_status=$?
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); }; } &&
14803          { ac_try='test -s conftest.$ac_objext'
14804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805   (eval $ac_try) 2>&5
14806   ac_status=$?
14807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808   (exit $ac_status); }; }; then
14809   ac_lo=$ac_mid; break
14810 else
14811   echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.$ac_ext >&5
14813
14814 ac_hi=`expr '(' $ac_mid ')' - 1`
14815                        if test $ac_mid -le $ac_hi; then
14816                          ac_lo= ac_hi=
14817                          break
14818                        fi
14819                        ac_mid=`expr 2 '*' $ac_mid`
14820 fi
14821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14822   done
14823 else
14824   echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14826
14827 ac_lo= ac_hi=
14828 fi
14829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14830 fi
14831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14832 # Binary search between lo and hi bounds.
14833 while test "x$ac_lo" != "x$ac_hi"; do
14834   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14835   cat >conftest.$ac_ext <<_ACEOF
14836 /* confdefs.h.  */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h.  */
14841 $ac_includes_default
14842 int
14843 main ()
14844 {
14845 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14846 test_array [0] = 0
14847
14848   ;
14849   return 0;
14850 }
14851 _ACEOF
14852 rm -f conftest.$ac_objext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854   (eval $ac_compile) 2>conftest.er1
14855   ac_status=$?
14856   grep -v '^ *+' conftest.er1 >conftest.err
14857   rm -f conftest.er1
14858   cat conftest.err >&5
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   (exit $ac_status); } &&
14861          { ac_try='test -z "$ac_c_werror_flag"
14862                          || test ! -s conftest.err'
14863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864   (eval $ac_try) 2>&5
14865   ac_status=$?
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); }; } &&
14868          { ac_try='test -s conftest.$ac_objext'
14869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870   (eval $ac_try) 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); }; }; then
14874   ac_hi=$ac_mid
14875 else
14876   echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14878
14879 ac_lo=`expr '(' $ac_mid ')' + 1`
14880 fi
14881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14882 done
14883 case $ac_lo in
14884 ?*) ac_cv_sizeof_short_int=$ac_lo;;
14885 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14886 See \`config.log' for more details." >&5
14887 echo "$as_me: error: cannot compute sizeof (short int), 77
14888 See \`config.log' for more details." >&2;}
14889    { (exit 1); exit 1; }; } ;;
14890 esac
14891 else
14892   if test "$cross_compiling" = yes; then
14893   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14894 See \`config.log' for more details." >&5
14895 echo "$as_me: error: cannot run test program while cross compiling
14896 See \`config.log' for more details." >&2;}
14897    { (exit 1); exit 1; }; }
14898 else
14899   cat >conftest.$ac_ext <<_ACEOF
14900 /* confdefs.h.  */
14901 _ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h.  */
14905 $ac_includes_default
14906 long longval () { return (long) (sizeof (short int)); }
14907 unsigned long ulongval () { return (long) (sizeof (short int)); }
14908 #include <stdio.h>
14909 #include <stdlib.h>
14910 int
14911 main ()
14912 {
14913
14914   FILE *f = fopen ("conftest.val", "w");
14915   if (! f)
14916     exit (1);
14917   if (((long) (sizeof (short int))) < 0)
14918     {
14919       long i = longval ();
14920       if (i != ((long) (sizeof (short int))))
14921         exit (1);
14922       fprintf (f, "%ld\n", i);
14923     }
14924   else
14925     {
14926       unsigned long i = ulongval ();
14927       if (i != ((long) (sizeof (short int))))
14928         exit (1);
14929       fprintf (f, "%lu\n", i);
14930     }
14931   exit (ferror (f) || fclose (f) != 0);
14932
14933   ;
14934   return 0;
14935 }
14936 _ACEOF
14937 rm -f conftest$ac_exeext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14939   (eval $ac_link) 2>&5
14940   ac_status=$?
14941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944   (eval $ac_try) 2>&5
14945   ac_status=$?
14946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947   (exit $ac_status); }; }; then
14948   ac_cv_sizeof_short_int=`cat conftest.val`
14949 else
14950   echo "$as_me: program exited with status $ac_status" >&5
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14953
14954 ( exit $ac_status )
14955 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14956 See \`config.log' for more details." >&5
14957 echo "$as_me: error: cannot compute sizeof (short int), 77
14958 See \`config.log' for more details." >&2;}
14959    { (exit 1); exit 1; }; }
14960 fi
14961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14962 fi
14963 fi
14964 rm -f conftest.val
14965 else
14966   ac_cv_sizeof_short_int=0
14967 fi
14968 fi
14969 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
14970 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
14971 cat >>confdefs.h <<_ACEOF
14972 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
14973 _ACEOF
14974
14975
14976 echo "$as_me:$LINENO: checking for int" >&5
14977 echo $ECHO_N "checking for int... $ECHO_C" >&6
14978 if test "${ac_cv_type_int+set}" = set; then
14979   echo $ECHO_N "(cached) $ECHO_C" >&6
14980 else
14981   cat >conftest.$ac_ext <<_ACEOF
14982 /* confdefs.h.  */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h.  */
14987 $ac_includes_default
14988 int
14989 main ()
14990 {
14991 if ((int *) 0)
14992   return 0;
14993 if (sizeof (int))
14994   return 0;
14995   ;
14996   return 0;
14997 }
14998 _ACEOF
14999 rm -f conftest.$ac_objext
15000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15001   (eval $ac_compile) 2>conftest.er1
15002   ac_status=$?
15003   grep -v '^ *+' conftest.er1 >conftest.err
15004   rm -f conftest.er1
15005   cat conftest.err >&5
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); } &&
15008          { ac_try='test -z "$ac_c_werror_flag"
15009                          || test ! -s conftest.err'
15010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011   (eval $ac_try) 2>&5
15012   ac_status=$?
15013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014   (exit $ac_status); }; } &&
15015          { ac_try='test -s conftest.$ac_objext'
15016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017   (eval $ac_try) 2>&5
15018   ac_status=$?
15019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020   (exit $ac_status); }; }; then
15021   ac_cv_type_int=yes
15022 else
15023   echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15025
15026 ac_cv_type_int=no
15027 fi
15028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15029 fi
15030 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15031 echo "${ECHO_T}$ac_cv_type_int" >&6
15032
15033 echo "$as_me:$LINENO: checking size of int" >&5
15034 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15035 if test "${ac_cv_sizeof_int+set}" = set; then
15036   echo $ECHO_N "(cached) $ECHO_C" >&6
15037 else
15038   if test "$ac_cv_type_int" = yes; then
15039   # The cast to unsigned long works around a bug in the HP C Compiler
15040   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15041   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15042   # This bug is HP SR number 8606223364.
15043   if test "$cross_compiling" = yes; then
15044   # Depending upon the size, compute the lo and hi bounds.
15045 cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h.  */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h.  */
15051 $ac_includes_default
15052 int
15053 main ()
15054 {
15055 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15056 test_array [0] = 0
15057
15058   ;
15059   return 0;
15060 }
15061 _ACEOF
15062 rm -f conftest.$ac_objext
15063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15064   (eval $ac_compile) 2>conftest.er1
15065   ac_status=$?
15066   grep -v '^ *+' conftest.er1 >conftest.err
15067   rm -f conftest.er1
15068   cat conftest.err >&5
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); } &&
15071          { ac_try='test -z "$ac_c_werror_flag"
15072                          || test ! -s conftest.err'
15073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074   (eval $ac_try) 2>&5
15075   ac_status=$?
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); }; } &&
15078          { ac_try='test -s conftest.$ac_objext'
15079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080   (eval $ac_try) 2>&5
15081   ac_status=$?
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); }; }; then
15084   ac_lo=0 ac_mid=0
15085   while :; do
15086     cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h.  */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h.  */
15092 $ac_includes_default
15093 int
15094 main ()
15095 {
15096 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15097 test_array [0] = 0
15098
15099   ;
15100   return 0;
15101 }
15102 _ACEOF
15103 rm -f conftest.$ac_objext
15104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15105   (eval $ac_compile) 2>conftest.er1
15106   ac_status=$?
15107   grep -v '^ *+' conftest.er1 >conftest.err
15108   rm -f conftest.er1
15109   cat conftest.err >&5
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); } &&
15112          { ac_try='test -z "$ac_c_werror_flag"
15113                          || test ! -s conftest.err'
15114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115   (eval $ac_try) 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); }; } &&
15119          { ac_try='test -s conftest.$ac_objext'
15120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121   (eval $ac_try) 2>&5
15122   ac_status=$?
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); }; }; then
15125   ac_hi=$ac_mid; break
15126 else
15127   echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15129
15130 ac_lo=`expr $ac_mid + 1`
15131                     if test $ac_lo -le $ac_mid; then
15132                       ac_lo= ac_hi=
15133                       break
15134                     fi
15135                     ac_mid=`expr 2 '*' $ac_mid + 1`
15136 fi
15137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15138   done
15139 else
15140   echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15142
15143 cat >conftest.$ac_ext <<_ACEOF
15144 /* confdefs.h.  */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h.  */
15149 $ac_includes_default
15150 int
15151 main ()
15152 {
15153 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15154 test_array [0] = 0
15155
15156   ;
15157   return 0;
15158 }
15159 _ACEOF
15160 rm -f conftest.$ac_objext
15161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15162   (eval $ac_compile) 2>conftest.er1
15163   ac_status=$?
15164   grep -v '^ *+' conftest.er1 >conftest.err
15165   rm -f conftest.er1
15166   cat conftest.err >&5
15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168   (exit $ac_status); } &&
15169          { ac_try='test -z "$ac_c_werror_flag"
15170                          || test ! -s conftest.err'
15171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172   (eval $ac_try) 2>&5
15173   ac_status=$?
15174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); }; } &&
15176          { ac_try='test -s conftest.$ac_objext'
15177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178   (eval $ac_try) 2>&5
15179   ac_status=$?
15180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181   (exit $ac_status); }; }; then
15182   ac_hi=-1 ac_mid=-1
15183   while :; do
15184     cat >conftest.$ac_ext <<_ACEOF
15185 /* confdefs.h.  */
15186 _ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h.  */
15190 $ac_includes_default
15191 int
15192 main ()
15193 {
15194 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15195 test_array [0] = 0
15196
15197   ;
15198   return 0;
15199 }
15200 _ACEOF
15201 rm -f conftest.$ac_objext
15202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15203   (eval $ac_compile) 2>conftest.er1
15204   ac_status=$?
15205   grep -v '^ *+' conftest.er1 >conftest.err
15206   rm -f conftest.er1
15207   cat conftest.err >&5
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); } &&
15210          { ac_try='test -z "$ac_c_werror_flag"
15211                          || test ! -s conftest.err'
15212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213   (eval $ac_try) 2>&5
15214   ac_status=$?
15215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216   (exit $ac_status); }; } &&
15217          { ac_try='test -s conftest.$ac_objext'
15218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219   (eval $ac_try) 2>&5
15220   ac_status=$?
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); }; }; then
15223   ac_lo=$ac_mid; break
15224 else
15225   echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15227
15228 ac_hi=`expr '(' $ac_mid ')' - 1`
15229                        if test $ac_mid -le $ac_hi; then
15230                          ac_lo= ac_hi=
15231                          break
15232                        fi
15233                        ac_mid=`expr 2 '*' $ac_mid`
15234 fi
15235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15236   done
15237 else
15238   echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15240
15241 ac_lo= ac_hi=
15242 fi
15243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15244 fi
15245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15246 # Binary search between lo and hi bounds.
15247 while test "x$ac_lo" != "x$ac_hi"; do
15248   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15249   cat >conftest.$ac_ext <<_ACEOF
15250 /* confdefs.h.  */
15251 _ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h.  */
15255 $ac_includes_default
15256 int
15257 main ()
15258 {
15259 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15260 test_array [0] = 0
15261
15262   ;
15263   return 0;
15264 }
15265 _ACEOF
15266 rm -f conftest.$ac_objext
15267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15268   (eval $ac_compile) 2>conftest.er1
15269   ac_status=$?
15270   grep -v '^ *+' conftest.er1 >conftest.err
15271   rm -f conftest.er1
15272   cat conftest.err >&5
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); } &&
15275          { ac_try='test -z "$ac_c_werror_flag"
15276                          || test ! -s conftest.err'
15277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278   (eval $ac_try) 2>&5
15279   ac_status=$?
15280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281   (exit $ac_status); }; } &&
15282          { ac_try='test -s conftest.$ac_objext'
15283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284   (eval $ac_try) 2>&5
15285   ac_status=$?
15286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); }; }; then
15288   ac_hi=$ac_mid
15289 else
15290   echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15292
15293 ac_lo=`expr '(' $ac_mid ')' + 1`
15294 fi
15295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15296 done
15297 case $ac_lo in
15298 ?*) ac_cv_sizeof_int=$ac_lo;;
15299 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15300 See \`config.log' for more details." >&5
15301 echo "$as_me: error: cannot compute sizeof (int), 77
15302 See \`config.log' for more details." >&2;}
15303    { (exit 1); exit 1; }; } ;;
15304 esac
15305 else
15306   if test "$cross_compiling" = yes; then
15307   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15308 See \`config.log' for more details." >&5
15309 echo "$as_me: error: cannot run test program while cross compiling
15310 See \`config.log' for more details." >&2;}
15311    { (exit 1); exit 1; }; }
15312 else
15313   cat >conftest.$ac_ext <<_ACEOF
15314 /* confdefs.h.  */
15315 _ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h.  */
15319 $ac_includes_default
15320 long longval () { return (long) (sizeof (int)); }
15321 unsigned long ulongval () { return (long) (sizeof (int)); }
15322 #include <stdio.h>
15323 #include <stdlib.h>
15324 int
15325 main ()
15326 {
15327
15328   FILE *f = fopen ("conftest.val", "w");
15329   if (! f)
15330     exit (1);
15331   if (((long) (sizeof (int))) < 0)
15332     {
15333       long i = longval ();
15334       if (i != ((long) (sizeof (int))))
15335         exit (1);
15336       fprintf (f, "%ld\n", i);
15337     }
15338   else
15339     {
15340       unsigned long i = ulongval ();
15341       if (i != ((long) (sizeof (int))))
15342         exit (1);
15343       fprintf (f, "%lu\n", i);
15344     }
15345   exit (ferror (f) || fclose (f) != 0);
15346
15347   ;
15348   return 0;
15349 }
15350 _ACEOF
15351 rm -f conftest$ac_exeext
15352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15353   (eval $ac_link) 2>&5
15354   ac_status=$?
15355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358   (eval $ac_try) 2>&5
15359   ac_status=$?
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); }; }; then
15362   ac_cv_sizeof_int=`cat conftest.val`
15363 else
15364   echo "$as_me: program exited with status $ac_status" >&5
15365 echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15367
15368 ( exit $ac_status )
15369 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15370 See \`config.log' for more details." >&5
15371 echo "$as_me: error: cannot compute sizeof (int), 77
15372 See \`config.log' for more details." >&2;}
15373    { (exit 1); exit 1; }; }
15374 fi
15375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15376 fi
15377 fi
15378 rm -f conftest.val
15379 else
15380   ac_cv_sizeof_int=0
15381 fi
15382 fi
15383 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15384 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15385 cat >>confdefs.h <<_ACEOF
15386 #define SIZEOF_INT $ac_cv_sizeof_int
15387 _ACEOF
15388
15389
15390 echo "$as_me:$LINENO: checking for long int" >&5
15391 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15392 if test "${ac_cv_type_long_int+set}" = set; then
15393   echo $ECHO_N "(cached) $ECHO_C" >&6
15394 else
15395   cat >conftest.$ac_ext <<_ACEOF
15396 /* confdefs.h.  */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h.  */
15401 $ac_includes_default
15402 int
15403 main ()
15404 {
15405 if ((long int *) 0)
15406   return 0;
15407 if (sizeof (long int))
15408   return 0;
15409   ;
15410   return 0;
15411 }
15412 _ACEOF
15413 rm -f conftest.$ac_objext
15414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15415   (eval $ac_compile) 2>conftest.er1
15416   ac_status=$?
15417   grep -v '^ *+' conftest.er1 >conftest.err
15418   rm -f conftest.er1
15419   cat conftest.err >&5
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); } &&
15422          { ac_try='test -z "$ac_c_werror_flag"
15423                          || test ! -s conftest.err'
15424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425   (eval $ac_try) 2>&5
15426   ac_status=$?
15427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428   (exit $ac_status); }; } &&
15429          { ac_try='test -s conftest.$ac_objext'
15430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431   (eval $ac_try) 2>&5
15432   ac_status=$?
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); }; }; then
15435   ac_cv_type_long_int=yes
15436 else
15437   echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15439
15440 ac_cv_type_long_int=no
15441 fi
15442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15443 fi
15444 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15445 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15446
15447 echo "$as_me:$LINENO: checking size of long int" >&5
15448 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15449 if test "${ac_cv_sizeof_long_int+set}" = set; then
15450   echo $ECHO_N "(cached) $ECHO_C" >&6
15451 else
15452   if test "$ac_cv_type_long_int" = yes; then
15453   # The cast to unsigned long works around a bug in the HP C Compiler
15454   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15455   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15456   # This bug is HP SR number 8606223364.
15457   if test "$cross_compiling" = yes; then
15458   # Depending upon the size, compute the lo and hi bounds.
15459 cat >conftest.$ac_ext <<_ACEOF
15460 /* confdefs.h.  */
15461 _ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h.  */
15465 $ac_includes_default
15466 int
15467 main ()
15468 {
15469 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15470 test_array [0] = 0
15471
15472   ;
15473   return 0;
15474 }
15475 _ACEOF
15476 rm -f conftest.$ac_objext
15477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15478   (eval $ac_compile) 2>conftest.er1
15479   ac_status=$?
15480   grep -v '^ *+' conftest.er1 >conftest.err
15481   rm -f conftest.er1
15482   cat conftest.err >&5
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); } &&
15485          { ac_try='test -z "$ac_c_werror_flag"
15486                          || test ! -s conftest.err'
15487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488   (eval $ac_try) 2>&5
15489   ac_status=$?
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); }; } &&
15492          { ac_try='test -s conftest.$ac_objext'
15493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494   (eval $ac_try) 2>&5
15495   ac_status=$?
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); }; }; then
15498   ac_lo=0 ac_mid=0
15499   while :; do
15500     cat >conftest.$ac_ext <<_ACEOF
15501 /* confdefs.h.  */
15502 _ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h.  */
15506 $ac_includes_default
15507 int
15508 main ()
15509 {
15510 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15511 test_array [0] = 0
15512
15513   ;
15514   return 0;
15515 }
15516 _ACEOF
15517 rm -f conftest.$ac_objext
15518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15519   (eval $ac_compile) 2>conftest.er1
15520   ac_status=$?
15521   grep -v '^ *+' conftest.er1 >conftest.err
15522   rm -f conftest.er1
15523   cat conftest.err >&5
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); } &&
15526          { ac_try='test -z "$ac_c_werror_flag"
15527                          || test ! -s conftest.err'
15528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529   (eval $ac_try) 2>&5
15530   ac_status=$?
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); }; } &&
15533          { ac_try='test -s conftest.$ac_objext'
15534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535   (eval $ac_try) 2>&5
15536   ac_status=$?
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); }; }; then
15539   ac_hi=$ac_mid; break
15540 else
15541   echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15543
15544 ac_lo=`expr $ac_mid + 1`
15545                     if test $ac_lo -le $ac_mid; then
15546                       ac_lo= ac_hi=
15547                       break
15548                     fi
15549                     ac_mid=`expr 2 '*' $ac_mid + 1`
15550 fi
15551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15552   done
15553 else
15554   echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15556
15557 cat >conftest.$ac_ext <<_ACEOF
15558 /* confdefs.h.  */
15559 _ACEOF
15560 cat confdefs.h >>conftest.$ac_ext
15561 cat >>conftest.$ac_ext <<_ACEOF
15562 /* end confdefs.h.  */
15563 $ac_includes_default
15564 int
15565 main ()
15566 {
15567 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15568 test_array [0] = 0
15569
15570   ;
15571   return 0;
15572 }
15573 _ACEOF
15574 rm -f conftest.$ac_objext
15575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15576   (eval $ac_compile) 2>conftest.er1
15577   ac_status=$?
15578   grep -v '^ *+' conftest.er1 >conftest.err
15579   rm -f conftest.er1
15580   cat conftest.err >&5
15581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582   (exit $ac_status); } &&
15583          { ac_try='test -z "$ac_c_werror_flag"
15584                          || test ! -s conftest.err'
15585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586   (eval $ac_try) 2>&5
15587   ac_status=$?
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); }; } &&
15590          { ac_try='test -s conftest.$ac_objext'
15591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592   (eval $ac_try) 2>&5
15593   ac_status=$?
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); }; }; then
15596   ac_hi=-1 ac_mid=-1
15597   while :; do
15598     cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h.  */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h.  */
15604 $ac_includes_default
15605 int
15606 main ()
15607 {
15608 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15609 test_array [0] = 0
15610
15611   ;
15612   return 0;
15613 }
15614 _ACEOF
15615 rm -f conftest.$ac_objext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15617   (eval $ac_compile) 2>conftest.er1
15618   ac_status=$?
15619   grep -v '^ *+' conftest.er1 >conftest.err
15620   rm -f conftest.er1
15621   cat conftest.err >&5
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); } &&
15624          { ac_try='test -z "$ac_c_werror_flag"
15625                          || test ! -s conftest.err'
15626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627   (eval $ac_try) 2>&5
15628   ac_status=$?
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); }; } &&
15631          { ac_try='test -s conftest.$ac_objext'
15632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633   (eval $ac_try) 2>&5
15634   ac_status=$?
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); }; }; then
15637   ac_lo=$ac_mid; break
15638 else
15639   echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15641
15642 ac_hi=`expr '(' $ac_mid ')' - 1`
15643                        if test $ac_mid -le $ac_hi; then
15644                          ac_lo= ac_hi=
15645                          break
15646                        fi
15647                        ac_mid=`expr 2 '*' $ac_mid`
15648 fi
15649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15650   done
15651 else
15652   echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15654
15655 ac_lo= ac_hi=
15656 fi
15657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15658 fi
15659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15660 # Binary search between lo and hi bounds.
15661 while test "x$ac_lo" != "x$ac_hi"; do
15662   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15663   cat >conftest.$ac_ext <<_ACEOF
15664 /* confdefs.h.  */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h.  */
15669 $ac_includes_default
15670 int
15671 main ()
15672 {
15673 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15674 test_array [0] = 0
15675
15676   ;
15677   return 0;
15678 }
15679 _ACEOF
15680 rm -f conftest.$ac_objext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15682   (eval $ac_compile) 2>conftest.er1
15683   ac_status=$?
15684   grep -v '^ *+' conftest.er1 >conftest.err
15685   rm -f conftest.er1
15686   cat conftest.err >&5
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); } &&
15689          { ac_try='test -z "$ac_c_werror_flag"
15690                          || test ! -s conftest.err'
15691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692   (eval $ac_try) 2>&5
15693   ac_status=$?
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); }; } &&
15696          { ac_try='test -s conftest.$ac_objext'
15697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698   (eval $ac_try) 2>&5
15699   ac_status=$?
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); }; }; then
15702   ac_hi=$ac_mid
15703 else
15704   echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15706
15707 ac_lo=`expr '(' $ac_mid ')' + 1`
15708 fi
15709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15710 done
15711 case $ac_lo in
15712 ?*) ac_cv_sizeof_long_int=$ac_lo;;
15713 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15714 See \`config.log' for more details." >&5
15715 echo "$as_me: error: cannot compute sizeof (long int), 77
15716 See \`config.log' for more details." >&2;}
15717    { (exit 1); exit 1; }; } ;;
15718 esac
15719 else
15720   if test "$cross_compiling" = yes; then
15721   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15722 See \`config.log' for more details." >&5
15723 echo "$as_me: error: cannot run test program while cross compiling
15724 See \`config.log' for more details." >&2;}
15725    { (exit 1); exit 1; }; }
15726 else
15727   cat >conftest.$ac_ext <<_ACEOF
15728 /* confdefs.h.  */
15729 _ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h.  */
15733 $ac_includes_default
15734 long longval () { return (long) (sizeof (long int)); }
15735 unsigned long ulongval () { return (long) (sizeof (long int)); }
15736 #include <stdio.h>
15737 #include <stdlib.h>
15738 int
15739 main ()
15740 {
15741
15742   FILE *f = fopen ("conftest.val", "w");
15743   if (! f)
15744     exit (1);
15745   if (((long) (sizeof (long int))) < 0)
15746     {
15747       long i = longval ();
15748       if (i != ((long) (sizeof (long int))))
15749         exit (1);
15750       fprintf (f, "%ld\n", i);
15751     }
15752   else
15753     {
15754       unsigned long i = ulongval ();
15755       if (i != ((long) (sizeof (long int))))
15756         exit (1);
15757       fprintf (f, "%lu\n", i);
15758     }
15759   exit (ferror (f) || fclose (f) != 0);
15760
15761   ;
15762   return 0;
15763 }
15764 _ACEOF
15765 rm -f conftest$ac_exeext
15766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15767   (eval $ac_link) 2>&5
15768   ac_status=$?
15769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772   (eval $ac_try) 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); }; }; then
15776   ac_cv_sizeof_long_int=`cat conftest.val`
15777 else
15778   echo "$as_me: program exited with status $ac_status" >&5
15779 echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15781
15782 ( exit $ac_status )
15783 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15784 See \`config.log' for more details." >&5
15785 echo "$as_me: error: cannot compute sizeof (long int), 77
15786 See \`config.log' for more details." >&2;}
15787    { (exit 1); exit 1; }; }
15788 fi
15789 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15790 fi
15791 fi
15792 rm -f conftest.val
15793 else
15794   ac_cv_sizeof_long_int=0
15795 fi
15796 fi
15797 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
15798 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
15799 cat >>confdefs.h <<_ACEOF
15800 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15801 _ACEOF
15802
15803
15804 echo "$as_me:$LINENO: checking for long long int" >&5
15805 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15806 if test "${ac_cv_type_long_long_int+set}" = set; then
15807   echo $ECHO_N "(cached) $ECHO_C" >&6
15808 else
15809   cat >conftest.$ac_ext <<_ACEOF
15810 /* confdefs.h.  */
15811 _ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h.  */
15815 $ac_includes_default
15816 int
15817 main ()
15818 {
15819 if ((long long int *) 0)
15820   return 0;
15821 if (sizeof (long long int))
15822   return 0;
15823   ;
15824   return 0;
15825 }
15826 _ACEOF
15827 rm -f conftest.$ac_objext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15829   (eval $ac_compile) 2>conftest.er1
15830   ac_status=$?
15831   grep -v '^ *+' conftest.er1 >conftest.err
15832   rm -f conftest.er1
15833   cat conftest.err >&5
15834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835   (exit $ac_status); } &&
15836          { ac_try='test -z "$ac_c_werror_flag"
15837                          || test ! -s conftest.err'
15838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839   (eval $ac_try) 2>&5
15840   ac_status=$?
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); }; } &&
15843          { ac_try='test -s conftest.$ac_objext'
15844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845   (eval $ac_try) 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); }; }; then
15849   ac_cv_type_long_long_int=yes
15850 else
15851   echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15853
15854 ac_cv_type_long_long_int=no
15855 fi
15856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15857 fi
15858 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15859 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15860
15861 echo "$as_me:$LINENO: checking size of long long int" >&5
15862 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
15863 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
15864   echo $ECHO_N "(cached) $ECHO_C" >&6
15865 else
15866   if test "$ac_cv_type_long_long_int" = yes; then
15867   # The cast to unsigned long works around a bug in the HP C Compiler
15868   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15869   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15870   # This bug is HP SR number 8606223364.
15871   if test "$cross_compiling" = yes; then
15872   # Depending upon the size, compute the lo and hi bounds.
15873 cat >conftest.$ac_ext <<_ACEOF
15874 /* confdefs.h.  */
15875 _ACEOF
15876 cat confdefs.h >>conftest.$ac_ext
15877 cat >>conftest.$ac_ext <<_ACEOF
15878 /* end confdefs.h.  */
15879 $ac_includes_default
15880 int
15881 main ()
15882 {
15883 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15884 test_array [0] = 0
15885
15886   ;
15887   return 0;
15888 }
15889 _ACEOF
15890 rm -f conftest.$ac_objext
15891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15892   (eval $ac_compile) 2>conftest.er1
15893   ac_status=$?
15894   grep -v '^ *+' conftest.er1 >conftest.err
15895   rm -f conftest.er1
15896   cat conftest.err >&5
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); } &&
15899          { ac_try='test -z "$ac_c_werror_flag"
15900                          || test ! -s conftest.err'
15901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902   (eval $ac_try) 2>&5
15903   ac_status=$?
15904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905   (exit $ac_status); }; } &&
15906          { ac_try='test -s conftest.$ac_objext'
15907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908   (eval $ac_try) 2>&5
15909   ac_status=$?
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); }; }; then
15912   ac_lo=0 ac_mid=0
15913   while :; do
15914     cat >conftest.$ac_ext <<_ACEOF
15915 /* confdefs.h.  */
15916 _ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h.  */
15920 $ac_includes_default
15921 int
15922 main ()
15923 {
15924 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15925 test_array [0] = 0
15926
15927   ;
15928   return 0;
15929 }
15930 _ACEOF
15931 rm -f conftest.$ac_objext
15932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15933   (eval $ac_compile) 2>conftest.er1
15934   ac_status=$?
15935   grep -v '^ *+' conftest.er1 >conftest.err
15936   rm -f conftest.er1
15937   cat conftest.err >&5
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); } &&
15940          { ac_try='test -z "$ac_c_werror_flag"
15941                          || test ! -s conftest.err'
15942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943   (eval $ac_try) 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); }; } &&
15947          { ac_try='test -s conftest.$ac_objext'
15948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949   (eval $ac_try) 2>&5
15950   ac_status=$?
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); }; }; then
15953   ac_hi=$ac_mid; break
15954 else
15955   echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15957
15958 ac_lo=`expr $ac_mid + 1`
15959                     if test $ac_lo -le $ac_mid; then
15960                       ac_lo= ac_hi=
15961                       break
15962                     fi
15963                     ac_mid=`expr 2 '*' $ac_mid + 1`
15964 fi
15965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15966   done
15967 else
15968   echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15970
15971 cat >conftest.$ac_ext <<_ACEOF
15972 /* confdefs.h.  */
15973 _ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h.  */
15977 $ac_includes_default
15978 int
15979 main ()
15980 {
15981 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
15982 test_array [0] = 0
15983
15984   ;
15985   return 0;
15986 }
15987 _ACEOF
15988 rm -f conftest.$ac_objext
15989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15990   (eval $ac_compile) 2>conftest.er1
15991   ac_status=$?
15992   grep -v '^ *+' conftest.er1 >conftest.err
15993   rm -f conftest.er1
15994   cat conftest.err >&5
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); } &&
15997          { ac_try='test -z "$ac_c_werror_flag"
15998                          || test ! -s conftest.err'
15999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000   (eval $ac_try) 2>&5
16001   ac_status=$?
16002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003   (exit $ac_status); }; } &&
16004          { ac_try='test -s conftest.$ac_objext'
16005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006   (eval $ac_try) 2>&5
16007   ac_status=$?
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); }; }; then
16010   ac_hi=-1 ac_mid=-1
16011   while :; do
16012     cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h.  */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h.  */
16018 $ac_includes_default
16019 int
16020 main ()
16021 {
16022 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16023 test_array [0] = 0
16024
16025   ;
16026   return 0;
16027 }
16028 _ACEOF
16029 rm -f conftest.$ac_objext
16030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16031   (eval $ac_compile) 2>conftest.er1
16032   ac_status=$?
16033   grep -v '^ *+' conftest.er1 >conftest.err
16034   rm -f conftest.er1
16035   cat conftest.err >&5
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); } &&
16038          { ac_try='test -z "$ac_c_werror_flag"
16039                          || test ! -s conftest.err'
16040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041   (eval $ac_try) 2>&5
16042   ac_status=$?
16043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044   (exit $ac_status); }; } &&
16045          { ac_try='test -s conftest.$ac_objext'
16046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047   (eval $ac_try) 2>&5
16048   ac_status=$?
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); }; }; then
16051   ac_lo=$ac_mid; break
16052 else
16053   echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16055
16056 ac_hi=`expr '(' $ac_mid ')' - 1`
16057                        if test $ac_mid -le $ac_hi; then
16058                          ac_lo= ac_hi=
16059                          break
16060                        fi
16061                        ac_mid=`expr 2 '*' $ac_mid`
16062 fi
16063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16064   done
16065 else
16066   echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16068
16069 ac_lo= ac_hi=
16070 fi
16071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16072 fi
16073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16074 # Binary search between lo and hi bounds.
16075 while test "x$ac_lo" != "x$ac_hi"; do
16076   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16077   cat >conftest.$ac_ext <<_ACEOF
16078 /* confdefs.h.  */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h.  */
16083 $ac_includes_default
16084 int
16085 main ()
16086 {
16087 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16088 test_array [0] = 0
16089
16090   ;
16091   return 0;
16092 }
16093 _ACEOF
16094 rm -f conftest.$ac_objext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16096   (eval $ac_compile) 2>conftest.er1
16097   ac_status=$?
16098   grep -v '^ *+' conftest.er1 >conftest.err
16099   rm -f conftest.er1
16100   cat conftest.err >&5
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); } &&
16103          { ac_try='test -z "$ac_c_werror_flag"
16104                          || test ! -s conftest.err'
16105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106   (eval $ac_try) 2>&5
16107   ac_status=$?
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); }; } &&
16110          { ac_try='test -s conftest.$ac_objext'
16111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112   (eval $ac_try) 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); }; }; then
16116   ac_hi=$ac_mid
16117 else
16118   echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16120
16121 ac_lo=`expr '(' $ac_mid ')' + 1`
16122 fi
16123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16124 done
16125 case $ac_lo in
16126 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16127 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16128 See \`config.log' for more details." >&5
16129 echo "$as_me: error: cannot compute sizeof (long long int), 77
16130 See \`config.log' for more details." >&2;}
16131    { (exit 1); exit 1; }; } ;;
16132 esac
16133 else
16134   if test "$cross_compiling" = yes; then
16135   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16136 See \`config.log' for more details." >&5
16137 echo "$as_me: error: cannot run test program while cross compiling
16138 See \`config.log' for more details." >&2;}
16139    { (exit 1); exit 1; }; }
16140 else
16141   cat >conftest.$ac_ext <<_ACEOF
16142 /* confdefs.h.  */
16143 _ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h.  */
16147 $ac_includes_default
16148 long longval () { return (long) (sizeof (long long int)); }
16149 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16150 #include <stdio.h>
16151 #include <stdlib.h>
16152 int
16153 main ()
16154 {
16155
16156   FILE *f = fopen ("conftest.val", "w");
16157   if (! f)
16158     exit (1);
16159   if (((long) (sizeof (long long int))) < 0)
16160     {
16161       long i = longval ();
16162       if (i != ((long) (sizeof (long long int))))
16163         exit (1);
16164       fprintf (f, "%ld\n", i);
16165     }
16166   else
16167     {
16168       unsigned long i = ulongval ();
16169       if (i != ((long) (sizeof (long long int))))
16170         exit (1);
16171       fprintf (f, "%lu\n", i);
16172     }
16173   exit (ferror (f) || fclose (f) != 0);
16174
16175   ;
16176   return 0;
16177 }
16178 _ACEOF
16179 rm -f conftest$ac_exeext
16180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16181   (eval $ac_link) 2>&5
16182   ac_status=$?
16183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186   (eval $ac_try) 2>&5
16187   ac_status=$?
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); }; }; then
16190   ac_cv_sizeof_long_long_int=`cat conftest.val`
16191 else
16192   echo "$as_me: program exited with status $ac_status" >&5
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16195
16196 ( exit $ac_status )
16197 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16198 See \`config.log' for more details." >&5
16199 echo "$as_me: error: cannot compute sizeof (long long int), 77
16200 See \`config.log' for more details." >&2;}
16201    { (exit 1); exit 1; }; }
16202 fi
16203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16204 fi
16205 fi
16206 rm -f conftest.val
16207 else
16208   ac_cv_sizeof_long_long_int=0
16209 fi
16210 fi
16211 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16212 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16213 cat >>confdefs.h <<_ACEOF
16214 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16215 _ACEOF
16216
16217
16218 echo "$as_me:$LINENO: checking for int *" >&5
16219 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16220 if test "${ac_cv_type_int_p+set}" = set; then
16221   echo $ECHO_N "(cached) $ECHO_C" >&6
16222 else
16223   cat >conftest.$ac_ext <<_ACEOF
16224 /* confdefs.h.  */
16225 _ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h.  */
16229 $ac_includes_default
16230 int
16231 main ()
16232 {
16233 if ((int * *) 0)
16234   return 0;
16235 if (sizeof (int *))
16236   return 0;
16237   ;
16238   return 0;
16239 }
16240 _ACEOF
16241 rm -f conftest.$ac_objext
16242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16243   (eval $ac_compile) 2>conftest.er1
16244   ac_status=$?
16245   grep -v '^ *+' conftest.er1 >conftest.err
16246   rm -f conftest.er1
16247   cat conftest.err >&5
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); } &&
16250          { ac_try='test -z "$ac_c_werror_flag"
16251                          || test ! -s conftest.err'
16252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253   (eval $ac_try) 2>&5
16254   ac_status=$?
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); }; } &&
16257          { ac_try='test -s conftest.$ac_objext'
16258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259   (eval $ac_try) 2>&5
16260   ac_status=$?
16261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262   (exit $ac_status); }; }; then
16263   ac_cv_type_int_p=yes
16264 else
16265   echo "$as_me: failed program was:" >&5
16266 sed 's/^/| /' conftest.$ac_ext >&5
16267
16268 ac_cv_type_int_p=no
16269 fi
16270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16271 fi
16272 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16273 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16274
16275 echo "$as_me:$LINENO: checking size of int *" >&5
16276 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16277 if test "${ac_cv_sizeof_int_p+set}" = set; then
16278   echo $ECHO_N "(cached) $ECHO_C" >&6
16279 else
16280   if test "$ac_cv_type_int_p" = yes; then
16281   # The cast to unsigned long works around a bug in the HP C Compiler
16282   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16283   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16284   # This bug is HP SR number 8606223364.
16285   if test "$cross_compiling" = yes; then
16286   # Depending upon the size, compute the lo and hi bounds.
16287 cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h.  */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h.  */
16293 $ac_includes_default
16294 int
16295 main ()
16296 {
16297 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16298 test_array [0] = 0
16299
16300   ;
16301   return 0;
16302 }
16303 _ACEOF
16304 rm -f conftest.$ac_objext
16305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306   (eval $ac_compile) 2>conftest.er1
16307   ac_status=$?
16308   grep -v '^ *+' conftest.er1 >conftest.err
16309   rm -f conftest.er1
16310   cat conftest.err >&5
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); } &&
16313          { ac_try='test -z "$ac_c_werror_flag"
16314                          || test ! -s conftest.err'
16315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316   (eval $ac_try) 2>&5
16317   ac_status=$?
16318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319   (exit $ac_status); }; } &&
16320          { ac_try='test -s conftest.$ac_objext'
16321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322   (eval $ac_try) 2>&5
16323   ac_status=$?
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); }; }; then
16326   ac_lo=0 ac_mid=0
16327   while :; do
16328     cat >conftest.$ac_ext <<_ACEOF
16329 /* confdefs.h.  */
16330 _ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h.  */
16334 $ac_includes_default
16335 int
16336 main ()
16337 {
16338 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16339 test_array [0] = 0
16340
16341   ;
16342   return 0;
16343 }
16344 _ACEOF
16345 rm -f conftest.$ac_objext
16346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16347   (eval $ac_compile) 2>conftest.er1
16348   ac_status=$?
16349   grep -v '^ *+' conftest.er1 >conftest.err
16350   rm -f conftest.er1
16351   cat conftest.err >&5
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); } &&
16354          { ac_try='test -z "$ac_c_werror_flag"
16355                          || test ! -s conftest.err'
16356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357   (eval $ac_try) 2>&5
16358   ac_status=$?
16359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); }; } &&
16361          { ac_try='test -s conftest.$ac_objext'
16362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363   (eval $ac_try) 2>&5
16364   ac_status=$?
16365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366   (exit $ac_status); }; }; then
16367   ac_hi=$ac_mid; break
16368 else
16369   echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16371
16372 ac_lo=`expr $ac_mid + 1`
16373                     if test $ac_lo -le $ac_mid; then
16374                       ac_lo= ac_hi=
16375                       break
16376                     fi
16377                     ac_mid=`expr 2 '*' $ac_mid + 1`
16378 fi
16379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16380   done
16381 else
16382   echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16384
16385 cat >conftest.$ac_ext <<_ACEOF
16386 /* confdefs.h.  */
16387 _ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h.  */
16391 $ac_includes_default
16392 int
16393 main ()
16394 {
16395 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16396 test_array [0] = 0
16397
16398   ;
16399   return 0;
16400 }
16401 _ACEOF
16402 rm -f conftest.$ac_objext
16403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16404   (eval $ac_compile) 2>conftest.er1
16405   ac_status=$?
16406   grep -v '^ *+' conftest.er1 >conftest.err
16407   rm -f conftest.er1
16408   cat conftest.err >&5
16409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410   (exit $ac_status); } &&
16411          { ac_try='test -z "$ac_c_werror_flag"
16412                          || test ! -s conftest.err'
16413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414   (eval $ac_try) 2>&5
16415   ac_status=$?
16416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417   (exit $ac_status); }; } &&
16418          { ac_try='test -s conftest.$ac_objext'
16419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420   (eval $ac_try) 2>&5
16421   ac_status=$?
16422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423   (exit $ac_status); }; }; then
16424   ac_hi=-1 ac_mid=-1
16425   while :; do
16426     cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h.  */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h.  */
16432 $ac_includes_default
16433 int
16434 main ()
16435 {
16436 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16437 test_array [0] = 0
16438
16439   ;
16440   return 0;
16441 }
16442 _ACEOF
16443 rm -f conftest.$ac_objext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16445   (eval $ac_compile) 2>conftest.er1
16446   ac_status=$?
16447   grep -v '^ *+' conftest.er1 >conftest.err
16448   rm -f conftest.er1
16449   cat conftest.err >&5
16450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451   (exit $ac_status); } &&
16452          { ac_try='test -z "$ac_c_werror_flag"
16453                          || test ! -s conftest.err'
16454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455   (eval $ac_try) 2>&5
16456   ac_status=$?
16457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458   (exit $ac_status); }; } &&
16459          { ac_try='test -s conftest.$ac_objext'
16460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461   (eval $ac_try) 2>&5
16462   ac_status=$?
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   (exit $ac_status); }; }; then
16465   ac_lo=$ac_mid; break
16466 else
16467   echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16469
16470 ac_hi=`expr '(' $ac_mid ')' - 1`
16471                        if test $ac_mid -le $ac_hi; then
16472                          ac_lo= ac_hi=
16473                          break
16474                        fi
16475                        ac_mid=`expr 2 '*' $ac_mid`
16476 fi
16477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16478   done
16479 else
16480   echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16482
16483 ac_lo= ac_hi=
16484 fi
16485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16486 fi
16487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16488 # Binary search between lo and hi bounds.
16489 while test "x$ac_lo" != "x$ac_hi"; do
16490   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16491   cat >conftest.$ac_ext <<_ACEOF
16492 /* confdefs.h.  */
16493 _ACEOF
16494 cat confdefs.h >>conftest.$ac_ext
16495 cat >>conftest.$ac_ext <<_ACEOF
16496 /* end confdefs.h.  */
16497 $ac_includes_default
16498 int
16499 main ()
16500 {
16501 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16502 test_array [0] = 0
16503
16504   ;
16505   return 0;
16506 }
16507 _ACEOF
16508 rm -f conftest.$ac_objext
16509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16510   (eval $ac_compile) 2>conftest.er1
16511   ac_status=$?
16512   grep -v '^ *+' conftest.er1 >conftest.err
16513   rm -f conftest.er1
16514   cat conftest.err >&5
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); } &&
16517          { ac_try='test -z "$ac_c_werror_flag"
16518                          || test ! -s conftest.err'
16519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520   (eval $ac_try) 2>&5
16521   ac_status=$?
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); }; } &&
16524          { ac_try='test -s conftest.$ac_objext'
16525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526   (eval $ac_try) 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); }; }; then
16530   ac_hi=$ac_mid
16531 else
16532   echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16534
16535 ac_lo=`expr '(' $ac_mid ')' + 1`
16536 fi
16537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16538 done
16539 case $ac_lo in
16540 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16541 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16542 See \`config.log' for more details." >&5
16543 echo "$as_me: error: cannot compute sizeof (int *), 77
16544 See \`config.log' for more details." >&2;}
16545    { (exit 1); exit 1; }; } ;;
16546 esac
16547 else
16548   if test "$cross_compiling" = yes; then
16549   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16550 See \`config.log' for more details." >&5
16551 echo "$as_me: error: cannot run test program while cross compiling
16552 See \`config.log' for more details." >&2;}
16553    { (exit 1); exit 1; }; }
16554 else
16555   cat >conftest.$ac_ext <<_ACEOF
16556 /* confdefs.h.  */
16557 _ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h.  */
16561 $ac_includes_default
16562 long longval () { return (long) (sizeof (int *)); }
16563 unsigned long ulongval () { return (long) (sizeof (int *)); }
16564 #include <stdio.h>
16565 #include <stdlib.h>
16566 int
16567 main ()
16568 {
16569
16570   FILE *f = fopen ("conftest.val", "w");
16571   if (! f)
16572     exit (1);
16573   if (((long) (sizeof (int *))) < 0)
16574     {
16575       long i = longval ();
16576       if (i != ((long) (sizeof (int *))))
16577         exit (1);
16578       fprintf (f, "%ld\n", i);
16579     }
16580   else
16581     {
16582       unsigned long i = ulongval ();
16583       if (i != ((long) (sizeof (int *))))
16584         exit (1);
16585       fprintf (f, "%lu\n", i);
16586     }
16587   exit (ferror (f) || fclose (f) != 0);
16588
16589   ;
16590   return 0;
16591 }
16592 _ACEOF
16593 rm -f conftest$ac_exeext
16594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16595   (eval $ac_link) 2>&5
16596   ac_status=$?
16597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600   (eval $ac_try) 2>&5
16601   ac_status=$?
16602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603   (exit $ac_status); }; }; then
16604   ac_cv_sizeof_int_p=`cat conftest.val`
16605 else
16606   echo "$as_me: program exited with status $ac_status" >&5
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16609
16610 ( exit $ac_status )
16611 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16612 See \`config.log' for more details." >&5
16613 echo "$as_me: error: cannot compute sizeof (int *), 77
16614 See \`config.log' for more details." >&2;}
16615    { (exit 1); exit 1; }; }
16616 fi
16617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16618 fi
16619 fi
16620 rm -f conftest.val
16621 else
16622   ac_cv_sizeof_int_p=0
16623 fi
16624 fi
16625 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16626 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16627 cat >>confdefs.h <<_ACEOF
16628 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16629 _ACEOF
16630
16631
16632
16633 # Check for sys/types.h types
16634 echo "$as_me:$LINENO: checking for u_int type" >&5
16635 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16636 if test "${ac_cv_have_u_int+set}" = set; then
16637   echo $ECHO_N "(cached) $ECHO_C" >&6
16638 else
16639
16640     cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646  #include <sys/types.h>
16647 int
16648 main ()
16649 {
16650  u_int a; a = 1;
16651   ;
16652   return 0;
16653 }
16654 _ACEOF
16655 rm -f conftest.$ac_objext
16656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16657   (eval $ac_compile) 2>conftest.er1
16658   ac_status=$?
16659   grep -v '^ *+' conftest.er1 >conftest.err
16660   rm -f conftest.er1
16661   cat conftest.err >&5
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } &&
16664          { ac_try='test -z "$ac_c_werror_flag"
16665                          || test ! -s conftest.err'
16666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667   (eval $ac_try) 2>&5
16668   ac_status=$?
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); }; } &&
16671          { ac_try='test -s conftest.$ac_objext'
16672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673   (eval $ac_try) 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); }; }; then
16677    ac_cv_have_u_int="yes"
16678 else
16679   echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16681
16682  ac_cv_have_u_int="no"
16683
16684 fi
16685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16686
16687 fi
16688 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
16689 echo "${ECHO_T}$ac_cv_have_u_int" >&6
16690 if test "x$ac_cv_have_u_int" = "xyes" ; then
16691    cat >>confdefs.h <<\_ACEOF
16692 #define HAVE_U_INT 1
16693 _ACEOF
16694
16695    have_u_int=1
16696 fi
16697
16698 echo "$as_me:$LINENO: checking for intmax_t type" >&5
16699 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
16700 if test "${ac_cv_have_intmax_t+set}" = set; then
16701   echo $ECHO_N "(cached) $ECHO_C" >&6
16702 else
16703
16704    cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h.  */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h.  */
16710  #include <sys/types.h>
16711 int
16712 main ()
16713 {
16714  intmax_t a; a = 1;
16715   ;
16716   return 0;
16717 }
16718 _ACEOF
16719 rm -f conftest.$ac_objext
16720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16721   (eval $ac_compile) 2>conftest.er1
16722   ac_status=$?
16723   grep -v '^ *+' conftest.er1 >conftest.err
16724   rm -f conftest.er1
16725   cat conftest.err >&5
16726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727   (exit $ac_status); } &&
16728          { ac_try='test -z "$ac_c_werror_flag"
16729                          || test ! -s conftest.err'
16730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731   (eval $ac_try) 2>&5
16732   ac_status=$?
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); }; } &&
16735          { ac_try='test -s conftest.$ac_objext'
16736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737   (eval $ac_try) 2>&5
16738   ac_status=$?
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); }; }; then
16741    ac_cv_have_intmax_t="yes"
16742 else
16743   echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16745
16746
16747          cat >conftest.$ac_ext <<_ACEOF
16748 /* confdefs.h.  */
16749 _ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h.  */
16753  #include <stdint.h>
16754 int
16755 main ()
16756 {
16757  intmax_t a; a = 1;
16758   ;
16759   return 0;
16760 }
16761 _ACEOF
16762 rm -f conftest.$ac_objext
16763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16764   (eval $ac_compile) 2>conftest.er1
16765   ac_status=$?
16766   grep -v '^ *+' conftest.er1 >conftest.err
16767   rm -f conftest.er1
16768   cat conftest.err >&5
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); } &&
16771          { ac_try='test -z "$ac_c_werror_flag"
16772                          || test ! -s conftest.err'
16773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774   (eval $ac_try) 2>&5
16775   ac_status=$?
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); }; } &&
16778          { ac_try='test -s conftest.$ac_objext'
16779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780   (eval $ac_try) 2>&5
16781   ac_status=$?
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); }; }; then
16784    ac_cv_have_intmax_t="yes"
16785 else
16786   echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16788
16789  ac_cv_have_intmax_t="no"
16790
16791 fi
16792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16793
16794
16795 fi
16796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16797
16798
16799 fi
16800 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
16801 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
16802 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
16803    cat >>confdefs.h <<\_ACEOF
16804 #define HAVE_INTMAX_T 1
16805 _ACEOF
16806
16807    have_intmax_t=1
16808 fi
16809
16810
16811 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
16812 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
16813 if test "${ac_cv_have_u_intmax_t+set}" = set; then
16814   echo $ECHO_N "(cached) $ECHO_C" >&6
16815 else
16816
16817    cat >conftest.$ac_ext <<_ACEOF
16818 /* confdefs.h.  */
16819 _ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h.  */
16823  #include <sys/types.h>
16824 int
16825 main ()
16826 {
16827  u_intmax_t a; a = 1;
16828   ;
16829   return 0;
16830 }
16831 _ACEOF
16832 rm -f conftest.$ac_objext
16833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16834   (eval $ac_compile) 2>conftest.er1
16835   ac_status=$?
16836   grep -v '^ *+' conftest.er1 >conftest.err
16837   rm -f conftest.er1
16838   cat conftest.err >&5
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); } &&
16841          { ac_try='test -z "$ac_c_werror_flag"
16842                          || test ! -s conftest.err'
16843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844   (eval $ac_try) 2>&5
16845   ac_status=$?
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); }; } &&
16848          { ac_try='test -s conftest.$ac_objext'
16849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850   (eval $ac_try) 2>&5
16851   ac_status=$?
16852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); }; }; then
16854    ac_cv_have_u_intmax_t="yes"
16855 else
16856   echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16858
16859
16860          cat >conftest.$ac_ext <<_ACEOF
16861 /* confdefs.h.  */
16862 _ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h.  */
16866  #include <stdint.h>
16867 int
16868 main ()
16869 {
16870  u_intmax_t a; a = 1;
16871   ;
16872   return 0;
16873 }
16874 _ACEOF
16875 rm -f conftest.$ac_objext
16876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16877   (eval $ac_compile) 2>conftest.er1
16878   ac_status=$?
16879   grep -v '^ *+' conftest.er1 >conftest.err
16880   rm -f conftest.er1
16881   cat conftest.err >&5
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); } &&
16884          { ac_try='test -z "$ac_c_werror_flag"
16885                          || test ! -s conftest.err'
16886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887   (eval $ac_try) 2>&5
16888   ac_status=$?
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); }; } &&
16891          { ac_try='test -s conftest.$ac_objext'
16892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893   (eval $ac_try) 2>&5
16894   ac_status=$?
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); }; }; then
16897    ac_cv_have_u_intmax_t="yes"
16898 else
16899   echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16901
16902  ac_cv_have_u_intmax_t="no"
16903
16904 fi
16905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16906
16907
16908 fi
16909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16910
16911 fi
16912 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
16913 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
16914 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
16915    cat >>confdefs.h <<\_ACEOF
16916 #define HAVE_U_INTMAX_T 1
16917 _ACEOF
16918
16919    have_u_intmax_t=1
16920 fi
16921
16922
16923 echo "$as_me:$LINENO: checking for intXX_t types" >&5
16924 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
16925 if test "${ac_cv_have_intxx_t+set}" = set; then
16926   echo $ECHO_N "(cached) $ECHO_C" >&6
16927 else
16928
16929    cat >conftest.$ac_ext <<_ACEOF
16930 /* confdefs.h.  */
16931 _ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h.  */
16935  #include <sys/types.h>
16936 int
16937 main ()
16938 {
16939  int8_t a; int16_t b; int32_t c; a = b = c = 1;
16940   ;
16941   return 0;
16942 }
16943 _ACEOF
16944 rm -f conftest.$ac_objext
16945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16946   (eval $ac_compile) 2>conftest.er1
16947   ac_status=$?
16948   grep -v '^ *+' conftest.er1 >conftest.err
16949   rm -f conftest.er1
16950   cat conftest.err >&5
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); } &&
16953          { ac_try='test -z "$ac_c_werror_flag"
16954                          || test ! -s conftest.err'
16955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956   (eval $ac_try) 2>&5
16957   ac_status=$?
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); }; } &&
16960          { ac_try='test -s conftest.$ac_objext'
16961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962   (eval $ac_try) 2>&5
16963   ac_status=$?
16964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); }; }; then
16966    ac_cv_have_intxx_t="yes"
16967 else
16968   echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16970
16971  ac_cv_have_intxx_t="no"
16972
16973 fi
16974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16975
16976 fi
16977 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
16978 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
16979 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
16980    cat >>confdefs.h <<\_ACEOF
16981 #define HAVE_INTXX_T 1
16982 _ACEOF
16983
16984    have_intxx_t=1
16985 fi
16986
16987 echo "$as_me:$LINENO: checking for int64_t type" >&5
16988 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
16989 if test "${ac_cv_have_int64_t+set}" = set; then
16990   echo $ECHO_N "(cached) $ECHO_C" >&6
16991 else
16992
16993    cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h.  */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h.  */
16999  #include <sys/types.h>
17000 int
17001 main ()
17002 {
17003  int64_t a; a = 1;
17004   ;
17005   return 0;
17006 }
17007 _ACEOF
17008 rm -f conftest.$ac_objext
17009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17010   (eval $ac_compile) 2>conftest.er1
17011   ac_status=$?
17012   grep -v '^ *+' conftest.er1 >conftest.err
17013   rm -f conftest.er1
17014   cat conftest.err >&5
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); } &&
17017          { ac_try='test -z "$ac_c_werror_flag"
17018                          || test ! -s conftest.err'
17019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020   (eval $ac_try) 2>&5
17021   ac_status=$?
17022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023   (exit $ac_status); }; } &&
17024          { ac_try='test -s conftest.$ac_objext'
17025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026   (eval $ac_try) 2>&5
17027   ac_status=$?
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); }; }; then
17030    ac_cv_have_int64_t="yes"
17031 else
17032   echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17034
17035  ac_cv_have_int64_t="no"
17036
17037 fi
17038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17039
17040 fi
17041 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17042 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17043 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17044    cat >>confdefs.h <<\_ACEOF
17045 #define HAVE_INT64_T 1
17046 _ACEOF
17047
17048    have_int64_t=1
17049 fi
17050
17051 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17052 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17053 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17054   echo $ECHO_N "(cached) $ECHO_C" >&6
17055 else
17056
17057    cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h.  */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h.  */
17063  #include <sys/types.h>
17064 int
17065 main ()
17066 {
17067  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17068   ;
17069   return 0;
17070 }
17071 _ACEOF
17072 rm -f conftest.$ac_objext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17074   (eval $ac_compile) 2>conftest.er1
17075   ac_status=$?
17076   grep -v '^ *+' conftest.er1 >conftest.err
17077   rm -f conftest.er1
17078   cat conftest.err >&5
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); } &&
17081          { ac_try='test -z "$ac_c_werror_flag"
17082                          || test ! -s conftest.err'
17083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084   (eval $ac_try) 2>&5
17085   ac_status=$?
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); }; } &&
17088          { ac_try='test -s conftest.$ac_objext'
17089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090   (eval $ac_try) 2>&5
17091   ac_status=$?
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); }; }; then
17094    ac_cv_have_u_intxx_t="yes"
17095 else
17096   echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17098
17099  ac_cv_have_u_intxx_t="no"
17100
17101 fi
17102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17103
17104 fi
17105 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17106 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17107 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17108    cat >>confdefs.h <<\_ACEOF
17109 #define HAVE_U_INTXX_T 1
17110 _ACEOF
17111
17112    have_u_intxx_t=1
17113 fi
17114
17115 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17116 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17117 if test "${ac_cv_have_u_int64_t+set}" = set; then
17118   echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120
17121    cat >conftest.$ac_ext <<_ACEOF
17122 /* confdefs.h.  */
17123 _ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h.  */
17127  #include <sys/types.h>
17128 int
17129 main ()
17130 {
17131  u_int64_t a; a = 1;
17132   ;
17133   return 0;
17134 }
17135 _ACEOF
17136 rm -f conftest.$ac_objext
17137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17138   (eval $ac_compile) 2>conftest.er1
17139   ac_status=$?
17140   grep -v '^ *+' conftest.er1 >conftest.err
17141   rm -f conftest.er1
17142   cat conftest.err >&5
17143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144   (exit $ac_status); } &&
17145          { ac_try='test -z "$ac_c_werror_flag"
17146                          || test ! -s conftest.err'
17147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148   (eval $ac_try) 2>&5
17149   ac_status=$?
17150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151   (exit $ac_status); }; } &&
17152          { ac_try='test -s conftest.$ac_objext'
17153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154   (eval $ac_try) 2>&5
17155   ac_status=$?
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); }; }; then
17158    ac_cv_have_u_int64_t="yes"
17159 else
17160   echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17162
17163  ac_cv_have_u_int64_t="no"
17164
17165 fi
17166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17167
17168 fi
17169 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17170 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17171 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17172    cat >>confdefs.h <<\_ACEOF
17173 #define HAVE_U_INT64_T 1
17174 _ACEOF
17175
17176    have_u_int64_t=1
17177 fi
17178
17179 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17180            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17181 then
17182    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17183 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17184    cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h.  */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h.  */
17190  #include <sys/bitypes.h>
17191 int
17192 main ()
17193 {
17194  int8_t a; int16_t b; int32_t c;
17195         u_int8_t e; u_int16_t f; u_int32_t g;
17196         a = b = c = e = f = g = 1;
17197   ;
17198   return 0;
17199 }
17200 _ACEOF
17201 rm -f conftest.$ac_objext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17203   (eval $ac_compile) 2>conftest.er1
17204   ac_status=$?
17205   grep -v '^ *+' conftest.er1 >conftest.err
17206   rm -f conftest.er1
17207   cat conftest.err >&5
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); } &&
17210          { ac_try='test -z "$ac_c_werror_flag"
17211                          || test ! -s conftest.err'
17212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213   (eval $ac_try) 2>&5
17214   ac_status=$?
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); }; } &&
17217          { ac_try='test -s conftest.$ac_objext'
17218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219   (eval $ac_try) 2>&5
17220   ac_status=$?
17221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222   (exit $ac_status); }; }; then
17223    cat >>confdefs.h <<\_ACEOF
17224 #define HAVE_U_INTXX_T 1
17225 _ACEOF
17226
17227         cat >>confdefs.h <<\_ACEOF
17228 #define HAVE_INTXX_T 1
17229 _ACEOF
17230
17231         cat >>confdefs.h <<\_ACEOF
17232 #define HAVE_SYS_BITYPES_H 1
17233 _ACEOF
17234
17235         echo "$as_me:$LINENO: result: yes" >&5
17236 echo "${ECHO_T}yes" >&6
17237 else
17238   echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17240
17241  echo "$as_me:$LINENO: result: no" >&5
17242 echo "${ECHO_T}no" >&6
17243
17244 fi
17245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17246 fi
17247
17248 if test -z "$have_u_intxx_t" ; then
17249    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17250 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17251 if test "${ac_cv_have_uintxx_t+set}" = set; then
17252   echo $ECHO_N "(cached) $ECHO_C" >&6
17253 else
17254
17255       cat >conftest.$ac_ext <<_ACEOF
17256 /* confdefs.h.  */
17257 _ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h.  */
17261  #include <sys/types.h>
17262 int
17263 main ()
17264 {
17265  uint8_t a; uint16_t b;
17266            uint32_t c; a = b = c = 1;
17267   ;
17268   return 0;
17269 }
17270 _ACEOF
17271 rm -f conftest.$ac_objext
17272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17273   (eval $ac_compile) 2>conftest.er1
17274   ac_status=$?
17275   grep -v '^ *+' conftest.er1 >conftest.err
17276   rm -f conftest.er1
17277   cat conftest.err >&5
17278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279   (exit $ac_status); } &&
17280          { ac_try='test -z "$ac_c_werror_flag"
17281                          || test ! -s conftest.err'
17282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283   (eval $ac_try) 2>&5
17284   ac_status=$?
17285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286   (exit $ac_status); }; } &&
17287          { ac_try='test -s conftest.$ac_objext'
17288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289   (eval $ac_try) 2>&5
17290   ac_status=$?
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); }; }; then
17293    ac_cv_have_uintxx_t="yes"
17294 else
17295   echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17297
17298  ac_cv_have_uintxx_t="no"
17299
17300 fi
17301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17302
17303 fi
17304 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17305 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17306    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17307       cat >>confdefs.h <<\_ACEOF
17308 #define HAVE_UINTXX_T 1
17309 _ACEOF
17310
17311    fi
17312 fi
17313
17314 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17315           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17316 then
17317    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17318 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17319    cat >conftest.$ac_ext <<_ACEOF
17320 /* confdefs.h.  */
17321 _ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h.  */
17325  #include <sys/bitypes.h>
17326 int
17327 main ()
17328 {
17329  int64_t a; u_int64_t b;
17330        a = b = 1;
17331   ;
17332   return 0;
17333 }
17334 _ACEOF
17335 rm -f conftest.$ac_objext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17337   (eval $ac_compile) 2>conftest.er1
17338   ac_status=$?
17339   grep -v '^ *+' conftest.er1 >conftest.err
17340   rm -f conftest.er1
17341   cat conftest.err >&5
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); } &&
17344          { ac_try='test -z "$ac_c_werror_flag"
17345                          || test ! -s conftest.err'
17346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347   (eval $ac_try) 2>&5
17348   ac_status=$?
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); }; } &&
17351          { ac_try='test -s conftest.$ac_objext'
17352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353   (eval $ac_try) 2>&5
17354   ac_status=$?
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); }; }; then
17357    cat >>confdefs.h <<\_ACEOF
17358 #define HAVE_U_INT64_T 1
17359 _ACEOF
17360
17361        cat >>confdefs.h <<\_ACEOF
17362 #define HAVE_INT64_T 1
17363 _ACEOF
17364
17365        echo "$as_me:$LINENO: result: yes" >&5
17366 echo "${ECHO_T}yes" >&6
17367 else
17368   echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17370
17371  echo "$as_me:$LINENO: result: no" >&5
17372 echo "${ECHO_T}no" >&6
17373
17374 fi
17375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17376 fi
17377
17378 if (test -z "$have_uintxx_t" && \
17379           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17380 then
17381    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17382 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17383    cat >conftest.$ac_ext <<_ACEOF
17384 /* confdefs.h.  */
17385 _ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h.  */
17389  #include <sys/bitypes.h>
17390 int
17391 main ()
17392 {
17393  uint8_t a; uint16_t b;
17394           uint32_t c; a = b = c = 1;
17395   ;
17396   return 0;
17397 }
17398 _ACEOF
17399 rm -f conftest.$ac_objext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17401   (eval $ac_compile) 2>conftest.er1
17402   ac_status=$?
17403   grep -v '^ *+' conftest.er1 >conftest.err
17404   rm -f conftest.er1
17405   cat conftest.err >&5
17406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407   (exit $ac_status); } &&
17408          { ac_try='test -z "$ac_c_werror_flag"
17409                          || test ! -s conftest.err'
17410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411   (eval $ac_try) 2>&5
17412   ac_status=$?
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); }; } &&
17415          { ac_try='test -s conftest.$ac_objext'
17416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417   (eval $ac_try) 2>&5
17418   ac_status=$?
17419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420   (exit $ac_status); }; }; then
17421    cat >>confdefs.h <<\_ACEOF
17422 #define HAVE_UINTXX_T 1
17423 _ACEOF
17424
17425        echo "$as_me:$LINENO: result: yes" >&5
17426 echo "${ECHO_T}yes" >&6
17427 else
17428   echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17430
17431  echo "$as_me:$LINENO: result: no" >&5
17432 echo "${ECHO_T}no" >&6
17433
17434 fi
17435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17436
17437 fi
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455 for ac_func in \
17456         fork \
17457         getcwd \
17458         gethostname \
17459         getpid \
17460         gettimeofday \
17461         setpgid \
17462         setpgrp \
17463         setsid \
17464         signal \
17465         strerror \
17466         strncmp \
17467         strncpy \
17468         vfprintf \
17469
17470 do
17471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17472 echo "$as_me:$LINENO: checking for $ac_func" >&5
17473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17474 if eval "test \"\${$as_ac_var+set}\" = set"; then
17475   echo $ECHO_N "(cached) $ECHO_C" >&6
17476 else
17477   cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h.  */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h.  */
17483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17485 #define $ac_func innocuous_$ac_func
17486
17487 /* System header to define __stub macros and hopefully few prototypes,
17488     which can conflict with char $ac_func (); below.
17489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490     <limits.h> exists even on freestanding compilers.  */
17491
17492 #ifdef __STDC__
17493 # include <limits.h>
17494 #else
17495 # include <assert.h>
17496 #endif
17497
17498 #undef $ac_func
17499
17500 /* Override any gcc2 internal prototype to avoid an error.  */
17501 #ifdef __cplusplus
17502 extern "C"
17503 {
17504 #endif
17505 /* We use char because int might match the return type of a gcc2
17506    builtin and then its argument prototype would still apply.  */
17507 char $ac_func ();
17508 /* The GNU C library defines this for functions which it implements
17509     to always fail with ENOSYS.  Some functions are actually named
17510     something starting with __ and the normal name is an alias.  */
17511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17512 choke me
17513 #else
17514 char (*f) () = $ac_func;
17515 #endif
17516 #ifdef __cplusplus
17517 }
17518 #endif
17519
17520 int
17521 main ()
17522 {
17523 return f != $ac_func;
17524   ;
17525   return 0;
17526 }
17527 _ACEOF
17528 rm -f conftest.$ac_objext conftest$ac_exeext
17529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530   (eval $ac_link) 2>conftest.er1
17531   ac_status=$?
17532   grep -v '^ *+' conftest.er1 >conftest.err
17533   rm -f conftest.er1
17534   cat conftest.err >&5
17535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536   (exit $ac_status); } &&
17537          { ac_try='test -z "$ac_c_werror_flag"
17538                          || test ! -s conftest.err'
17539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540   (eval $ac_try) 2>&5
17541   ac_status=$?
17542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543   (exit $ac_status); }; } &&
17544          { ac_try='test -s conftest$ac_exeext'
17545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546   (eval $ac_try) 2>&5
17547   ac_status=$?
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); }; }; then
17550   eval "$as_ac_var=yes"
17551 else
17552   echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17554
17555 eval "$as_ac_var=no"
17556 fi
17557 rm -f conftest.err conftest.$ac_objext \
17558       conftest$ac_exeext conftest.$ac_ext
17559 fi
17560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17562 if test `eval echo '${'$as_ac_var'}'` = yes; then
17563   cat >>confdefs.h <<_ACEOF
17564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17565 _ACEOF
17566
17567 else
17568   echo 'configure: cannot find needed function.'; exit 1
17569
17570 fi
17571 done
17572
17573
17574
17575 for ac_func in fchdir
17576 do
17577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17578 echo "$as_me:$LINENO: checking for $ac_func" >&5
17579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17580 if eval "test \"\${$as_ac_var+set}\" = set"; then
17581   echo $ECHO_N "(cached) $ECHO_C" >&6
17582 else
17583   cat >conftest.$ac_ext <<_ACEOF
17584 /* confdefs.h.  */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h.  */
17589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17591 #define $ac_func innocuous_$ac_func
17592
17593 /* System header to define __stub macros and hopefully few prototypes,
17594     which can conflict with char $ac_func (); below.
17595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17596     <limits.h> exists even on freestanding compilers.  */
17597
17598 #ifdef __STDC__
17599 # include <limits.h>
17600 #else
17601 # include <assert.h>
17602 #endif
17603
17604 #undef $ac_func
17605
17606 /* Override any gcc2 internal prototype to avoid an error.  */
17607 #ifdef __cplusplus
17608 extern "C"
17609 {
17610 #endif
17611 /* We use char because int might match the return type of a gcc2
17612    builtin and then its argument prototype would still apply.  */
17613 char $ac_func ();
17614 /* The GNU C library defines this for functions which it implements
17615     to always fail with ENOSYS.  Some functions are actually named
17616     something starting with __ and the normal name is an alias.  */
17617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17618 choke me
17619 #else
17620 char (*f) () = $ac_func;
17621 #endif
17622 #ifdef __cplusplus
17623 }
17624 #endif
17625
17626 int
17627 main ()
17628 {
17629 return f != $ac_func;
17630   ;
17631   return 0;
17632 }
17633 _ACEOF
17634 rm -f conftest.$ac_objext conftest$ac_exeext
17635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17636   (eval $ac_link) 2>conftest.er1
17637   ac_status=$?
17638   grep -v '^ *+' conftest.er1 >conftest.err
17639   rm -f conftest.er1
17640   cat conftest.err >&5
17641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); } &&
17643          { ac_try='test -z "$ac_c_werror_flag"
17644                          || test ! -s conftest.err'
17645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646   (eval $ac_try) 2>&5
17647   ac_status=$?
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); }; } &&
17650          { ac_try='test -s conftest$ac_exeext'
17651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652   (eval $ac_try) 2>&5
17653   ac_status=$?
17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655   (exit $ac_status); }; }; then
17656   eval "$as_ac_var=yes"
17657 else
17658   echo "$as_me: failed program was:" >&5
17659 sed 's/^/| /' conftest.$ac_ext >&5
17660
17661 eval "$as_ac_var=no"
17662 fi
17663 rm -f conftest.err conftest.$ac_objext \
17664       conftest$ac_exeext conftest.$ac_ext
17665 fi
17666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17668 if test `eval echo '${'$as_ac_var'}'` = yes; then
17669   cat >>confdefs.h <<_ACEOF
17670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17671 _ACEOF
17672  cat >>confdefs.h <<\_ACEOF
17673 #define HAVE_FCHDIR 1
17674 _ACEOF
17675
17676 fi
17677 done
17678
17679
17680 for ac_func in strtoll
17681 do
17682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17683 echo "$as_me:$LINENO: checking for $ac_func" >&5
17684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17685 if eval "test \"\${$as_ac_var+set}\" = set"; then
17686   echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688   cat >conftest.$ac_ext <<_ACEOF
17689 /* confdefs.h.  */
17690 _ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h.  */
17694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17696 #define $ac_func innocuous_$ac_func
17697
17698 /* System header to define __stub macros and hopefully few prototypes,
17699     which can conflict with char $ac_func (); below.
17700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17701     <limits.h> exists even on freestanding compilers.  */
17702
17703 #ifdef __STDC__
17704 # include <limits.h>
17705 #else
17706 # include <assert.h>
17707 #endif
17708
17709 #undef $ac_func
17710
17711 /* Override any gcc2 internal prototype to avoid an error.  */
17712 #ifdef __cplusplus
17713 extern "C"
17714 {
17715 #endif
17716 /* We use char because int might match the return type of a gcc2
17717    builtin and then its argument prototype would still apply.  */
17718 char $ac_func ();
17719 /* The GNU C library defines this for functions which it implements
17720     to always fail with ENOSYS.  Some functions are actually named
17721     something starting with __ and the normal name is an alias.  */
17722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17723 choke me
17724 #else
17725 char (*f) () = $ac_func;
17726 #endif
17727 #ifdef __cplusplus
17728 }
17729 #endif
17730
17731 int
17732 main ()
17733 {
17734 return f != $ac_func;
17735   ;
17736   return 0;
17737 }
17738 _ACEOF
17739 rm -f conftest.$ac_objext conftest$ac_exeext
17740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17741   (eval $ac_link) 2>conftest.er1
17742   ac_status=$?
17743   grep -v '^ *+' conftest.er1 >conftest.err
17744   rm -f conftest.er1
17745   cat conftest.err >&5
17746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); } &&
17748          { ac_try='test -z "$ac_c_werror_flag"
17749                          || test ! -s conftest.err'
17750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751   (eval $ac_try) 2>&5
17752   ac_status=$?
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); }; } &&
17755          { ac_try='test -s conftest$ac_exeext'
17756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757   (eval $ac_try) 2>&5
17758   ac_status=$?
17759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760   (exit $ac_status); }; }; then
17761   eval "$as_ac_var=yes"
17762 else
17763   echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17765
17766 eval "$as_ac_var=no"
17767 fi
17768 rm -f conftest.err conftest.$ac_objext \
17769       conftest$ac_exeext conftest.$ac_ext
17770 fi
17771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17773 if test `eval echo '${'$as_ac_var'}'` = yes; then
17774   cat >>confdefs.h <<_ACEOF
17775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17776 _ACEOF
17777  cat >>confdefs.h <<\_ACEOF
17778 #define HAVE_STRTOLL 1
17779 _ACEOF
17780
17781 fi
17782 done
17783
17784
17785
17786 for ac_func in chflags
17787 do
17788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17789 echo "$as_me:$LINENO: checking for $ac_func" >&5
17790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17791 if eval "test \"\${$as_ac_var+set}\" = set"; then
17792   echo $ECHO_N "(cached) $ECHO_C" >&6
17793 else
17794   cat >conftest.$ac_ext <<_ACEOF
17795 /* confdefs.h.  */
17796 _ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h.  */
17800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17802 #define $ac_func innocuous_$ac_func
17803
17804 /* System header to define __stub macros and hopefully few prototypes,
17805     which can conflict with char $ac_func (); below.
17806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17807     <limits.h> exists even on freestanding compilers.  */
17808
17809 #ifdef __STDC__
17810 # include <limits.h>
17811 #else
17812 # include <assert.h>
17813 #endif
17814
17815 #undef $ac_func
17816
17817 /* Override any gcc2 internal prototype to avoid an error.  */
17818 #ifdef __cplusplus
17819 extern "C"
17820 {
17821 #endif
17822 /* We use char because int might match the return type of a gcc2
17823    builtin and then its argument prototype would still apply.  */
17824 char $ac_func ();
17825 /* The GNU C library defines this for functions which it implements
17826     to always fail with ENOSYS.  Some functions are actually named
17827     something starting with __ and the normal name is an alias.  */
17828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17829 choke me
17830 #else
17831 char (*f) () = $ac_func;
17832 #endif
17833 #ifdef __cplusplus
17834 }
17835 #endif
17836
17837 int
17838 main ()
17839 {
17840 return f != $ac_func;
17841   ;
17842   return 0;
17843 }
17844 _ACEOF
17845 rm -f conftest.$ac_objext conftest$ac_exeext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847   (eval $ac_link) 2>conftest.er1
17848   ac_status=$?
17849   grep -v '^ *+' conftest.er1 >conftest.err
17850   rm -f conftest.er1
17851   cat conftest.err >&5
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); } &&
17854          { ac_try='test -z "$ac_c_werror_flag"
17855                          || test ! -s conftest.err'
17856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857   (eval $ac_try) 2>&5
17858   ac_status=$?
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); }; } &&
17861          { ac_try='test -s conftest$ac_exeext'
17862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863   (eval $ac_try) 2>&5
17864   ac_status=$?
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); }; }; then
17867   eval "$as_ac_var=yes"
17868 else
17869   echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17871
17872 eval "$as_ac_var=no"
17873 fi
17874 rm -f conftest.err conftest.$ac_objext \
17875       conftest$ac_exeext conftest.$ac_ext
17876 fi
17877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17879 if test `eval echo '${'$as_ac_var'}'` = yes; then
17880   cat >>confdefs.h <<_ACEOF
17881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17882 _ACEOF
17883
17884 fi
17885 done
17886
17887
17888
17889
17890
17891
17892 for ac_func in snprintf vsnprintf gethostid fseeko
17893 do
17894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17895 echo "$as_me:$LINENO: checking for $ac_func" >&5
17896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17897 if eval "test \"\${$as_ac_var+set}\" = set"; then
17898   echo $ECHO_N "(cached) $ECHO_C" >&6
17899 else
17900   cat >conftest.$ac_ext <<_ACEOF
17901 /* confdefs.h.  */
17902 _ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h.  */
17906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17908 #define $ac_func innocuous_$ac_func
17909
17910 /* System header to define __stub macros and hopefully few prototypes,
17911     which can conflict with char $ac_func (); below.
17912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17913     <limits.h> exists even on freestanding compilers.  */
17914
17915 #ifdef __STDC__
17916 # include <limits.h>
17917 #else
17918 # include <assert.h>
17919 #endif
17920
17921 #undef $ac_func
17922
17923 /* Override any gcc2 internal prototype to avoid an error.  */
17924 #ifdef __cplusplus
17925 extern "C"
17926 {
17927 #endif
17928 /* We use char because int might match the return type of a gcc2
17929    builtin and then its argument prototype would still apply.  */
17930 char $ac_func ();
17931 /* The GNU C library defines this for functions which it implements
17932     to always fail with ENOSYS.  Some functions are actually named
17933     something starting with __ and the normal name is an alias.  */
17934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17935 choke me
17936 #else
17937 char (*f) () = $ac_func;
17938 #endif
17939 #ifdef __cplusplus
17940 }
17941 #endif
17942
17943 int
17944 main ()
17945 {
17946 return f != $ac_func;
17947   ;
17948   return 0;
17949 }
17950 _ACEOF
17951 rm -f conftest.$ac_objext conftest$ac_exeext
17952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17953   (eval $ac_link) 2>conftest.er1
17954   ac_status=$?
17955   grep -v '^ *+' conftest.er1 >conftest.err
17956   rm -f conftest.er1
17957   cat conftest.err >&5
17958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); } &&
17960          { ac_try='test -z "$ac_c_werror_flag"
17961                          || test ! -s conftest.err'
17962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963   (eval $ac_try) 2>&5
17964   ac_status=$?
17965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966   (exit $ac_status); }; } &&
17967          { ac_try='test -s conftest$ac_exeext'
17968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969   (eval $ac_try) 2>&5
17970   ac_status=$?
17971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972   (exit $ac_status); }; }; then
17973   eval "$as_ac_var=yes"
17974 else
17975   echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17977
17978 eval "$as_ac_var=no"
17979 fi
17980 rm -f conftest.err conftest.$ac_objext \
17981       conftest$ac_exeext conftest.$ac_ext
17982 fi
17983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17985 if test `eval echo '${'$as_ac_var'}'` = yes; then
17986   cat >>confdefs.h <<_ACEOF
17987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17988 _ACEOF
17989
17990 fi
17991 done
17992
17993
17994
17995
17996
17997
17998 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
17999 do
18000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18001 echo "$as_me:$LINENO: checking for $ac_func" >&5
18002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18003 if eval "test \"\${$as_ac_var+set}\" = set"; then
18004   echo $ECHO_N "(cached) $ECHO_C" >&6
18005 else
18006   cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h.  */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h.  */
18012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18014 #define $ac_func innocuous_$ac_func
18015
18016 /* System header to define __stub macros and hopefully few prototypes,
18017     which can conflict with char $ac_func (); below.
18018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18019     <limits.h> exists even on freestanding compilers.  */
18020
18021 #ifdef __STDC__
18022 # include <limits.h>
18023 #else
18024 # include <assert.h>
18025 #endif
18026
18027 #undef $ac_func
18028
18029 /* Override any gcc2 internal prototype to avoid an error.  */
18030 #ifdef __cplusplus
18031 extern "C"
18032 {
18033 #endif
18034 /* We use char because int might match the return type of a gcc2
18035    builtin and then its argument prototype would still apply.  */
18036 char $ac_func ();
18037 /* The GNU C library defines this for functions which it implements
18038     to always fail with ENOSYS.  Some functions are actually named
18039     something starting with __ and the normal name is an alias.  */
18040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18041 choke me
18042 #else
18043 char (*f) () = $ac_func;
18044 #endif
18045 #ifdef __cplusplus
18046 }
18047 #endif
18048
18049 int
18050 main ()
18051 {
18052 return f != $ac_func;
18053   ;
18054   return 0;
18055 }
18056 _ACEOF
18057 rm -f conftest.$ac_objext conftest$ac_exeext
18058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18059   (eval $ac_link) 2>conftest.er1
18060   ac_status=$?
18061   grep -v '^ *+' conftest.er1 >conftest.err
18062   rm -f conftest.er1
18063   cat conftest.err >&5
18064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065   (exit $ac_status); } &&
18066          { ac_try='test -z "$ac_c_werror_flag"
18067                          || test ! -s conftest.err'
18068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069   (eval $ac_try) 2>&5
18070   ac_status=$?
18071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072   (exit $ac_status); }; } &&
18073          { ac_try='test -s conftest$ac_exeext'
18074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075   (eval $ac_try) 2>&5
18076   ac_status=$?
18077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078   (exit $ac_status); }; }; then
18079   eval "$as_ac_var=yes"
18080 else
18081   echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18083
18084 eval "$as_ac_var=no"
18085 fi
18086 rm -f conftest.err conftest.$ac_objext \
18087       conftest$ac_exeext conftest.$ac_ext
18088 fi
18089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18091 if test `eval echo '${'$as_ac_var'}'` = yes; then
18092   cat >>confdefs.h <<_ACEOF
18093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18094 _ACEOF
18095
18096 fi
18097 done
18098
18099
18100 # If resolver functions are not in libc check for -lnsl or -lresolv.
18101 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18102 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18103 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18104   echo $ECHO_N "(cached) $ECHO_C" >&6
18105 else
18106   cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h.  */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h.  */
18112 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18114 #define gethostbyname_r innocuous_gethostbyname_r
18115
18116 /* System header to define __stub macros and hopefully few prototypes,
18117     which can conflict with char gethostbyname_r (); below.
18118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18119     <limits.h> exists even on freestanding compilers.  */
18120
18121 #ifdef __STDC__
18122 # include <limits.h>
18123 #else
18124 # include <assert.h>
18125 #endif
18126
18127 #undef gethostbyname_r
18128
18129 /* Override any gcc2 internal prototype to avoid an error.  */
18130 #ifdef __cplusplus
18131 extern "C"
18132 {
18133 #endif
18134 /* We use char because int might match the return type of a gcc2
18135    builtin and then its argument prototype would still apply.  */
18136 char gethostbyname_r ();
18137 /* The GNU C library defines this for functions which it implements
18138     to always fail with ENOSYS.  Some functions are actually named
18139     something starting with __ and the normal name is an alias.  */
18140 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18141 choke me
18142 #else
18143 char (*f) () = gethostbyname_r;
18144 #endif
18145 #ifdef __cplusplus
18146 }
18147 #endif
18148
18149 int
18150 main ()
18151 {
18152 return f != gethostbyname_r;
18153   ;
18154   return 0;
18155 }
18156 _ACEOF
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18159   (eval $ac_link) 2>conftest.er1
18160   ac_status=$?
18161   grep -v '^ *+' conftest.er1 >conftest.err
18162   rm -f conftest.er1
18163   cat conftest.err >&5
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); } &&
18166          { ac_try='test -z "$ac_c_werror_flag"
18167                          || test ! -s conftest.err'
18168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169   (eval $ac_try) 2>&5
18170   ac_status=$?
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); }; } &&
18173          { ac_try='test -s conftest$ac_exeext'
18174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175   (eval $ac_try) 2>&5
18176   ac_status=$?
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); }; }; then
18179   ac_cv_func_gethostbyname_r=yes
18180 else
18181   echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18183
18184 ac_cv_func_gethostbyname_r=no
18185 fi
18186 rm -f conftest.err conftest.$ac_objext \
18187       conftest$ac_exeext conftest.$ac_ext
18188 fi
18189 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18190 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18191 if test $ac_cv_func_gethostbyname_r = yes; then
18192   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18193 echo "${ECHO_T}using libc's resolver" >&6
18194 else
18195
18196 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18197 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18198 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18199   echo $ECHO_N "(cached) $ECHO_C" >&6
18200 else
18201   ac_check_lib_save_LIBS=$LIBS
18202 LIBS="-lnsl  $LIBS"
18203 cat >conftest.$ac_ext <<_ACEOF
18204 /* confdefs.h.  */
18205 _ACEOF
18206 cat confdefs.h >>conftest.$ac_ext
18207 cat >>conftest.$ac_ext <<_ACEOF
18208 /* end confdefs.h.  */
18209
18210 /* Override any gcc2 internal prototype to avoid an error.  */
18211 #ifdef __cplusplus
18212 extern "C"
18213 #endif
18214 /* We use char because int might match the return type of a gcc2
18215    builtin and then its argument prototype would still apply.  */
18216 char gethostbyname_r ();
18217 int
18218 main ()
18219 {
18220 gethostbyname_r ();
18221   ;
18222   return 0;
18223 }
18224 _ACEOF
18225 rm -f conftest.$ac_objext conftest$ac_exeext
18226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18227   (eval $ac_link) 2>conftest.er1
18228   ac_status=$?
18229   grep -v '^ *+' conftest.er1 >conftest.err
18230   rm -f conftest.er1
18231   cat conftest.err >&5
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); } &&
18234          { ac_try='test -z "$ac_c_werror_flag"
18235                          || test ! -s conftest.err'
18236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237   (eval $ac_try) 2>&5
18238   ac_status=$?
18239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240   (exit $ac_status); }; } &&
18241          { ac_try='test -s conftest$ac_exeext'
18242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243   (eval $ac_try) 2>&5
18244   ac_status=$?
18245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); }; }; then
18247   ac_cv_lib_nsl_gethostbyname_r=yes
18248 else
18249   echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252 ac_cv_lib_nsl_gethostbyname_r=no
18253 fi
18254 rm -f conftest.err conftest.$ac_objext \
18255       conftest$ac_exeext conftest.$ac_ext
18256 LIBS=$ac_check_lib_save_LIBS
18257 fi
18258 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18259 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18260 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18261   cat >>confdefs.h <<_ACEOF
18262 #define HAVE_LIBNSL 1
18263 _ACEOF
18264
18265   LIBS="-lnsl $LIBS"
18266
18267 fi
18268
18269
18270 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18271 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18272 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18273   echo $ECHO_N "(cached) $ECHO_C" >&6
18274 else
18275   ac_check_lib_save_LIBS=$LIBS
18276 LIBS="-lresolv  $LIBS"
18277 cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h.  */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h.  */
18283
18284 /* Override any gcc2 internal prototype to avoid an error.  */
18285 #ifdef __cplusplus
18286 extern "C"
18287 #endif
18288 /* We use char because int might match the return type of a gcc2
18289    builtin and then its argument prototype would still apply.  */
18290 char gethostbyname_r ();
18291 int
18292 main ()
18293 {
18294 gethostbyname_r ();
18295   ;
18296   return 0;
18297 }
18298 _ACEOF
18299 rm -f conftest.$ac_objext conftest$ac_exeext
18300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18301   (eval $ac_link) 2>conftest.er1
18302   ac_status=$?
18303   grep -v '^ *+' conftest.er1 >conftest.err
18304   rm -f conftest.er1
18305   cat conftest.err >&5
18306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307   (exit $ac_status); } &&
18308          { ac_try='test -z "$ac_c_werror_flag"
18309                          || test ! -s conftest.err'
18310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311   (eval $ac_try) 2>&5
18312   ac_status=$?
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); }; } &&
18315          { ac_try='test -s conftest$ac_exeext'
18316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317   (eval $ac_try) 2>&5
18318   ac_status=$?
18319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320   (exit $ac_status); }; }; then
18321   ac_cv_lib_resolv_gethostbyname_r=yes
18322 else
18323   echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18325
18326 ac_cv_lib_resolv_gethostbyname_r=no
18327 fi
18328 rm -f conftest.err conftest.$ac_objext \
18329       conftest$ac_exeext conftest.$ac_ext
18330 LIBS=$ac_check_lib_save_LIBS
18331 fi
18332 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18333 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18334 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18335   cat >>confdefs.h <<_ACEOF
18336 #define HAVE_LIBRESOLV 1
18337 _ACEOF
18338
18339   LIBS="-lresolv $LIBS"
18340
18341 fi
18342
18343 fi
18344
18345
18346
18347
18348
18349 for ac_func in inet_pton
18350 do
18351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18352 echo "$as_me:$LINENO: checking for $ac_func" >&5
18353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18354 if eval "test \"\${$as_ac_var+set}\" = set"; then
18355   echo $ECHO_N "(cached) $ECHO_C" >&6
18356 else
18357   cat >conftest.$ac_ext <<_ACEOF
18358 /* confdefs.h.  */
18359 _ACEOF
18360 cat confdefs.h >>conftest.$ac_ext
18361 cat >>conftest.$ac_ext <<_ACEOF
18362 /* end confdefs.h.  */
18363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18365 #define $ac_func innocuous_$ac_func
18366
18367 /* System header to define __stub macros and hopefully few prototypes,
18368     which can conflict with char $ac_func (); below.
18369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18370     <limits.h> exists even on freestanding compilers.  */
18371
18372 #ifdef __STDC__
18373 # include <limits.h>
18374 #else
18375 # include <assert.h>
18376 #endif
18377
18378 #undef $ac_func
18379
18380 /* Override any gcc2 internal prototype to avoid an error.  */
18381 #ifdef __cplusplus
18382 extern "C"
18383 {
18384 #endif
18385 /* We use char because int might match the return type of a gcc2
18386    builtin and then its argument prototype would still apply.  */
18387 char $ac_func ();
18388 /* The GNU C library defines this for functions which it implements
18389     to always fail with ENOSYS.  Some functions are actually named
18390     something starting with __ and the normal name is an alias.  */
18391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18392 choke me
18393 #else
18394 char (*f) () = $ac_func;
18395 #endif
18396 #ifdef __cplusplus
18397 }
18398 #endif
18399
18400 int
18401 main ()
18402 {
18403 return f != $ac_func;
18404   ;
18405   return 0;
18406 }
18407 _ACEOF
18408 rm -f conftest.$ac_objext conftest$ac_exeext
18409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18410   (eval $ac_link) 2>conftest.er1
18411   ac_status=$?
18412   grep -v '^ *+' conftest.er1 >conftest.err
18413   rm -f conftest.er1
18414   cat conftest.err >&5
18415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416   (exit $ac_status); } &&
18417          { ac_try='test -z "$ac_c_werror_flag"
18418                          || test ! -s conftest.err'
18419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420   (eval $ac_try) 2>&5
18421   ac_status=$?
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); }; } &&
18424          { ac_try='test -s conftest$ac_exeext'
18425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426   (eval $ac_try) 2>&5
18427   ac_status=$?
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); }; }; then
18430   eval "$as_ac_var=yes"
18431 else
18432   echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18434
18435 eval "$as_ac_var=no"
18436 fi
18437 rm -f conftest.err conftest.$ac_objext \
18438       conftest$ac_exeext conftest.$ac_ext
18439 fi
18440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18442 if test `eval echo '${'$as_ac_var'}'` = yes; then
18443   cat >>confdefs.h <<_ACEOF
18444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18445 _ACEOF
18446  cat >>confdefs.h <<\_ACEOF
18447 #define HAVE_INET_PTON 1
18448 _ACEOF
18449
18450 fi
18451 done
18452
18453
18454 for ac_func in inet_ntop
18455 do
18456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18457 echo "$as_me:$LINENO: checking for $ac_func" >&5
18458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18459 if eval "test \"\${$as_ac_var+set}\" = set"; then
18460   echo $ECHO_N "(cached) $ECHO_C" >&6
18461 else
18462   cat >conftest.$ac_ext <<_ACEOF
18463 /* confdefs.h.  */
18464 _ACEOF
18465 cat confdefs.h >>conftest.$ac_ext
18466 cat >>conftest.$ac_ext <<_ACEOF
18467 /* end confdefs.h.  */
18468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18470 #define $ac_func innocuous_$ac_func
18471
18472 /* System header to define __stub macros and hopefully few prototypes,
18473     which can conflict with char $ac_func (); below.
18474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18475     <limits.h> exists even on freestanding compilers.  */
18476
18477 #ifdef __STDC__
18478 # include <limits.h>
18479 #else
18480 # include <assert.h>
18481 #endif
18482
18483 #undef $ac_func
18484
18485 /* Override any gcc2 internal prototype to avoid an error.  */
18486 #ifdef __cplusplus
18487 extern "C"
18488 {
18489 #endif
18490 /* We use char because int might match the return type of a gcc2
18491    builtin and then its argument prototype would still apply.  */
18492 char $ac_func ();
18493 /* The GNU C library defines this for functions which it implements
18494     to always fail with ENOSYS.  Some functions are actually named
18495     something starting with __ and the normal name is an alias.  */
18496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18497 choke me
18498 #else
18499 char (*f) () = $ac_func;
18500 #endif
18501 #ifdef __cplusplus
18502 }
18503 #endif
18504
18505 int
18506 main ()
18507 {
18508 return f != $ac_func;
18509   ;
18510   return 0;
18511 }
18512 _ACEOF
18513 rm -f conftest.$ac_objext conftest$ac_exeext
18514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18515   (eval $ac_link) 2>conftest.er1
18516   ac_status=$?
18517   grep -v '^ *+' conftest.er1 >conftest.err
18518   rm -f conftest.er1
18519   cat conftest.err >&5
18520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521   (exit $ac_status); } &&
18522          { ac_try='test -z "$ac_c_werror_flag"
18523                          || test ! -s conftest.err'
18524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525   (eval $ac_try) 2>&5
18526   ac_status=$?
18527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528   (exit $ac_status); }; } &&
18529          { ac_try='test -s conftest$ac_exeext'
18530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531   (eval $ac_try) 2>&5
18532   ac_status=$?
18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534   (exit $ac_status); }; }; then
18535   eval "$as_ac_var=yes"
18536 else
18537   echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18539
18540 eval "$as_ac_var=no"
18541 fi
18542 rm -f conftest.err conftest.$ac_objext \
18543       conftest$ac_exeext conftest.$ac_ext
18544 fi
18545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18547 if test `eval echo '${'$as_ac_var'}'` = yes; then
18548   cat >>confdefs.h <<_ACEOF
18549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18550 _ACEOF
18551  cat >>confdefs.h <<\_ACEOF
18552 #define HAVE_INET_NTOP 1
18553 _ACEOF
18554
18555 fi
18556 done
18557
18558
18559 for ac_func in gethostbyname2
18560 do
18561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18562 echo "$as_me:$LINENO: checking for $ac_func" >&5
18563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18564 if eval "test \"\${$as_ac_var+set}\" = set"; then
18565   echo $ECHO_N "(cached) $ECHO_C" >&6
18566 else
18567   cat >conftest.$ac_ext <<_ACEOF
18568 /* confdefs.h.  */
18569 _ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h.  */
18573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18575 #define $ac_func innocuous_$ac_func
18576
18577 /* System header to define __stub macros and hopefully few prototypes,
18578     which can conflict with char $ac_func (); below.
18579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18580     <limits.h> exists even on freestanding compilers.  */
18581
18582 #ifdef __STDC__
18583 # include <limits.h>
18584 #else
18585 # include <assert.h>
18586 #endif
18587
18588 #undef $ac_func
18589
18590 /* Override any gcc2 internal prototype to avoid an error.  */
18591 #ifdef __cplusplus
18592 extern "C"
18593 {
18594 #endif
18595 /* We use char because int might match the return type of a gcc2
18596    builtin and then its argument prototype would still apply.  */
18597 char $ac_func ();
18598 /* The GNU C library defines this for functions which it implements
18599     to always fail with ENOSYS.  Some functions are actually named
18600     something starting with __ and the normal name is an alias.  */
18601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18602 choke me
18603 #else
18604 char (*f) () = $ac_func;
18605 #endif
18606 #ifdef __cplusplus
18607 }
18608 #endif
18609
18610 int
18611 main ()
18612 {
18613 return f != $ac_func;
18614   ;
18615   return 0;
18616 }
18617 _ACEOF
18618 rm -f conftest.$ac_objext conftest$ac_exeext
18619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18620   (eval $ac_link) 2>conftest.er1
18621   ac_status=$?
18622   grep -v '^ *+' conftest.er1 >conftest.err
18623   rm -f conftest.er1
18624   cat conftest.err >&5
18625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626   (exit $ac_status); } &&
18627          { ac_try='test -z "$ac_c_werror_flag"
18628                          || test ! -s conftest.err'
18629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630   (eval $ac_try) 2>&5
18631   ac_status=$?
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); }; } &&
18634          { ac_try='test -s conftest$ac_exeext'
18635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636   (eval $ac_try) 2>&5
18637   ac_status=$?
18638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639   (exit $ac_status); }; }; then
18640   eval "$as_ac_var=yes"
18641 else
18642   echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18644
18645 eval "$as_ac_var=no"
18646 fi
18647 rm -f conftest.err conftest.$ac_objext \
18648       conftest$ac_exeext conftest.$ac_ext
18649 fi
18650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18652 if test `eval echo '${'$as_ac_var'}'` = yes; then
18653   cat >>confdefs.h <<_ACEOF
18654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18655 _ACEOF
18656  cat >>confdefs.h <<\_ACEOF
18657 #define HAVE_GETHOSTBYNAME2 1
18658 _ACEOF
18659
18660 fi
18661 done
18662
18663
18664 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18665 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18666 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18667   echo $ECHO_N "(cached) $ECHO_C" >&6
18668 else
18669   cat >conftest.$ac_ext <<_ACEOF
18670 /* confdefs.h.  */
18671 _ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h.  */
18675 #include <sys/socket.h>
18676 int
18677 main ()
18678 {
18679 struct sockaddr s; s.sa_len;
18680   ;
18681   return 0;
18682 }
18683 _ACEOF
18684 rm -f conftest.$ac_objext
18685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18686   (eval $ac_compile) 2>conftest.er1
18687   ac_status=$?
18688   grep -v '^ *+' conftest.er1 >conftest.err
18689   rm -f conftest.er1
18690   cat conftest.err >&5
18691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692   (exit $ac_status); } &&
18693          { ac_try='test -z "$ac_c_werror_flag"
18694                          || test ! -s conftest.err'
18695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696   (eval $ac_try) 2>&5
18697   ac_status=$?
18698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699   (exit $ac_status); }; } &&
18700          { ac_try='test -s conftest.$ac_objext'
18701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702   (eval $ac_try) 2>&5
18703   ac_status=$?
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); }; }; then
18706   ac_cv_struct_sockaddr_sa_len=yes
18707 else
18708   echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18710
18711 ac_cv_struct_sockaddr_sa_len=no
18712 fi
18713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18714 fi
18715 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18716 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18717
18718  if test $ac_cv_struct_sockaddr_sa_len = yes; then
18719
18720 cat >>confdefs.h <<\_ACEOF
18721 #define HAVE_SA_LEN 1
18722 _ACEOF
18723
18724  fi
18725
18726
18727 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18728 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18729 if test "${ac_cv_ipv6_support+set}" = set; then
18730   echo $ECHO_N "(cached) $ECHO_C" >&6
18731 else
18732   cat >conftest.$ac_ext <<_ACEOF
18733 /* confdefs.h.  */
18734 _ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h.  */
18738  #include <sys/types.h>
18739 #include <sys/socket.h>
18740 #include <netinet/in.h>
18741 int
18742 main ()
18743 {
18744 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18745  0;
18746   ;
18747   return 0;
18748 }
18749 _ACEOF
18750 rm -f conftest.$ac_objext conftest$ac_exeext
18751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18752   (eval $ac_link) 2>conftest.er1
18753   ac_status=$?
18754   grep -v '^ *+' conftest.er1 >conftest.err
18755   rm -f conftest.er1
18756   cat conftest.err >&5
18757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758   (exit $ac_status); } &&
18759          { ac_try='test -z "$ac_c_werror_flag"
18760                          || test ! -s conftest.err'
18761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762   (eval $ac_try) 2>&5
18763   ac_status=$?
18764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765   (exit $ac_status); }; } &&
18766          { ac_try='test -s conftest$ac_exeext'
18767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768   (eval $ac_try) 2>&5
18769   ac_status=$?
18770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771   (exit $ac_status); }; }; then
18772   ac_cv_ipv6_support=yes
18773 else
18774   echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18776
18777 ac_cv_ipv6_support=no
18778 fi
18779 rm -f conftest.err conftest.$ac_objext \
18780       conftest$ac_exeext conftest.$ac_ext
18781 fi
18782 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
18783 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
18784
18785 if test "$ac_cv_ipv6_support" = yes; then
18786
18787 cat >>confdefs.h <<\_ACEOF
18788 #define HAVE_IPV6 1
18789 _ACEOF
18790
18791 fi
18792
18793
18794
18795
18796 for ac_func in strftime
18797 do
18798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18799 echo "$as_me:$LINENO: checking for $ac_func" >&5
18800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18801 if eval "test \"\${$as_ac_var+set}\" = set"; then
18802   echo $ECHO_N "(cached) $ECHO_C" >&6
18803 else
18804   cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h.  */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h.  */
18810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18812 #define $ac_func innocuous_$ac_func
18813
18814 /* System header to define __stub macros and hopefully few prototypes,
18815     which can conflict with char $ac_func (); below.
18816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18817     <limits.h> exists even on freestanding compilers.  */
18818
18819 #ifdef __STDC__
18820 # include <limits.h>
18821 #else
18822 # include <assert.h>
18823 #endif
18824
18825 #undef $ac_func
18826
18827 /* Override any gcc2 internal prototype to avoid an error.  */
18828 #ifdef __cplusplus
18829 extern "C"
18830 {
18831 #endif
18832 /* We use char because int might match the return type of a gcc2
18833    builtin and then its argument prototype would still apply.  */
18834 char $ac_func ();
18835 /* The GNU C library defines this for functions which it implements
18836     to always fail with ENOSYS.  Some functions are actually named
18837     something starting with __ and the normal name is an alias.  */
18838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18839 choke me
18840 #else
18841 char (*f) () = $ac_func;
18842 #endif
18843 #ifdef __cplusplus
18844 }
18845 #endif
18846
18847 int
18848 main ()
18849 {
18850 return f != $ac_func;
18851   ;
18852   return 0;
18853 }
18854 _ACEOF
18855 rm -f conftest.$ac_objext conftest$ac_exeext
18856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18857   (eval $ac_link) 2>conftest.er1
18858   ac_status=$?
18859   grep -v '^ *+' conftest.er1 >conftest.err
18860   rm -f conftest.er1
18861   cat conftest.err >&5
18862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863   (exit $ac_status); } &&
18864          { ac_try='test -z "$ac_c_werror_flag"
18865                          || test ! -s conftest.err'
18866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867   (eval $ac_try) 2>&5
18868   ac_status=$?
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); }; } &&
18871          { ac_try='test -s conftest$ac_exeext'
18872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873   (eval $ac_try) 2>&5
18874   ac_status=$?
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); }; }; then
18877   eval "$as_ac_var=yes"
18878 else
18879   echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18881
18882 eval "$as_ac_var=no"
18883 fi
18884 rm -f conftest.err conftest.$ac_objext \
18885       conftest$ac_exeext conftest.$ac_ext
18886 fi
18887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18889 if test `eval echo '${'$as_ac_var'}'` = yes; then
18890   cat >>confdefs.h <<_ACEOF
18891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18892 _ACEOF
18893
18894 else
18895   # strftime is in -lintl on SCO UNIX.
18896 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18897 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18898 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18899   echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901   ac_check_lib_save_LIBS=$LIBS
18902 LIBS="-lintl  $LIBS"
18903 cat >conftest.$ac_ext <<_ACEOF
18904 /* confdefs.h.  */
18905 _ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h.  */
18909
18910 /* Override any gcc2 internal prototype to avoid an error.  */
18911 #ifdef __cplusplus
18912 extern "C"
18913 #endif
18914 /* We use char because int might match the return type of a gcc2
18915    builtin and then its argument prototype would still apply.  */
18916 char strftime ();
18917 int
18918 main ()
18919 {
18920 strftime ();
18921   ;
18922   return 0;
18923 }
18924 _ACEOF
18925 rm -f conftest.$ac_objext conftest$ac_exeext
18926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18927   (eval $ac_link) 2>conftest.er1
18928   ac_status=$?
18929   grep -v '^ *+' conftest.er1 >conftest.err
18930   rm -f conftest.er1
18931   cat conftest.err >&5
18932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933   (exit $ac_status); } &&
18934          { ac_try='test -z "$ac_c_werror_flag"
18935                          || test ! -s conftest.err'
18936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937   (eval $ac_try) 2>&5
18938   ac_status=$?
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); }; } &&
18941          { ac_try='test -s conftest$ac_exeext'
18942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943   (eval $ac_try) 2>&5
18944   ac_status=$?
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); }; }; then
18947   ac_cv_lib_intl_strftime=yes
18948 else
18949   echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18951
18952 ac_cv_lib_intl_strftime=no
18953 fi
18954 rm -f conftest.err conftest.$ac_objext \
18955       conftest$ac_exeext conftest.$ac_ext
18956 LIBS=$ac_check_lib_save_LIBS
18957 fi
18958 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18959 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18960 if test $ac_cv_lib_intl_strftime = yes; then
18961   cat >>confdefs.h <<\_ACEOF
18962 #define HAVE_STRFTIME 1
18963 _ACEOF
18964
18965 LIBS="-lintl $LIBS"
18966 fi
18967
18968 fi
18969 done
18970
18971
18972 for ac_func in vprintf
18973 do
18974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18975 echo "$as_me:$LINENO: checking for $ac_func" >&5
18976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18977 if eval "test \"\${$as_ac_var+set}\" = set"; then
18978   echo $ECHO_N "(cached) $ECHO_C" >&6
18979 else
18980   cat >conftest.$ac_ext <<_ACEOF
18981 /* confdefs.h.  */
18982 _ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h.  */
18986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18988 #define $ac_func innocuous_$ac_func
18989
18990 /* System header to define __stub macros and hopefully few prototypes,
18991     which can conflict with char $ac_func (); below.
18992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18993     <limits.h> exists even on freestanding compilers.  */
18994
18995 #ifdef __STDC__
18996 # include <limits.h>
18997 #else
18998 # include <assert.h>
18999 #endif
19000
19001 #undef $ac_func
19002
19003 /* Override any gcc2 internal prototype to avoid an error.  */
19004 #ifdef __cplusplus
19005 extern "C"
19006 {
19007 #endif
19008 /* We use char because int might match the return type of a gcc2
19009    builtin and then its argument prototype would still apply.  */
19010 char $ac_func ();
19011 /* The GNU C library defines this for functions which it implements
19012     to always fail with ENOSYS.  Some functions are actually named
19013     something starting with __ and the normal name is an alias.  */
19014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19015 choke me
19016 #else
19017 char (*f) () = $ac_func;
19018 #endif
19019 #ifdef __cplusplus
19020 }
19021 #endif
19022
19023 int
19024 main ()
19025 {
19026 return f != $ac_func;
19027   ;
19028   return 0;
19029 }
19030 _ACEOF
19031 rm -f conftest.$ac_objext conftest$ac_exeext
19032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19033   (eval $ac_link) 2>conftest.er1
19034   ac_status=$?
19035   grep -v '^ *+' conftest.er1 >conftest.err
19036   rm -f conftest.er1
19037   cat conftest.err >&5
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); } &&
19040          { ac_try='test -z "$ac_c_werror_flag"
19041                          || test ! -s conftest.err'
19042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043   (eval $ac_try) 2>&5
19044   ac_status=$?
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); }; } &&
19047          { ac_try='test -s conftest$ac_exeext'
19048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049   (eval $ac_try) 2>&5
19050   ac_status=$?
19051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052   (exit $ac_status); }; }; then
19053   eval "$as_ac_var=yes"
19054 else
19055   echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19057
19058 eval "$as_ac_var=no"
19059 fi
19060 rm -f conftest.err conftest.$ac_objext \
19061       conftest$ac_exeext conftest.$ac_ext
19062 fi
19063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19065 if test `eval echo '${'$as_ac_var'}'` = yes; then
19066   cat >>confdefs.h <<_ACEOF
19067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19068 _ACEOF
19069
19070 echo "$as_me:$LINENO: checking for _doprnt" >&5
19071 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19072 if test "${ac_cv_func__doprnt+set}" = set; then
19073   echo $ECHO_N "(cached) $ECHO_C" >&6
19074 else
19075   cat >conftest.$ac_ext <<_ACEOF
19076 /* confdefs.h.  */
19077 _ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h.  */
19081 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19083 #define _doprnt innocuous__doprnt
19084
19085 /* System header to define __stub macros and hopefully few prototypes,
19086     which can conflict with char _doprnt (); below.
19087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19088     <limits.h> exists even on freestanding compilers.  */
19089
19090 #ifdef __STDC__
19091 # include <limits.h>
19092 #else
19093 # include <assert.h>
19094 #endif
19095
19096 #undef _doprnt
19097
19098 /* Override any gcc2 internal prototype to avoid an error.  */
19099 #ifdef __cplusplus
19100 extern "C"
19101 {
19102 #endif
19103 /* We use char because int might match the return type of a gcc2
19104    builtin and then its argument prototype would still apply.  */
19105 char _doprnt ();
19106 /* The GNU C library defines this for functions which it implements
19107     to always fail with ENOSYS.  Some functions are actually named
19108     something starting with __ and the normal name is an alias.  */
19109 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19110 choke me
19111 #else
19112 char (*f) () = _doprnt;
19113 #endif
19114 #ifdef __cplusplus
19115 }
19116 #endif
19117
19118 int
19119 main ()
19120 {
19121 return f != _doprnt;
19122   ;
19123   return 0;
19124 }
19125 _ACEOF
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19128   (eval $ac_link) 2>conftest.er1
19129   ac_status=$?
19130   grep -v '^ *+' conftest.er1 >conftest.err
19131   rm -f conftest.er1
19132   cat conftest.err >&5
19133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); } &&
19135          { ac_try='test -z "$ac_c_werror_flag"
19136                          || test ! -s conftest.err'
19137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138   (eval $ac_try) 2>&5
19139   ac_status=$?
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); }; } &&
19142          { ac_try='test -s conftest$ac_exeext'
19143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144   (eval $ac_try) 2>&5
19145   ac_status=$?
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); }; }; then
19148   ac_cv_func__doprnt=yes
19149 else
19150   echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19152
19153 ac_cv_func__doprnt=no
19154 fi
19155 rm -f conftest.err conftest.$ac_objext \
19156       conftest$ac_exeext conftest.$ac_ext
19157 fi
19158 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19159 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19160 if test $ac_cv_func__doprnt = yes; then
19161
19162 cat >>confdefs.h <<\_ACEOF
19163 #define HAVE_DOPRNT 1
19164 _ACEOF
19165
19166 fi
19167
19168 fi
19169 done
19170
19171
19172 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19173 # for constant arguments.  Useless!
19174 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19175 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19176 if test "${ac_cv_working_alloca_h+set}" = set; then
19177   echo $ECHO_N "(cached) $ECHO_C" >&6
19178 else
19179   cat >conftest.$ac_ext <<_ACEOF
19180 /* confdefs.h.  */
19181 _ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h.  */
19185 #include <alloca.h>
19186 int
19187 main ()
19188 {
19189 char *p = (char *) alloca (2 * sizeof (int));
19190   ;
19191   return 0;
19192 }
19193 _ACEOF
19194 rm -f conftest.$ac_objext conftest$ac_exeext
19195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19196   (eval $ac_link) 2>conftest.er1
19197   ac_status=$?
19198   grep -v '^ *+' conftest.er1 >conftest.err
19199   rm -f conftest.er1
19200   cat conftest.err >&5
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); } &&
19203          { ac_try='test -z "$ac_c_werror_flag"
19204                          || test ! -s conftest.err'
19205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206   (eval $ac_try) 2>&5
19207   ac_status=$?
19208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209   (exit $ac_status); }; } &&
19210          { ac_try='test -s conftest$ac_exeext'
19211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212   (eval $ac_try) 2>&5
19213   ac_status=$?
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); }; }; then
19216   ac_cv_working_alloca_h=yes
19217 else
19218   echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19220
19221 ac_cv_working_alloca_h=no
19222 fi
19223 rm -f conftest.err conftest.$ac_objext \
19224       conftest$ac_exeext conftest.$ac_ext
19225 fi
19226 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19227 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19228 if test $ac_cv_working_alloca_h = yes; then
19229
19230 cat >>confdefs.h <<\_ACEOF
19231 #define HAVE_ALLOCA_H 1
19232 _ACEOF
19233
19234 fi
19235
19236 echo "$as_me:$LINENO: checking for alloca" >&5
19237 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19238 if test "${ac_cv_func_alloca_works+set}" = set; then
19239   echo $ECHO_N "(cached) $ECHO_C" >&6
19240 else
19241   cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h.  */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h.  */
19247 #ifdef __GNUC__
19248 # define alloca __builtin_alloca
19249 #else
19250 # ifdef _MSC_VER
19251 #  include <malloc.h>
19252 #  define alloca _alloca
19253 # else
19254 #  if HAVE_ALLOCA_H
19255 #   include <alloca.h>
19256 #  else
19257 #   ifdef _AIX
19258  #pragma alloca
19259 #   else
19260 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19261 char *alloca ();
19262 #    endif
19263 #   endif
19264 #  endif
19265 # endif
19266 #endif
19267
19268 int
19269 main ()
19270 {
19271 char *p = (char *) alloca (1);
19272   ;
19273   return 0;
19274 }
19275 _ACEOF
19276 rm -f conftest.$ac_objext conftest$ac_exeext
19277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19278   (eval $ac_link) 2>conftest.er1
19279   ac_status=$?
19280   grep -v '^ *+' conftest.er1 >conftest.err
19281   rm -f conftest.er1
19282   cat conftest.err >&5
19283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284   (exit $ac_status); } &&
19285          { ac_try='test -z "$ac_c_werror_flag"
19286                          || test ! -s conftest.err'
19287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288   (eval $ac_try) 2>&5
19289   ac_status=$?
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); }; } &&
19292          { ac_try='test -s conftest$ac_exeext'
19293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294   (eval $ac_try) 2>&5
19295   ac_status=$?
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); }; }; then
19298   ac_cv_func_alloca_works=yes
19299 else
19300   echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303 ac_cv_func_alloca_works=no
19304 fi
19305 rm -f conftest.err conftest.$ac_objext \
19306       conftest$ac_exeext conftest.$ac_ext
19307 fi
19308 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19309 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19310
19311 if test $ac_cv_func_alloca_works = yes; then
19312
19313 cat >>confdefs.h <<\_ACEOF
19314 #define HAVE_ALLOCA 1
19315 _ACEOF
19316
19317 else
19318   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19319 # that cause trouble.  Some versions do not even contain alloca or
19320 # contain a buggy version.  If you still want to use their alloca,
19321 # use ar to extract alloca.o from them instead of compiling alloca.c.
19322
19323 ALLOCA=alloca.$ac_objext
19324
19325 cat >>confdefs.h <<\_ACEOF
19326 #define C_ALLOCA 1
19327 _ACEOF
19328
19329
19330 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19331 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19332 if test "${ac_cv_os_cray+set}" = set; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   cat >conftest.$ac_ext <<_ACEOF
19336 /* confdefs.h.  */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h.  */
19341 #if defined(CRAY) && ! defined(CRAY2)
19342 webecray
19343 #else
19344 wenotbecray
19345 #endif
19346
19347 _ACEOF
19348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19349   $EGREP "webecray" >/dev/null 2>&1; then
19350   ac_cv_os_cray=yes
19351 else
19352   ac_cv_os_cray=no
19353 fi
19354 rm -f conftest*
19355
19356 fi
19357 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19358 echo "${ECHO_T}$ac_cv_os_cray" >&6
19359 if test $ac_cv_os_cray = yes; then
19360   for ac_func in _getb67 GETB67 getb67; do
19361     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19362 echo "$as_me:$LINENO: checking for $ac_func" >&5
19363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19364 if eval "test \"\${$as_ac_var+set}\" = set"; then
19365   echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367   cat >conftest.$ac_ext <<_ACEOF
19368 /* confdefs.h.  */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h.  */
19373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19375 #define $ac_func innocuous_$ac_func
19376
19377 /* System header to define __stub macros and hopefully few prototypes,
19378     which can conflict with char $ac_func (); below.
19379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19380     <limits.h> exists even on freestanding compilers.  */
19381
19382 #ifdef __STDC__
19383 # include <limits.h>
19384 #else
19385 # include <assert.h>
19386 #endif
19387
19388 #undef $ac_func
19389
19390 /* Override any gcc2 internal prototype to avoid an error.  */
19391 #ifdef __cplusplus
19392 extern "C"
19393 {
19394 #endif
19395 /* We use char because int might match the return type of a gcc2
19396    builtin and then its argument prototype would still apply.  */
19397 char $ac_func ();
19398 /* The GNU C library defines this for functions which it implements
19399     to always fail with ENOSYS.  Some functions are actually named
19400     something starting with __ and the normal name is an alias.  */
19401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19402 choke me
19403 #else
19404 char (*f) () = $ac_func;
19405 #endif
19406 #ifdef __cplusplus
19407 }
19408 #endif
19409
19410 int
19411 main ()
19412 {
19413 return f != $ac_func;
19414   ;
19415   return 0;
19416 }
19417 _ACEOF
19418 rm -f conftest.$ac_objext conftest$ac_exeext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19420   (eval $ac_link) 2>conftest.er1
19421   ac_status=$?
19422   grep -v '^ *+' conftest.er1 >conftest.err
19423   rm -f conftest.er1
19424   cat conftest.err >&5
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); } &&
19427          { ac_try='test -z "$ac_c_werror_flag"
19428                          || test ! -s conftest.err'
19429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430   (eval $ac_try) 2>&5
19431   ac_status=$?
19432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433   (exit $ac_status); }; } &&
19434          { ac_try='test -s conftest$ac_exeext'
19435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436   (eval $ac_try) 2>&5
19437   ac_status=$?
19438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); }; }; then
19440   eval "$as_ac_var=yes"
19441 else
19442   echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19444
19445 eval "$as_ac_var=no"
19446 fi
19447 rm -f conftest.err conftest.$ac_objext \
19448       conftest$ac_exeext conftest.$ac_ext
19449 fi
19450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19452 if test `eval echo '${'$as_ac_var'}'` = yes; then
19453
19454 cat >>confdefs.h <<_ACEOF
19455 #define CRAY_STACKSEG_END $ac_func
19456 _ACEOF
19457
19458     break
19459 fi
19460
19461   done
19462 fi
19463
19464 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19465 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19466 if test "${ac_cv_c_stack_direction+set}" = set; then
19467   echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469   if test "$cross_compiling" = yes; then
19470   ac_cv_c_stack_direction=0
19471 else
19472   cat >conftest.$ac_ext <<_ACEOF
19473 /* confdefs.h.  */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h.  */
19478 int
19479 find_stack_direction ()
19480 {
19481   static char *addr = 0;
19482   auto char dummy;
19483   if (addr == 0)
19484     {
19485       addr = &dummy;
19486       return find_stack_direction ();
19487     }
19488   else
19489     return (&dummy > addr) ? 1 : -1;
19490 }
19491
19492 int
19493 main ()
19494 {
19495   exit (find_stack_direction () < 0);
19496 }
19497 _ACEOF
19498 rm -f conftest$ac_exeext
19499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19500   (eval $ac_link) 2>&5
19501   ac_status=$?
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505   (eval $ac_try) 2>&5
19506   ac_status=$?
19507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508   (exit $ac_status); }; }; then
19509   ac_cv_c_stack_direction=1
19510 else
19511   echo "$as_me: program exited with status $ac_status" >&5
19512 echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19514
19515 ( exit $ac_status )
19516 ac_cv_c_stack_direction=-1
19517 fi
19518 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19519 fi
19520 fi
19521 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19522 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19523
19524 cat >>confdefs.h <<_ACEOF
19525 #define STACK_DIRECTION $ac_cv_c_stack_direction
19526 _ACEOF
19527
19528
19529 fi
19530
19531 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19532 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19533 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19534 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19535   echo $ECHO_N "(cached) $ECHO_C" >&6
19536 else
19537   ac_check_lib_save_LIBS=$LIBS
19538 LIBS="-lsun  $LIBS"
19539 cat >conftest.$ac_ext <<_ACEOF
19540 /* confdefs.h.  */
19541 _ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h.  */
19545
19546 /* Override any gcc2 internal prototype to avoid an error.  */
19547 #ifdef __cplusplus
19548 extern "C"
19549 #endif
19550 /* We use char because int might match the return type of a gcc2
19551    builtin and then its argument prototype would still apply.  */
19552 char getmntent ();
19553 int
19554 main ()
19555 {
19556 getmntent ();
19557   ;
19558   return 0;
19559 }
19560 _ACEOF
19561 rm -f conftest.$ac_objext conftest$ac_exeext
19562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19563   (eval $ac_link) 2>conftest.er1
19564   ac_status=$?
19565   grep -v '^ *+' conftest.er1 >conftest.err
19566   rm -f conftest.er1
19567   cat conftest.err >&5
19568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569   (exit $ac_status); } &&
19570          { ac_try='test -z "$ac_c_werror_flag"
19571                          || test ! -s conftest.err'
19572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573   (eval $ac_try) 2>&5
19574   ac_status=$?
19575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576   (exit $ac_status); }; } &&
19577          { ac_try='test -s conftest$ac_exeext'
19578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579   (eval $ac_try) 2>&5
19580   ac_status=$?
19581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582   (exit $ac_status); }; }; then
19583   ac_cv_lib_sun_getmntent=yes
19584 else
19585   echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19587
19588 ac_cv_lib_sun_getmntent=no
19589 fi
19590 rm -f conftest.err conftest.$ac_objext \
19591       conftest$ac_exeext conftest.$ac_ext
19592 LIBS=$ac_check_lib_save_LIBS
19593 fi
19594 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19595 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19596 if test $ac_cv_lib_sun_getmntent = yes; then
19597   LIBS="-lsun $LIBS"
19598 else
19599   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19600 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19601 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19602   echo $ECHO_N "(cached) $ECHO_C" >&6
19603 else
19604   ac_check_lib_save_LIBS=$LIBS
19605 LIBS="-lseq  $LIBS"
19606 cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h.  */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h.  */
19612
19613 /* Override any gcc2 internal prototype to avoid an error.  */
19614 #ifdef __cplusplus
19615 extern "C"
19616 #endif
19617 /* We use char because int might match the return type of a gcc2
19618    builtin and then its argument prototype would still apply.  */
19619 char getmntent ();
19620 int
19621 main ()
19622 {
19623 getmntent ();
19624   ;
19625   return 0;
19626 }
19627 _ACEOF
19628 rm -f conftest.$ac_objext conftest$ac_exeext
19629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19630   (eval $ac_link) 2>conftest.er1
19631   ac_status=$?
19632   grep -v '^ *+' conftest.er1 >conftest.err
19633   rm -f conftest.er1
19634   cat conftest.err >&5
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); } &&
19637          { ac_try='test -z "$ac_c_werror_flag"
19638                          || test ! -s conftest.err'
19639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640   (eval $ac_try) 2>&5
19641   ac_status=$?
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); }; } &&
19644          { ac_try='test -s conftest$ac_exeext'
19645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646   (eval $ac_try) 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); }; }; then
19650   ac_cv_lib_seq_getmntent=yes
19651 else
19652   echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19654
19655 ac_cv_lib_seq_getmntent=no
19656 fi
19657 rm -f conftest.err conftest.$ac_objext \
19658       conftest$ac_exeext conftest.$ac_ext
19659 LIBS=$ac_check_lib_save_LIBS
19660 fi
19661 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19662 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19663 if test $ac_cv_lib_seq_getmntent = yes; then
19664   LIBS="-lseq $LIBS"
19665 else
19666   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19667 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19668 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19669   echo $ECHO_N "(cached) $ECHO_C" >&6
19670 else
19671   ac_check_lib_save_LIBS=$LIBS
19672 LIBS="-lgen  $LIBS"
19673 cat >conftest.$ac_ext <<_ACEOF
19674 /* confdefs.h.  */
19675 _ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h.  */
19679
19680 /* Override any gcc2 internal prototype to avoid an error.  */
19681 #ifdef __cplusplus
19682 extern "C"
19683 #endif
19684 /* We use char because int might match the return type of a gcc2
19685    builtin and then its argument prototype would still apply.  */
19686 char getmntent ();
19687 int
19688 main ()
19689 {
19690 getmntent ();
19691   ;
19692   return 0;
19693 }
19694 _ACEOF
19695 rm -f conftest.$ac_objext conftest$ac_exeext
19696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19697   (eval $ac_link) 2>conftest.er1
19698   ac_status=$?
19699   grep -v '^ *+' conftest.er1 >conftest.err
19700   rm -f conftest.er1
19701   cat conftest.err >&5
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); } &&
19704          { ac_try='test -z "$ac_c_werror_flag"
19705                          || test ! -s conftest.err'
19706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707   (eval $ac_try) 2>&5
19708   ac_status=$?
19709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710   (exit $ac_status); }; } &&
19711          { ac_try='test -s conftest$ac_exeext'
19712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713   (eval $ac_try) 2>&5
19714   ac_status=$?
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); }; }; then
19717   ac_cv_lib_gen_getmntent=yes
19718 else
19719   echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19721
19722 ac_cv_lib_gen_getmntent=no
19723 fi
19724 rm -f conftest.err conftest.$ac_objext \
19725       conftest$ac_exeext conftest.$ac_ext
19726 LIBS=$ac_check_lib_save_LIBS
19727 fi
19728 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19729 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19730 if test $ac_cv_lib_gen_getmntent = yes; then
19731   LIBS="-lgen $LIBS"
19732 fi
19733
19734 fi
19735
19736 fi
19737
19738
19739 for ac_func in getmntent
19740 do
19741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19742 echo "$as_me:$LINENO: checking for $ac_func" >&5
19743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19744 if eval "test \"\${$as_ac_var+set}\" = set"; then
19745   echo $ECHO_N "(cached) $ECHO_C" >&6
19746 else
19747   cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h.  */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h.  */
19753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19755 #define $ac_func innocuous_$ac_func
19756
19757 /* System header to define __stub macros and hopefully few prototypes,
19758     which can conflict with char $ac_func (); below.
19759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19760     <limits.h> exists even on freestanding compilers.  */
19761
19762 #ifdef __STDC__
19763 # include <limits.h>
19764 #else
19765 # include <assert.h>
19766 #endif
19767
19768 #undef $ac_func
19769
19770 /* Override any gcc2 internal prototype to avoid an error.  */
19771 #ifdef __cplusplus
19772 extern "C"
19773 {
19774 #endif
19775 /* We use char because int might match the return type of a gcc2
19776    builtin and then its argument prototype would still apply.  */
19777 char $ac_func ();
19778 /* The GNU C library defines this for functions which it implements
19779     to always fail with ENOSYS.  Some functions are actually named
19780     something starting with __ and the normal name is an alias.  */
19781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19782 choke me
19783 #else
19784 char (*f) () = $ac_func;
19785 #endif
19786 #ifdef __cplusplus
19787 }
19788 #endif
19789
19790 int
19791 main ()
19792 {
19793 return f != $ac_func;
19794   ;
19795   return 0;
19796 }
19797 _ACEOF
19798 rm -f conftest.$ac_objext conftest$ac_exeext
19799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19800   (eval $ac_link) 2>conftest.er1
19801   ac_status=$?
19802   grep -v '^ *+' conftest.er1 >conftest.err
19803   rm -f conftest.er1
19804   cat conftest.err >&5
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); } &&
19807          { ac_try='test -z "$ac_c_werror_flag"
19808                          || test ! -s conftest.err'
19809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810   (eval $ac_try) 2>&5
19811   ac_status=$?
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); }; } &&
19814          { ac_try='test -s conftest$ac_exeext'
19815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816   (eval $ac_try) 2>&5
19817   ac_status=$?
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); }; }; then
19820   eval "$as_ac_var=yes"
19821 else
19822   echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19824
19825 eval "$as_ac_var=no"
19826 fi
19827 rm -f conftest.err conftest.$ac_objext \
19828       conftest$ac_exeext conftest.$ac_ext
19829 fi
19830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19832 if test `eval echo '${'$as_ac_var'}'` = yes; then
19833   cat >>confdefs.h <<_ACEOF
19834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19835 _ACEOF
19836
19837 fi
19838 done
19839
19840
19841 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19842 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19843 if test "${ac_cv_func_closedir_void+set}" = set; then
19844   echo $ECHO_N "(cached) $ECHO_C" >&6
19845 else
19846   if test "$cross_compiling" = yes; then
19847   ac_cv_func_closedir_void=yes
19848 else
19849   cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h.  */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h.  */
19855 $ac_includes_default
19856 #include <$ac_header_dirent>
19857 #ifndef __cplusplus
19858 int closedir ();
19859 #endif
19860
19861 int
19862 main ()
19863 {
19864 exit (closedir (opendir (".")) != 0);
19865   ;
19866   return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest$ac_exeext
19870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19871   (eval $ac_link) 2>&5
19872   ac_status=$?
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876   (eval $ac_try) 2>&5
19877   ac_status=$?
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); }; }; then
19880   ac_cv_func_closedir_void=no
19881 else
19882   echo "$as_me: program exited with status $ac_status" >&5
19883 echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19885
19886 ( exit $ac_status )
19887 ac_cv_func_closedir_void=yes
19888 fi
19889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19890 fi
19891 fi
19892 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
19893 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
19894 if test $ac_cv_func_closedir_void = yes; then
19895
19896 cat >>confdefs.h <<\_ACEOF
19897 #define CLOSEDIR_VOID 1
19898 _ACEOF
19899
19900 fi
19901
19902 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19903 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19904 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19905   echo $ECHO_N "(cached) $ECHO_C" >&6
19906 else
19907   if test "$cross_compiling" = yes; then
19908   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19909 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19910    { (exit 1); exit 1; }; }
19911 else
19912   cat >conftest.$ac_ext <<_ACEOF
19913 /* confdefs.h.  */
19914 _ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h.  */
19918 #if HAVE_UNISTD_H
19919 # include <unistd.h>
19920 #endif
19921
19922 int
19923 main ()
19924 {
19925 /* If this system has a BSD-style setpgrp which takes arguments,
19926   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19927   exit successfully. */
19928   exit (setpgrp (1,1) == -1 ? 0 : 1);
19929   ;
19930   return 0;
19931 }
19932 _ACEOF
19933 rm -f conftest$ac_exeext
19934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19935   (eval $ac_link) 2>&5
19936   ac_status=$?
19937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940   (eval $ac_try) 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }; }; then
19944   ac_cv_func_setpgrp_void=no
19945 else
19946   echo "$as_me: program exited with status $ac_status" >&5
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19949
19950 ( exit $ac_status )
19951 ac_cv_func_setpgrp_void=yes
19952 fi
19953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19954 fi
19955 fi
19956 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19957 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19958 if test $ac_cv_func_setpgrp_void = yes; then
19959
19960 cat >>confdefs.h <<\_ACEOF
19961 #define SETPGRP_VOID 1
19962 _ACEOF
19963
19964 fi
19965                       # AC_FUNC_FNMATCH    dnl use local version
19966
19967
19968 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
19969 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
19970 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
19971   echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973   ac_check_lib_save_LIBS=$LIBS
19974 LIBS="-lxpg4  $LIBS"
19975 cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h.  */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h.  */
19981
19982 /* Override any gcc2 internal prototype to avoid an error.  */
19983 #ifdef __cplusplus
19984 extern "C"
19985 #endif
19986 /* We use char because int might match the return type of a gcc2
19987    builtin and then its argument prototype would still apply.  */
19988 char setlocale ();
19989 int
19990 main ()
19991 {
19992 setlocale ();
19993   ;
19994   return 0;
19995 }
19996 _ACEOF
19997 rm -f conftest.$ac_objext conftest$ac_exeext
19998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19999   (eval $ac_link) 2>conftest.er1
20000   ac_status=$?
20001   grep -v '^ *+' conftest.er1 >conftest.err
20002   rm -f conftest.er1
20003   cat conftest.err >&5
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); } &&
20006          { ac_try='test -z "$ac_c_werror_flag"
20007                          || test ! -s conftest.err'
20008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009   (eval $ac_try) 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); }; } &&
20013          { ac_try='test -s conftest$ac_exeext'
20014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015   (eval $ac_try) 2>&5
20016   ac_status=$?
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); }; }; then
20019   ac_cv_lib_xpg4_setlocale=yes
20020 else
20021   echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20023
20024 ac_cv_lib_xpg4_setlocale=no
20025 fi
20026 rm -f conftest.err conftest.$ac_objext \
20027       conftest$ac_exeext conftest.$ac_ext
20028 LIBS=$ac_check_lib_save_LIBS
20029 fi
20030 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20031 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20032 if test $ac_cv_lib_xpg4_setlocale = yes; then
20033   LIBS="$LIBS -lxpg4"
20034 fi
20035
20036
20037
20038
20039 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20040 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20041 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20042   echo $ECHO_N "(cached) $ECHO_C" >&6
20043 else
20044   ac_check_lib_save_LIBS=$LIBS
20045 LIBS="-lsun  $LIBS"
20046 cat >conftest.$ac_ext <<_ACEOF
20047 /* confdefs.h.  */
20048 _ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h.  */
20052
20053 /* Override any gcc2 internal prototype to avoid an error.  */
20054 #ifdef __cplusplus
20055 extern "C"
20056 #endif
20057 /* We use char because int might match the return type of a gcc2
20058    builtin and then its argument prototype would still apply.  */
20059 char getpwnam ();
20060 int
20061 main ()
20062 {
20063 getpwnam ();
20064   ;
20065   return 0;
20066 }
20067 _ACEOF
20068 rm -f conftest.$ac_objext conftest$ac_exeext
20069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20070   (eval $ac_link) 2>conftest.er1
20071   ac_status=$?
20072   grep -v '^ *+' conftest.er1 >conftest.err
20073   rm -f conftest.er1
20074   cat conftest.err >&5
20075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076   (exit $ac_status); } &&
20077          { ac_try='test -z "$ac_c_werror_flag"
20078                          || test ! -s conftest.err'
20079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080   (eval $ac_try) 2>&5
20081   ac_status=$?
20082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083   (exit $ac_status); }; } &&
20084          { ac_try='test -s conftest$ac_exeext'
20085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086   (eval $ac_try) 2>&5
20087   ac_status=$?
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); }; }; then
20090   ac_cv_lib_sun_getpwnam=yes
20091 else
20092   echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20094
20095 ac_cv_lib_sun_getpwnam=no
20096 fi
20097 rm -f conftest.err conftest.$ac_objext \
20098       conftest$ac_exeext conftest.$ac_ext
20099 LIBS=$ac_check_lib_save_LIBS
20100 fi
20101 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20102 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20103 if test $ac_cv_lib_sun_getpwnam = yes; then
20104   cat >>confdefs.h <<_ACEOF
20105 #define HAVE_LIBSUN 1
20106 _ACEOF
20107
20108   LIBS="-lsun $LIBS"
20109
20110 fi
20111
20112
20113
20114 for ac_header in zlib.h
20115 do
20116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20118   echo "$as_me:$LINENO: checking for $ac_header" >&5
20119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20121   echo $ECHO_N "(cached) $ECHO_C" >&6
20122 fi
20123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20125 else
20126   # Is the header compilable?
20127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20129 cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h.  */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h.  */
20135 $ac_includes_default
20136 #include <$ac_header>
20137 _ACEOF
20138 rm -f conftest.$ac_objext
20139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20140   (eval $ac_compile) 2>conftest.er1
20141   ac_status=$?
20142   grep -v '^ *+' conftest.er1 >conftest.err
20143   rm -f conftest.er1
20144   cat conftest.err >&5
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); } &&
20147          { ac_try='test -z "$ac_c_werror_flag"
20148                          || test ! -s conftest.err'
20149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150   (eval $ac_try) 2>&5
20151   ac_status=$?
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); }; } &&
20154          { ac_try='test -s conftest.$ac_objext'
20155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156   (eval $ac_try) 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); }; }; then
20160   ac_header_compiler=yes
20161 else
20162   echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20164
20165 ac_header_compiler=no
20166 fi
20167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20169 echo "${ECHO_T}$ac_header_compiler" >&6
20170
20171 # Is the header present?
20172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20174 cat >conftest.$ac_ext <<_ACEOF
20175 /* confdefs.h.  */
20176 _ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h.  */
20180 #include <$ac_header>
20181 _ACEOF
20182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20183   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20184   ac_status=$?
20185   grep -v '^ *+' conftest.er1 >conftest.err
20186   rm -f conftest.er1
20187   cat conftest.err >&5
20188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189   (exit $ac_status); } >/dev/null; then
20190   if test -s conftest.err; then
20191     ac_cpp_err=$ac_c_preproc_warn_flag
20192     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20193   else
20194     ac_cpp_err=
20195   fi
20196 else
20197   ac_cpp_err=yes
20198 fi
20199 if test -z "$ac_cpp_err"; then
20200   ac_header_preproc=yes
20201 else
20202   echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20204
20205   ac_header_preproc=no
20206 fi
20207 rm -f conftest.err conftest.$ac_ext
20208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20209 echo "${ECHO_T}$ac_header_preproc" >&6
20210
20211 # So?  What about this header?
20212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20213   yes:no: )
20214     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20218     ac_header_preproc=yes
20219     ;;
20220   no:yes:* )
20221     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20223     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20224 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20225     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20227     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20228 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20231     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20233     (
20234       cat <<\_ASBOX
20235 ## ------------------------------------------ ##
20236 ## Report this to the AC_PACKAGE_NAME lists.  ##
20237 ## ------------------------------------------ ##
20238 _ASBOX
20239     ) |
20240       sed "s/^/$as_me: WARNING:     /" >&2
20241     ;;
20242 esac
20243 echo "$as_me:$LINENO: checking for $ac_header" >&5
20244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20246   echo $ECHO_N "(cached) $ECHO_C" >&6
20247 else
20248   eval "$as_ac_Header=\$ac_header_preproc"
20249 fi
20250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20252
20253 fi
20254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20255   cat >>confdefs.h <<_ACEOF
20256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20257 _ACEOF
20258
20259 fi
20260
20261 done
20262
20263 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20264 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20265 if test "${ac_cv_lib_z_deflate+set}" = set; then
20266   echo $ECHO_N "(cached) $ECHO_C" >&6
20267 else
20268   ac_check_lib_save_LIBS=$LIBS
20269 LIBS="-lz  $LIBS"
20270 cat >conftest.$ac_ext <<_ACEOF
20271 /* confdefs.h.  */
20272 _ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h.  */
20276
20277 /* Override any gcc2 internal prototype to avoid an error.  */
20278 #ifdef __cplusplus
20279 extern "C"
20280 #endif
20281 /* We use char because int might match the return type of a gcc2
20282    builtin and then its argument prototype would still apply.  */
20283 char deflate ();
20284 int
20285 main ()
20286 {
20287 deflate ();
20288   ;
20289   return 0;
20290 }
20291 _ACEOF
20292 rm -f conftest.$ac_objext conftest$ac_exeext
20293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20294   (eval $ac_link) 2>conftest.er1
20295   ac_status=$?
20296   grep -v '^ *+' conftest.er1 >conftest.err
20297   rm -f conftest.er1
20298   cat conftest.err >&5
20299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300   (exit $ac_status); } &&
20301          { ac_try='test -z "$ac_c_werror_flag"
20302                          || test ! -s conftest.err'
20303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304   (eval $ac_try) 2>&5
20305   ac_status=$?
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); }; } &&
20308          { ac_try='test -s conftest$ac_exeext'
20309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310   (eval $ac_try) 2>&5
20311   ac_status=$?
20312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313   (exit $ac_status); }; }; then
20314   ac_cv_lib_z_deflate=yes
20315 else
20316   echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20318
20319 ac_cv_lib_z_deflate=no
20320 fi
20321 rm -f conftest.err conftest.$ac_objext \
20322       conftest$ac_exeext conftest.$ac_ext
20323 LIBS=$ac_check_lib_save_LIBS
20324 fi
20325 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20326 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20327 if test $ac_cv_lib_z_deflate = yes; then
20328   FDLIBS="-lz"
20329 fi
20330
20331 have_zlib=no
20332 if test x$FDLIBS = x-lz; then
20333   cat >>confdefs.h <<\_ACEOF
20334 #define HAVE_LIBZ 1
20335 _ACEOF
20336
20337   have_zlib=yes
20338 fi
20339
20340 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20341   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20342 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20343 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20344   echo $ECHO_N "(cached) $ECHO_C" >&6
20345 fi
20346 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20347 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20348 else
20349   # Is the header compilable?
20350 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20351 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20352 cat >conftest.$ac_ext <<_ACEOF
20353 /* confdefs.h.  */
20354 _ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h.  */
20358 $ac_includes_default
20359 #include <sys/acl.h>
20360 _ACEOF
20361 rm -f conftest.$ac_objext
20362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20363   (eval $ac_compile) 2>conftest.er1
20364   ac_status=$?
20365   grep -v '^ *+' conftest.er1 >conftest.err
20366   rm -f conftest.er1
20367   cat conftest.err >&5
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); } &&
20370          { ac_try='test -z "$ac_c_werror_flag"
20371                          || test ! -s conftest.err'
20372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373   (eval $ac_try) 2>&5
20374   ac_status=$?
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); }; } &&
20377          { ac_try='test -s conftest.$ac_objext'
20378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379   (eval $ac_try) 2>&5
20380   ac_status=$?
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); }; }; then
20383   ac_header_compiler=yes
20384 else
20385   echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20387
20388 ac_header_compiler=no
20389 fi
20390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20392 echo "${ECHO_T}$ac_header_compiler" >&6
20393
20394 # Is the header present?
20395 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20396 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20397 cat >conftest.$ac_ext <<_ACEOF
20398 /* confdefs.h.  */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h.  */
20403 #include <sys/acl.h>
20404 _ACEOF
20405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20406   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20407   ac_status=$?
20408   grep -v '^ *+' conftest.er1 >conftest.err
20409   rm -f conftest.er1
20410   cat conftest.err >&5
20411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412   (exit $ac_status); } >/dev/null; then
20413   if test -s conftest.err; then
20414     ac_cpp_err=$ac_c_preproc_warn_flag
20415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20416   else
20417     ac_cpp_err=
20418   fi
20419 else
20420   ac_cpp_err=yes
20421 fi
20422 if test -z "$ac_cpp_err"; then
20423   ac_header_preproc=yes
20424 else
20425   echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20427
20428   ac_header_preproc=no
20429 fi
20430 rm -f conftest.err conftest.$ac_ext
20431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20432 echo "${ECHO_T}$ac_header_preproc" >&6
20433
20434 # So?  What about this header?
20435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20436   yes:no: )
20437     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20438 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20439     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20440 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20441     ac_header_preproc=yes
20442     ;;
20443   no:yes:* )
20444     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20445 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20446     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20447 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20448     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20449 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20450     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20451 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20452     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20453 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20454     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20455 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20456     (
20457       cat <<\_ASBOX
20458 ## ------------------------------------------ ##
20459 ## Report this to the AC_PACKAGE_NAME lists.  ##
20460 ## ------------------------------------------ ##
20461 _ASBOX
20462     ) |
20463       sed "s/^/$as_me: WARNING:     /" >&2
20464     ;;
20465 esac
20466 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20467 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20468 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20469   echo $ECHO_N "(cached) $ECHO_C" >&6
20470 else
20471   ac_cv_header_sys_acl_h=$ac_header_preproc
20472 fi
20473 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20474 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20475
20476 fi
20477
20478
20479 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20480 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20481 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20482   echo $ECHO_N "(cached) $ECHO_C" >&6
20483 else
20484   ac_check_lib_save_LIBS=$LIBS
20485 LIBS="-lacl  $LIBS"
20486 cat >conftest.$ac_ext <<_ACEOF
20487 /* confdefs.h.  */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h.  */
20492
20493 /* Override any gcc2 internal prototype to avoid an error.  */
20494 #ifdef __cplusplus
20495 extern "C"
20496 #endif
20497 /* We use char because int might match the return type of a gcc2
20498    builtin and then its argument prototype would still apply.  */
20499 char acl_get_file ();
20500 int
20501 main ()
20502 {
20503 acl_get_file ();
20504   ;
20505   return 0;
20506 }
20507 _ACEOF
20508 rm -f conftest.$ac_objext conftest$ac_exeext
20509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20510   (eval $ac_link) 2>conftest.er1
20511   ac_status=$?
20512   grep -v '^ *+' conftest.er1 >conftest.err
20513   rm -f conftest.er1
20514   cat conftest.err >&5
20515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); } &&
20517          { ac_try='test -z "$ac_c_werror_flag"
20518                          || test ! -s conftest.err'
20519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520   (eval $ac_try) 2>&5
20521   ac_status=$?
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); }; } &&
20524          { ac_try='test -s conftest$ac_exeext'
20525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526   (eval $ac_try) 2>&5
20527   ac_status=$?
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); }; }; then
20530   ac_cv_lib_acl_acl_get_file=yes
20531 else
20532   echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20534
20535 ac_cv_lib_acl_acl_get_file=no
20536 fi
20537 rm -f conftest.err conftest.$ac_objext \
20538       conftest$ac_exeext conftest.$ac_ext
20539 LIBS=$ac_check_lib_save_LIBS
20540 fi
20541 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20542 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20543 if test $ac_cv_lib_acl_acl_get_file = yes; then
20544   FDLIBS="-lacl $FDLIBS"
20545 fi
20546
20547 have_acl=no
20548 if test $ac_cv_lib_acl_acl_get_file = yes; then
20549    cat >>confdefs.h <<\_ACEOF
20550 #define HAVE_ACL 1
20551 _ACEOF
20552
20553    have_acl=yes
20554 fi
20555
20556 PTHREAD_LIB=""
20557 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20558 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20559 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20560   echo $ECHO_N "(cached) $ECHO_C" >&6
20561 else
20562   ac_check_lib_save_LIBS=$LIBS
20563 LIBS="-lpthread  $LIBS"
20564 cat >conftest.$ac_ext <<_ACEOF
20565 /* confdefs.h.  */
20566 _ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h.  */
20570
20571 /* Override any gcc2 internal prototype to avoid an error.  */
20572 #ifdef __cplusplus
20573 extern "C"
20574 #endif
20575 /* We use char because int might match the return type of a gcc2
20576    builtin and then its argument prototype would still apply.  */
20577 char pthread_create ();
20578 int
20579 main ()
20580 {
20581 pthread_create ();
20582   ;
20583   return 0;
20584 }
20585 _ACEOF
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20588   (eval $ac_link) 2>conftest.er1
20589   ac_status=$?
20590   grep -v '^ *+' conftest.er1 >conftest.err
20591   rm -f conftest.er1
20592   cat conftest.err >&5
20593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594   (exit $ac_status); } &&
20595          { ac_try='test -z "$ac_c_werror_flag"
20596                          || test ! -s conftest.err'
20597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598   (eval $ac_try) 2>&5
20599   ac_status=$?
20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601   (exit $ac_status); }; } &&
20602          { ac_try='test -s conftest$ac_exeext'
20603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20604   (eval $ac_try) 2>&5
20605   ac_status=$?
20606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607   (exit $ac_status); }; }; then
20608   ac_cv_lib_pthread_pthread_create=yes
20609 else
20610   echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20612
20613 ac_cv_lib_pthread_pthread_create=no
20614 fi
20615 rm -f conftest.err conftest.$ac_objext \
20616       conftest$ac_exeext conftest.$ac_ext
20617 LIBS=$ac_check_lib_save_LIBS
20618 fi
20619 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20620 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20621 if test $ac_cv_lib_pthread_pthread_create = yes; then
20622   PTHREAD_LIB="-lpthread"
20623 else
20624   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20625 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20626 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20627   echo $ECHO_N "(cached) $ECHO_C" >&6
20628 else
20629   ac_check_lib_save_LIBS=$LIBS
20630 LIBS="-lpthreads  $LIBS"
20631 cat >conftest.$ac_ext <<_ACEOF
20632 /* confdefs.h.  */
20633 _ACEOF
20634 cat confdefs.h >>conftest.$ac_ext
20635 cat >>conftest.$ac_ext <<_ACEOF
20636 /* end confdefs.h.  */
20637
20638 /* Override any gcc2 internal prototype to avoid an error.  */
20639 #ifdef __cplusplus
20640 extern "C"
20641 #endif
20642 /* We use char because int might match the return type of a gcc2
20643    builtin and then its argument prototype would still apply.  */
20644 char pthread_create ();
20645 int
20646 main ()
20647 {
20648 pthread_create ();
20649   ;
20650   return 0;
20651 }
20652 _ACEOF
20653 rm -f conftest.$ac_objext conftest$ac_exeext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20655   (eval $ac_link) 2>conftest.er1
20656   ac_status=$?
20657   grep -v '^ *+' conftest.er1 >conftest.err
20658   rm -f conftest.er1
20659   cat conftest.err >&5
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); } &&
20662          { ac_try='test -z "$ac_c_werror_flag"
20663                          || test ! -s conftest.err'
20664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665   (eval $ac_try) 2>&5
20666   ac_status=$?
20667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); }; } &&
20669          { ac_try='test -s conftest$ac_exeext'
20670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671   (eval $ac_try) 2>&5
20672   ac_status=$?
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); }; }; then
20675   ac_cv_lib_pthreads_pthread_create=yes
20676 else
20677   echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20679
20680 ac_cv_lib_pthreads_pthread_create=no
20681 fi
20682 rm -f conftest.err conftest.$ac_objext \
20683       conftest$ac_exeext conftest.$ac_ext
20684 LIBS=$ac_check_lib_save_LIBS
20685 fi
20686 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20687 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20688 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20689   PTHREAD_LIB="-lpthreads"
20690 else
20691   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20692 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20693 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20694   echo $ECHO_N "(cached) $ECHO_C" >&6
20695 else
20696   ac_check_lib_save_LIBS=$LIBS
20697 LIBS="-lc_r  $LIBS"
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h.  */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h.  */
20704
20705 /* Override any gcc2 internal prototype to avoid an error.  */
20706 #ifdef __cplusplus
20707 extern "C"
20708 #endif
20709 /* We use char because int might match the return type of a gcc2
20710    builtin and then its argument prototype would still apply.  */
20711 char pthread_create ();
20712 int
20713 main ()
20714 {
20715 pthread_create ();
20716   ;
20717   return 0;
20718 }
20719 _ACEOF
20720 rm -f conftest.$ac_objext conftest$ac_exeext
20721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20722   (eval $ac_link) 2>conftest.er1
20723   ac_status=$?
20724   grep -v '^ *+' conftest.er1 >conftest.err
20725   rm -f conftest.er1
20726   cat conftest.err >&5
20727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728   (exit $ac_status); } &&
20729          { ac_try='test -z "$ac_c_werror_flag"
20730                          || test ! -s conftest.err'
20731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732   (eval $ac_try) 2>&5
20733   ac_status=$?
20734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735   (exit $ac_status); }; } &&
20736          { ac_try='test -s conftest$ac_exeext'
20737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738   (eval $ac_try) 2>&5
20739   ac_status=$?
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); }; }; then
20742   ac_cv_lib_c_r_pthread_create=yes
20743 else
20744   echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20746
20747 ac_cv_lib_c_r_pthread_create=no
20748 fi
20749 rm -f conftest.err conftest.$ac_objext \
20750       conftest$ac_exeext conftest.$ac_ext
20751 LIBS=$ac_check_lib_save_LIBS
20752 fi
20753 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20754 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20755 if test $ac_cv_lib_c_r_pthread_create = yes; then
20756   PTHREAD_LIB="-lc_r"
20757 else
20758   echo "$as_me:$LINENO: checking for pthread_create" >&5
20759 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
20760 if test "${ac_cv_func_pthread_create+set}" = set; then
20761   echo $ECHO_N "(cached) $ECHO_C" >&6
20762 else
20763   cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h.  */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h.  */
20769 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
20770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20771 #define pthread_create innocuous_pthread_create
20772
20773 /* System header to define __stub macros and hopefully few prototypes,
20774     which can conflict with char pthread_create (); below.
20775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20776     <limits.h> exists even on freestanding compilers.  */
20777
20778 #ifdef __STDC__
20779 # include <limits.h>
20780 #else
20781 # include <assert.h>
20782 #endif
20783
20784 #undef pthread_create
20785
20786 /* Override any gcc2 internal prototype to avoid an error.  */
20787 #ifdef __cplusplus
20788 extern "C"
20789 {
20790 #endif
20791 /* We use char because int might match the return type of a gcc2
20792    builtin and then its argument prototype would still apply.  */
20793 char pthread_create ();
20794 /* The GNU C library defines this for functions which it implements
20795     to always fail with ENOSYS.  Some functions are actually named
20796     something starting with __ and the normal name is an alias.  */
20797 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
20798 choke me
20799 #else
20800 char (*f) () = pthread_create;
20801 #endif
20802 #ifdef __cplusplus
20803 }
20804 #endif
20805
20806 int
20807 main ()
20808 {
20809 return f != pthread_create;
20810   ;
20811   return 0;
20812 }
20813 _ACEOF
20814 rm -f conftest.$ac_objext conftest$ac_exeext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20816   (eval $ac_link) 2>conftest.er1
20817   ac_status=$?
20818   grep -v '^ *+' conftest.er1 >conftest.err
20819   rm -f conftest.er1
20820   cat conftest.err >&5
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); } &&
20823          { ac_try='test -z "$ac_c_werror_flag"
20824                          || test ! -s conftest.err'
20825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826   (eval $ac_try) 2>&5
20827   ac_status=$?
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); }; } &&
20830          { ac_try='test -s conftest$ac_exeext'
20831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832   (eval $ac_try) 2>&5
20833   ac_status=$?
20834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835   (exit $ac_status); }; }; then
20836   ac_cv_func_pthread_create=yes
20837 else
20838   echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20840
20841 ac_cv_func_pthread_create=no
20842 fi
20843 rm -f conftest.err conftest.$ac_objext \
20844       conftest$ac_exeext conftest.$ac_ext
20845 fi
20846 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
20847 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
20848
20849
20850 fi
20851
20852
20853 fi
20854
20855
20856 fi
20857
20858
20859
20860 cat >>confdefs.h <<\_ACEOF
20861 #define FDLIBS 1
20862 _ACEOF
20863
20864
20865
20866 CFLAGS=${CFLAGS--O}
20867 LDFLAGS=${LDFLAGS--O}
20868 DB_LIBS="${SQL_LFLAGS}"
20869
20870 CPPFLAGS="$CPPFLAGS"
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885 OBJLIST=
20886
20887
20888 lld="lld"
20889 llu="llu"
20890
20891 WCFLAGS=
20892 WLDFLAGS=
20893
20894 #
20895 # Finally we set appropriate distribution specific
20896 #  variables and defaults
20897 #
20898 # PFILES are platform specific files
20899 PFILES="platforms/Makefile"
20900 PSCMD="ps -e"
20901 WIN32=
20902 MACOSX=
20903 hostname=`uname -n | cut -d '.' -f 1`
20904 case "$DISTNAME" in
20905 aix)
20906         DISTVER=`uname -r`
20907         PSCMD="ps -e -o pid,comm"
20908         PFILES="${PFILES} \
20909            platforms/aix/Makefile"
20910         TAPEDRIVE="/dev/rmt0.1"
20911   ;;
20912 alpha)
20913         DISTVER=`uname -r`
20914         PTHREAD_LIB="-lpthread -lexc"
20915         if test "${CC}" = "gcc" ; then
20916            lld="lld"
20917            llu="llu"
20918         else
20919            lld="ld"
20920            llu="lu"
20921         fi
20922         TAPEDRIVE="/dev/nrmt0"
20923   ;;
20924 bsdi)
20925         DISTVER=`uname -a |awk '{print $3}'`
20926         TAPEDRIVE="/dev/nrmt0"
20927         PTHREAD_LIB="-pthread"
20928         CFLAGS="${CFLAGS} -pthread"
20929         PSCMD="ps -ax -o pid,command"
20930         lld="qd"
20931         llu="qu"
20932         PFILES="${PFILES} \
20933             platforms/bsdi/Makefile \
20934             platforms/bsdi/bacula-fd \
20935             platforms/bsdi/bacula-sd \
20936             platforms/bsdi/bacula-dir"
20937         largefile_support="yes"
20938   ;;
20939 cygwin)
20940         DISTVER=`uname -a |awk '{print $3}'`
20941         TAPEDRIVE="/dev/nrst0"
20942         WIN32=win32
20943         WCFLAGS="-mwindows"
20944         WLDFLAGS="-mwindows"
20945   ;;
20946 darwin)
20947         DISTVER=`uname -r`
20948         TAPEDRIVE="/dev/nst0"
20949         PSCMD="ps -e -o pid,command"
20950         MACOSX=macosx
20951         PFILES="${PFILES} \
20952            platforms/darwin/Makefile"
20953   ;;
20954 debian)
20955         DISTVER=`cat /etc/debian_version`
20956         TAPEDRIVE="/dev/nrst0"
20957         PSCMD="ps -e -o pid,command"
20958   ;;
20959 freebsd)
20960         DISTVER=`uname -a |awk '{print $3}'`
20961         VER=`echo $DISTVER | cut -c 1`
20962         if test x$VER = x4 ; then
20963            PTHREAD_LIB="-pthread"
20964            CFLAGS="${CFLAGS} -pthread"
20965         fi
20966         lld="qd"
20967         llu="qu"
20968         TAPEDRIVE="/dev/nrsa0"
20969         PSCMD="ps -ax -o pid,command"
20970         PFILES="${PFILES} \
20971             platforms/freebsd/Makefile \
20972             platforms/freebsd/bacula-fd \
20973             platforms/freebsd/bacula-sd \
20974             platforms/freebsd/bacula-dir"
20975         largefile_support="yes"
20976   ;;
20977 hpux)
20978         PSCMD="UNIX95=1 ps -e -o pid,comm"
20979         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
20980         DISTVER=`uname -r`
20981         TAPEDRIVE="/dev/rmt/0hnb"
20982         PTHREAD_LIB="-lpthread"
20983         cat >>confdefs.h <<\_ACEOF
20984 #define _INCLUDE_LONGLONG 1
20985 _ACEOF
20986
20987   ;;
20988 irix)
20989         DISTVER=`uname -r`
20990         TAPEDRIVE="/dev/rmt/0cbn"
20991         PSCMD="ps -e -o pid,comm"
20992         PFILES="${PFILES} \
20993             platforms/irix/Makefile \
20994             platforms/irix/bacula-fd \
20995             platforms/irix/bacula-sd \
20996             platforms/irix/bacula-dir"
20997   ;;
20998 netbsd)
20999         DISTVER=`uname -a |awk '{print $3}'`
21000         lld="qd"
21001         llu="qu"
21002         TAPEDRIVE="/dev/nrst0"
21003         PSCMD="ps -ax -o pid,command"
21004         PTHREAD_LIB="-pthread"
21005         CFLAGS="${CFLAGS} -pthread"
21006   ;;
21007 openbsd)
21008         DISTVER=`uname -a |awk '{print $3}'`
21009         lld="qd"
21010         llu="qu"
21011         TAPEDRIVE="/dev/nrst0"
21012         PSCMD="ps -ax -o pid,command"
21013         PTHREAD_LIB="-pthread"
21014         CFLAGS="${CFLAGS} -pthread"
21015         PFILES="${PFILES} \
21016             platforms/openbsd/Makefile \
21017             platforms/openbsd/bacula-fd \
21018             platforms/openbsd/bacula-sd \
21019             platforms/openbsd/bacula-dir"
21020   ;;
21021 redhat)
21022         if test -f /etc/whitebox-release ; then
21023            f=/etc/whitebox-release
21024         else
21025            f=/etc/redhat-release
21026         fi
21027         if test `cat $f | grep release |\
21028                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21029            DISTVER="Enterprise "`cat $f | grep release |\
21030                     cut -f 6 -d ' '`
21031         else
21032             DISTVER=`cat /etc/redhat-release | grep release |\
21033                      cut -f 5 -d ' '`
21034         fi
21035         TAPEDRIVE="/dev/nst0"
21036         PSCMD="ps -e -o pid,command"
21037         PFILES="${PFILES} \
21038             platforms/redhat/Makefile \
21039             platforms/redhat/bacula-fd \
21040             platforms/redhat/bacula-sd \
21041             platforms/redhat/bacula-dir \
21042             platforms/redhat/bacula.spec \
21043             "
21044         hostname=`hostname -s`
21045   ;;
21046 mandrake)
21047         DISTVER=`cat /etc/mandrake-release | grep release |\
21048            cut -f 5 -d ' '`
21049         TAPEDRIVE="/dev/nst0"
21050         PSCMD="ps -e -o pid,command"
21051         PFILES="${PFILES} \
21052             platforms/mandrake/Makefile \
21053             platforms/mandrake/bacula-fd \
21054             platforms/mandrake/bacula-sd \
21055             platforms/mandrake/bacula-dir \
21056             platforms/mandrake/bacula.spec \
21057             "
21058   ;;
21059 gentoo)
21060         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21061         TAPEDRIVE="/dev/nst0"
21062         PSCMD="ps -e -o pid,command"
21063         PFILES="${PFILES} \
21064             platforms/gentoo/Makefile \
21065          platforms/gentoo/bacula-init \
21066             platforms/gentoo/bacula-fd \
21067             platforms/gentoo/bacula-sd \
21068             platforms/gentoo/bacula-dir"
21069   ;;
21070 slackware)
21071         DISTVER=`cat /etc/slackware-version`
21072         TAPEDRIVE="/dev/nst0"
21073         PSCMD="ps -e -o pid,command"
21074         PFILES="${PFILES} \
21075             platforms/slackware/Makefile \
21076             platforms/slackware/rc.bacula-fd \
21077             platforms/slackware/rc.bacula-sd \
21078             platforms/slackware/rc.bacula-dir\
21079             platforms/slackware/functions.bacula"
21080   ;;
21081 solaris)
21082         DISTVER=`uname -r`
21083         TAPEDRIVE="/dev/rmt/0cbn"
21084         PSCMD="ps -e -o pid,comm"
21085         PFILES="${PFILES} \
21086             platforms/solaris/Makefile \
21087             platforms/solaris/bacula-fd \
21088             platforms/solaris/bacula-sd \
21089             platforms/solaris/bacula-dir"
21090         if test x$DISTVER = x5.6 ; then
21091             cat >>confdefs.h <<\_ACEOF
21092 #define HAVE_OLD_SOCKOPT 1
21093 _ACEOF
21094
21095         fi
21096         LIBS="$LIBS -lresolv"
21097   ;;
21098 suse)
21099         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21100             cut -f 3 -d ' '`
21101         TAPEDRIVE="/dev/nst0"
21102         PSCMD="ps -e -o pid,command"
21103         PFILES="${PFILES} \
21104             platforms/suse/Makefile \
21105             platforms/suse/bacula-fd \
21106             platforms/suse/bacula-sd \
21107             platforms/suse/bacula-dir \
21108             platforms/suse/bacula \
21109             platforms/suse/bacula.spec"
21110   ;;
21111 suse5)
21112         DISTNAME=suse
21113         DISTVER=5.x
21114         TAPEDRIVE="/dev/nst0"
21115         PSCMD="ps -e -o pid,command"
21116         PFILES="${PFILES} \
21117             platforms/suse/Makefile \
21118             platforms/suse/bacula-fd \
21119             platforms/suse/bacula-sd \
21120             platforms/suse/bacula-dir"
21121   ;;
21122 unknown)
21123         DISTVER=unknown
21124         TAPEDRIVE="/dev/nst0"
21125   ;;
21126 *)
21127   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21128   ;;
21129 esac
21130
21131
21132
21133 LIBS="$PTHREAD_LIB $LIBS"
21134
21135 cat >>confdefs.h <<_ACEOF
21136 #define lld "$lld"
21137 _ACEOF
21138
21139 cat >>confdefs.h <<_ACEOF
21140 #define llu "$llu"
21141 _ACEOF
21142
21143
21144
21145
21146
21147
21148
21149
21150 MCOMMON=./autoconf/Make.common
21151
21152
21153 if test "x${subsysdir}" = "x${sbindir}" ; then
21154    echo " "
21155    echo " "
21156    echo "You have set both --sbindir and --with-subsys-dir"
21157    echo "  equal to: ${subsysdir} "
21158    echo "This is not permitted. Please reconfigure."
21159    echo " "
21160    echo "Aborting configuration ..."
21161    echo " "
21162    echo " "
21163    exit 1
21164 fi
21165
21166                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             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"
21167           ac_config_commands="$ac_config_commands default"
21168 cat >confcache <<\_ACEOF
21169 # This file is a shell script that caches the results of configure
21170 # tests run on this system so they can be shared between configure
21171 # scripts and configure runs, see configure's option --config-cache.
21172 # It is not useful on other systems.  If it contains results you don't
21173 # want to keep, you may remove or edit it.
21174 #
21175 # config.status only pays attention to the cache file if you give it
21176 # the --recheck option to rerun configure.
21177 #
21178 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21179 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21180 # following values.
21181
21182 _ACEOF
21183
21184 # The following way of writing the cache mishandles newlines in values,
21185 # but we know of no workaround that is simple, portable, and efficient.
21186 # So, don't put newlines in cache variables' values.
21187 # Ultrix sh set writes to stderr and can't be redirected directly,
21188 # and sets the high bit in the cache file unless we assign to the vars.
21189 {
21190   (set) 2>&1 |
21191     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21192     *ac_space=\ *)
21193       # `set' does not quote correctly, so add quotes (double-quote
21194       # substitution turns \\\\ into \\, and sed turns \\ into \).
21195       sed -n \
21196         "s/'/'\\\\''/g;
21197           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21198       ;;
21199     *)
21200       # `set' quotes correctly as required by POSIX, so do not add quotes.
21201       sed -n \
21202         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21203       ;;
21204     esac;
21205 } |
21206   sed '
21207      t clear
21208      : clear
21209      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21210      t end
21211      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21212      : end' >>confcache
21213 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21214   if test -w $cache_file; then
21215     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21216     cat confcache >$cache_file
21217   else
21218     echo "not updating unwritable cache $cache_file"
21219   fi
21220 fi
21221 rm -f confcache
21222
21223 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21224 # Let make expand exec_prefix.
21225 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21226
21227 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21228 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21229 # trailing colons and then remove the whole line if VPATH becomes empty
21230 # (actually we leave an empty line to preserve line numbers).
21231 if test "x$srcdir" = x.; then
21232   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21233 s/:*\$(srcdir):*/:/;
21234 s/:*\${srcdir}:*/:/;
21235 s/:*@srcdir@:*/:/;
21236 s/^\([^=]*=[     ]*\):*/\1/;
21237 s/:*$//;
21238 s/^[^=]*=[       ]*$//;
21239 }'
21240 fi
21241
21242 DEFS=-DHAVE_CONFIG_H
21243
21244 ac_libobjs=
21245 ac_ltlibobjs=
21246 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21247   # 1. Remove the extension, and $U if already installed.
21248   ac_i=`echo "$ac_i" |
21249          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21250   # 2. Add them.
21251   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21252   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21253 done
21254 LIBOBJS=$ac_libobjs
21255
21256 LTLIBOBJS=$ac_ltlibobjs
21257
21258
21259
21260 : ${CONFIG_STATUS=./config.status}
21261 ac_clean_files_save=$ac_clean_files
21262 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21263 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21264 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21265 cat >$CONFIG_STATUS <<_ACEOF
21266 #! $SHELL
21267 # Generated by $as_me.
21268 # Run this file to recreate the current configuration.
21269 # Compiler output produced by configure, useful for debugging
21270 # configure, is in config.log if it exists.
21271
21272 debug=false
21273 ac_cs_recheck=false
21274 ac_cs_silent=false
21275 SHELL=\${CONFIG_SHELL-$SHELL}
21276 _ACEOF
21277
21278 cat >>$CONFIG_STATUS <<\_ACEOF
21279 ## --------------------- ##
21280 ## M4sh Initialization.  ##
21281 ## --------------------- ##
21282
21283 # Be Bourne compatible
21284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21285   emulate sh
21286   NULLCMD=:
21287   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21288   # is contrary to our usage.  Disable this feature.
21289   alias -g '${1+"$@"}'='"$@"'
21290 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21291   set -o posix
21292 fi
21293 DUALCASE=1; export DUALCASE # for MKS sh
21294
21295 # Support unset when possible.
21296 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21297   as_unset=unset
21298 else
21299   as_unset=false
21300 fi
21301
21302
21303 # Work around bugs in pre-3.0 UWIN ksh.
21304 $as_unset ENV MAIL MAILPATH
21305 PS1='$ '
21306 PS2='> '
21307 PS4='+ '
21308
21309 # NLS nuisances.
21310 for as_var in \
21311   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21312   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21313   LC_TELEPHONE LC_TIME
21314 do
21315   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21316     eval $as_var=C; export $as_var
21317   else
21318     $as_unset $as_var
21319   fi
21320 done
21321
21322 # Required to use basename.
21323 if expr a : '\(a\)' >/dev/null 2>&1; then
21324   as_expr=expr
21325 else
21326   as_expr=false
21327 fi
21328
21329 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21330   as_basename=basename
21331 else
21332   as_basename=false
21333 fi
21334
21335
21336 # Name of the executable.
21337 as_me=`$as_basename "$0" ||
21338 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21339          X"$0" : 'X\(//\)$' \| \
21340          X"$0" : 'X\(/\)$' \| \
21341          .     : '\(.\)' 2>/dev/null ||
21342 echo X/"$0" |
21343     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21344           /^X\/\(\/\/\)$/{ s//\1/; q; }
21345           /^X\/\(\/\).*/{ s//\1/; q; }
21346           s/.*/./; q'`
21347
21348
21349 # PATH needs CR, and LINENO needs CR and PATH.
21350 # Avoid depending upon Character Ranges.
21351 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21352 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21353 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21354 as_cr_digits='0123456789'
21355 as_cr_alnum=$as_cr_Letters$as_cr_digits
21356
21357 # The user is always right.
21358 if test "${PATH_SEPARATOR+set}" != set; then
21359   echo "#! /bin/sh" >conf$$.sh
21360   echo  "exit 0"   >>conf$$.sh
21361   chmod +x conf$$.sh
21362   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21363     PATH_SEPARATOR=';'
21364   else
21365     PATH_SEPARATOR=:
21366   fi
21367   rm -f conf$$.sh
21368 fi
21369
21370
21371   as_lineno_1=$LINENO
21372   as_lineno_2=$LINENO
21373   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21374   test "x$as_lineno_1" != "x$as_lineno_2" &&
21375   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21376   # Find who we are.  Look in the path if we contain no path at all
21377   # relative or not.
21378   case $0 in
21379     *[\\/]* ) as_myself=$0 ;;
21380     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21381 for as_dir in $PATH
21382 do
21383   IFS=$as_save_IFS
21384   test -z "$as_dir" && as_dir=.
21385   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21386 done
21387
21388        ;;
21389   esac
21390   # We did not find ourselves, most probably we were run as `sh COMMAND'
21391   # in which case we are not to be found in the path.
21392   if test "x$as_myself" = x; then
21393     as_myself=$0
21394   fi
21395   if test ! -f "$as_myself"; then
21396     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21397 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21398    { (exit 1); exit 1; }; }
21399   fi
21400   case $CONFIG_SHELL in
21401   '')
21402     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21403 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21404 do
21405   IFS=$as_save_IFS
21406   test -z "$as_dir" && as_dir=.
21407   for as_base in sh bash ksh sh5; do
21408          case $as_dir in
21409          /*)
21410            if ("$as_dir/$as_base" -c '
21411   as_lineno_1=$LINENO
21412   as_lineno_2=$LINENO
21413   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21414   test "x$as_lineno_1" != "x$as_lineno_2" &&
21415   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21416              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21417              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21418              CONFIG_SHELL=$as_dir/$as_base
21419              export CONFIG_SHELL
21420              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21421            fi;;
21422          esac
21423        done
21424 done
21425 ;;
21426   esac
21427
21428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21429   # uniformly replaced by the line number.  The first 'sed' inserts a
21430   # line-number line before each line; the second 'sed' does the real
21431   # work.  The second script uses 'N' to pair each line-number line
21432   # with the numbered line, and appends trailing '-' during
21433   # substitution so that $LINENO is not a special case at line end.
21434   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21435   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21436   sed '=' <$as_myself |
21437     sed '
21438       N
21439       s,$,-,
21440       : loop
21441       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21442       t loop
21443       s,-$,,
21444       s,^['$as_cr_digits']*\n,,
21445     ' >$as_me.lineno &&
21446   chmod +x $as_me.lineno ||
21447     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21448 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21449    { (exit 1); exit 1; }; }
21450
21451   # Don't try to exec as it changes $[0], causing all sort of problems
21452   # (the dirname of $[0] is not the place where we might find the
21453   # original and so on.  Autoconf is especially sensible to this).
21454   . ./$as_me.lineno
21455   # Exit status is that of the last command.
21456   exit
21457 }
21458
21459
21460 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21461   *c*,-n*) ECHO_N= ECHO_C='
21462 ' ECHO_T='      ' ;;
21463   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21464   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21465 esac
21466
21467 if expr a : '\(a\)' >/dev/null 2>&1; then
21468   as_expr=expr
21469 else
21470   as_expr=false
21471 fi
21472
21473 rm -f conf$$ conf$$.exe conf$$.file
21474 echo >conf$$.file
21475 if ln -s conf$$.file conf$$ 2>/dev/null; then
21476   # We could just check for DJGPP; but this test a) works b) is more generic
21477   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21478   if test -f conf$$.exe; then
21479     # Don't use ln at all; we don't have any links
21480     as_ln_s='cp -p'
21481   else
21482     as_ln_s='ln -s'
21483   fi
21484 elif ln conf$$.file conf$$ 2>/dev/null; then
21485   as_ln_s=ln
21486 else
21487   as_ln_s='cp -p'
21488 fi
21489 rm -f conf$$ conf$$.exe conf$$.file
21490
21491 if mkdir -p . 2>/dev/null; then
21492   as_mkdir_p=:
21493 else
21494   test -d ./-p && rmdir ./-p
21495   as_mkdir_p=false
21496 fi
21497
21498 as_executable_p="test -f"
21499
21500 # Sed expression to map a string onto a valid CPP name.
21501 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21502
21503 # Sed expression to map a string onto a valid variable name.
21504 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21505
21506
21507 # IFS
21508 # We need space, tab and new line, in precisely that order.
21509 as_nl='
21510 '
21511 IFS="   $as_nl"
21512
21513 # CDPATH.
21514 $as_unset CDPATH
21515
21516 exec 6>&1
21517
21518 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21519 # report actual input values of CONFIG_FILES etc. instead of their
21520 # values after options handling.  Logging --version etc. is OK.
21521 exec 5>>config.log
21522 {
21523   echo
21524   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21525 ## Running $as_me. ##
21526 _ASBOX
21527 } >&5
21528 cat >&5 <<_CSEOF
21529
21530 This file was extended by $as_me, which was
21531 generated by GNU Autoconf 2.59.  Invocation command line was
21532
21533   CONFIG_FILES    = $CONFIG_FILES
21534   CONFIG_HEADERS  = $CONFIG_HEADERS
21535   CONFIG_LINKS    = $CONFIG_LINKS
21536   CONFIG_COMMANDS = $CONFIG_COMMANDS
21537   $ $0 $@
21538
21539 _CSEOF
21540 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21541 echo >&5
21542 _ACEOF
21543
21544 # Files that config.status was made for.
21545 if test -n "$ac_config_files"; then
21546   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21547 fi
21548
21549 if test -n "$ac_config_headers"; then
21550   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21551 fi
21552
21553 if test -n "$ac_config_links"; then
21554   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21555 fi
21556
21557 if test -n "$ac_config_commands"; then
21558   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21559 fi
21560
21561 cat >>$CONFIG_STATUS <<\_ACEOF
21562
21563 ac_cs_usage="\
21564 \`$as_me' instantiates files from templates according to the
21565 current configuration.
21566
21567 Usage: $0 [OPTIONS] [FILE]...
21568
21569   -h, --help       print this help, then exit
21570   -V, --version    print version number, then exit
21571   -q, --quiet      do not print progress messages
21572   -d, --debug      don't remove temporary files
21573       --recheck    update $as_me by reconfiguring in the same conditions
21574   --file=FILE[:TEMPLATE]
21575                    instantiate the configuration file FILE
21576   --header=FILE[:TEMPLATE]
21577                    instantiate the configuration header FILE
21578
21579 Configuration files:
21580 $config_files
21581
21582 Configuration headers:
21583 $config_headers
21584
21585 Configuration commands:
21586 $config_commands
21587
21588 Report bugs to <bug-autoconf@gnu.org>."
21589 _ACEOF
21590
21591 cat >>$CONFIG_STATUS <<_ACEOF
21592 ac_cs_version="\\
21593 config.status
21594 configured by $0, generated by GNU Autoconf 2.59,
21595   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21596
21597 Copyright (C) 2003 Free Software Foundation, Inc.
21598 This config.status script is free software; the Free Software Foundation
21599 gives unlimited permission to copy, distribute and modify it."
21600 srcdir=$srcdir
21601 INSTALL="$INSTALL"
21602 _ACEOF
21603
21604 cat >>$CONFIG_STATUS <<\_ACEOF
21605 # If no file are specified by the user, then we need to provide default
21606 # value.  By we need to know if files were specified by the user.
21607 ac_need_defaults=:
21608 while test $# != 0
21609 do
21610   case $1 in
21611   --*=*)
21612     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21613     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21614     ac_shift=:
21615     ;;
21616   -*)
21617     ac_option=$1
21618     ac_optarg=$2
21619     ac_shift=shift
21620     ;;
21621   *) # This is not an option, so the user has probably given explicit
21622      # arguments.
21623      ac_option=$1
21624      ac_need_defaults=false;;
21625   esac
21626
21627   case $ac_option in
21628   # Handling of the options.
21629 _ACEOF
21630 cat >>$CONFIG_STATUS <<\_ACEOF
21631   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21632     ac_cs_recheck=: ;;
21633   --version | --vers* | -V )
21634     echo "$ac_cs_version"; exit 0 ;;
21635   --he | --h)
21636     # Conflict between --help and --header
21637     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21638 Try \`$0 --help' for more information." >&5
21639 echo "$as_me: error: ambiguous option: $1
21640 Try \`$0 --help' for more information." >&2;}
21641    { (exit 1); exit 1; }; };;
21642   --help | --hel | -h )
21643     echo "$ac_cs_usage"; exit 0 ;;
21644   --debug | --d* | -d )
21645     debug=: ;;
21646   --file | --fil | --fi | --f )
21647     $ac_shift
21648     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21649     ac_need_defaults=false;;
21650   --header | --heade | --head | --hea )
21651     $ac_shift
21652     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21653     ac_need_defaults=false;;
21654   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21655   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21656     ac_cs_silent=: ;;
21657
21658   # This is an error.
21659   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21660 Try \`$0 --help' for more information." >&5
21661 echo "$as_me: error: unrecognized option: $1
21662 Try \`$0 --help' for more information." >&2;}
21663    { (exit 1); exit 1; }; } ;;
21664
21665   *) ac_config_targets="$ac_config_targets $1" ;;
21666
21667   esac
21668   shift
21669 done
21670
21671 ac_configure_extra_args=
21672
21673 if $ac_cs_silent; then
21674   exec 6>/dev/null
21675   ac_configure_extra_args="$ac_configure_extra_args --silent"
21676 fi
21677
21678 _ACEOF
21679 cat >>$CONFIG_STATUS <<_ACEOF
21680 if \$ac_cs_recheck; then
21681   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21682   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21683 fi
21684
21685 _ACEOF
21686
21687
21688
21689
21690
21691 cat >>$CONFIG_STATUS <<\_ACEOF
21692 for ac_config_target in $ac_config_targets
21693 do
21694   case "$ac_config_target" in
21695   # Handling of arguments.
21696   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21697   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21698   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21699   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21700   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21701   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21702   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21703   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21704   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21705   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21706   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21707   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21708   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21709   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21710   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21711   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21712   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21713   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21714   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21715   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21716   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21717   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
21718   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
21719   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
21720   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
21721   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
21722   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21723   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21724   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21725   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21726   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21727   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21728   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21729   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21730   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
21731   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
21732   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21733   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21734   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21735   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21736   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21737   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21738   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21739   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21740   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21741   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
21742   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
21743   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
21744   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
21745   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
21746   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
21747   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
21748   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
21749   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
21750   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
21751   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
21752   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
21753   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
21754   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
21755   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
21756   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
21757   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
21758   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
21759   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
21760   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
21761   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
21762   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
21763   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
21764   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
21765   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
21766   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
21767   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
21768   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
21769   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
21770   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
21771   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
21772   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
21773   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
21774   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
21775   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
21776   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
21777   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
21778   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
21779   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
21780   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
21781   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
21782   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21783   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
21784   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
21785   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
21786   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
21787   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
21788   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
21789   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
21790   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21791   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
21792   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21793 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21794    { (exit 1); exit 1; }; };;
21795   esac
21796 done
21797
21798 # If the user did not use the arguments to specify the items to instantiate,
21799 # then the envvar interface is used.  Set only those that are not.
21800 # We use the long form for the default assignment because of an extremely
21801 # bizarre bug on SunOS 4.1.3.
21802 if $ac_need_defaults; then
21803   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21804   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21805   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21806 fi
21807
21808 # Have a temporary directory for convenience.  Make it in the build tree
21809 # simply because there is no reason to put it here, and in addition,
21810 # creating and moving files from /tmp can sometimes cause problems.
21811 # Create a temporary directory, and hook for its removal unless debugging.
21812 $debug ||
21813 {
21814   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21815   trap '{ (exit 1); exit 1; }' 1 2 13 15
21816 }
21817
21818 # Create a (secure) tmp directory for tmp files.
21819
21820 {
21821   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21822   test -n "$tmp" && test -d "$tmp"
21823 }  ||
21824 {
21825   tmp=./confstat$$-$RANDOM
21826   (umask 077 && mkdir $tmp)
21827 } ||
21828 {
21829    echo "$me: cannot create a temporary directory in ." >&2
21830    { (exit 1); exit 1; }
21831 }
21832
21833 _ACEOF
21834
21835 cat >>$CONFIG_STATUS <<_ACEOF
21836
21837 #
21838 # CONFIG_FILES section.
21839 #
21840
21841 # No need to generate the scripts if there are no CONFIG_FILES.
21842 # This happens for instance when ./config.status config.h
21843 if test -n "\$CONFIG_FILES"; then
21844   # Protect against being on the right side of a sed subst in config.status.
21845   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21846    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21847 s,@SHELL@,$SHELL,;t t
21848 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21849 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21850 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21851 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21852 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21853 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21854 s,@exec_prefix@,$exec_prefix,;t t
21855 s,@prefix@,$prefix,;t t
21856 s,@program_transform_name@,$program_transform_name,;t t
21857 s,@bindir@,$bindir,;t t
21858 s,@sbindir@,$sbindir,;t t
21859 s,@libexecdir@,$libexecdir,;t t
21860 s,@datadir@,$datadir,;t t
21861 s,@sysconfdir@,$sysconfdir,;t t
21862 s,@sharedstatedir@,$sharedstatedir,;t t
21863 s,@localstatedir@,$localstatedir,;t t
21864 s,@libdir@,$libdir,;t t
21865 s,@includedir@,$includedir,;t t
21866 s,@oldincludedir@,$oldincludedir,;t t
21867 s,@infodir@,$infodir,;t t
21868 s,@mandir@,$mandir,;t t
21869 s,@build_alias@,$build_alias,;t t
21870 s,@host_alias@,$host_alias,;t t
21871 s,@target_alias@,$target_alias,;t t
21872 s,@DEFS@,$DEFS,;t t
21873 s,@ECHO_C@,$ECHO_C,;t t
21874 s,@ECHO_N@,$ECHO_N,;t t
21875 s,@ECHO_T@,$ECHO_T,;t t
21876 s,@LIBS@,$LIBS,;t t
21877 s,@BUILD_DIR@,$BUILD_DIR,;t t
21878 s,@TRUEPRG@,$TRUEPRG,;t t
21879 s,@FALSEPRG@,$FALSEPRG,;t t
21880 s,@VERSION@,$VERSION,;t t
21881 s,@DATE@,$DATE,;t t
21882 s,@LSMDATE@,$LSMDATE,;t t
21883 s,@CC@,$CC,;t t
21884 s,@CFLAGS@,$CFLAGS,;t t
21885 s,@LDFLAGS@,$LDFLAGS,;t t
21886 s,@CPPFLAGS@,$CPPFLAGS,;t t
21887 s,@ac_ct_CC@,$ac_ct_CC,;t t
21888 s,@EXEEXT@,$EXEEXT,;t t
21889 s,@OBJEXT@,$OBJEXT,;t t
21890 s,@CXX@,$CXX,;t t
21891 s,@CXXFLAGS@,$CXXFLAGS,;t t
21892 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21893 s,@CPP@,$CPP,;t t
21894 s,@EGREP@,$EGREP,;t t
21895 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21896 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21897 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21898 s,@RANLIB@,$RANLIB,;t t
21899 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21900 s,@MV@,$MV,;t t
21901 s,@RM@,$RM,;t t
21902 s,@CP@,$CP,;t t
21903 s,@SED@,$SED,;t t
21904 s,@ECHO@,$ECHO,;t t
21905 s,@CMP@,$CMP,;t t
21906 s,@TBL@,$TBL,;t t
21907 s,@AR@,$AR,;t t
21908 s,@OPENSSL@,$OPENSSL,;t t
21909 s,@MTX@,$MTX,;t t
21910 s,@MKISOFS@,$MKISOFS,;t t
21911 s,@PYTHON@,$PYTHON,;t t
21912 s,@GROWISOFS@,$GROWISOFS,;t t
21913 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
21914 s,@PKGCONFIG@,$PKGCONFIG,;t t
21915 s,@WXCONFIG@,$WXCONFIG,;t t
21916 s,@WXFLAGS@,$WXFLAGS,;t t
21917 s,@CDRECORD@,$CDRECORD,;t t
21918 s,@PIDOF@,$PIDOF,;t t
21919 s,@AWK@,$AWK,;t t
21920 s,@ARFLAGS@,$ARFLAGS,;t t
21921 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
21922 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
21923 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
21924 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21925 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
21926 s,@build@,$build,;t t
21927 s,@build_cpu@,$build_cpu,;t t
21928 s,@build_vendor@,$build_vendor,;t t
21929 s,@build_os@,$build_os,;t t
21930 s,@host@,$host,;t t
21931 s,@host_cpu@,$host_cpu,;t t
21932 s,@host_vendor@,$host_vendor,;t t
21933 s,@host_os@,$host_os,;t t
21934 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
21935 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
21936 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
21937 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
21938 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
21939 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
21940 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
21941 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
21942 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
21943 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
21944 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
21945 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
21946 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
21947 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
21948 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
21949 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
21950 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
21951 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
21952 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
21953 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
21954 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
21955 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
21956 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
21957 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
21958 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
21959 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
21960 s,@MSGFMT@,$MSGFMT,;t t
21961 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
21962 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
21963 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
21964 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
21965 s,@GNOME_DIR@,$GNOME_DIR,;t t
21966 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
21967 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
21968 s,@WX_DIR@,$WX_DIR,;t t
21969 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
21970 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
21971 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
21972 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
21973 s,@STATIC_FD@,$STATIC_FD,;t t
21974 s,@STATIC_SD@,$STATIC_SD,;t t
21975 s,@STATIC_DIR@,$STATIC_DIR,;t t
21976 s,@STATIC_CONS@,$STATIC_CONS,;t t
21977 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
21978 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
21979 s,@ALL_DIRS@,$ALL_DIRS,;t t
21980 s,@CONS_INC@,$CONS_INC,;t t
21981 s,@CONS_OBJ@,$CONS_OBJ,;t t
21982 s,@CONS_SRC@,$CONS_SRC,;t t
21983 s,@CONS_LIBS@,$CONS_LIBS,;t t
21984 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
21985 s,@READLINE_SRC@,$READLINE_SRC,;t t
21986 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
21987 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
21988 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
21989 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
21990 s,@working_dir@,$working_dir,;t t
21991 s,@scriptdir@,$scriptdir,;t t
21992 s,@dump_email@,$dump_email,;t t
21993 s,@job_email@,$job_email,;t t
21994 s,@smtp_host@,$smtp_host,;t t
21995 s,@piddir@,$piddir,;t t
21996 s,@subsysdir@,$subsysdir,;t t
21997 s,@baseport@,$baseport,;t t
21998 s,@dir_port@,$dir_port,;t t
21999 s,@fd_port@,$fd_port,;t t
22000 s,@sd_port@,$sd_port,;t t
22001 s,@dir_password@,$dir_password,;t t
22002 s,@fd_password@,$fd_password,;t t
22003 s,@sd_password@,$sd_password,;t t
22004 s,@mon_dir_password@,$mon_dir_password,;t t
22005 s,@mon_fd_password@,$mon_fd_password,;t t
22006 s,@mon_sd_password@,$mon_sd_password,;t t
22007 s,@dir_user@,$dir_user,;t t
22008 s,@dir_group@,$dir_group,;t t
22009 s,@sd_user@,$sd_user,;t t
22010 s,@sd_group@,$sd_group,;t t
22011 s,@fd_user@,$fd_user,;t t
22012 s,@fd_group@,$fd_group,;t t
22013 s,@SBINPERM@,$SBINPERM,;t t
22014 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22015 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22016 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22017 s,@cats@,$cats,;t t
22018 s,@DB_NAME@,$DB_NAME,;t t
22019 s,@GETCONF@,$GETCONF,;t t
22020 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22021 s,@X_CFLAGS@,$X_CFLAGS,;t t
22022 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22023 s,@X_LIBS@,$X_LIBS,;t t
22024 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22025 s,@LIBOBJS@,$LIBOBJS,;t t
22026 s,@ALLOCA@,$ALLOCA,;t t
22027 s,@FDLIBS@,$FDLIBS,;t t
22028 s,@DEBUG@,$DEBUG,;t t
22029 s,@DINCLUDE@,$DINCLUDE,;t t
22030 s,@DLIB@,$DLIB,;t t
22031 s,@DB_LIBS@,$DB_LIBS,;t t
22032 s,@WCFLAGS@,$WCFLAGS,;t t
22033 s,@WLDFLAGS@,$WLDFLAGS,;t t
22034 s,@OBJLIST@,$OBJLIST,;t t
22035 s,@hostname@,$hostname,;t t
22036 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22037 s,@PSCMD@,$PSCMD,;t t
22038 s,@WIN32@,$WIN32,;t t
22039 s,@MACOSX@,$MACOSX,;t t
22040 s,@DISTNAME@,$DISTNAME,;t t
22041 s,@DISTVER@,$DISTVER,;t t
22042 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22043 /@MCOMMON@/r $MCOMMON
22044 s,@MCOMMON@,,;t t
22045 CEOF
22046
22047 _ACEOF
22048
22049   cat >>$CONFIG_STATUS <<\_ACEOF
22050   # Split the substitutions into bite-sized pieces for seds with
22051   # small command number limits, like on Digital OSF/1 and HP-UX.
22052   ac_max_sed_lines=48
22053   ac_sed_frag=1 # Number of current file.
22054   ac_beg=1 # First line for current file.
22055   ac_end=$ac_max_sed_lines # Line after last line for current file.
22056   ac_more_lines=:
22057   ac_sed_cmds=
22058   while $ac_more_lines; do
22059     if test $ac_beg -gt 1; then
22060       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22061     else
22062       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22063     fi
22064     if test ! -s $tmp/subs.frag; then
22065       ac_more_lines=false
22066     else
22067       # The purpose of the label and of the branching condition is to
22068       # speed up the sed processing (if there are no `@' at all, there
22069       # is no need to browse any of the substitutions).
22070       # These are the two extra sed commands mentioned above.
22071       (echo ':t
22072   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22073       if test -z "$ac_sed_cmds"; then
22074         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22075       else
22076         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22077       fi
22078       ac_sed_frag=`expr $ac_sed_frag + 1`
22079       ac_beg=$ac_end
22080       ac_end=`expr $ac_end + $ac_max_sed_lines`
22081     fi
22082   done
22083   if test -z "$ac_sed_cmds"; then
22084     ac_sed_cmds=cat
22085   fi
22086 fi # test -n "$CONFIG_FILES"
22087
22088 _ACEOF
22089 cat >>$CONFIG_STATUS <<\_ACEOF
22090 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22091   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22092   case $ac_file in
22093   - | *:- | *:-:* ) # input from stdin
22094         cat >$tmp/stdin
22095         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22096         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22097   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22098         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22099   * )   ac_file_in=$ac_file.in ;;
22100   esac
22101
22102   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22103   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22105          X"$ac_file" : 'X\(//\)[^/]' \| \
22106          X"$ac_file" : 'X\(//\)$' \| \
22107          X"$ac_file" : 'X\(/\)' \| \
22108          .     : '\(.\)' 2>/dev/null ||
22109 echo X"$ac_file" |
22110     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22111           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22112           /^X\(\/\/\)$/{ s//\1/; q; }
22113           /^X\(\/\).*/{ s//\1/; q; }
22114           s/.*/./; q'`
22115   { if $as_mkdir_p; then
22116     mkdir -p "$ac_dir"
22117   else
22118     as_dir="$ac_dir"
22119     as_dirs=
22120     while test ! -d "$as_dir"; do
22121       as_dirs="$as_dir $as_dirs"
22122       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22124          X"$as_dir" : 'X\(//\)[^/]' \| \
22125          X"$as_dir" : 'X\(//\)$' \| \
22126          X"$as_dir" : 'X\(/\)' \| \
22127          .     : '\(.\)' 2>/dev/null ||
22128 echo X"$as_dir" |
22129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22130           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22131           /^X\(\/\/\)$/{ s//\1/; q; }
22132           /^X\(\/\).*/{ s//\1/; q; }
22133           s/.*/./; q'`
22134     done
22135     test ! -n "$as_dirs" || mkdir $as_dirs
22136   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22137 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22138    { (exit 1); exit 1; }; }; }
22139
22140   ac_builddir=.
22141
22142 if test "$ac_dir" != .; then
22143   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22144   # A "../" for each directory in $ac_dir_suffix.
22145   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22146 else
22147   ac_dir_suffix= ac_top_builddir=
22148 fi
22149
22150 case $srcdir in
22151   .)  # No --srcdir option.  We are building in place.
22152     ac_srcdir=.
22153     if test -z "$ac_top_builddir"; then
22154        ac_top_srcdir=.
22155     else
22156        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22157     fi ;;
22158   [\\/]* | ?:[\\/]* )  # Absolute path.
22159     ac_srcdir=$srcdir$ac_dir_suffix;
22160     ac_top_srcdir=$srcdir ;;
22161   *) # Relative path.
22162     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22163     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22164 esac
22165
22166 # Do not use `cd foo && pwd` to compute absolute paths, because
22167 # the directories may not exist.
22168 case `pwd` in
22169 .) ac_abs_builddir="$ac_dir";;
22170 *)
22171   case "$ac_dir" in
22172   .) ac_abs_builddir=`pwd`;;
22173   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22174   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22175   esac;;
22176 esac
22177 case $ac_abs_builddir in
22178 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22179 *)
22180   case ${ac_top_builddir}. in
22181   .) ac_abs_top_builddir=$ac_abs_builddir;;
22182   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22183   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22184   esac;;
22185 esac
22186 case $ac_abs_builddir in
22187 .) ac_abs_srcdir=$ac_srcdir;;
22188 *)
22189   case $ac_srcdir in
22190   .) ac_abs_srcdir=$ac_abs_builddir;;
22191   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22192   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22193   esac;;
22194 esac
22195 case $ac_abs_builddir in
22196 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22197 *)
22198   case $ac_top_srcdir in
22199   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22200   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22201   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22202   esac;;
22203 esac
22204
22205
22206   case $INSTALL in
22207   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22208   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22209   esac
22210
22211   if test x"$ac_file" != x-; then
22212     { echo "$as_me:$LINENO: creating $ac_file" >&5
22213 echo "$as_me: creating $ac_file" >&6;}
22214     rm -f "$ac_file"
22215   fi
22216   # Let's still pretend it is `configure' which instantiates (i.e., don't
22217   # use $as_me), people would be surprised to read:
22218   #    /* config.h.  Generated by config.status.  */
22219   if test x"$ac_file" = x-; then
22220     configure_input=
22221   else
22222     configure_input="$ac_file.  "
22223   fi
22224   configure_input=$configure_input"Generated from `echo $ac_file_in |
22225                                      sed 's,.*/,,'` by configure."
22226
22227   # First look for the input files in the build tree, otherwise in the
22228   # src tree.
22229   ac_file_inputs=`IFS=:
22230     for f in $ac_file_in; do
22231       case $f in
22232       -) echo $tmp/stdin ;;
22233       [\\/$]*)
22234          # Absolute (can't be DOS-style, as IFS=:)
22235          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22236 echo "$as_me: error: cannot find input file: $f" >&2;}
22237    { (exit 1); exit 1; }; }
22238          echo "$f";;
22239       *) # Relative
22240          if test -f "$f"; then
22241            # Build tree
22242            echo "$f"
22243          elif test -f "$srcdir/$f"; then
22244            # Source tree
22245            echo "$srcdir/$f"
22246          else
22247            # /dev/null tree
22248            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22249 echo "$as_me: error: cannot find input file: $f" >&2;}
22250    { (exit 1); exit 1; }; }
22251          fi;;
22252       esac
22253     done` || { (exit 1); exit 1; }
22254 _ACEOF
22255 cat >>$CONFIG_STATUS <<_ACEOF
22256   sed "$ac_vpsub
22257 $extrasub
22258 _ACEOF
22259 cat >>$CONFIG_STATUS <<\_ACEOF
22260 :t
22261 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22262 s,@configure_input@,$configure_input,;t t
22263 s,@srcdir@,$ac_srcdir,;t t
22264 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22265 s,@top_srcdir@,$ac_top_srcdir,;t t
22266 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22267 s,@builddir@,$ac_builddir,;t t
22268 s,@abs_builddir@,$ac_abs_builddir,;t t
22269 s,@top_builddir@,$ac_top_builddir,;t t
22270 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22271 s,@INSTALL@,$ac_INSTALL,;t t
22272 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22273   rm -f $tmp/stdin
22274   if test x"$ac_file" != x-; then
22275     mv $tmp/out $ac_file
22276   else
22277     cat $tmp/out
22278     rm -f $tmp/out
22279   fi
22280
22281 done
22282 _ACEOF
22283 cat >>$CONFIG_STATUS <<\_ACEOF
22284
22285 #
22286 # CONFIG_HEADER section.
22287 #
22288
22289 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22290 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22291 #
22292 # ac_d sets the value in "#define NAME VALUE" lines.
22293 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22294 ac_dB='[         ].*$,\1#\2'
22295 ac_dC=' '
22296 ac_dD=',;t'
22297 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22298 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22299 ac_uB='$,\1#\2define\3'
22300 ac_uC=' '
22301 ac_uD=',;t'
22302
22303 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22304   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22305   case $ac_file in
22306   - | *:- | *:-:* ) # input from stdin
22307         cat >$tmp/stdin
22308         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22309         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22310   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22311         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22312   * )   ac_file_in=$ac_file.in ;;
22313   esac
22314
22315   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22316 echo "$as_me: creating $ac_file" >&6;}
22317
22318   # First look for the input files in the build tree, otherwise in the
22319   # src tree.
22320   ac_file_inputs=`IFS=:
22321     for f in $ac_file_in; do
22322       case $f in
22323       -) echo $tmp/stdin ;;
22324       [\\/$]*)
22325          # Absolute (can't be DOS-style, as IFS=:)
22326          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22327 echo "$as_me: error: cannot find input file: $f" >&2;}
22328    { (exit 1); exit 1; }; }
22329          # Do quote $f, to prevent DOS paths from being IFS'd.
22330          echo "$f";;
22331       *) # Relative
22332          if test -f "$f"; then
22333            # Build tree
22334            echo "$f"
22335          elif test -f "$srcdir/$f"; then
22336            # Source tree
22337            echo "$srcdir/$f"
22338          else
22339            # /dev/null tree
22340            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22341 echo "$as_me: error: cannot find input file: $f" >&2;}
22342    { (exit 1); exit 1; }; }
22343          fi;;
22344       esac
22345     done` || { (exit 1); exit 1; }
22346   # Remove the trailing spaces.
22347   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22348
22349 _ACEOF
22350
22351 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22352 # `conftest.undefs', that substitutes the proper values into
22353 # config.h.in to produce config.h.  The first handles `#define'
22354 # templates, and the second `#undef' templates.
22355 # And first: Protect against being on the right side of a sed subst in
22356 # config.status.  Protect against being in an unquoted here document
22357 # in config.status.
22358 rm -f conftest.defines conftest.undefs
22359 # Using a here document instead of a string reduces the quoting nightmare.
22360 # Putting comments in sed scripts is not portable.
22361 #
22362 # `end' is used to avoid that the second main sed command (meant for
22363 # 0-ary CPP macros) applies to n-ary macro definitions.
22364 # See the Autoconf documentation for `clear'.
22365 cat >confdef2sed.sed <<\_ACEOF
22366 s/[\\&,]/\\&/g
22367 s,[\\$`],\\&,g
22368 t clear
22369 : clear
22370 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22371 t end
22372 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22373 : end
22374 _ACEOF
22375 # If some macros were called several times there might be several times
22376 # the same #defines, which is useless.  Nevertheless, we may not want to
22377 # sort them, since we want the *last* AC-DEFINE to be honored.
22378 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22379 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22380 rm -f confdef2sed.sed
22381
22382 # This sed command replaces #undef with comments.  This is necessary, for
22383 # example, in the case of _POSIX_SOURCE, which is predefined and required
22384 # on some systems where configure will not decide to define it.
22385 cat >>conftest.undefs <<\_ACEOF
22386 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22387 _ACEOF
22388
22389 # Break up conftest.defines because some shells have a limit on the size
22390 # of here documents, and old seds have small limits too (100 cmds).
22391 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22392 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22393 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22394 echo '  :' >>$CONFIG_STATUS
22395 rm -f conftest.tail
22396 while grep . conftest.defines >/dev/null
22397 do
22398   # Write a limited-size here document to $tmp/defines.sed.
22399   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22400   # Speed up: don't consider the non `#define' lines.
22401   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22402   # Work around the forget-to-reset-the-flag bug.
22403   echo 't clr' >>$CONFIG_STATUS
22404   echo ': clr' >>$CONFIG_STATUS
22405   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22406   echo 'CEOF
22407   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22408   rm -f $tmp/in
22409   mv $tmp/out $tmp/in
22410 ' >>$CONFIG_STATUS
22411   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22412   rm -f conftest.defines
22413   mv conftest.tail conftest.defines
22414 done
22415 rm -f conftest.defines
22416 echo '  fi # grep' >>$CONFIG_STATUS
22417 echo >>$CONFIG_STATUS
22418
22419 # Break up conftest.undefs because some shells have a limit on the size
22420 # of here documents, and old seds have small limits too (100 cmds).
22421 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22422 rm -f conftest.tail
22423 while grep . conftest.undefs >/dev/null
22424 do
22425   # Write a limited-size here document to $tmp/undefs.sed.
22426   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22427   # Speed up: don't consider the non `#undef'
22428   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22429   # Work around the forget-to-reset-the-flag bug.
22430   echo 't clr' >>$CONFIG_STATUS
22431   echo ': clr' >>$CONFIG_STATUS
22432   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22433   echo 'CEOF
22434   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22435   rm -f $tmp/in
22436   mv $tmp/out $tmp/in
22437 ' >>$CONFIG_STATUS
22438   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22439   rm -f conftest.undefs
22440   mv conftest.tail conftest.undefs
22441 done
22442 rm -f conftest.undefs
22443
22444 cat >>$CONFIG_STATUS <<\_ACEOF
22445   # Let's still pretend it is `configure' which instantiates (i.e., don't
22446   # use $as_me), people would be surprised to read:
22447   #    /* config.h.  Generated by config.status.  */
22448   if test x"$ac_file" = x-; then
22449     echo "/* Generated by configure.  */" >$tmp/config.h
22450   else
22451     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22452   fi
22453   cat $tmp/in >>$tmp/config.h
22454   rm -f $tmp/in
22455   if test x"$ac_file" != x-; then
22456     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22457       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22458 echo "$as_me: $ac_file is unchanged" >&6;}
22459     else
22460       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22461 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22462          X"$ac_file" : 'X\(//\)[^/]' \| \
22463          X"$ac_file" : 'X\(//\)$' \| \
22464          X"$ac_file" : 'X\(/\)' \| \
22465          .     : '\(.\)' 2>/dev/null ||
22466 echo X"$ac_file" |
22467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22468           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22469           /^X\(\/\/\)$/{ s//\1/; q; }
22470           /^X\(\/\).*/{ s//\1/; q; }
22471           s/.*/./; q'`
22472       { if $as_mkdir_p; then
22473     mkdir -p "$ac_dir"
22474   else
22475     as_dir="$ac_dir"
22476     as_dirs=
22477     while test ! -d "$as_dir"; do
22478       as_dirs="$as_dir $as_dirs"
22479       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22481          X"$as_dir" : 'X\(//\)[^/]' \| \
22482          X"$as_dir" : 'X\(//\)$' \| \
22483          X"$as_dir" : 'X\(/\)' \| \
22484          .     : '\(.\)' 2>/dev/null ||
22485 echo X"$as_dir" |
22486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22487           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22488           /^X\(\/\/\)$/{ s//\1/; q; }
22489           /^X\(\/\).*/{ s//\1/; q; }
22490           s/.*/./; q'`
22491     done
22492     test ! -n "$as_dirs" || mkdir $as_dirs
22493   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22494 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22495    { (exit 1); exit 1; }; }; }
22496
22497       rm -f $ac_file
22498       mv $tmp/config.h $ac_file
22499     fi
22500   else
22501     cat $tmp/config.h
22502     rm -f $tmp/config.h
22503   fi
22504 done
22505 _ACEOF
22506 cat >>$CONFIG_STATUS <<\_ACEOF
22507
22508 #
22509 # CONFIG_COMMANDS section.
22510 #
22511 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22512   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22513   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22514   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22515 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22516          X"$ac_dest" : 'X\(//\)[^/]' \| \
22517          X"$ac_dest" : 'X\(//\)$' \| \
22518          X"$ac_dest" : 'X\(/\)' \| \
22519          .     : '\(.\)' 2>/dev/null ||
22520 echo X"$ac_dest" |
22521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22522           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22523           /^X\(\/\/\)$/{ s//\1/; q; }
22524           /^X\(\/\).*/{ s//\1/; q; }
22525           s/.*/./; q'`
22526   { if $as_mkdir_p; then
22527     mkdir -p "$ac_dir"
22528   else
22529     as_dir="$ac_dir"
22530     as_dirs=
22531     while test ! -d "$as_dir"; do
22532       as_dirs="$as_dir $as_dirs"
22533       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22535          X"$as_dir" : 'X\(//\)[^/]' \| \
22536          X"$as_dir" : 'X\(//\)$' \| \
22537          X"$as_dir" : 'X\(/\)' \| \
22538          .     : '\(.\)' 2>/dev/null ||
22539 echo X"$as_dir" |
22540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22541           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22542           /^X\(\/\/\)$/{ s//\1/; q; }
22543           /^X\(\/\).*/{ s//\1/; q; }
22544           s/.*/./; q'`
22545     done
22546     test ! -n "$as_dirs" || mkdir $as_dirs
22547   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22548 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22549    { (exit 1); exit 1; }; }; }
22550
22551   ac_builddir=.
22552
22553 if test "$ac_dir" != .; then
22554   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22555   # A "../" for each directory in $ac_dir_suffix.
22556   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22557 else
22558   ac_dir_suffix= ac_top_builddir=
22559 fi
22560
22561 case $srcdir in
22562   .)  # No --srcdir option.  We are building in place.
22563     ac_srcdir=.
22564     if test -z "$ac_top_builddir"; then
22565        ac_top_srcdir=.
22566     else
22567        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22568     fi ;;
22569   [\\/]* | ?:[\\/]* )  # Absolute path.
22570     ac_srcdir=$srcdir$ac_dir_suffix;
22571     ac_top_srcdir=$srcdir ;;
22572   *) # Relative path.
22573     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22574     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22575 esac
22576
22577 # Do not use `cd foo && pwd` to compute absolute paths, because
22578 # the directories may not exist.
22579 case `pwd` in
22580 .) ac_abs_builddir="$ac_dir";;
22581 *)
22582   case "$ac_dir" in
22583   .) ac_abs_builddir=`pwd`;;
22584   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22585   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22586   esac;;
22587 esac
22588 case $ac_abs_builddir in
22589 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22590 *)
22591   case ${ac_top_builddir}. in
22592   .) ac_abs_top_builddir=$ac_abs_builddir;;
22593   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22594   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22595   esac;;
22596 esac
22597 case $ac_abs_builddir in
22598 .) ac_abs_srcdir=$ac_srcdir;;
22599 *)
22600   case $ac_srcdir in
22601   .) ac_abs_srcdir=$ac_abs_builddir;;
22602   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22603   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22604   esac;;
22605 esac
22606 case $ac_abs_builddir in
22607 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22608 *)
22609   case $ac_top_srcdir in
22610   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22611   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22612   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22613   esac;;
22614 esac
22615
22616
22617   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22618 echo "$as_me: executing $ac_dest commands" >&6;}
22619   case $ac_dest in
22620     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22621  ;;
22622   esac
22623 done
22624 _ACEOF
22625
22626 cat >>$CONFIG_STATUS <<\_ACEOF
22627
22628 { (exit 0); exit 0; }
22629 _ACEOF
22630 chmod +x $CONFIG_STATUS
22631 ac_clean_files=$ac_clean_files_save
22632
22633
22634 # configure is writing to config.log, and then calls config.status.
22635 # config.status does its own redirection, appending to config.log.
22636 # Unfortunately, on DOS this fails, as config.log is still kept open
22637 # by configure, so config.status won't be able to write to it; its
22638 # output is simply discarded.  So we exec the FD to /dev/null,
22639 # effectively closing config.log, so it can be properly (re)opened and
22640 # appended to by config.status.  When coming back to configure, we
22641 # need to make the FD available again.
22642 if test "$no_create" != yes; then
22643   ac_cs_success=:
22644   ac_config_status_args=
22645   test "$silent" = yes &&
22646     ac_config_status_args="$ac_config_status_args --quiet"
22647   exec 5>/dev/null
22648   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22649   exec 5>>config.log
22650   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22651   # would make configure fail if this is the last instruction.
22652   $ac_cs_success || { (exit 1); exit 1; }
22653 fi
22654
22655
22656 cd scripts
22657 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22658 chmod 755 dvd-writepart dvd-freespace
22659 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22660 cd ..
22661
22662 c=src/cats
22663
22664 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
22665 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
22666
22667 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
22668 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
22669
22670 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
22671 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
22672
22673 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
22674 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
22675
22676 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
22677 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
22678
22679 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22680 chmod 755 $c/sqlite
22681 chmod 755 $c/mysql
22682
22683 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22684    largefile_support="yes"
22685 fi
22686
22687 #
22688 # A whole lot of hand springs to get the compiler version.
22689 #  This is because gcc changed the output in version 3.0
22690 #
22691 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22692 if test "x${CCVERSION}" = "x" ; then
22693   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22694 fi
22695 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22696 if test x"${CXXVERSION}" = x ; then
22697   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22698 fi
22699
22700 if test "x${subsysdir}" = "x${sbindir}" ; then
22701    echo " "
22702    echo " "
22703    echo "You have set --sbindir and --with-subsys-dir"
22704    echo "  both equal to: ${subsysdir} "
22705    echo "  This is not permitted. Please reconfigure."
22706    echo " "
22707    echo "Aborting configuration ..."
22708    echo " "
22709    echo " "
22710    exit 1
22711 fi
22712
22713 if test "x${db_name}" = "xInternal" ; then
22714    echo " "
22715    echo " "
22716    echo "You have not specified either --enable-client-only or one of the"
22717    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
22718    echo "  This is not permitted. Please reconfigure."
22719    echo " "
22720    echo "Aborting the configuration ..."
22721    echo " "
22722    echo " "
22723    exit 1
22724 fi
22725
22726 echo "
22727 Configuration on `date`:
22728
22729   Host:                       $host -- ${DISTNAME} ${DISTVER}
22730   Bacula version:             ${VERSION} (${DATE})
22731   Source code location:       ${srcdir}
22732   Install binaries:           ${sbindir}
22733   Install config files:       ${sysconfdir}
22734   Scripts directory:          ${scriptdir}
22735   Working directory:          ${working_dir}
22736   PID directory:              ${piddir}
22737   Subsys directory:           ${subsysdir}
22738   Man directory:              ${mandir}
22739   C Compiler:                 ${CC} ${CCVERSION}
22740   C++ Compiler:               ${CXX} ${CXXVERSION}
22741   Compiler flags:             ${WCFLAGS} ${CFLAGS}
22742   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
22743   Libraries:                  ${LIBS}
22744   Statically Linked Tools:    ${support_static_tools}
22745   Statically Linked FD:       ${support_static_fd}
22746   Statically Linked SD:       ${support_static_sd}
22747   Statically Linked DIR:      ${support_static_dir}
22748   Statically Linked CONS:     ${support_static_cons}
22749   Database type:              ${db_name}
22750   Database lib:               ${DB_LIBS}
22751
22752   Job Output Email:           ${job_email}
22753   Traceback Email:            ${dump_email}
22754   SMTP Host Address:          ${smtp_host}
22755
22756   Director Port:              ${dir_port}
22757   File daemon Port:           ${fd_port}
22758   Storage daemon Port:        ${sd_port}
22759
22760   Director User:              ${dir_user}
22761   Director Group:             ${dir_group}
22762   Storage Daemon User:        ${sd_user}
22763   Storage DaemonGroup:        ${sd_group}
22764   File Daemon User:           ${fd_user}
22765   File Daemon Group:          ${fd_group}
22766
22767   SQL binaries Directory      ${SQL_BINDIR}
22768
22769   Large file support:         $largefile_support
22770   Bacula conio support:       ${got_conio} ${CONS_LIBS}
22771   readline support:           ${got_readline} ${PRTREADLINE_SRC}
22772   TCP Wrappers support:       ${TCPW_MSG}
22773   TLS support:                ${support_tls}
22774   ZLIB support:               ${have_zlib}
22775   enable-smartalloc:          ${support_smartalloc}
22776   enable-gnome:               ${support_gnome} ${gnome_version}
22777   enable-wx-console:          ${support_wx_console} ${wx_version}
22778   enable-tray-monitor:        ${support_tray_monitor}
22779   client-only:                ${build_client_only}
22780   ACL support:                ${have_acl}
22781   Python support:             ${support_python} ${PYTHON_LIBS}
22782
22783   " > config.out
22784
22785 cat config.out